Bigquery Group By In R