turbot/spotify

Query: spotify_top_genres_by_tracks

Usage

powerpipe query spotify.query.spotify_top_genres_by_tracks

SQL

select
rag.genre_id,
count(distinct t.id) as "Number of Tracks"
from
tracks t
join r_track_artist rta on t.id = rta.track_id
join r_artist_genre rag on rta.artist_id = rag.artist_id
group by
rag.genre_id
order by
"Number of Tracks" desc
limit
10;

Dashboards

The query is used in the dashboards: