Update queries.q

Fixing https://github.com/gbif/analytics/issues/1