 (s/defrecord Query
     [projections :- {s/Str column-schema}
      selection
+     ;; This should be just the top level "from" tables for the query.
      source-tables :- #{s/Keyword}
      alias where subquery? entity call
      group-by limit offset order-by])

                                                      :foreign-columns ["name"]}})

               :alias "fact_nodes"
               :source-tables #{:factsets}
               :subquery? false}))

(def report-logs-query

               :selection {:from [:certnames]}
               :alias "latest_report_id"
               :subquery? false
               :source-tables #{:certnames}}))

(def environments-query
  "Basic environments query, more useful when used with subqueries"
