Chinastark/bird_dataset huggingface dataset:
Database: public_review_platform
Question: Among the businesses in Tempe, list the attribute of the business with a medium review count.
Evidence: Tempe is a city; high review count refers to review_count = 'High'
SQL: SELECT DISTINCT T3.attribute_name FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.city = 'Tempe' AND T1.review_count = 'Medium'
Database: public_review_platform
Question: In businesses with a category of food, how many of them have a star rating below 3?
Evidence: category of food refers to category_name = 'Food'; star rating below 3 refers to stars < 3
SQL: SELECT COUNT(DISTINCT T1.business_id) FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T3.category_name = 'Food' AND T1.stars < 3
Database: public_review_platform
Question: List the active business ID and its stars of the businesses fall under the category of Food.
Evidence: active business ID refers to active = 'true'; category of Food refers to category_name = 'Food'
SQL: SELECT DISTINCT T1.business_id, T1.stars FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T3.category_name = 'Food' AND T1.active = 'true'
Database: public_review_platform
Question: What is the category and attributes of businesses with highest star rating?
Evidence: category of the business refers to category_name; attributes of the business refers to attribute_name; the highest star rating refers to MAX(stars)
SQL: SELECT DISTINCT T3.category_name, T5.attribute_name FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id INNER JOIN Business_Attributes AS T4 ON T2.business_id = T4.business_id INNER JOIN Attributes AS T5 ON T4.attribute_id = T5.attribute_id WHERE T1.stars = ( SELECT MAX(stars) FROM Business )
Database: public_review_platform
Question: What is the category of the business with short review length and highest review stars within business ID from 7 to 14?
Evidence: category of the business refers to category_name; short review length refers to review_length = 'Short'; the highest star rating refers to MAX(stars); business ID from 7 to 14 refers to business_id BETWEEN 7 AND 14
SQL: SELECT DISTINCT T3.category_name FROM Reviews AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T2.business_id >= 7 AND T2.business_id < 15 AND T1.review_length = 'Short' AND T1.review_stars = ( SELECT MAX(review_stars) FROM Reviews )
Database: public_review_platform
Question: Count the active businesses that has an attribute of BYOB with high review count.
Evidence: active business ID refers to active = 'true'; category of Food refers to category_name = 'Food'; attribute of BYOB refers to attribute_name = 'BYOB'; high review count refers to review_count = 'High'
SQL: SELECT COUNT(DISTINCT T1.business_id) FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T3.attribute_name = 'BYOB' AND T1.review_count = 'High' AND T1.active = 'true'
Database: public_review_platform
Question: What is the closing and opening time of businesses located at Glendale with highest star rating?
Evidence: Glendale is a city; the highest star rating refers to MAX(stars)
SQL: SELECT T2.opening_time, T2.closing_time FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id WHERE T1.city = 'Glendale' ORDER BY T1.stars DESC LIMIT 1
Database: public_review_platform
Question: Among the active businesses located at Goodyear, AZ, list the category and atrributes of business with a high review count.
Evidence: active business ID refers to active = 'true'; Goodyear is a city; AZ is a state; high review count refers to review_count = 'High'
SQL: SELECT T3.category_name, T5.attribute_name FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id INNER JOIN Business_Attributes AS T4 ON T1.business_id = T4.business_id INNER JOIN Attributes AS T5 ON T4.attribute_id = T5.attribute_id WHERE T1.review_count = 'High' AND T1.city = 'Goodyear' AND T1.state = 'AZ' AND T1.active = 'true'
Database: public_review_platform
Question: List the categories of active businesses in Glendale, AZ.
Evidence: active business ID refers to active = 'true'; categories refers to category_name; Glendale is a city; AZ is a state
SQL: SELECT DISTINCT T3.category_name FROM Business_Categories AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T1.category_id = T3.category_id WHERE T2.active = 'true' AND T2.state = 'AZ' AND T2.city = 'Glendale'
Database: public_review_platform
Question: Find the location of businesses that has business hours from 7 am to 7 pm every Wednesday.
Evidence: location of business refers to city; business hours from 7am to 7pm refers to opening_time = '7AM' AND closing_time = '7PM'; Wednesday refers to day_of_week = 'Wednesday'
SQL: SELECT DISTINCT T1.city FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T2.opening_time = '7AM' AND T2.closing_time = '7PM' AND T3.day_of_week = 'Wednesday'
Database: public_review_platform
Question: What is the attribute value of an active business with a low review count and 3 stars which is located at Goodyear, AZ?
Evidence: active business ID refers to active = 'true'; low review count refers to review_count = 'Low'; 3 stars refers to stars = 3; Goodyear is a city; AZ is a state
SQL: SELECT DISTINCT T2.attribute_value FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.state = 'AZ' AND T1.city = 'Goodyear' AND T1.active = 'true' AND T1.stars = 3 AND T1.review_count = 'Low'
Database: public_review_platform
Question: What is the opening time of the active businesses in Glendale that have a medium review count.
Evidence: active business ID refers to active = 'true'; Glendale is a city; medium review count refers to review_count = 'Medium'
SQL: SELECT DISTINCT T2.opening_time FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city = 'Glendale' AND T1.review_count = 'Medium' AND T1.active = 'true'
Database: public_review_platform
Question: Among the businesses with a category of Food, what is the percentage of the business with greater than 3 stars?
Evidence: category of food refers to category_name = 'Food'; calculation = DIVIDE(COUNT(stars > 3), SUM(stars))
SQL: SELECT CAST(SUM(CASE WHEN T1.stars > 3 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.stars) FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T3.category_name = 'Food'
Database: public_review_platform
Question: List the closing time and day of week of active businesses in Goodyear with stars greater than the 80% of average age of star rating.
Evidence: active business ID refers to active = 'true'; Goodyear is a city; Calculation = AVG(stars) * 0.8; businesses with stars greater than 80% of average star rating refers to stars > AVG(stars) * 0.8
SQL: SELECT DISTINCT T2.closing_time, T3.day_of_week FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.active = 'true' AND T1.city = 'Goodyear' AND T1.stars > ( SELECT AVG(stars) * 0.8 FROM Business WHERE active = 'true' AND city = 'Goodyear' )
Database: citeseer
Question: Among all the citation, what is the percentage of paper ID under the Agents classification?
Evidence: classification refers to class_label; class_label = 'Agents'; percentage = (divide(count(paper_id where class_label = 'Agents')), (count(paper_id)))*100;
SQL: SELECT CAST(COUNT(CASE WHEN class_label = 'Agents' THEN paper_id ELSE NULL END) AS REAL) * 100 / COUNT(paper_id) FROM paper
Database: citeseer
Question: What is the most cited word? How many papers was that word cited in?
Evidence: most cited word refers to max(count(word_cited_id);
SQL: SELECT word_cited_id, COUNT(paper_id) FROM content GROUP BY word_cited_id ORDER BY COUNT(word_cited_id) DESC LIMIT 1
Database: citeseer
Question: What is the total number of word cited under that class labelled 'AI'?
SQL: SELECT COUNT(DISTINCT T2.word_cited_id) FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.class_label = 'AI'
Database: citeseer
Question: For all words cited in paper ID 315017, state the other paper ID and class label which also cited those words.
SQL: SELECT T1.class_label, T2.word_cited_id FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.paper_id = 315017
Database: citeseer
Question: Among all the DB class type citation, which word is the most frequently cited?
Evidence: class type refers to class_label; class_label = 'DB'; word that is most frequently cited refers to max(count(word_cited_id);
SQL: SELECT T2.word_cited_id FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.class_label = 'DB' GROUP BY T2.word_cited_id ORDER BY COUNT(T2.word_cited_id) DESC LIMIT 1
Database: citeseer
Question: Calculate the percentage of words used in Agents class label.
Evidence: percentage = (divide(count(word_cited_id where class_label = 'Agents')), (count(word_cited_id)))*100;
SQL: SELECT CAST(COUNT(DISTINCT CASE WHEN T1.class_label = 'Agents' THEN T2.word_cited_id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T2.word_cited_id) FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id
Database: citeseer
Question: Which paper ID cited the most word? In which class label does it belongs to?
Evidence: most cited word refers to max(word_cited_id);
SQL: SELECT T1.paper_id, T1.class_label FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id GROUP BY T1.paper_id, T1.class_label ORDER BY COUNT(T2.word_cited_id) DESC LIMIT 1
Database: citeseer
Question: List all the paper ID and its class type that cited the word 'word1002'.
Evidence: class type refers to class_label;
SQL: SELECT T1.paper_id, T1.class_label FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T2.word_cited_id = 'word1002'
Database: citeseer
Question: List all words cited in the AI class label.
SQL: SELECT DISTINCT T2.word_cited_id FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.class_label = 'AI'
Database: citeseer
Question: What is the class label of paper ID 'chakrabarti01integrating'. How many words were cited by this paper ID?
SQL: SELECT DISTINCT T1.class_label, COUNT(T2.word_cited_id) FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.paper_id = 'chakrabarti01integrating' GROUP BY T1.class_label
Database: citeseer
Question: List all paper ID and its class type with more than 20 cited words.
Evidence: class type refers to class_label; count(word_cited_id)>20
SQL: SELECT DISTINCT T1.paper_id, T1.class_label FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id GROUP BY T2.paper_id, T1.class_label HAVING COUNT(T2.word_cited_id) > 20
Database: citeseer
Question: List the words that are cited in both AI and IR class label.
SQL: SELECT DISTINCT T2.word_cited_id FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.class_label = 'AI' OR T1.class_label = 'IR'
Database: citeseer
Question: Name the paper which is cited most times and the paper which is cited least times? Also, find the number of times each one is cited.
SQL: SELECT cited_paper_id, COUNT(cited_paper_id), ( SELECT cited_paper_id FROM cites GROUP BY cited_paper_id ORDER BY COUNT(cited_paper_id) ASC LIMIT 1 ), ( SELECT COUNT(cited_paper_id) FROM cites GROUP BY cited_paper_id ORDER BY COUNT(cited_paper_id) ASC LIMIT 1 ) FROM cites GROUP BY cited_paper_id ORDER BY COUNT(cited_paper_id) DESC LIMIT 1
Database: citeseer
Question: On average, how many papers are under the ML class?
Evidence: class refers to class_label; average = divide(count(paper_id where class_label = 'M')), (count(paper_id)));
SQL: SELECT CAST(COUNT(CASE WHEN class_label = 'ML' THEN paper_id ELSE NULL END) AS REAL) / COUNT(paper_id) FROM paper
Database: citeseer
Question: Find the words cited in papers that are cited by sima01computational?
Evidence: paper cited by refers to citing_paper_id; citing_paper_id = 'sima01computational';
SQL: SELECT DISTINCT T2.word_cited_id FROM cites AS T1 INNER JOIN content AS T2 ON T1.cited_paper_id = T2.paper_id WHERE T1.citing_paper_id = 'sima01computational'
Database: citeseer
Question: How many papers were cited by schmidt99advanced cited word3555?
Evidence: paper cited by refers to citing_paper_id; citing_paper_id = 'schmidt99advanced';
SQL: SELECT COUNT(T2.paper_id) FROM cites AS T1 INNER JOIN content AS T2 ON T1.cited_paper_id = T2.paper_id WHERE T1.citing_paper_id = 'schmidt99advanced' AND T2.word_cited_id = 'word3555'
Database: citeseer
Question: Under what classification do the papers that cited word1163 belong?
SQL: SELECT DISTINCT T1.class_label FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T2.word_cited_id = 'word1163'
Database: citeseer
Question: Among the papers under DB classification, which paper has the highest number of words cited?
Evidence: classification refers to class_label; class_label = 'DB';
SQL: SELECT T1.paper_id FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.class_label = 'DB' GROUP BY T1.paper_id ORDER BY COUNT(T2.word_cited_id) DESC LIMIT 1
Database: citeseer
Question: In the papers classified as ML, how many cited butz01algorithmic?
Evidence: classification refers to class_label; paper cited by refers to citing_paper_id; citing_paper_id = 'butz01algorithmic';
SQL: SELECT COUNT(T1.paper_id) FROM paper AS T1 INNER JOIN cites AS T2 ON T1.paper_id = T2.citing_paper_id WHERE T1.class_label = 'ML' AND T2.cited_paper_id = 'butz01algorithmic'
Database: simpson_episodes
Question: Which crew member of the simpson 20s is the oldest?
Evidence: oldest refers to Min(birthdate)
SQL: SELECT name FROM Person WHERE birthdate IS NOT NULL ORDER BY birthdate ASC LIMIT 1;
Database: simpson_episodes
Question: What's the nickname for Dan Castellaneta?
Evidence: "Dan Castellaneta" is the name of Person
SQL: SELECT nickname FROM Person WHERE name = 'Dan Castellaneta';
Database: simpson_episodes
Question: Among the crew members of the simpson 20s born in the New York city, how many of them were born after the year 1970?
Evidence: born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970
SQL: SELECT COUNT(name) FROM Person WHERE birth_region = 'New York' AND SUBSTR(birthdate, 1, 4) > '1970';
Database: simpson_episodes
Question: In which country was the winner of the Outstanding Voice-Over Performance award of 2009 born?
Evidence: "Outstanding Voice-Over Performance" is the award; 2009 refers to year = 2009; 'Winner' is the result; country refers to birth_country
SQL: SELECT T1.birth_country FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.award = 'Outstanding Voice-Over Performance' AND T2.year = 2009 AND T2.result = 'Winner';
Database: simpson_episodes
Question: Please list the names of all the awards won by the crew member whose nickname is Doofus.
Evidence: award won refers to result = 'Winner'
SQL: SELECT T2.award FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T1.nickname = 'Doofus' AND T2.result = 'Winner';
Database: simpson_episodes
Question: How many crew members who were born in the USA were nominated for the Outstanding Animated Program (For Programming Less Than One Hour) award in 2009?
Evidence: born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009
SQL: SELECT COUNT(*) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T1.birth_country = 'USA' AND T2.result = 'Nominee' AND T2.award = 'Outstanding Animated Program (For Programming Less Than One Hour)' AND T2.year = 2009;
Database: simpson_episodes
Question: Which character won the Outstanding Voice-Over Performance award in 2009?
Evidence: won refers to result = 'Winner'
SQL: SELECT DISTINCT T1.character FROM Character_Award AS T1 INNER JOIN Award AS T2 ON T1.award_id = T2.award_id WHERE T2.award = 'Outstanding Voice-Over Performance' AND T2.year = 2009 AND T2.result = 'Winner';
Database: simpson_episodes
Question: Please list all the keywords of the episode Lost Verizon.
Evidence: "Lost Verizon" is the title of episode
SQL: SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Lost Verizon';
Database: simpson_episodes
Question: How many keywords does the episode that was aired on 2008/10/19 have?
Evidence: aired on 2008/10/19 refers to air_date = '2008-10-19'
SQL: SELECT COUNT(T2.keyword) FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.air_date = '2008-10-19';
Database: simpson_episodes
Question: What's the rating of the episode in which Dan Castellaneta won the Outstanding Voice-Over Performance award in 2009?
Evidence: "Dan Castellaneta" is the person;  2009 is year;  won refers result = 'Winner'
SQL: SELECT T2.rating FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.award = 'Outstanding Voice-Over Performance' AND SUBSTR(T1.year, 1, 4) = '2009' AND T1.person = 'Dan Castellaneta';
Database: simpson_episodes
Question: How many 7-star votes in star score did the episode Lost Verizon have?
Evidence: 7-stars vote refers to stars = 7; 'Lost Verizon' is the title of episode
SQL: SELECT COUNT(*) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.title = 'Lost Verizon' AND T2.stars = 7;
Database: simpson_episodes
Question: How many stars did most of the voters give in star score for the episode Lost Verizon?
Evidence: "Lost Verizon" is the title of episode; most voters refers to Max(votes)
SQL: SELECT T2.stars FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.title = 'Lost Verizon' ORDER BY T2.votes DESC LIMIT 1;
Database: simpson_episodes
Question: Please list the titles of the episodes that have over 200 voters voting a 10 in star score.
Evidence: over 200 votes refers to votes > 200; 10 in star score refers to stars = 10
SQL: SELECT T1.title FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T2.votes > 200 AND T2.stars = 10;
Database: simpson_episodes
Question: How many episodes aired in the year 2009 have over 15% of voters giving 10 stars in star score?
Evidence: aired in the year 2009 refers to air_date like '2009%'; 10 stars in star score refers to stars = 10; over 15% of voters refers to Votes.percent > 15
SQL: SELECT COUNT(*) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE SUBSTR(T1.air_date, 1, 4) = '2009' AND T2.stars = 10 AND T2.percent > 15;
Database: simpson_episodes
Question: What's the title of the episode that got the most 7-star votes in star score?
Evidence: 7-stars vote refers to stars = 7;  most refers to Max(votes)
SQL: SELECT T1.title FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T2.stars = 7 ORDER BY T2.votes DESC LIMIT 1;
Database: simpson_episodes
Question: How many stars on average does the episode Lost Verizon have?
Evidence: "Lost Verizon" is the title of episode; stars on average = Divide( Sum (Multiply (votes, stars)), Sum(votes))
SQL: SELECT CAST(SUM(T2.votes * T2.stars) AS REAL) / SUM(T2.votes) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.title = 'Lost Verizon';
Database: simpson_episodes
Question: What is the percentage of Primetime Emmy nominated episodes with a rating over 7 to all the episodes that have a rating over 7?
Evidence: "Primetime Emmy' is the award_category;  rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100
SQL: SELECT CAST(SUM(CASE WHEN T1.award_category = 'Primetime Emmy' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T2.rating > 7 AND T1.result = 'Nominee';
Database: simpson_episodes
Question: Name the title of the episode where Pamela Hayden voiced the character 'Ruthie.'
Evidence: "Pamela Hayden" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'
SQL: SELECT T1.title FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.person = 'Pamela Hayden' AND T2.role = 'Ruthie';
Database: simpson_episodes
Question: List down all the roles of Matt Groening on the episode titled 'In the Name of the Grandfather' along with the episode number and series number.
Evidence: "Matt Groening" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series
SQL: SELECT T2.role, T1.episode, T1.number_in_series FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.person = 'Matt Groening' AND T1.title = 'In the Name of the Grandfather';
Database: simpson_episodes
Question: Write down the title and summary of the episode with the keyword 'eviction.'
SQL: SELECT T1.title, T1.summary FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T2.keyword = 'eviction';
Database: simpson_episodes
Question: What is the average number of stars received by the episode titled 'Wedding for Disaster.'
Evidence: "Wedding for Disaster" is the title of episode; average number of stars = Divide(Sum(stars), Count(stars))
SQL: SELECT AVG(T2.stars) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.title = 'Wedding for Disaster';
Database: simpson_episodes
Question: Write the title and all the keywords of the episode that was aired on 3/22/2009.
Evidence: aired on 3/22/2009 refers to air_date = '2009-03-22'
SQL: SELECT T1.title, T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.air_date = '2009-03-22';
Database: simpson_episodes
Question: What is the birth name of the person who voiced 'Helen Lovejoy?'
Evidence: voiced refers to role; role = 'Helen Lovejoy"
SQL: SELECT DISTINCT T1.birth_name FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T2.role = 'Helen Lovejoy';
Database: simpson_episodes
Question: What is the percentage ratio between uncredited and credited roles on the episode that won the 2017 Jupiter Award for Best International TV Series? Please include the title of the episode and the names of the persons who were uncredited alongside their role in that episode.
Evidence: uncredited refers to credited = ''; credited refers to credited = 'true'; won refers to result = 'Winner'; 2017 is the year; 'Jupiter Award' is the award_category; 'Best International TV Series' is the award; percentage ratio = Divide (SUM(credited = ''), SUM(credited = 'true')) * 100
SQL: SELECT CAST(SUM(CASE WHEN T2.credited = 'false' THEN 1 END) AS REAL) * 100 / SUM(CASE WHEN T2.credited = 'true' THEN 1 END), T3.title, T2.person FROM Award AS T1 INNER JOIN Credit AS T2 ON T2.episode_id = T1.episode_id INNER JOIN Episode AS T3 ON T1.episode_id = T3.episode_id WHERE SUBSTR(T1.year, 1, 4) = '2017' AND T1.award_category = 'Jupiter Award' AND T1.award = 'Best International TV Series' AND T1.result = 'Winner';