Draft of the query executor; something fails in the test