new query engine complete