1sf/bird-sql-train-with-schema huggingface dataset:
Database: world
Tables: City, Country, CountryLanguage
Columns (table index, column name): -1, *, 0, ID, 0, Name, 0, CountryCode, 0, District, 0, Population, 1, Code, 1, Name, 1, Continent, 1, Region, 1, SurfaceArea, 1, IndepYear, 1, Population, 1, LifeExpectancy, 1, GNP, 1, GNPOld, 1, LocalName, 1, GovernmentForm, 1, HeadOfState, 1, Capital, 1, Code2, 2, CountryCode, 2, Language, 2, IsOfficial, 2, Percentage
Question: List down the languages of countries with an independence year between 1980 to 1995.
Evidence: independence year between 1980 to 1995 refers to IndepYear BETWEEN 1980 AND 1995;
SQL: SELECT T2.Name, T1.Language FROM CountryLanguage AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.IndepYear BETWEEN 1980 AND 1995
Database: world
Tables: City, Country, CountryLanguage
Columns (table index, column name): -1, *, 0, ID, 0, Name, 0, CountryCode, 0, District, 0, Population, 1, Code, 1, Name, 1, Continent, 1, Region, 1, SurfaceArea, 1, IndepYear, 1, Population, 1, LifeExpectancy, 1, GNP, 1, GNPOld, 1, LocalName, 1, GovernmentForm, 1, HeadOfState, 1, Capital, 1, Code2, 2, CountryCode, 2, Language, 2, IsOfficial, 2, Percentage
Question: What is the life expectancy of the people living in Calama city?
SQL: SELECT T2.LifeExpectancy FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.Name = 'Calama'
Database: world
Tables: City, Country, CountryLanguage
Columns (table index, column name): -1, *, 0, ID, 0, Name, 0, CountryCode, 0, District, 0, Population, 1, Code, 1, Name, 1, Continent, 1, Region, 1, SurfaceArea, 1, IndepYear, 1, Population, 1, LifeExpectancy, 1, GNP, 1, GNPOld, 1, LocalName, 1, GovernmentForm, 1, HeadOfState, 1, Capital, 1, Code2, 2, CountryCode, 2, Language, 2, IsOfficial, 2, Percentage
Question: Provide the language used in the country ruled by Pierre Buyoya.
Evidence: ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';
SQL: SELECT T1.Language FROM CountryLanguage AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.HeadOfState = 'Pierre Buyoya'
Database: world
Tables: City, Country, CountryLanguage
Columns (table index, column name): -1, *, 0, ID, 0, Name, 0, CountryCode, 0, District, 0, Population, 1, Code, 1, Name, 1, Continent, 1, Region, 1, SurfaceArea, 1, IndepYear, 1, Population, 1, LifeExpectancy, 1, GNP, 1, GNPOld, 1, LocalName, 1, GovernmentForm, 1, HeadOfState, 1, Capital, 1, Code2, 2, CountryCode, 2, Language, 2, IsOfficial, 2, Percentage
Question: In countries with constitutional monarchy, what is the percentage of cities located in the district of England?
Evidence: constitutional monarchy refers to GovernmentForm = 'Constitutional Monarchy'; percentage = MULTIPLY(DIVIDE(SUM(GovernmentForm = 'Constitutional Monarchy' WHERE District = 'England'), COUNT(GovernmentForm = 'Constitutional Monarchy')), 100)
SQL: SELECT CAST(SUM(CASE WHEN T1.District = 'England' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.GovernmentForm = 'Constitutional Monarchy'
Database: world
Tables: City, Country, CountryLanguage
Columns (table index, column name): -1, *, 0, ID, 0, Name, 0, CountryCode, 0, District, 0, Population, 1, Code, 1, Name, 1, Continent, 1, Region, 1, SurfaceArea, 1, IndepYear, 1, Population, 1, LifeExpectancy, 1, GNP, 1, GNPOld, 1, LocalName, 1, GovernmentForm, 1, HeadOfState, 1, Capital, 1, Code2, 2, CountryCode, 2, Language, 2, IsOfficial, 2, Percentage
Question: Among the cities with a population between 140000 and 150000, list the country that has life expectancy greater than 80% life expectancy of all countries.
Evidence: life expectancy greater than 80% life expectancy of all countries refers to LifeExpectancy < (MULTIPLY(AVG(LifeExpectancy), 0.8));
SQL: SELECT T2.Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.Population BETWEEN 140000 AND 150000 GROUP BY T2.Name, LifeExpectancy HAVING LifeExpectancy < ( SELECT AVG(LifeExpectancy) FROM Country ) * 0.8
Database: world
Tables: City, Country, CountryLanguage
Columns (table index, column name): -1, *, 0, ID, 0, Name, 0, CountryCode, 0, District, 0, Population, 1, Code, 1, Name, 1, Continent, 1, Region, 1, SurfaceArea, 1, IndepYear, 1, Population, 1, LifeExpectancy, 1, GNP, 1, GNPOld, 1, LocalName, 1, GovernmentForm, 1, HeadOfState, 1, Capital, 1, Code2, 2, CountryCode, 2, Language, 2, IsOfficial, 2, Percentage
Question: Among the countries that use Italian as their language, what is the percentage of republic countries?
Evidence: 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';
SQL: SELECT CAST(SUM(CASE WHEN T2.GovernmentForm = 'Republic' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM CountryLanguage AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.Language = 'Italian'
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: How many podcasts are there in the category which has the most podcasts?
Evidence: category which has the most podcast refers to the category with Max(count(podcast_id))
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
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: What is the percentage of the podcast that are categorized in four or more categories?
Evidence: categorized in 4 or more refers to Count(category) > 4; percentage = Divide(Count(podcast_id(count(category) > 4)), Count(podcast_id)) * 100
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
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: Provide the itunes id and url for podcast titled 'Brown Suga Diaries'.
Evidence: url refers to itunes_url; 'Brown Suga Diaries' is the title of podcast
SQL: SELECT itunes_id, itunes_url FROM podcasts WHERE title = 'Brown Suga Diaries'
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: List all podcast with its itunes url for all title containing the word 'Dream'.
Evidence: containing the word 'Dream' refers to title LIKE '%Dream%'
SQL: SELECT itunes_url FROM podcasts WHERE title LIKE '%Dream%' GROUP BY itunes_url
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: Name all the categories for podcast titled 'I Heart My Life Show'.
Evidence: 'I Hearty My Life Show' is the title of podcast
SQL: SELECT T1.category FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.title = 'I Heart My Life Show'
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: List all the podcast title and its itunes url under the 'society-culture' category.
SQL: SELECT T2.title, T2.itunes_url FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'society-culture'
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: How many people rated 5 for the podcast which title contains the word 'spoiler' under the 'art' category '?
Evidence: rated 5 refers to rating = 5; contain the word 'spoilers' refers to title like '%spoilers%'; 'art' is the category name;
SQL: SELECT COUNT(T3.podcast_id) FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id INNER JOIN reviews AS T3 ON T3.podcast_id = T2.podcast_id WHERE T2.title LIKE '%spoilers%' AND T1.category = 'arts' AND T3.rating = 5
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: List the authors who created review for podcast titled 'Pop Rocket' in 2016 with rating less than 5.
Evidence: 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
SQL: SELECT T2.author_id FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.title = 'Pop Rocket' AND T2.created_at LIKE '2016-%' AND T2.rating < 5
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: Name all the podcast title and its category with average rating of more than 3.0.
Evidence: average rating of more than 3.0 refers to avg(rating) > 3.0
SQL: SELECT T2.title, T1.category FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id INNER JOIN reviews AS T3 ON T3.podcast_id = T2.podcast_id GROUP BY T3.podcast_id HAVING AVG(T3.rating) > 3
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: List all content reviewed for podcast with the best rating under the 'fiction' category. State the podcast title.
Evidence: 'fiction' is the category name; best rating refers to rating = 5; content reviewed refers to content
SQL: SELECT DISTINCT T2.title FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id INNER JOIN reviews AS T3 ON T3.podcast_id = T2.podcast_id WHERE T3.rating = 5 AND T1.category = 'fiction'
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: State the podcast title, content review and rating for all reviews with titled 'Love it!'
Evidence: "Love it!" is the title of review; content reviewed refers to content
SQL: SELECT DISTINCT T1.title, T2.content, T2.rating FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.title = 'Love it!'
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: Find the author, rating and review creation date of review for podcast title 'In The Thick'.
Evidence: "In The Thick" is the title of podcast; author refers to author_id; creation date refers to created_at
SQL: SELECT T2.author_id, T2.rating, T2.created_at FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.title = 'In The Thick' GROUP BY T2.author_id, T2.rating, T2.created_at
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: Which podcast was reviewed the latest? State the date of creation, podcast tile and rating.
Evidence: latest refers to Max(created_at); date of creation refers to created_at
SQL: SELECT T1.podcast_id, T2.created_at, T2.title, T2.rating FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id ORDER BY T2.created_at DESC LIMIT 1
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: Name the podcast title, rating and review content created by '76A4C24B6038145'.
Evidence: "76A4C24B6038145" is author_id; review content refers to content
SQL: SELECT T2.title, T2.rating, T2.content FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.author_id = '76A4C24B6038145'
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: For all reviews with the worst rating, state the podcast title as well as the review title and content.
Evidence: worst rating refers to rating = 1
SQL: SELECT DISTINCT T1.title, T2.title, T2.content FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.rating = 1
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: List all reviews created in May 2019. State the title of podcast and review rating.
Evidence: created in May 2019 refers to created_at like '2019-05%'
SQL: SELECT DISTINCT T1.title, T2.rating FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.created_at LIKE '2019-05-%'
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: What is the average rating for the podcast that is most reviewed?
Evidence: most reviewed refers to Max(Count(reviews.podcast_id)); average rating refers to AVG (rating)
SQL: SELECT AVG(T2.rating) FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id GROUP BY T1.podcast_id ORDER BY COUNT(T2.content) DESC LIMIT 1
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: Which category does the podcast titled 'SciFi Tech Talk' belong to?
Evidence: podcast titled 'SciFi Tech Talk' refers to title = 'SciFi Tech Talk'
SQL: SELECT T1.category FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.title = 'SciFi Tech Talk'
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
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.
Evidence: 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
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
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: List all the names of podcasts under the 'true crime' category.
Evidence: name of the podcast refers to title of the podcast
SQL: SELECT T2.title FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'true-crime'
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: Write all the review content belonging to StormCast: The Official Warhammer Age of Sigmar Podcast.
Evidence: review content refers to content; 'StormCast: The Official Warhammer Age of Sigmar Podcast' is the title of 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
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
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.
Evidence: 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
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
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: How many reviews does 'LifeAfter/The Message' have which were rated below 3?
Evidence: LifeAfter/The Message' is the title of podcast; rated below 3 refers to rating < 3
SQL: SELECT COUNT(T2.rating) FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.title = 'LifeAfter/The Message' AND T2.rating <= 3
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: The 'More Stupider: A 90-Day Fiance Podcast' belongs to which category and what is the average rating of the podcast?
Evidence: More Stupider: A 90-Day Fiance Podcast' is the title of podcast; average rating = Divide (Sum(rating), Count(rating))
SQL: SELECT AVG(T3.rating) FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id INNER JOIN reviews AS T3 ON T3.podcast_id = T2.podcast_id WHERE T2.title = 'More Stupider: A 90-Day Fiance Podcast'
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: Of the arts-books and arts-design categories, which one has more podcasts and what is the numerical difference between them?
Evidence: 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))
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
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: How many total reviews runned at in June 2022 were added to the podcasts?
Evidence: 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
SQL: SELECT SUM(reviews_added) FROM runs WHERE run_at LIKE '2022-06-%'
Database: music_platform_2
Tables: runs, podcasts, reviews, categories
Columns (table index, column name): -1, *, 0, run_at, 0, max_rowid, 0, reviews_added, 1, podcast_id, 1, itunes_id, 1, slug, 1, itunes_url, 1, title, 2, podcast_id, 2, title, 2, content, 2, rating, 2, author_id, 2, created_at, 3, podcast_id, 3, category
Question: How many podcast reviews with a rating of 3 were created during the first quarter of 2015?
Evidence: 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'
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'