Migrate analysis queries to clickhouse

Some queries @gk used to run on psql are extremely slow in clickhouse. Ex: count all the relays in votes for maatuska for one day and count all the measured relays in those votes

Why? Should we write those differently?