Here is what the table looks like : google trends
I want to know the most searched terms in every region_name in Indonesia. Results just region/province, terms, and how many times those "terms" been searched. I've tried but the result gives all terms and I want to limit just the top of each region.
Code that I tried :
SELECT
region_name,
term,
count(term) AS Total_searched
FROM
`bigquery-public-data.google_trends.international_top_rising_terms`
WHERE
refresh_date between "2022-01-01" AND "2022-09-06"
AND
country_name = "Indonesia"
AND
score IS NOT NULL
Group by
term,
region_name
order by
Total_searched DESC
So how do I get results with just All 34 regions In Indonesia with the top most searched terms in every region from the beginning of 2022 until today?