Master SQL HAVING Clause in BigQuery - Edindx