Switch RQL to be a query engine