RouteQuery function for So