1. We are not affiliated with Google BigQuery service in any way.
2. Using aggregate on non-leaf query makes no sense for dremel engine,
therefore you get the error.
3. The "Result set too large" is also simple: there are too much
distinct records to count aggregates for, change your query to be more
selective.