home / hth

hth: release_stats

Custom SQL query returning 17 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 music_release as r
  left join music_song as s on s.release_id = r.id
  left join music_video as v on v.release_id = r.id
  left join music_press as p on p.release_id = r.id
group by r.id
order by r.date desc

Edit SQL

This data as json, CSV

titleyeartracksvideospress
DECK 2025 0 2 16
DECK: DIAMONDS 2025 13 1 0
DECK: CLUBS 2025 13 1 0
DECK: HEARTS 2025 13 0 0
DECK: SPADES 2025 13 1 0
DECK: JOKERS 2025 2 0 0
I’m You 2019 10 7 30
Against Electricity 2018 0 0 4
Movement Scorekeepers 2016 7 0 1
A Band Is Something To Figure Out 2016 11 3 15
Juvenile Oratorios EP 2014 4 0 2
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
Prepare To Qualify EP 2008 0 0 0
Collective Psychosis Begone 2007 12 1 8
Powered by Datasette · Queries took 1.923ms