Query to get applications belonging to applicant