swap query into find