turbot/imdb

Query: imdb_moview_earnings_by_genre

Usage

powerpipe query imdb.query.imdb_moview_earnings_by_genre

SQL

select
g.genre,
sum(e.Worldwide) as "Total Earnings"
from
genre g
join earning e on g.Movie_id = e.Movie_id
group by
g.genre
order by
"Total Earnings" desc;

Dashboards

The query is used in the dashboards: