group_by calls. We’ll compare India and Brazil to show how national research priorities diverge.
Step 1: See the global distribution
Group all works by SDG to see where the world’s research effort goes:Step 2: Compare two countries
Filter by country code and group by SDG. Run one call per country:| # | India | Brazil |
|---|---|---|
| 1 | Good health and well-being | Good health and well-being |
| 2 | Affordable and clean energy | Quality education |
| 3 | Zero hunger | Zero hunger |
| 4 | Clean water and sanitation | Life on land |
| 5 | Life on land | Peace, justice, and strong institutions |
Step 3: Track a specific SDG over time
Pick an SDG and group by year to see growth trends. Here’s SDG 13 (Climate Action):Step 4: Find leading institutions
Group by institution within an SDG to find who’s producing the most research:Full script
This script compares any two countries’ SDG profiles side by side:Works can be tagged with multiple SDGs, so percentages across all goals will sum to more than 100%. The shares still show relative emphasis — a country with 15% in energy vs. 5% is investing proportionally more research effort there.