1sf/bird-sql-train-with-schema huggingface dataset:
Database: public_review_platform
Tables: Attributes, Categories, Compliments, Days, Years, Business_Attributes, Business_Categories, Business_Hours, Checkins, Elite, Reviews, Tips, Users_Compliments, Business, Users
Columns (table index, column name): -1, *, 0, attribute_id, 0, attribute_name, 1, category_id, 1, category_name, 2, compliment_id, 2, compliment_type, 3, day_id, 3, day_of_week, 4, year_id, 4, actual_year, 5, attribute_id, 5, business_id, 5, attribute_value, 6, business_id, 6, category_id, 7, business_id, 7, day_id, 7, opening_time, 7, closing_time, 8, business_id, 8, day_id, 8, label_time_0, 8, label_time_1, 8, label_time_2, 8, label_time_3, 8, label_time_4, 8, label_time_5, 8, label_time_6, 8, label_time_7, 8, label_time_8, 8, label_time_9, 8, label_time_10, 8, label_time_11, 8, label_time_12, 8, label_time_13, 8, label_time_14, 8, label_time_15, 8, label_time_16, 8, label_time_17, 8, label_time_18, 8, label_time_19, 8, label_time_20, 8, label_time_21, 8, label_time_22, 8, label_time_23, 9, user_id, 9, year_id, 10, business_id, 10, user_id, 10, review_stars, 10, review_votes_funny, 10, review_votes_useful, 10, review_votes_cool, 10, review_length, 11, business_id, 11, user_id, 11, likes, 11, tip_length, 12, compliment_id, 12, user_id, 12, number_of_compliments, 13, business_id, 13, active, 13, city, 13, state, 13, stars, 13, review_count, 14, user_id, 14, user_yelping_since_year, 14, user_average_stars, 14, user_votes_funny, 14, user_votes_useful, 14, user_votes_cool, 14, user_review_count, 14, user_fans
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
Tables: Attributes, Categories, Compliments, Days, Years, Business_Attributes, Business_Categories, Business_Hours, Checkins, Elite, Reviews, Tips, Users_Compliments, Business, Users
Columns (table index, column name): -1, *, 0, attribute_id, 0, attribute_name, 1, category_id, 1, category_name, 2, compliment_id, 2, compliment_type, 3, day_id, 3, day_of_week, 4, year_id, 4, actual_year, 5, attribute_id, 5, business_id, 5, attribute_value, 6, business_id, 6, category_id, 7, business_id, 7, day_id, 7, opening_time, 7, closing_time, 8, business_id, 8, day_id, 8, label_time_0, 8, label_time_1, 8, label_time_2, 8, label_time_3, 8, label_time_4, 8, label_time_5, 8, label_time_6, 8, label_time_7, 8, label_time_8, 8, label_time_9, 8, label_time_10, 8, label_time_11, 8, label_time_12, 8, label_time_13, 8, label_time_14, 8, label_time_15, 8, label_time_16, 8, label_time_17, 8, label_time_18, 8, label_time_19, 8, label_time_20, 8, label_time_21, 8, label_time_22, 8, label_time_23, 9, user_id, 9, year_id, 10, business_id, 10, user_id, 10, review_stars, 10, review_votes_funny, 10, review_votes_useful, 10, review_votes_cool, 10, review_length, 11, business_id, 11, user_id, 11, likes, 11, tip_length, 12, compliment_id, 12, user_id, 12, number_of_compliments, 13, business_id, 13, active, 13, city, 13, state, 13, stars, 13, review_count, 14, user_id, 14, user_yelping_since_year, 14, user_average_stars, 14, user_votes_funny, 14, user_votes_useful, 14, user_votes_cool, 14, user_review_count, 14, user_fans
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
Tables: cites, paper, content
Columns (table index, column name): -1, *, 0, cited_paper_id, 0, citing_paper_id, 1, paper_id, 1, class_label, 2, paper_id, 2, word_cited_id
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
Tables: cites, paper, content
Columns (table index, column name): -1, *, 0, cited_paper_id, 0, citing_paper_id, 1, paper_id, 1, class_label, 2, paper_id, 2, word_cited_id
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
Tables: cites, paper, content
Columns (table index, column name): -1, *, 0, cited_paper_id, 0, citing_paper_id, 1, paper_id, 1, class_label, 2, paper_id, 2, word_cited_id
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
Tables: cites, paper, content
Columns (table index, column name): -1, *, 0, cited_paper_id, 0, citing_paper_id, 1, paper_id, 1, class_label, 2, paper_id, 2, word_cited_id
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
Tables: cites, paper, content
Columns (table index, column name): -1, *, 0, cited_paper_id, 0, citing_paper_id, 1, paper_id, 1, class_label, 2, paper_id, 2, word_cited_id
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
Tables: cites, paper, content
Columns (table index, column name): -1, *, 0, cited_paper_id, 0, citing_paper_id, 1, paper_id, 1, class_label, 2, paper_id, 2, word_cited_id
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
Tables: cites, paper, content
Columns (table index, column name): -1, *, 0, cited_paper_id, 0, citing_paper_id, 1, paper_id, 1, class_label, 2, paper_id, 2, word_cited_id
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
Tables: cites, paper, content
Columns (table index, column name): -1, *, 0, cited_paper_id, 0, citing_paper_id, 1, paper_id, 1, class_label, 2, paper_id, 2, word_cited_id
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
Tables: cites, paper, content
Columns (table index, column name): -1, *, 0, cited_paper_id, 0, citing_paper_id, 1, paper_id, 1, class_label, 2, paper_id, 2, word_cited_id
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
Tables: cites, paper, content
Columns (table index, column name): -1, *, 0, cited_paper_id, 0, citing_paper_id, 1, paper_id, 1, class_label, 2, paper_id, 2, word_cited_id
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
Tables: cites, paper, content
Columns (table index, column name): -1, *, 0, cited_paper_id, 0, citing_paper_id, 1, paper_id, 1, class_label, 2, paper_id, 2, word_cited_id
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
Tables: cites, paper, content
Columns (table index, column name): -1, *, 0, cited_paper_id, 0, citing_paper_id, 1, paper_id, 1, class_label, 2, paper_id, 2, word_cited_id
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
Tables: cites, paper, content
Columns (table index, column name): -1, *, 0, cited_paper_id, 0, citing_paper_id, 1, paper_id, 1, class_label, 2, paper_id, 2, word_cited_id
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
Tables: cites, paper, content
Columns (table index, column name): -1, *, 0, cited_paper_id, 0, citing_paper_id, 1, paper_id, 1, class_label, 2, paper_id, 2, word_cited_id
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
Tables: cites, paper, content
Columns (table index, column name): -1, *, 0, cited_paper_id, 0, citing_paper_id, 1, paper_id, 1, class_label, 2, paper_id, 2, word_cited_id
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
Tables: cites, paper, content
Columns (table index, column name): -1, *, 0, cited_paper_id, 0, citing_paper_id, 1, paper_id, 1, class_label, 2, paper_id, 2, word_cited_id
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
Tables: cites, paper, content
Columns (table index, column name): -1, *, 0, cited_paper_id, 0, citing_paper_id, 1, paper_id, 1, class_label, 2, paper_id, 2, word_cited_id
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
Tables: cites, paper, content
Columns (table index, column name): -1, *, 0, cited_paper_id, 0, citing_paper_id, 1, paper_id, 1, class_label, 2, paper_id, 2, word_cited_id
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
Tables: cites, paper, content
Columns (table index, column name): -1, *, 0, cited_paper_id, 0, citing_paper_id, 1, paper_id, 1, class_label, 2, paper_id, 2, word_cited_id
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
Tables: Episode, Person, Award, Character_Award, Credit, Keyword, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, name, 1, birthdate, 1, birth_name, 1, birth_place, 1, birth_region, 1, birth_country, 1, height_meters, 1, nickname, 2, award_id, 2, organization, 2, year, 2, award_category, 2, award, 2, person, 2, role, 2, episode_id, 2, season, 2, song, 2, result, 3, award_id, 3, character, 4, episode_id, 4, category, 4, person, 4, role, 4, credited, 5, episode_id, 5, keyword, 6, episode_id, 6, stars, 6, votes, 6, percent
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
Tables: Episode, Person, Award, Character_Award, Credit, Keyword, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, name, 1, birthdate, 1, birth_name, 1, birth_place, 1, birth_region, 1, birth_country, 1, height_meters, 1, nickname, 2, award_id, 2, organization, 2, year, 2, award_category, 2, award, 2, person, 2, role, 2, episode_id, 2, season, 2, song, 2, result, 3, award_id, 3, character, 4, episode_id, 4, category, 4, person, 4, role, 4, credited, 5, episode_id, 5, keyword, 6, episode_id, 6, stars, 6, votes, 6, percent
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
Tables: Episode, Person, Award, Character_Award, Credit, Keyword, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, name, 1, birthdate, 1, birth_name, 1, birth_place, 1, birth_region, 1, birth_country, 1, height_meters, 1, nickname, 2, award_id, 2, organization, 2, year, 2, award_category, 2, award, 2, person, 2, role, 2, episode_id, 2, season, 2, song, 2, result, 3, award_id, 3, character, 4, episode_id, 4, category, 4, person, 4, role, 4, credited, 5, episode_id, 5, keyword, 6, episode_id, 6, stars, 6, votes, 6, percent
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
Tables: Episode, Person, Award, Character_Award, Credit, Keyword, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, name, 1, birthdate, 1, birth_name, 1, birth_place, 1, birth_region, 1, birth_country, 1, height_meters, 1, nickname, 2, award_id, 2, organization, 2, year, 2, award_category, 2, award, 2, person, 2, role, 2, episode_id, 2, season, 2, song, 2, result, 3, award_id, 3, character, 4, episode_id, 4, category, 4, person, 4, role, 4, credited, 5, episode_id, 5, keyword, 6, episode_id, 6, stars, 6, votes, 6, percent
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
Tables: Episode, Person, Award, Character_Award, Credit, Keyword, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, name, 1, birthdate, 1, birth_name, 1, birth_place, 1, birth_region, 1, birth_country, 1, height_meters, 1, nickname, 2, award_id, 2, organization, 2, year, 2, award_category, 2, award, 2, person, 2, role, 2, episode_id, 2, season, 2, song, 2, result, 3, award_id, 3, character, 4, episode_id, 4, category, 4, person, 4, role, 4, credited, 5, episode_id, 5, keyword, 6, episode_id, 6, stars, 6, votes, 6, percent
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
Tables: Episode, Person, Award, Character_Award, Credit, Keyword, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, name, 1, birthdate, 1, birth_name, 1, birth_place, 1, birth_region, 1, birth_country, 1, height_meters, 1, nickname, 2, award_id, 2, organization, 2, year, 2, award_category, 2, award, 2, person, 2, role, 2, episode_id, 2, season, 2, song, 2, result, 3, award_id, 3, character, 4, episode_id, 4, category, 4, person, 4, role, 4, credited, 5, episode_id, 5, keyword, 6, episode_id, 6, stars, 6, votes, 6, percent
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
Tables: Episode, Person, Award, Character_Award, Credit, Keyword, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, name, 1, birthdate, 1, birth_name, 1, birth_place, 1, birth_region, 1, birth_country, 1, height_meters, 1, nickname, 2, award_id, 2, organization, 2, year, 2, award_category, 2, award, 2, person, 2, role, 2, episode_id, 2, season, 2, song, 2, result, 3, award_id, 3, character, 4, episode_id, 4, category, 4, person, 4, role, 4, credited, 5, episode_id, 5, keyword, 6, episode_id, 6, stars, 6, votes, 6, percent
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
Tables: Episode, Person, Award, Character_Award, Credit, Keyword, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, name, 1, birthdate, 1, birth_name, 1, birth_place, 1, birth_region, 1, birth_country, 1, height_meters, 1, nickname, 2, award_id, 2, organization, 2, year, 2, award_category, 2, award, 2, person, 2, role, 2, episode_id, 2, season, 2, song, 2, result, 3, award_id, 3, character, 4, episode_id, 4, category, 4, person, 4, role, 4, credited, 5, episode_id, 5, keyword, 6, episode_id, 6, stars, 6, votes, 6, percent
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
Tables: Episode, Person, Award, Character_Award, Credit, Keyword, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, name, 1, birthdate, 1, birth_name, 1, birth_place, 1, birth_region, 1, birth_country, 1, height_meters, 1, nickname, 2, award_id, 2, organization, 2, year, 2, award_category, 2, award, 2, person, 2, role, 2, episode_id, 2, season, 2, song, 2, result, 3, award_id, 3, character, 4, episode_id, 4, category, 4, person, 4, role, 4, credited, 5, episode_id, 5, keyword, 6, episode_id, 6, stars, 6, votes, 6, percent
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
Tables: Episode, Person, Award, Character_Award, Credit, Keyword, Vote
Columns (table index, column name): -1, *, 0, episode_id, 0, season, 0, episode, 0, number_in_series, 0, title, 0, summary, 0, air_date, 0, episode_image, 0, rating, 0, votes, 1, name, 1, birthdate, 1, birth_name, 1, birth_place, 1, birth_region, 1, birth_country, 1, height_meters, 1, nickname, 2, award_id, 2, organization, 2, year, 2, award_category, 2, award, 2, person, 2, role, 2, episode_id, 2, season, 2, song, 2, result, 3, award_id, 3, character, 4, episode_id, 4, category, 4, person, 4, role, 4, credited, 5, episode_id, 5, keyword, 6, episode_id, 6, stars, 6, votes, 6, percent
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';