Deductions & credits

Does J1 (research) and J2 allowed to file jointly considered as resident for tax purpose in our case?