Query evaluation (untested).