:) 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
And I cannot navigate and edit it by pressing up/down arrow keys.