Practice · Agriculture · Easy
Return the total wheat production across all recorded years as a column named total_mt, rounded to 2 decimals.
Runs in your browser. No signup needed.
crops(crop, year, million_tonnes). SUM(...) with WHERE crop = ‘Wheat’, wrapped in ROUND(…, 2).
SELECT ROUND(SUM(million_tonnes), 2) AS total_mt
FROM crops
WHERE crop = 'Wheat';
The reference solution is checked automatically when you run your query on the practice page — results are compared row by row.
Egypt grows ~9 million tonnes of wheat a year yet is still the world’s largest wheat importer — it can’t grow enough for 116 million people. (FAOSTAT)