Which pairs of countries interact most often?
SELECT actor1_country_code, actor2_country_code, SUM(event_count) AS events
FROM demo.geopolitics.gdelt_daily_actor_pair
WHERE actor1_country_code <> actor2_country_code
GROUP BY actor1_country_code, actor2_country_code
ORDER BY events DESC
LIMIT 10
What has happened between Russia and Ukraine most recently?
SELECT day, actor1_country_code, actor2_country_code, event_count, goldstein_sum
FROM demo.geopolitics.gdelt_daily_actor_pair
WHERE actor1_country_code IN ('RUS', 'UKR') AND actor2_country_code IN ('RUS', 'UKR')
AND actor1_country_code <> actor2_country_code
ORDER BY day DESC, actor1_country_code
LIMIT 10