SELECT * REPLACE( dedup(country) AS country, dedup(product) AS product ) FROM `project.dataset.table`