(PDB-764) Malformed post conditions in query.clj.

This fixes some trivial typos in query.clj that had previously caused some
post-conditions to go unenforced.
Merge pull request #1018 from wkalt/ticket/master/pdb-764-malformed-query-postconditions

(PDB-764) Malformed post conditions in query.clj