Add Engine.getQueryScopeById to let commands scope their stuff to various elements
Destroy and unbind subqueries