Query editor
SELECTCASEWHEN LOWER(TRIM(country)) IN ('uk', 'united kingdom', 'england') THEN 'United Kingdom'WHEN LOWER(TRIM(country)) IN ('uae', 'united arab emirates') THEN 'United Arab Emirates'WHEN LOWER(TRIM(country)) IN ('us', 'usa') THEN 'United States'WHEN LOWER(TRIM(country)) IN ('south korea', 'korea') THEN 'South Korea'ELSE INITCAP(TRIM(country))END AS standardized_country,COUNT(*) AS startup_countFROM dune.mateo_pbw.dataset_pbw25_sib_top12_dataGROUP BYCASEWHEN LOWER(TRIM(country)) IN ('uk', 'united kingdom', 'england') THEN 'United Kingdom'WHEN LOWER(TRIM(country)) IN ('uae', 'united arab emirates') THEN 'United Arab Emirates'WHEN LOWER(TRIM(country)) IN ('us', 'usa') THEN 'United States'WHEN LOWER(TRIM(country)) IN ('south korea', 'korea') THEN 'South Korea'ELSE INITCAP(TRIM(country))ENDORDER BY startup_count DESC;