Update queries.q

Modified to support request on https://github.com/gbif/analytics/issues/3