                         :id nil
                         :table_id nil
                         :description nil}]}}
-        (process-and-run {:type :query
-                          :database @db-id
-                          :query {:source_table (table->id :venues)
-                                  :filter [nil nil]
-                                  :aggregation ["avg" (field->id :venues :latitude)]
-                                  :breakout [nil]
-                                  :limit nil}}))
+  (driver/process-query {:type :query
+                         :database @db-id
+                         :query {:source_table (table->id :venues)
+                                 :filter [nil nil]
+                                 :aggregation ["avg" (field->id :venues :latitude)]
+                                 :breakout [nil]
+                                 :limit nil}}))
 
 ;; ## "STDDEV" AGGREGATION
 (expect {:status :completed

                :cols [{:extra_info {:target_table_id (table->id :venues)} :special_type :fk, :base_type :IntegerField, :description nil, :name "VENUE_ID", :table_id (table->id :checkins), :id (field->id :checkins :venue_id)}
                       {:extra_info {:target_table_id (table->id :users)} :special_type :fk, :base_type :IntegerField, :description nil, :name "USER_ID", :table_id (table->id :checkins), :id (field->id :checkins :user_id)}
                       {:extra_info {} :special_type :id, :base_type :BigIntegerField, :description nil, :name "ID", :table_id (table->id :checkins), :id (field->id :checkins :id)}]}}
        (process-and-run {:type :query
                          :database @db-id
                          :query {:source_table (table->id :checkins)
                                  :aggregation ["rows"]
                                  :limit 10
                                  :fields [(field->id :checkins :venue_id)
                                           (field->id :checkins :user_id)
                                           (field->id :checkins :id)]
                                  :order_by [[(field->id :checkins :venue_id) "ascending"]
                                             [(field->id :checkins :user_id) "descending"]
                                             [(field->id :checkins :id) "ascending"]]}}))

;; ## "FILTER" CLAUSE


                 [77 40 4 -74.0045 40.7318 "Sushi Nakazawa"]
                 [79 40 4 -73.9736 40.7514 "Sushi Yasuda"]
                 [81 40 4 -73.9533 40.7677 "Tanoshi Sushi & Sake Bar"]]
          :columns venues-columns
          :cols @venues-cols}}
  (driver/process-query {:type :query
                         :database @db-id
                         :query {:source_table (table->id :venues)
                                 :filter ["AND"
                                          [">" (field->id :venues :id) 50]
                                          [">=" (field->id :venues :price) 4]]
                                 :aggregation ["rows"]
                                 :breakout [nil]
                                 :limit nil}}))

;; ### FILTER -- "AND", "<", ">", "!="
(expect
