Chinastark/bird_dataset huggingface dataset:
Database: world
Note: use Italian as their language refers to `language` = 'Italian'; percentage = MULTIPLY(DIVidE(SUM(`language` = 'Italian' WHERE governmentform = 'Republic'), COUNT(`language` = 'Italian')), 100); use Italian as their language refers to `language` = 'Italian'; republic countries refers to governmentform = 'Republic';
Question: Among the countries that use Italian as their language, what is the percentage of republic countries?
SQL: SELECT cast(sum(CASE WHEN country.governmentform = 'Republic' THEN 1 ELSE 0 END) AS REAL) * 100 / count(*) FROM countrylanguage INNER JOIN country ON countrylanguage.countrycode = country.code WHERE countrylanguage.language = 'Italian'
Database: music_platform_2
Note: category which has the most podcast refers to the category with Max(count(podcast_id));
Question: How many podcasts are there in the category which has the most podcasts?
SQL: SELECT count(podcast_id) FROM categories WHERE category = ( SELECT category FROM categories GROUP BY category ORDER BY count(podcast_id) DESC LIMIT 1 )
Database: music_platform_2
Note: categorized in 4 or more refers to Count(category) > 4; percentage = Divide(Count(podcast_id(count(category) > 4)), Count(podcast_id)) * 100;
Question: What is the percentage of the podcast that are categorized in four or more categories?
SQL: SELECT count(t1.podcast_id) FROM ( SELECT podcast_id FROM categories GROUP BY podcast_id HAVING count(category) >= 4 ) AS t1
Database: music_platform_2
Note: url refers to itunes_url; 'Brown Suga Diaries' is the title of podcast;
Question: Provide the itunes id and url for podcast titled 'Brown Suga Diaries'.
SQL: SELECT itunes_id, itunes_url FROM podcasts WHERE title = 'Brown Suga Diaries'
Database: music_platform_2
Note: containing the word 'Dream' refers to title LIKE '%Dream%';
Question: List all podcast with its itunes url for all title containing the word 'Dream'.
SQL: SELECT itunes_url FROM podcasts WHERE title LIKE '%Dream%' GROUP BY itunes_url
Database: music_platform_2
Note: 'I Hearty My Life Show' is the title of podcast;
Question: Name all the categories for podcast titled 'I Heart My Life Show'.
SQL: SELECT categories.category FROM categories INNER JOIN podcasts ON podcasts.podcast_id = categories.podcast_id WHERE podcasts.title = 'I Heart My Life Show'
Database: music_platform_2
Question: List all the podcast title and its itunes url under the 'society-culture' category.
SQL: SELECT podcasts.title, podcasts.itunes_url FROM categories INNER JOIN podcasts ON podcasts.podcast_id = categories.podcast_id WHERE categories.category = 'society-culture'
Database: music_platform_2
Note: rated 5 refers to rating = 5; contain the word 'spoilers' refers to title like '%spoilers%'; 'art' is the category name;
Question: How many people rated 5 for the podcast which title contains the word 'spoiler' under the 'art' category '?
SQL: SELECT count(reviews.podcast_id) FROM categories INNER JOIN podcasts ON podcasts.podcast_id = categories.podcast_id INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id WHERE podcasts.title LIKE '%spoilers%' AND categories.category = 'arts' AND reviews.rating = 5
Database: music_platform_2
Note: Pop Rocket' is the title of podcast; in 2016 refers to created_at like'2016%'; rating less than 5 refers to rating < 5; author refers to author_id;
Question: List the authors who created review for podcast titled 'Pop Rocket' in 2016 with rating less than 5.
SQL: SELECT reviews.author_id FROM podcasts INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id WHERE podcasts.title = 'Pop Rocket' AND reviews.created_at LIKE '2016-%' AND reviews.rating < 5
Database: music_platform_2
Note: average rating of more than 3.0 refers to avg(rating) > 3.0;
Question: Name all the podcast title and its category with average rating of more than 3.0.
SQL: SELECT podcasts.title, categories.category FROM categories INNER JOIN podcasts ON podcasts.podcast_id = categories.podcast_id INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id GROUP BY reviews.podcast_id HAVING avg(reviews.rating) > 3
Database: music_platform_2
Note: 'fiction' is the category name; best rating refers to rating = 5; content reviewed refers to content;
Question: List all content reviewed for podcast with the best rating under the 'fiction' category. State the podcast title.
SQL: SELECT DISTINCT podcasts.title FROM categories INNER JOIN podcasts ON podcasts.podcast_id = categories.podcast_id INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id WHERE reviews.rating = 5 AND categories.category = 'fiction'
Database: music_platform_2
Note: "Love it!" is the title of review; content reviewed refers to content;
Question: State the podcast title, content review and rating for all reviews with titled 'Love it!'
SQL: SELECT DISTINCT podcasts.title, reviews.content, reviews.rating FROM podcasts INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id WHERE reviews.title = 'Love it!'
Database: music_platform_2
Note: "In The Thick" is the title of podcast; author refers to author_id; creation date refers to created_at;
Question: Find the author, rating and review creation date of review for podcast title 'In The Thick'.
SQL: SELECT reviews.author_id, reviews.rating, reviews.created_at FROM podcasts INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id WHERE podcasts.title = 'In The Thick' GROUP BY reviews.author_id, reviews.rating, reviews.created_at
Database: music_platform_2
Note: latest refers to Max(created_at); date of creation refers to created_at;
Question: Which podcast was reviewed the latest? State the date of creation, podcast tile and rating.
SQL: SELECT podcasts.podcast_id, reviews.created_at, reviews.title, reviews.rating FROM podcasts INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id ORDER BY reviews.created_at DESC LIMIT 1
Database: music_platform_2
Note: "76A4C24B6038145" is author_id; review content refers to content;
Question: Name the podcast title, rating and review content created by '76A4C24B6038145'.
SQL: SELECT reviews.title, reviews.rating, reviews.content FROM podcasts INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id WHERE reviews.author_id = '76A4C24B6038145'
Database: music_platform_2
Note: worst rating refers to rating = 1;
Question: For all reviews with the worst rating, state the podcast title as well as the review title and content.
SQL: SELECT DISTINCT podcasts.title, reviews.title, reviews.content FROM podcasts INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id WHERE reviews.rating = 1
Database: music_platform_2
Note: created in May 2019 refers to created_at like '2019-05%';
Question: List all reviews created in May 2019. State the title of podcast and review rating.
SQL: SELECT DISTINCT podcasts.title, reviews.rating FROM podcasts INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id WHERE reviews.created_at LIKE '2019-05-%'
Database: music_platform_2
Note: most reviewed refers to Max(Count(reviews.podcast_id)); average rating refers to AVG (rating);
Question: What is the average rating for the podcast that is most reviewed?
SQL: SELECT avg(reviews.rating) FROM podcasts INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id GROUP BY podcasts.podcast_id ORDER BY count(reviews.content) DESC LIMIT 1
Database: music_platform_2
Note: podcast titled 'SciFi Tech Talk' refers to title = 'SciFi Tech Talk';
Question: Which category does the podcast titled 'SciFi Tech Talk' belong to?
SQL: SELECT categories.category FROM categories INNER JOIN podcasts ON podcasts.podcast_id = categories.podcast_id WHERE podcasts.title = 'SciFi Tech Talk'
Database: music_platform_2
Note: comment refers to review; 'Long time listener, calling it quits' is the title of review;  name of the podcast refers to title of podcast; URL refers to itunes_url;
Question: What is the name of the podcast in which a commentor left a comment with the title 'Long time listener, calling it quits?' Include the URL of the podcast as well.
SQL: SELECT podcast_id, itunes_url FROM podcasts WHERE podcast_id = ( SELECT podcast_id FROM reviews WHERE title = 'Long time listener, calling it quits' )
Database: music_platform_2
Note: name of the podcast refers to title of the podcast;
Question: List all the names of podcasts under the 'true crime' category.
SQL: SELECT podcasts.title FROM categories INNER JOIN podcasts ON podcasts.podcast_id = categories.podcast_id WHERE categories.category = 'true-crime'
Database: music_platform_2
Note: review content refers to content; 'StormCast: The Official Warhammer Age of Sigmar Podcast' is the title of podcast;
Question: Write all the review content belonging to StormCast: The Official Warhammer Age of Sigmar Podcast.
SQL: SELECT content FROM reviews WHERE podcast_id = ( SELECT podcast_id FROM podcasts WHERE title = 'StormCast: The Official Warhammer Age of Sigmar Podcast' )
Database: music_platform_2
Note: podcast 'More Stupider: A 90-Day Fiance Podcast'  refers to title = 'More Stupider: A 90-Day Fiance Podcast'; rating of 1 refers to rating = 1;
Question: Write all the review titles and the contents belonging to the podcast 'More Stupider: A 90-Day Fiance Podcast' with a review rating of 1.
SQL: SELECT title, content FROM reviews WHERE podcast_id = ( SELECT podcast_id FROM podcasts WHERE title = 'More Stupider: A 90-Day Fiance Podcast' ) AND rating = 1
Database: music_platform_2
Note: LifeAfter/The Message' is the title of podcast; rated below 3 refers to rating < 3;
Question: How many reviews does 'LifeAfter/The Message' have which were rated below 3?
SQL: SELECT count(reviews.rating) FROM podcasts INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id WHERE podcasts.title = 'LifeAfter/The Message' AND reviews.rating <= 3
Database: music_platform_2
Note: More Stupider: A 90-Day Fiance Podcast' is the title of podcast; average rating = Divide (Sum(rating), Count(rating));
Question: The 'More Stupider: A 90-Day Fiance Podcast' belongs to which category and what is the average rating of the podcast?
SQL: SELECT avg(reviews.rating) FROM categories INNER JOIN podcasts ON podcasts.podcast_id = categories.podcast_id INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id WHERE podcasts.title = 'More Stupider: A 90-Day Fiance Podcast'
Database: music_platform_2
Note: arts-books' and 'arts-design' are category; numerical difference = Subtract(Count(podcast_id(category = 'arts-books')), Count(podcast_id(category = 'arts-design'))); one has much more podcast refers to Max(Count(podcast_id));
Question: Of the arts-books and arts-design categories, which one has more podcasts and what is the numerical difference between them?
SQL: SELECT ( SELECT category FROM categories WHERE category = 'arts-books' OR category = 'arts-design' GROUP BY category ORDER BY count(podcast_id) DESC LIMIT 1 ) "has more podcasts" , ( SELECT sum(CASE WHEN category = 'arts-books' THEN 1 ELSE 0 END) - sum(CASE WHEN category = 'arts-design' THEN 1 ELSE 0 END) FROM categories ) "differenct BETWEEN arts-books and arts-design"
Database: music_platform_2
Note: run at in June 2022 refers to run_at BETWEEN '2022-06-01 00:00:00' and '2022-06-30 23:59:59'; reviews refers to review_added;
Question: How many total reviews runned at in June 2022 were added to the podcasts?
SQL: SELECT sum(reviews_added) FROM runs WHERE run_at LIKE '2022-06-%'
Database: music_platform_2
Note: rating of 3 refers to rating = 3; created during the first quarter of 2015 refers to created_at BETWEEN'2015-01-01T00:00:00-07:00' and '2015-03-31T23:59:59-07:00';
Question: How many podcast reviews with a rating of 3 were created during the first quarter of 2015?
SQL: SELECT count(podcast_id) FROM reviews WHERE rating = 3 AND created_at BETWEEN '2015-01-01T00:00:00-07:00' AND '2015-03-31T23:59:59-07:00'
Database: music_platform_2
Note: percentage =   Divide (Count(podcast_id(category = 'fiction-science-fiction')), Count(podcast_id)) * 100;
Question: Calculate the percentage of podcasts in the fiction-science-fiction category.
SQL: SELECT cast(sum(CASE WHEN category = 'fiction-science-fiction' THEN 1 ELSE 0 END) AS REAL) * 100 / count(podcast_id) OR '%' "percentage" FROM categories
Database: music_platform_2
Note: created in 2019 refers to created_at BETWEEN '2019-01-01T00:00:00' and '2019-12-31T23:59:59'; average rating  = Divide (Sum(rating), Count(podcast_id));
Question: What is the average rating of all the podcasts with reviews created in 2019?
SQL: SELECT avg(rating) FROM reviews WHERE created_at BETWEEN '2019-01-01T00:00:00-07:00' AND '2019-12-31T23:59:59-07:00'
Database: music_platform_2
Note: review added each year refers to runs_at like '2021%' and runs_at like '2022%'; percentage for 2021 = Divide (Sum(reviews_added(runs_at like '2021%)), Sum(reviews_added)) * 100; percentage of 2022 = Divide (Sum(reviews_added(runs_at like '2022%')), Sum(reviews_added)) * 100;
Question: What is the percentage of reviews added each year of the total reviews added?
SQL: SELECT cast((sum(CASE WHEN run_at LIKE '2022-%' THEN reviews_added ELSE 0 END) - sum(CASE WHEN run_at LIKE '2021-%' THEN reviews_added ELSE 0 END)) AS REAL) * 100 / sum(reviews_added) OR '%' "percentage" FROM runs
Database: music_platform_2
Question: Indicates the title of all podcasts in the fiction category.
SQL: SELECT podcasts.title FROM categories INNER JOIN podcasts ON podcasts.podcast_id = categories.podcast_id WHERE categories.category = 'fiction'
Database: music_platform_2
Note: entitled refers to title; 'Sitcomadon' is the title of podcast;
Question: What is the rating and category of the podcast entitled Sitcomadon?
SQL: SELECT DISTINCT reviews.rating, categories.category FROM categories INNER JOIN podcasts ON podcasts.podcast_id = categories.podcast_id INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id WHERE podcasts.title = 'Sitcomadon'
Database: music_platform_2
Note: "151665400" is itunes_id; id of reviewer refers to author_id;
Question: Indicate the id of the reviewer whose itunes id is 1516665400.
SQL: SELECT reviews.author_id FROM podcasts INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id WHERE podcasts.itunes_id = 1516665400
Database: music_platform_2
Note: created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00';
Question: What are the titles of the podcasts whose reviews were created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00?
SQL: SELECT DISTINCT podcasts.title FROM podcasts INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id WHERE reviews.created_at BETWEEN '2018-08-22T11:53:16-07:00' AND '2018-11-20T11:14:20-07:00'
Database: music_platform_2
Note: reviewer whose id is EFB34EAC8E9397C refers to author_id = 'EFB34EAC8E9397C';
Question: To which categories do the podcasts of the reviewer whose id is EFB34EAC8E9397C belong?
SQL: SELECT DISTINCT categories.category FROM categories INNER JOIN reviews ON reviews.podcast_id = categories.podcast_id WHERE reviews.author_id = 'EFB34EAC8E9397C'
Database: music_platform_2
Note: review content was written Can't stop listening refers to content = 'Can't stop listening';
Question: Indicate the slug and the itunes url of the podcast whose review content was written Can't stop listening.
SQL: SELECT slug, itunes_url FROM podcasts WHERE podcast_id IN ( SELECT podcast_id FROM reviews WHERE content = 'Can''t stop listening' )
Database: music_platform_2
Note: "Don't Lie To Your Life Coach" refers to title of podcast; date refers to created_at;
Question: What dates were the Don't Lie To Your Life Coach podcast reviews created?
SQL: SELECT created_at FROM reviews WHERE podcast_id = ( SELECT podcast_id FROM podcasts WHERE title = 'Don''t Lie To Your Life Coach' )
Database: music_platform_2
Note: created in last six months of 2016 refers to created_at BETWEEN '2016-07-01T00:00:00-07:00' and '2016-12-31T23:59:59-07:00';
Question: In how many categories were podcast reviews created in the last six months of 2016? List them.
SQL: SELECT count(DISTINCT categories.category) FROM categories INNER JOIN reviews ON reviews.podcast_id = categories.podcast_id WHERE reviews.created_at BETWEEN '2016-07-01T00:00:00-07:00' AND '2016-12-31T23:59:59-07:00'
Database: music_platform_2
Note: average rating = Divide (Sum(rating(category = 'true-crime')), Count(podcast_id(category = 'true-crime')));
Question: Calculate the average rating of the true crime category.
SQL: SELECT avg(reviews.rating) FROM categories INNER JOIN reviews ON reviews.podcast_id = categories.podcast_id WHERE categories.category = 'true-crime'
Database: music_platform_2
Note: art category refers to category = 'arts';
Question: List the titles of the art category.
SQL: SELECT DISTINCT reviews.title FROM categories INNER JOIN reviews ON reviews.podcast_id = categories.podcast_id WHERE categories.category = 'arts'
Database: music_platform_2
Note: category art refers to category = 'arts'; average rating = Divide (Sum (rating), Count (podcast_id));
Question: What is the average rating of all the podcasts in category art?
SQL: SELECT avg(reviews.rating) FROM categories INNER JOIN reviews ON reviews.podcast_id = categories.podcast_id WHERE categories.category = 'arts'
Database: music_platform_2
Note: art category refers to category = 'arts'; in 2018 refers to created_at like '2018%'; name of podcast refers to title;
Question: Provide the names of podcasts in the art category in 2018.
SQL: SELECT DISTINCT reviews.title FROM categories INNER JOIN reviews ON reviews.podcast_id = categories.podcast_id WHERE categories.category = 'arts' AND reviews.created_at LIKE '2018-%'
Database: music_platform_2
Note: music category refers to category = 'music'; rating greater than 3 refers to rating > 3; name of the podcast refers to title;
Question: Write the names of the podcasts in the music category that have a rating greater than 3.
SQL: SELECT DISTINCT reviews.title FROM categories INNER JOIN reviews ON reviews.podcast_id = categories.podcast_id WHERE categories.category = 'music' AND reviews.rating > 3
Database: music_platform_2
Note: content love refers to content = 'love'; 'arts' is the category; produced between 2018 and 2019 refers to year (created_at) BETWEEN 2018 and 2019;
Question: Which titles have the content "love" but the category is art produced between 2018 and 2019.
SQL: SELECT DISTINCT reviews.title FROM categories INNER JOIN reviews ON reviews.podcast_id = categories.podcast_id WHERE (reviews.created_at LIKE '2018-%' AND categories.category = 'arts' AND reviews.content LIKE '%love%') OR (reviews.created_at LIKE '2019-%' AND categories.category = 'arts' AND reviews.content LIKE '%love%')
Database: music_platform_2
Question: What is the category and itune url of the title "Scaling Global"?
SQL: SELECT categories.category, podcasts.itunes_url FROM categories INNER JOIN podcasts ON podcasts.podcast_id = categories.podcast_id WHERE podcasts.title = 'Scaling Global'
Database: music_platform_2
Note: comedy category refers to category = 'comedy'; average rating = Divide (Sum(rating), Count(podcast_id));
Question: What is the average rating of podcasts in comedy category?
SQL: SELECT avg(reviews.rating) FROM categories INNER JOIN reviews ON reviews.podcast_id = categories.podcast_id WHERE categories.category = 'comedy'
Database: music_platform_2
Note: least common category refers to Min(Count(category));
Question: What is the least common category?
SQL: SELECT category FROM categories GROUP BY category ORDER BY count(podcast_id) ASC LIMIT 1
Database: music_platform_2
Note: review refers to content; longest review refers to Max(content);
Question: What is the longest review?
SQL: SELECT title FROM reviews ORDER BY length(content) DESC LIMIT 1
Database: music_platform_2
Note: "Hosts bring the show down" refers to title of review;
Question: What is the review with the title "Hosts bring the show down" for?
SQL: SELECT title FROM podcasts WHERE podcast_id = ( SELECT podcast_id FROM reviews WHERE title = 'Hosts bring the show down' )
Database: music_platform_2
Note: music podcasts refers to category = 'music'; longest title refers to title = Max(length(title));
Question: Which "music" podcast has the longest title?
SQL: SELECT podcasts.title FROM categories INNER JOIN podcasts ON podcasts.podcast_id = categories.podcast_id WHERE categories.category = 'music' ORDER BY length(podcasts.title) DESC LIMIT 1
Database: music_platform_2
Note: podcast with 'jessica' in title refers to title like '%jessica%';
Question: List all the cagetories for all the podcasts with "jessica" in the title.
SQL: SELECT category FROM categories WHERE podcast_id IN ( SELECT podcast_id FROM podcasts WHERE title LIKE '%jessica%' )
Database: music_platform_2
Note: "Moist Boys" refers to title of podcast;
Question: What is the category for the "Moist Boys" podcast?
SQL: SELECT category FROM categories WHERE podcast_id IN ( SELECT podcast_id FROM podcasts WHERE title = 'Moist Boys' )
Database: music_platform_2
Note: two-stars review refers to rating = 2;
Question: List all of the two-star reviews and their categories.
SQL: SELECT categories.category FROM categories INNER JOIN reviews ON reviews.podcast_id = categories.podcast_id WHERE reviews.rating = 2
Database: music_platform_2
Note: "Inspired & On Fire" refers to title of review;
Question: List all the podcasts reviewed by a reviewer who has a review titled "Inspired & On Fire!".
SQL: SELECT podcasts.title FROM podcasts INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id WHERE reviews.title = 'Inspired & On Fire!'
Database: music_platform_2
Note: review refers to content; 'Absolutely fantastic' in it refers to content like '%Absolutely fantastic%';
Question: What are the titles and categories of all the podcasts with a review that has "Absolutely fantastic" in it?
SQL: SELECT podcasts.title, categories.category FROM categories INNER JOIN podcasts ON podcasts.podcast_id = categories.podcast_id INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id WHERE reviews.content LIKE '%Absolutely fantastic%'
Database: music_platform_2
Note: Most review refers to Max(Count(reviews.podcast_id));
Question: Which category has the most reviews?
SQL: SELECT categories.category FROM categories INNER JOIN reviews ON reviews.podcast_id = categories.podcast_id GROUP BY categories.category ORDER BY count(reviews.podcast_id) DESC LIMIT 1
Database: music_platform_2
Note: fiction-science-fiction podcasts refers to category = 'fiction-science-fiction'; urls refers to itunes_url;
Question: List the urls for all the "fiction-science-fiction" podcasts.
SQL: SELECT itunes_url FROM podcasts WHERE podcast_id IN ( SELECT podcast_id FROM categories WHERE category = 'fiction-science-fiction' )
Database: music_platform_2
Note: "Stuff You Should Know" is the title of podcast; earliest refers to Min(created_at);
Question: What is the content of the earliest review for the "Stuff You Should Know" podcast?
SQL: SELECT reviews.content FROM podcasts INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id WHERE podcasts.title = 'Stuff You Should Know' ORDER BY reviews.created_at ASC LIMIT 1
Database: music_platform_2
Note: "Planet Money" is the title of podcast;
Question: How many reviews does "Planet Money" have?
SQL: SELECT count(reviews.podcast_id) FROM podcasts INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id WHERE podcasts.title = 'Planet Money'
Database: music_platform_2
Note: "crime-junkie" podcast refers to title = 'crime-junkie'; average rating = Divide (Sum(rating), Count(rating));
Question: What is the average rating for the "crime-junkie" podcast?
SQL: SELECT avg(reviews.rating) FROM podcasts INNER JOIN reviews ON reviews.podcast_id = podcasts.podcast_id WHERE podcasts.title = 'Crime Junkie'
Database: music_platform_2
Note: "technology" podcast refers to category = 'technology'; percentage = Divide (Count (podcast_id (category = 'technology')), Count (podcast_id)) * 100;
Question: What percentage of podcasts are "technology" podcasts? List all of them.
SQL: SELECT cast(sum(CASE WHEN categories.category = 'technology' THEN 1 ELSE 0 END) AS REAL) * 100 / count(podcasts.title) OR '%' "percentage" FROM categories INNER JOIN podcasts ON podcasts.podcast_id = categories.podcast_id