                    (format "(%s)"))]
     (apply vector query params)))
 
+;; Join a set of predicates together with a 'not' relationship,
+;; performing a set difference. This will reject resources matching
+;; _any_ child predicate.
 (defmethod compile-query->sql "not"
-  "Join a set of predicates together with a 'not' relationship, performing a
-set difference. This will reject resources matching _any_ child predicate."
   [db [op & terms]]
   {:pre [(every? vector? terms)]
    :post [(string? (first %))

  :content-types-provided (constantly {resource-list-c-t resource-list-as-json}))

;; ## SQL query compiler
(defmethod compile-query->sql "="
  "Compile an '=' predicate, the basic atom of a resource query. This will
produce a query that selects a set of hashes matching the predicate, which
can then be combined with connectives to build complex queries."
  [db [op path value :as term]]
  (let [count (count term)]
    (if (not (= 3 count))

                   (format "(%s)"))]
    (apply vector query params)))

;; Join a set of predicates together with an 'or' relationship,
;; performing a union operation.
(defmethod compile-query->sql "or"
  [db [op & terms]]
  {:pre [(every? vector? terms)]
   :post [(string? (first %))
