Partial support for subqueries in serving frontend and backend.