imdb_movie_average_budgetimdb_movie_average_domestic_earningsimdb_movie_average_worldwide_earningsimdb_movie_by_rating_rangeimdb_movie_distribution_of_metacritic_scoresimdb_movie_domestic_vs_worldwide_earnings_comparisonimdb_movie_earning_domesticimdb_movie_earning_worldwideimdb_movie_genre_popularity_by_age_groupimdb_movie_inputimdb_movie_international_vs_us_votes_comparisonimdb_movie_overviewimdb_movie_profit_comparisonimdb_movie_ratingimdb_movie_runtimeimdb_movie_top_earning_worldwideimdb_movie_top_ratedimdb_movie_totalimdb_movie_votes_comparisonimdb_movie_votes_summaryimdb_moview_earnings_by_genre
Query: imdb_movie_genre_popularity_by_age_group
Usage
powerpipe query imdb.query.imdb_movie_genre_popularity_by_age_group
SQL
select g.genre, sum(cast(i.cvotesu18 as integer)) as "under_18", sum(cast(i.cvotes1829 as integer)) as "18_29", sum(cast(i.cvotes3044 as integer)) as "30_44", sum(cast(i.cvotes45a as integer)) as "45_plus"from imdb i join genre g on i.movie_id = g.movie_idgroup by g.genreorder by "under_18", "18_29", "30_44", "45_plus" desc;
Dashboards
The query is used in the dashboards: