corrected get family query