Practice · Economy · Hard
Using the two "Hepatitis C prevalence" rows (2016 and 2023), return the percentage fall from 2016 to 2023 as pct_drop, rounded to 1 decimal.
Runs in your browser. No signup needed.
Use indicators (name = 'Hepatitis C prevalence'). Pull each year with a scalar subquery.
SELECT ROUND(
((SELECT value FROM indicators WHERE name='Hepatitis C prevalence' AND year=2016)
- (SELECT value FROM indicators WHERE name='Hepatitis C prevalence' AND year=2023))
/ (SELECT value FROM indicators WHERE name='Hepatitis C prevalence' AND year=2016) * 100, 1) AS pct_drop;
The reference solution is checked automatically when you run your query on the practice page — results are compared row by row.
Prevalence fell from ~10% to 0.38% — a ~96% drop — earning Egypt the world’s first WHO “gold tier” on the path to eliminating hepatitis C (2023). (WHO)