diff --git a/web/index.html b/web/index.html
index f86e92a..ab31c9c 100644
--- a/web/index.html
+++ b/web/index.html
@@ -158,6 +158,7 @@
@@ -786,6 +788,38 @@ from reviews
where Link like 'https://%'
group by 1
order by 3 desc, 2 desc, 1`,
+
+ releaseYears: `
+with releases as (
+ select
+ GameID,
+ (ReleaseDate || '-01-01') as ReleaseDate
+ from games
+ where ReleaseDate like '____'
+ union all
+ select
+ GameID,
+ (ReleaseDate || '-01') as ReleaseDate
+ from games
+ where ReleaseDate like '____-__'
+ union all
+ select
+ GameID,
+ ReleaseDate
+ from games
+ where ReleaseDate like '____-__-__'
+)
+select
+ strftime('%Y', r.ReleaseDate) as Year,
+ count(distinct r.GameID) as NumGames,
+ avg(rev.Score) as AverageScore
+from releases r
+inner join games g
+ on g.GameID = r.GameID
+inner join reviews rev
+ on rev.GameID = g.GameID
+group by 1
+order by 1`,
};
const query = sampleQueries[slug];