home / hth

hth: release_aggregates

Custom SQL query returning 7 rows (hide)

select r.title, strftime('%Y', r.date) as year, count(distinct s.id) as tracks, count(distinct v.id) as videos, count(distinct p.id) as press from published_releases as r join published_songs as s on s.release_id = r.id join published_videos as v on v.release_id = r.id join published_press as p on p.release_id = r.id where r.publish group by r.id order by r.date desc

Edit SQL

This data as json, CSV

titleyeartracksvideospress
I’m You 2019 10 6 30
A Band Is Something To Figure Out 2016 11 3 15
Have You Ever Done Something Evil? 2014 12 6 13
Portrait Of The Artist As A Young Trashcan 2013 21 2 11
No One Knows What Happens Next 2012 10 4 6
Colonial Drones 2009 13 3 7
Collective Psychosis Begone 2007 12 1 8
Powered by Datasette · Queries took 2.622ms