Relative mirror symmetry and some applications