Query editor
SELECTCASEWHEN LOWER(TRIM(country)) IN ('uk', 'united kingdom', 'england') THEN 'United Kingdom'WHEN LOWER(TRIM(country)) IN ('us', 'usa') THEN 'United States'WHEN LOWER(TRIM(country)) IN ('uae', 'united arab emirates') THEN 'United Arab Emirates'WHEN LOWER(TRIM(country)) IN ('south korea', 'korea') THEN 'South Korea'ELSE INITCAP(TRIM(country))END AS standardized_country,ROUND(SUM(CAST(REGEXP_REPLACE(TRIM(raise_usd), '[$,]', '') AS DOUBLE)), 2) AS total_fundraisingFROM dune.mateo_pbw.dataset_pbw25_sib_top12_dataWHERE TRIM(raise_usd) != ''GROUP BYCASEWHEN LOWER(TRIM(country)) IN ('uk', 'united kingdom', 'england') THEN 'United Kingdom'WHEN LOWER(TRIM(country)) IN ('us', 'usa') THEN 'United States'WHEN LOWER(TRIM(country)) IN ('uae', 'united arab emirates') THEN 'United Arab Emirates'WHEN LOWER(TRIM(country)) IN ('south korea', 'korea') THEN 'South Korea'ELSE INITCAP(TRIM(country))ENDORDER BY total_fundraising DESC;