Use query_exec to drive dispatch selection