nyc_taxi
loop
5
10000
50
60000
default.trips_mergetree
SELECT cab_type, count(*) FROM trips_mergetree GROUP BY cab_type
SELECT passenger_count, avg(total_amount) FROM trips_mergetree GROUP BY passenger_count
SELECT passenger_count, toYear(pickup_date) AS year, count(*) FROM trips_mergetree GROUP BY passenger_count, year
SELECT passenger_count, toYear(pickup_date) AS year, round(trip_distance) AS distance, count(*) FROM trips_mergetree GROUP BY passenger_count, year, distance ORDER BY year, count(*) DESC