 
 (def producers-query
   "Basic producers query, more useful when used with subqueries"
-  (map->Query {:projections {"name" {:type :string
+  (map->Query {::which-query :producers
+               :projections {"name" {:type :string
                                     :queryable? true
                                     :field :name}}
               :selection {:from [:producers]}


(def resource-params-query
  "Query for the resource-params query, mostly used as a subquery"
  (map->Query {:projections {"res_param_resource" {:type :string
                                                   :queryable? true
                                                   :field (hsql-hash-as-str :resource)}
                             "res_param_name" {:type :string


(def nodes-query
  "Query for nodes entities, mostly used currently for subqueries"
  (map->Query {::which-query :nodes
               :projections {"certname" {:type :string
                                         :queryable? true
                                         :field :certnames.certname}
                             "deactivated" {:type :string
