text
stringlengths
146
1.06k
source
dict
### QUESTION What player(s) had the score of 64-70-67-69=270? ### CONTEXT CREATE TABLE table_18862490_2 (player VARCHAR, score VARCHAR) ### ANSWER SELECT player FROM table_18862490_2 WHERE score = 64 - 70 - 67 - 69 = 270
{ "answer": "SELECT player FROM table_18862490_2 WHERE score = 64 - 70 - 67 - 69 = 270", "context": "CREATE TABLE table_18862490_2 (player VARCHAR, score VARCHAR)", "question": "What player(s) had the score of 64-70-67-69=270?" }
### QUESTION List the date, theme and sales of the journal which did not have any of the listed editors serving on committee. ### CONTEXT CREATE TABLE journal_committee (journal_ID VARCHAR); CREATE TABLE journal (date VARCHAR, theme VARCHAR, sales VARCHAR); CREATE TABLE journal (date VARCHAR, theme VARCHAR, sales VARCHAR, journal_ID VARCHAR) ### ANSWER SELECT date, theme, sales FROM journal EXCEPT SELECT T1.date, T1.theme, T1.sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID
{ "answer": "SELECT date, theme, sales FROM journal EXCEPT SELECT T1.date, T1.theme, T1.sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID", "context": "CREATE TABLE journal_committee (journal_ID VARCHAR); CREATE TABLE journal (date VARCHAR, theme VARCHAR, sales VARCHAR); CREATE TABLE journal (date VARCHAR, theme VARCHAR, sales VARCHAR, journal_ID VARCHAR)", "question": "List the date, theme and sales of the journal which did not have any of the listed editors serving on committee." }
### QUESTION What is the average sales of the journals that have an editor whose work type is 'Photo'? ### CONTEXT CREATE TABLE journal_committee (journal_ID VARCHAR, work_type VARCHAR); CREATE TABLE journal (sales INTEGER, journal_ID VARCHAR) ### ANSWER SELECT AVG(T1.sales) FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID WHERE T2.work_type = 'Photo'
{ "answer": "SELECT AVG(T1.sales) FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID WHERE T2.work_type = 'Photo'", "context": "CREATE TABLE journal_committee (journal_ID VARCHAR, work_type VARCHAR); CREATE TABLE journal (sales INTEGER, journal_ID VARCHAR)", "question": "What is the average sales of the journals that have an editor whose work type is 'Photo'?" }
### QUESTION What is the highest GA when GF is 39? ### CONTEXT CREATE TABLE table_1888157_1 (ga INTEGER, gf VARCHAR) ### ANSWER SELECT MAX(ga) FROM table_1888157_1 WHERE gf = 39
{ "answer": "SELECT MAX(ga) FROM table_1888157_1 WHERE gf = 39", "context": "CREATE TABLE table_1888157_1 (ga INTEGER, gf VARCHAR)", "question": "What is the highest GA when GF is 39?" }
### QUESTION What is the first name, last name, and phone of the customer with account name 162? ### CONTEXT CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE Accounts (customer_id VARCHAR, account_name VARCHAR) ### ANSWER SELECT T2.customer_first_name, T2.customer_last_name, T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = "162"
{ "answer": "SELECT T2.customer_first_name, T2.customer_last_name, T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = \"162\"", "context": "CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE Accounts (customer_id VARCHAR, account_name VARCHAR)", "question": "What is the first name, last name, and phone of the customer with account name 162?" }
### QUESTION When a private individual is the source and 018 is the story number what is the total footage remaining from missing episodes (mm:ss)? ### CONTEXT CREATE TABLE table_1889619_5 (total_footage_remaining_from_missing_episodes__mm VARCHAR, story_no VARCHAR, source VARCHAR) ### ANSWER SELECT total_footage_remaining_from_missing_episodes__mm AS :ss_ FROM table_1889619_5 WHERE story_no = "018" AND source = "Private individual"
{ "answer": "SELECT total_footage_remaining_from_missing_episodes__mm AS :ss_ FROM table_1889619_5 WHERE story_no = \"018\" AND source = \"Private individual\"", "context": "CREATE TABLE table_1889619_5 (total_footage_remaining_from_missing_episodes__mm VARCHAR, story_no VARCHAR, source VARCHAR)", "question": "When a private individual is the source and 018 is the story number what is the total footage remaining from missing episodes (mm:ss)?" }
### QUESTION What is the customer first, last name and id with least number of accounts. ### CONTEXT CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR) ### ANSWER SELECT T2.customer_first_name, T2.customer_last_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) LIMIT 1
{ "answer": "SELECT T2.customer_first_name, T2.customer_last_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) LIMIT 1", "context": "CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)", "question": "What is the customer first, last name and id with least number of accounts." }
### QUESTION Show the first names and last names of customers without any account. ### CONTEXT CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR) ### ANSWER SELECT customer_first_name, customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name, T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id
{ "answer": "SELECT customer_first_name, customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name, T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id", "context": "CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR)", "question": "Show the first names and last names of customers without any account." }
### QUESTION Who did the high rebounds in the game with a 19-6 record? ### CONTEXT CREATE TABLE table_18894744_6 (high_rebounds VARCHAR, record VARCHAR) ### ANSWER SELECT high_rebounds FROM table_18894744_6 WHERE record = "19-6"
{ "answer": "SELECT high_rebounds FROM table_18894744_6 WHERE record = \"19-6\"", "context": "CREATE TABLE table_18894744_6 (high_rebounds VARCHAR, record VARCHAR)", "question": "Who did the high rebounds in the game with a 19-6 record?" }
### QUESTION What is the first name, last name, and phone of the customer with card 4560596484842. ### CONTEXT CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE Customers_cards (customer_id VARCHAR, card_number VARCHAR) ### ANSWER SELECT T2.customer_first_name, T2.customer_last_name, T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.card_number = "4560596484842"
{ "answer": "SELECT T2.customer_first_name, T2.customer_last_name, T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.card_number = \"4560596484842\"", "context": "CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE Customers_cards (customer_id VARCHAR, card_number VARCHAR)", "question": "What is the first name, last name, and phone of the customer with card 4560596484842." }
### QUESTION How many cards does customer Art Turcotte have? ### CONTEXT CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR) ### ANSWER SELECT COUNT(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = "Art" AND T2.customer_last_name = "Turcotte"
{ "answer": "SELECT COUNT(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = \"Art\" AND T2.customer_last_name = \"Turcotte\"", "context": "CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR)", "question": "How many cards does customer Art Turcotte have?" }
### QUESTION What is the Best score if the Maidens is 547 and Overs is 2755.1? ### CONTEXT CREATE TABLE table_18914438_1 (best VARCHAR, maidens VARCHAR, overs VARCHAR) ### ANSWER SELECT best FROM table_18914438_1 WHERE maidens = 547 AND overs = "2755.1"
{ "answer": "SELECT best FROM table_18914438_1 WHERE maidens = 547 AND overs = \"2755.1\"", "context": "CREATE TABLE table_18914438_1 (best VARCHAR, maidens VARCHAR, overs VARCHAR)", "question": "What is the Best score if the Maidens is 547 and Overs is 2755.1?" }
### QUESTION How many credit cards does customer Blanche Huels have? ### CONTEXT CREATE TABLE Customers_cards (customer_id VARCHAR, card_type_code VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR) ### ANSWER SELECT COUNT(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = "Blanche" AND T2.customer_last_name = "Huels" AND T1.card_type_code = "Credit"
{ "answer": "SELECT COUNT(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = \"Blanche\" AND T2.customer_last_name = \"Huels\" AND T1.card_type_code = \"Credit\"", "context": "CREATE TABLE Customers_cards (customer_id VARCHAR, card_type_code VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR)", "question": "How many credit cards does customer Blanche Huels have?" }
### QUESTION What is the customer id with most number of cards, and how many does he have? ### CONTEXT CREATE TABLE Customers_cards (customer_id VARCHAR) ### ANSWER SELECT customer_id, COUNT(*) FROM Customers_cards GROUP BY customer_id ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT customer_id, COUNT(*) FROM Customers_cards GROUP BY customer_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Customers_cards (customer_id VARCHAR)", "question": "What is the customer id with most number of cards, and how many does he have?" }
### QUESTION Show id, first and last names for all customers with at least two cards. ### CONTEXT CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR) ### ANSWER SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2
{ "answer": "SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2", "context": "CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)", "question": "Show id, first and last names for all customers with at least two cards." }
### QUESTION What is the customer id, first and last name with least number of accounts. ### CONTEXT CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR) ### ANSWER SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) LIMIT 1
{ "answer": "SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) LIMIT 1", "context": "CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)", "question": "What is the customer id, first and last name with least number of accounts." }
### QUESTION What series had a high points of Prince (23)? ### CONTEXT CREATE TABLE table_name_32 (series VARCHAR, high_points VARCHAR) ### ANSWER SELECT series FROM table_name_32 WHERE high_points = "prince (23)"
{ "answer": "SELECT series FROM table_name_32 WHERE high_points = \"prince (23)\"", "context": "CREATE TABLE table_name_32 (series VARCHAR, high_points VARCHAR)", "question": "What series had a high points of Prince (23)?" }
### QUESTION What is the card type code with most number of cards? ### CONTEXT CREATE TABLE Customers_cards (card_type_code VARCHAR) ### ANSWER SELECT card_type_code FROM Customers_cards GROUP BY card_type_code ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT card_type_code FROM Customers_cards GROUP BY card_type_code ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Customers_cards (card_type_code VARCHAR)", "question": "What is the card type code with most number of cards?" }
### QUESTION Show the customer ids and firstname without a credit card. ### CONTEXT CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, card_type_code VARCHAR) ### ANSWER SELECT customer_id, customer_first_name FROM Customers EXCEPT SELECT T1.customer_id, T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE card_type_code = "Credit"
{ "answer": "SELECT customer_id, customer_first_name FROM Customers EXCEPT SELECT T1.customer_id, T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE card_type_code = \"Credit\"", "context": "CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, card_type_code VARCHAR)", "question": "Show the customer ids and firstname without a credit card." }
### QUESTION What is the col (m) of the Barurumea Ridge peak? ### CONTEXT CREATE TABLE table_18946749_2 (col__m_ INTEGER, peak VARCHAR) ### ANSWER SELECT MAX(col__m_) FROM table_18946749_2 WHERE peak = "Barurumea Ridge"
{ "answer": "SELECT MAX(col__m_) FROM table_18946749_2 WHERE peak = \"Barurumea Ridge\"", "context": "CREATE TABLE table_18946749_2 (col__m_ INTEGER, peak VARCHAR)", "question": "What is the col (m) of the Barurumea Ridge peak? " }
### QUESTION Name the 2012 for 2009 of 1r ### CONTEXT CREATE TABLE table_name_19 (Id VARCHAR) ### ANSWER SELECT 2012 FROM table_name_19 WHERE 2009 = "1r"
{ "answer": "SELECT 2012 FROM table_name_19 WHERE 2009 = \"1r\"", "context": "CREATE TABLE table_name_19 (Id VARCHAR)", "question": "Name the 2012 for 2009 of 1r" }
### QUESTION When mount gauttier is the peak what is the highest prominence in meters? ### CONTEXT CREATE TABLE table_18946749_1 (prominence__m_ INTEGER, peak VARCHAR) ### ANSWER SELECT MAX(prominence__m_) FROM table_18946749_1 WHERE peak = "Mount Gauttier"
{ "answer": "SELECT MAX(prominence__m_) FROM table_18946749_1 WHERE peak = \"Mount Gauttier\"", "context": "CREATE TABLE table_18946749_1 (prominence__m_ INTEGER, peak VARCHAR)", "question": "When mount gauttier is the peak what is the highest prominence in meters?" }
### QUESTION What is the total average for swimsuits smaller than 9.62 in Colorado? ### CONTEXT CREATE TABLE table_name_70 (average INTEGER, swimsuit VARCHAR, country VARCHAR) ### ANSWER SELECT SUM(average) FROM table_name_70 WHERE swimsuit < 9.62 AND country = "colorado"
{ "answer": "SELECT SUM(average) FROM table_name_70 WHERE swimsuit < 9.62 AND country = \"colorado\"", "context": "CREATE TABLE table_name_70 (average INTEGER, swimsuit VARCHAR, country VARCHAR)", "question": "What is the total average for swimsuits smaller than 9.62 in Colorado?" }
### QUESTION How many times does Switzerland have under 7 golds and less than 3 silvers? ### CONTEXT CREATE TABLE table_name_17 (total VARCHAR, silver VARCHAR, country VARCHAR, gold VARCHAR) ### ANSWER SELECT COUNT(total) FROM table_name_17 WHERE country = "switzerland" AND gold < 7 AND silver < 3
{ "answer": "SELECT COUNT(total) FROM table_name_17 WHERE country = \"switzerland\" AND gold < 7 AND silver < 3", "context": "CREATE TABLE table_name_17 (total VARCHAR, silver VARCHAR, country VARCHAR, gold VARCHAR)", "question": "How many times does Switzerland have under 7 golds and less than 3 silvers?" }
### QUESTION What athlete has less than 7 gold and 14 total medals? ### CONTEXT CREATE TABLE table_name_87 (athlete VARCHAR, gold VARCHAR, total VARCHAR) ### ANSWER SELECT athlete FROM table_name_87 WHERE gold < 7 AND total = 14
{ "answer": "SELECT athlete FROM table_name_87 WHERE gold < 7 AND total = 14", "context": "CREATE TABLE table_name_87 (athlete VARCHAR, gold VARCHAR, total VARCHAR)", "question": "What athlete has less than 7 gold and 14 total medals?" }
### QUESTION Show names and seatings, ordered by seating for all tracks opened after 2000. ### CONTEXT CREATE TABLE track (name VARCHAR, seating VARCHAR, year_opened INTEGER) ### ANSWER SELECT name, seating FROM track WHERE year_opened > 2000 ORDER BY seating
{ "answer": "SELECT name, seating FROM track WHERE year_opened > 2000 ORDER BY seating", "context": "CREATE TABLE track (name VARCHAR, seating VARCHAR, year_opened INTEGER)", "question": "Show names and seatings, ordered by seating for all tracks opened after 2000." }
### QUESTION What is the average crowd size for the home team hawthorn? ### CONTEXT CREATE TABLE table_name_13 (crowd INTEGER, home_team VARCHAR) ### ANSWER SELECT AVG(crowd) FROM table_name_13 WHERE home_team = "hawthorn"
{ "answer": "SELECT AVG(crowd) FROM table_name_13 WHERE home_team = \"hawthorn\"", "context": "CREATE TABLE table_name_13 (crowd INTEGER, home_team VARCHAR)", "question": "What is the average crowd size for the home team hawthorn?" }
### QUESTION Name the number of traditional chinese for album number 6th ### CONTEXT CREATE TABLE table_1893815_1 (chinese__traditional_ VARCHAR, album_number VARCHAR) ### ANSWER SELECT COUNT(chinese__traditional_) FROM table_1893815_1 WHERE album_number = "6th"
{ "answer": "SELECT COUNT(chinese__traditional_) FROM table_1893815_1 WHERE album_number = \"6th\"", "context": "CREATE TABLE table_1893815_1 (chinese__traditional_ VARCHAR, album_number VARCHAR)", "question": "Name the number of traditional chinese for album number 6th" }
### QUESTION Show the name, location, open year for all tracks with a seating higher than the average. ### CONTEXT CREATE TABLE track (name VARCHAR, LOCATION VARCHAR, year_opened VARCHAR, seating INTEGER) ### ANSWER SELECT name, LOCATION, year_opened FROM track WHERE seating > (SELECT AVG(seating) FROM track)
{ "answer": "SELECT name, LOCATION, year_opened FROM track WHERE seating > (SELECT AVG(seating) FROM track)", "context": "CREATE TABLE track (name VARCHAR, LOCATION VARCHAR, year_opened VARCHAR, seating INTEGER)", "question": "Show the name, location, open year for all tracks with a seating higher than the average." }
### QUESTION How many live births per year are there in the period where the life expectancy for females is 73.3? ### CONTEXT CREATE TABLE table_18950570_2 (live_births_per_year VARCHAR, life_expectancy_females VARCHAR) ### ANSWER SELECT live_births_per_year FROM table_18950570_2 WHERE life_expectancy_females = "73.3"
{ "answer": "SELECT live_births_per_year FROM table_18950570_2 WHERE life_expectancy_females = \"73.3\"", "context": "CREATE TABLE table_18950570_2 (live_births_per_year VARCHAR, life_expectancy_females VARCHAR)", "question": "How many live births per year are there in the period where the life expectancy for females is 73.3?" }
### QUESTION What are the names for tracks without a race in class 'GT'. ### CONTEXT CREATE TABLE race (track_id VARCHAR, class VARCHAR); CREATE TABLE track (name VARCHAR); CREATE TABLE track (name VARCHAR, track_id VARCHAR) ### ANSWER SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id WHERE T1.class = 'GT'
{ "answer": "SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id WHERE T1.class = 'GT'", "context": "CREATE TABLE race (track_id VARCHAR, class VARCHAR); CREATE TABLE track (name VARCHAR); CREATE TABLE track (name VARCHAR, track_id VARCHAR)", "question": "What are the names for tracks without a race in class 'GT'." }
### QUESTION Show the name and location of track with 1 race. ### CONTEXT CREATE TABLE race (track_id VARCHAR); CREATE TABLE track (name VARCHAR, location VARCHAR, track_id VARCHAR) ### ANSWER SELECT T2.name, T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id HAVING COUNT(*) = 1
{ "answer": "SELECT T2.name, T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id HAVING COUNT(*) = 1", "context": "CREATE TABLE race (track_id VARCHAR); CREATE TABLE track (name VARCHAR, location VARCHAR, track_id VARCHAR)", "question": "Show the name and location of track with 1 race." }
### QUESTION Give me the names of members whose address is in Harford or Waterbury. ### CONTEXT CREATE TABLE member (name VARCHAR, address VARCHAR) ### ANSWER SELECT name FROM member WHERE address = 'Harford' OR address = 'Waterbury'
{ "answer": "SELECT name FROM member WHERE address = 'Harford' OR address = 'Waterbury'", "context": "CREATE TABLE member (name VARCHAR, address VARCHAR)", "question": "Give me the names of members whose address is in Harford or Waterbury." }
### QUESTION Which membership card has more than 5 members? ### CONTEXT CREATE TABLE member (Membership_card VARCHAR) ### ANSWER SELECT Membership_card FROM member GROUP BY Membership_card HAVING COUNT(*) > 5
{ "answer": "SELECT Membership_card FROM member GROUP BY Membership_card HAVING COUNT(*) > 5", "context": "CREATE TABLE member (Membership_card VARCHAR)", "question": "Which membership card has more than 5 members?" }
### QUESTION What is the membership card held by both members living in Hartford and ones living in Waterbury address? ### CONTEXT CREATE TABLE member (membership_card VARCHAR, address VARCHAR) ### ANSWER SELECT membership_card FROM member WHERE address = 'Hartford' INTERSECT SELECT membership_card FROM member WHERE address = 'Waterbury'
{ "answer": "SELECT membership_card FROM member WHERE address = 'Hartford' INTERSECT SELECT membership_card FROM member WHERE address = 'Waterbury'", "context": "CREATE TABLE member (membership_card VARCHAR, address VARCHAR)", "question": "What is the membership card held by both members living in Hartford and ones living in Waterbury address?" }
### QUESTION What is the least obesity rank for the state of Utah? ### CONTEXT CREATE TABLE table_18958648_1 (obesity_rank INTEGER, state_and_district_of_columbia VARCHAR) ### ANSWER SELECT MIN(obesity_rank) FROM table_18958648_1 WHERE state_and_district_of_columbia = "Utah"
{ "answer": "SELECT MIN(obesity_rank) FROM table_18958648_1 WHERE state_and_district_of_columbia = \"Utah\"", "context": "CREATE TABLE table_18958648_1 (obesity_rank INTEGER, state_and_district_of_columbia VARCHAR)", "question": "What is the least obesity rank for the state of Utah?" }
### QUESTION What's the lowest number of draws when the wins are less than 15, and against is 1228? ### CONTEXT CREATE TABLE table_name_98 (draws INTEGER, wins VARCHAR, against VARCHAR) ### ANSWER SELECT MIN(draws) FROM table_name_98 WHERE wins < 15 AND against = 1228
{ "answer": "SELECT MIN(draws) FROM table_name_98 WHERE wins < 15 AND against = 1228", "context": "CREATE TABLE table_name_98 (draws INTEGER, wins VARCHAR, against VARCHAR)", "question": "What's the lowest number of draws when the wins are less than 15, and against is 1228?" }
### QUESTION Who directed the film Nuits d'arabie? ### CONTEXT CREATE TABLE table_18994724_1 (director_s_ VARCHAR, film_title_used_in_nomination VARCHAR) ### ANSWER SELECT director_s_ FROM table_18994724_1 WHERE film_title_used_in_nomination = "Nuits d'Arabie"
{ "answer": "SELECT director_s_ FROM table_18994724_1 WHERE film_title_used_in_nomination = \"Nuits d'Arabie\"", "context": "CREATE TABLE table_18994724_1 (director_s_ VARCHAR, film_title_used_in_nomination VARCHAR)", "question": "Who directed the film Nuits d'arabie?" }
### QUESTION Who was the contestant eliminated on episode 8 of RW: Key West season? ### CONTEXT CREATE TABLE table_18974269_1 (player VARCHAR, original_season VARCHAR, eliminated VARCHAR) ### ANSWER SELECT player FROM table_18974269_1 WHERE original_season = "RW: Key West" AND eliminated = "Episode 8"
{ "answer": "SELECT player FROM table_18974269_1 WHERE original_season = \"RW: Key West\" AND eliminated = \"Episode 8\"", "context": "CREATE TABLE table_18974269_1 (player VARCHAR, original_season VARCHAR, eliminated VARCHAR)", "question": "Who was the contestant eliminated on episode 8 of RW: Key West season?" }
### QUESTION What was the gender of the contestant on RR: South Pacific season? ### CONTEXT CREATE TABLE table_18974269_1 (gender VARCHAR, original_season VARCHAR) ### ANSWER SELECT gender FROM table_18974269_1 WHERE original_season = "RR: South Pacific"
{ "answer": "SELECT gender FROM table_18974269_1 WHERE original_season = \"RR: South Pacific\"", "context": "CREATE TABLE table_18974269_1 (gender VARCHAR, original_season VARCHAR)", "question": "What was the gender of the contestant on RR: South Pacific season?" }
### QUESTION How many original Australian performers are there when the Original West End Performer is Jordan Dunne? ### CONTEXT CREATE TABLE table_1901751_1 (original_australian_performer VARCHAR, original_west_end_performer VARCHAR) ### ANSWER SELECT COUNT(original_australian_performer) FROM table_1901751_1 WHERE original_west_end_performer = "Jordan Dunne"
{ "answer": "SELECT COUNT(original_australian_performer) FROM table_1901751_1 WHERE original_west_end_performer = \"Jordan Dunne\"", "context": "CREATE TABLE table_1901751_1 (original_australian_performer VARCHAR, original_west_end_performer VARCHAR)", "question": "How many original Australian performers are there when the Original West End Performer is Jordan Dunne?" }
### QUESTION Which artist does the album "Balls to the Wall" belong to? ### CONTEXT CREATE TABLE ALBUM (ArtistId VARCHAR, Title VARCHAR); CREATE TABLE ARTIST (Name VARCHAR, ArtistId VARCHAR) ### ANSWER SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T1.Title = "Balls to the Wall"
{ "answer": "SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T1.Title = \"Balls to the Wall\"", "context": "CREATE TABLE ALBUM (ArtistId VARCHAR, Title VARCHAR); CREATE TABLE ARTIST (Name VARCHAR, ArtistId VARCHAR)", "question": "Which artist does the album \"Balls to the Wall\" belong to?" }
### QUESTION Who is the Original west end performer for the character Martha? ### CONTEXT CREATE TABLE table_1901751_1 (original_west_end_performer VARCHAR, character VARCHAR) ### ANSWER SELECT original_west_end_performer FROM table_1901751_1 WHERE character = "Martha"
{ "answer": "SELECT original_west_end_performer FROM table_1901751_1 WHERE character = \"Martha\"", "context": "CREATE TABLE table_1901751_1 (original_west_end_performer VARCHAR, character VARCHAR)", "question": "Who is the Original west end performer for the character Martha?" }
### QUESTION Who is the original west end performer for the character Neville Craven? ### CONTEXT CREATE TABLE table_1901751_1 (original_west_end_performer VARCHAR, character VARCHAR) ### ANSWER SELECT original_west_end_performer FROM table_1901751_1 WHERE character = "Neville Craven"
{ "answer": "SELECT original_west_end_performer FROM table_1901751_1 WHERE character = \"Neville Craven\"", "context": "CREATE TABLE table_1901751_1 (original_west_end_performer VARCHAR, character VARCHAR)", "question": "Who is the original west end performer for the character Neville Craven?" }
### QUESTION What dates does Alex Munter have 25% and the polling firm of Decima? ### CONTEXT CREATE TABLE table_name_41 (polling_dates VARCHAR, alex_munter VARCHAR, polling_firm VARCHAR) ### ANSWER SELECT polling_dates FROM table_name_41 WHERE alex_munter = "25%" AND polling_firm = "decima"
{ "answer": "SELECT polling_dates FROM table_name_41 WHERE alex_munter = \"25%\" AND polling_firm = \"decima\"", "context": "CREATE TABLE table_name_41 (polling_dates VARCHAR, alex_munter VARCHAR, polling_firm VARCHAR)", "question": "What dates does Alex Munter have 25% and the polling firm of Decima?" }
### QUESTION What are the polling dates for polling firm Holinshed when Terry Kilrea dropped out and Bob Chiarelli has 22.5%? ### CONTEXT CREATE TABLE table_name_63 (terry_kilrea__dropped_out_ VARCHAR, polling_firm VARCHAR, bob_chiarelli VARCHAR) ### ANSWER SELECT terry_kilrea__dropped_out_ FROM table_name_63 WHERE polling_firm = "holinshed" AND bob_chiarelli = "22.5%"
{ "answer": "SELECT terry_kilrea__dropped_out_ FROM table_name_63 WHERE polling_firm = \"holinshed\" AND bob_chiarelli = \"22.5%\"", "context": "CREATE TABLE table_name_63 (terry_kilrea__dropped_out_ VARCHAR, polling_firm VARCHAR, bob_chiarelli VARCHAR)", "question": "What are the polling dates for polling firm Holinshed when Terry Kilrea dropped out and Bob Chiarelli has 22.5%?" }
### QUESTION Show the album names, ids and the number of tracks for each album. ### CONTEXT CREATE TABLE ALBUM (Title VARCHAR, AlbumId VARCHAR); CREATE TABLE TRACK (AlbumID VARCHAR, AlbumId VARCHAR) ### ANSWER SELECT T1.Title, T2.AlbumID, COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId GROUP BY T2.AlbumID
{ "answer": "SELECT T1.Title, T2.AlbumID, COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId GROUP BY T2.AlbumID", "context": "CREATE TABLE ALBUM (Title VARCHAR, AlbumId VARCHAR); CREATE TABLE TRACK (AlbumID VARCHAR, AlbumId VARCHAR)", "question": "Show the album names, ids and the number of tracks for each album." }
### QUESTION What is the least common media type in all tracks? ### CONTEXT CREATE TABLE MEDIATYPE (Name VARCHAR, MediaTypeId VARCHAR); CREATE TABLE TRACK (MediaTypeId VARCHAR) ### ANSWER SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) LIMIT 1
{ "answer": "SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) LIMIT 1", "context": "CREATE TABLE MEDIATYPE (Name VARCHAR, MediaTypeId VARCHAR); CREATE TABLE TRACK (MediaTypeId VARCHAR)", "question": "What is the least common media type in all tracks?" }
### QUESTION Name the points for thierry tassin category:articles with hcards ### CONTEXT CREATE TABLE table_19001175_1 (points VARCHAR, name VARCHAR) ### ANSWER SELECT points FROM table_19001175_1 WHERE name = "Thierry Tassin Category:Articles with hCards"
{ "answer": "SELECT points FROM table_19001175_1 WHERE name = \"Thierry Tassin Category:Articles with hCards\"", "context": "CREATE TABLE table_19001175_1 (points VARCHAR, name VARCHAR)", "question": "Name the points for thierry tassin category:articles with hcards" }
### QUESTION Name the number of poles for stefano livio category:articles with hcards ### CONTEXT CREATE TABLE table_19001175_1 (poles VARCHAR, name VARCHAR) ### ANSWER SELECT COUNT(poles) FROM table_19001175_1 WHERE name = "Stefano Livio Category:Articles with hCards"
{ "answer": "SELECT COUNT(poles) FROM table_19001175_1 WHERE name = \"Stefano Livio Category:Articles with hCards\"", "context": "CREATE TABLE table_19001175_1 (poles VARCHAR, name VARCHAR)", "question": "Name the number of poles for stefano livio category:articles with hcards" }
### QUESTION What is Surface, when Tournament is "Saint Joseph , United States"? ### CONTEXT CREATE TABLE table_name_87 (surface VARCHAR, tournament VARCHAR) ### ANSWER SELECT surface FROM table_name_87 WHERE tournament = "saint joseph , united states"
{ "answer": "SELECT surface FROM table_name_87 WHERE tournament = \"saint joseph , united states\"", "context": "CREATE TABLE table_name_87 (surface VARCHAR, tournament VARCHAR)", "question": "What is Surface, when Tournament is \"Saint Joseph , United States\"?" }
### QUESTION What is the first name and last name of the customer that has email "[email protected]"? ### CONTEXT CREATE TABLE CUSTOMER (FirstName VARCHAR, LastName VARCHAR, Email VARCHAR) ### ANSWER SELECT FirstName, LastName FROM CUSTOMER WHERE Email = "[email protected]"
{ "answer": "SELECT FirstName, LastName FROM CUSTOMER WHERE Email = \"[email protected]\"", "context": "CREATE TABLE CUSTOMER (FirstName VARCHAR, LastName VARCHAR, Email VARCHAR)", "question": "What is the first name and last name of the customer that has email \"[email protected]\"?" }
### QUESTION What is the average unit price of tracks that belong to Jazz genre? ### CONTEXT CREATE TABLE TRACK (GenreId VARCHAR); CREATE TABLE GENRE (GenreId VARCHAR, Name VARCHAR) ### ANSWER SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Jazz"
{ "answer": "SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Jazz\"", "context": "CREATE TABLE TRACK (GenreId VARCHAR); CREATE TABLE GENRE (GenreId VARCHAR, Name VARCHAR)", "question": "What is the average unit price of tracks that belong to Jazz genre?" }
### QUESTION Find all invoice dates corresponding to customers with first name Astrid and last name Gruber. ### CONTEXT CREATE TABLE CUSTOMER (CustomerId VARCHAR, FirstName VARCHAR); CREATE TABLE INVOICE (InvoiceDate VARCHAR, CustomerId VARCHAR) ### ANSWER SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = "Astrid" AND LastName = "Gruber"
{ "answer": "SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = \"Astrid\" AND LastName = \"Gruber\"", "context": "CREATE TABLE CUSTOMER (CustomerId VARCHAR, FirstName VARCHAR); CREATE TABLE INVOICE (InvoiceDate VARCHAR, CustomerId VARCHAR)", "question": "Find all invoice dates corresponding to customers with first name Astrid and last name Gruber." }
### QUESTION what will be the population of Europe when Northern America is 482 (4.7%)? ### CONTEXT CREATE TABLE table_19017269_5 (europe VARCHAR, northern_america VARCHAR) ### ANSWER SELECT europe FROM table_19017269_5 WHERE northern_america = "482 (4.7%)"
{ "answer": "SELECT europe FROM table_19017269_5 WHERE northern_america = \"482 (4.7%)\"", "context": "CREATE TABLE table_19017269_5 (europe VARCHAR, northern_america VARCHAR)", "question": "what will be the population of Europe when Northern America is 482 (4.7%)?" }
### QUESTION Find the first names of all customers that live in Brazil and have an invoice. ### CONTEXT CREATE TABLE CUSTOMER (FirstName VARCHAR, CustomerId VARCHAR, country VARCHAR); CREATE TABLE INVOICE (CustomerId VARCHAR) ### ANSWER SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = "Brazil"
{ "answer": "SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = \"Brazil\"", "context": "CREATE TABLE CUSTOMER (FirstName VARCHAR, CustomerId VARCHAR, country VARCHAR); CREATE TABLE INVOICE (CustomerId VARCHAR)", "question": "Find the first names of all customers that live in Brazil and have an invoice." }
### QUESTION How many tracks are in the AAC audio file media type? ### CONTEXT CREATE TABLE MEDIATYPE (MediaTypeId VARCHAR, Name VARCHAR); CREATE TABLE TRACK (MediaTypeId VARCHAR) ### ANSWER SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = "AAC audio file"
{ "answer": "SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = \"AAC audio file\"", "context": "CREATE TABLE MEDIATYPE (MediaTypeId VARCHAR, Name VARCHAR); CREATE TABLE TRACK (MediaTypeId VARCHAR)", "question": "How many tracks are in the AAC audio file media type?" }
### QUESTION What tournament did she win with a final score of 4–6, 7–5, 6–2? ### CONTEXT CREATE TABLE table_19047_2 (championship VARCHAR, score_in_the_final VARCHAR) ### ANSWER SELECT championship FROM table_19047_2 WHERE score_in_the_final = "4–6, 7–5, 6–2"
{ "answer": "SELECT championship FROM table_19047_2 WHERE score_in_the_final = \"4–6, 7–5, 6–2\"", "context": "CREATE TABLE table_19047_2 (championship VARCHAR, score_in_the_final VARCHAR)", "question": "What tournament did she win with a final score of 4–6, 7–5, 6–2?" }
### QUESTION Please list the name and id of all artists that have at least 3 albums in alphabetical order. ### CONTEXT CREATE TABLE ARTIST (Name VARCHAR, ArtistID VARCHAR); CREATE TABLE ALBUM (ArtistId VARCHAR) ### ANSWER SELECT T2.Name, T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*) >= 3 ORDER BY T2.Name
{ "answer": "SELECT T2.Name, T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*) >= 3 ORDER BY T2.Name", "context": "CREATE TABLE ARTIST (Name VARCHAR, ArtistID VARCHAR); CREATE TABLE ALBUM (ArtistId VARCHAR)", "question": "Please list the name and id of all artists that have at least 3 albums in alphabetical order." }
### QUESTION When davao city is the home or representative town or province and clash 2010 is the edition how many ages are there? ### CONTEXT CREATE TABLE table_19061741_3 (age VARCHAR, edition VARCHAR, home_or_representative_town_or_province VARCHAR) ### ANSWER SELECT COUNT(age) FROM table_19061741_3 WHERE edition = "Clash 2010" AND home_or_representative_town_or_province = "Davao City"
{ "answer": "SELECT COUNT(age) FROM table_19061741_3 WHERE edition = \"Clash 2010\" AND home_or_representative_town_or_province = \"Davao City\"", "context": "CREATE TABLE table_19061741_3 (age VARCHAR, edition VARCHAR, home_or_representative_town_or_province VARCHAR)", "question": "When davao city is the home or representative town or province and clash 2010 is the edition how many ages are there?" }
### QUESTION When winner is the status and 77 is the total days in pbb house what is the edition? ### CONTEXT CREATE TABLE table_19061741_3 (edition VARCHAR, total_days_in_pbb_house VARCHAR, status VARCHAR) ### ANSWER SELECT edition FROM table_19061741_3 WHERE total_days_in_pbb_house = 77 AND status = "Winner"
{ "answer": "SELECT edition FROM table_19061741_3 WHERE total_days_in_pbb_house = 77 AND status = \"Winner\"", "context": "CREATE TABLE table_19061741_3 (edition VARCHAR, total_days_in_pbb_house VARCHAR, status VARCHAR)", "question": "When winner is the status and 77 is the total days in pbb house what is the edition?" }
### QUESTION What are the duration of the longest and shortest pop tracks in milliseconds? ### CONTEXT CREATE TABLE TRACK (GenreId VARCHAR); CREATE TABLE GENRE (GenreId VARCHAR, Name VARCHAR) ### ANSWER SELECT MAX(Milliseconds), MIN(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Pop"
{ "answer": "SELECT MAX(Milliseconds), MIN(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Pop\"", "context": "CREATE TABLE TRACK (GenreId VARCHAR); CREATE TABLE GENRE (GenreId VARCHAR, Name VARCHAR)", "question": "What are the duration of the longest and shortest pop tracks in milliseconds?" }
### QUESTION How many seasons has UPS sponsored a car with a number larger than 17? ### CONTEXT CREATE TABLE table_name_9 (season VARCHAR, car__number VARCHAR, sponsor VARCHAR) ### ANSWER SELECT COUNT(season) FROM table_name_9 WHERE car__number > 17 AND sponsor = "ups"
{ "answer": "SELECT COUNT(season) FROM table_name_9 WHERE car__number > 17 AND sponsor = \"ups\"", "context": "CREATE TABLE table_name_9 (season VARCHAR, car__number VARCHAR, sponsor VARCHAR)", "question": "How many seasons has UPS sponsored a car with a number larger than 17?" }
### QUESTION Find the names of artists that do not have any albums. ### CONTEXT CREATE TABLE ARTIST (Name VARCHAR); CREATE TABLE ALBUM (ArtistId VARCHAR); CREATE TABLE ARTIST (Name VARCHAR, ArtistId VARCHAR) ### ANSWER SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId
{ "answer": "SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId", "context": "CREATE TABLE ARTIST (Name VARCHAR); CREATE TABLE ALBUM (ArtistId VARCHAR); CREATE TABLE ARTIST (Name VARCHAR, ArtistId VARCHAR)", "question": "Find the names of artists that do not have any albums." }
### QUESTION What are the album titles for albums containing both 'Reggae' and 'Rock' genre tracks? ### CONTEXT CREATE TABLE Genre (GenreID VARCHAR, Name VARCHAR); CREATE TABLE Track (AlbumId VARCHAR, GenreID VARCHAR); CREATE TABLE Album (Title VARCHAR, AlbumId VARCHAR) ### ANSWER SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Rock'
{ "answer": "SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Rock'", "context": "CREATE TABLE Genre (GenreID VARCHAR, Name VARCHAR); CREATE TABLE Track (AlbumId VARCHAR, GenreID VARCHAR); CREATE TABLE Album (Title VARCHAR, AlbumId VARCHAR)", "question": "What are the album titles for albums containing both 'Reggae' and 'Rock' genre tracks?" }
### QUESTION Which policy type has the most records in the database? ### CONTEXT CREATE TABLE available_policies (policy_type_code VARCHAR) ### ANSWER SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE available_policies (policy_type_code VARCHAR)", "question": "Which policy type has the most records in the database?" }
### QUESTION Find the policy type used by more than 4 customers. ### CONTEXT CREATE TABLE available_policies (policy_type_code VARCHAR) ### ANSWER SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING COUNT(*) > 4
{ "answer": "SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING COUNT(*) > 4", "context": "CREATE TABLE available_policies (policy_type_code VARCHAR)", "question": "Find the policy type used by more than 4 customers." }
### QUESTION Name the launch date for duration days 174.14 ### CONTEXT CREATE TABLE table_1906515_1 (launch_date VARCHAR, duration__days_ VARCHAR) ### ANSWER SELECT launch_date FROM table_1906515_1 WHERE duration__days_ = "174.14"
{ "answer": "SELECT launch_date FROM table_1906515_1 WHERE duration__days_ = \"174.14\"", "context": "CREATE TABLE table_1906515_1 (launch_date VARCHAR, duration__days_ VARCHAR)", "question": "Name the launch date for duration days 174.14" }
### QUESTION Find the name of services that have been used for more than 2 times in first notification of loss. ### CONTEXT CREATE TABLE services (service_name VARCHAR, service_id VARCHAR); CREATE TABLE first_notification_of_loss (service_id VARCHAR) ### ANSWER SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_id HAVING COUNT(*) > 2
{ "answer": "SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_id HAVING COUNT(*) > 2", "context": "CREATE TABLE services (service_name VARCHAR, service_id VARCHAR); CREATE TABLE first_notification_of_loss (service_id VARCHAR)", "question": "Find the name of services that have been used for more than 2 times in first notification of loss." }
### QUESTION What is the effective date of the claim that has the largest amount of total settlement? ### CONTEXT CREATE TABLE settlements (claim_id VARCHAR, settlement_amount INTEGER); CREATE TABLE claims (Effective_Date VARCHAR, claim_id VARCHAR) ### ANSWER SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id = t2.claim_id GROUP BY t1.claim_id ORDER BY SUM(t2.settlement_amount) DESC LIMIT 1
{ "answer": "SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id = t2.claim_id GROUP BY t1.claim_id ORDER BY SUM(t2.settlement_amount) DESC LIMIT 1", "context": "CREATE TABLE settlements (claim_id VARCHAR, settlement_amount INTEGER); CREATE TABLE claims (Effective_Date VARCHAR, claim_id VARCHAR)", "question": "What is the effective date of the claim that has the largest amount of total settlement?" }
### QUESTION How many policies are listed for the customer named "Dayana Robel"? ### CONTEXT CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR) ### ANSWER SELECT COUNT(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Dayana Robel"
{ "answer": "SELECT COUNT(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = \"Dayana Robel\"", "context": "CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR)", "question": "How many policies are listed for the customer named \"Dayana Robel\"?" }
### QUESTION What is the name of the customer who has the most policies listed? ### CONTEXT CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR) ### ANSWER SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR)", "question": "What is the name of the customer who has the most policies listed?" }
### QUESTION What are all the policy types of the customer named "Dayana Robel"? ### CONTEXT CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE available_policies (policy_type_code VARCHAR, policy_id VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR, policy_id VARCHAR) ### ANSWER SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = "Dayana Robel"
{ "answer": "SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = \"Dayana Robel\"", "context": "CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE available_policies (policy_type_code VARCHAR, policy_id VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR, policy_id VARCHAR)", "question": "What are all the policy types of the customer named \"Dayana Robel\"?" }
### QUESTION What are all the policy types of the customer that has the most policies listed? ### CONTEXT CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE available_policies (policy_type_code VARCHAR, policy_id VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR, policy_id VARCHAR) ### ANSWER SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY COUNT(*) DESC LIMIT 1)
{ "answer": "SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY COUNT(*) DESC LIMIT 1)", "context": "CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE available_policies (policy_type_code VARCHAR, policy_id VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR, policy_id VARCHAR)", "question": "What are all the policy types of the customer that has the most policies listed?" }
### QUESTION Find the names of customers who have used either the service "Close a policy" or the service "Upgrade a policy". ### CONTEXT CREATE TABLE first_notification_of_loss (customer_id VARCHAR, service_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE services (service_id VARCHAR, service_name VARCHAR) ### ANSWER SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "Close a policy" OR t3.service_name = "Upgrade a policy"
{ "answer": "SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = \"Close a policy\" OR t3.service_name = \"Upgrade a policy\"", "context": "CREATE TABLE first_notification_of_loss (customer_id VARCHAR, service_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE services (service_id VARCHAR, service_name VARCHAR)", "question": "Find the names of customers who have used either the service \"Close a policy\" or the service \"Upgrade a policy\"." }
### QUESTION Find the names of customers who have used both the service "Close a policy" and the service "New policy application". ### CONTEXT CREATE TABLE first_notification_of_loss (customer_id VARCHAR, service_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE services (service_id VARCHAR, service_name VARCHAR) ### ANSWER SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "Close a policy" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "New policy application"
{ "answer": "SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = \"Close a policy\" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = \"New policy application\"", "context": "CREATE TABLE first_notification_of_loss (customer_id VARCHAR, service_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE services (service_id VARCHAR, service_name VARCHAR)", "question": "Find the names of customers who have used both the service \"Close a policy\" and the service \"New policy application\"." }
### QUESTION What is the sum of the places of the team with more than 49 points and less than 54 goals scored? ### CONTEXT CREATE TABLE table_name_70 (place__posición_ INTEGER, points__pts_ VARCHAR, goals_scored__gf_ VARCHAR) ### ANSWER SELECT SUM(place__posición_) FROM table_name_70 WHERE points__pts_ > 49 AND goals_scored__gf_ < 54
{ "answer": "SELECT SUM(place__posición_) FROM table_name_70 WHERE points__pts_ > 49 AND goals_scored__gf_ < 54", "context": "CREATE TABLE table_name_70 (place__posición_ INTEGER, points__pts_ VARCHAR, goals_scored__gf_ VARCHAR)", "question": "What is the sum of the places of the team with more than 49 points and less than 54 goals scored?" }
### QUESTION Retrieve the open and close dates of all the policies associated with the customer whose name contains "Diana" ### CONTEXT CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customers_policies (date_opened VARCHAR, date_closed VARCHAR, customer_id VARCHAR) ### ANSWER SELECT t2.date_opened, t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name LIKE "%Diana%"
{ "answer": "SELECT t2.date_opened, t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name LIKE \"%Diana%\"", "context": "CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customers_policies (date_opened VARCHAR, date_closed VARCHAR, customer_id VARCHAR)", "question": "Retrieve the open and close dates of all the policies associated with the customer whose name contains \"Diana\"" }
### QUESTION What is the sum of households that makes a median household income of $44,718? ### CONTEXT CREATE TABLE table_name_43 (number_of_households INTEGER, median_household_income VARCHAR) ### ANSWER SELECT SUM(number_of_households) FROM table_name_43 WHERE median_household_income = "$44,718"
{ "answer": "SELECT SUM(number_of_households) FROM table_name_43 WHERE median_household_income = \"$44,718\"", "context": "CREATE TABLE table_name_43 (number_of_households INTEGER, median_household_income VARCHAR)", "question": "What is the sum of households that makes a median household income of $44,718?" }
### QUESTION What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'? ### CONTEXT CREATE TABLE medicine (id VARCHAR, name VARCHAR); CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, medicine_id VARCHAR, interaction_type VARCHAR); CREATE TABLE enzyme (name VARCHAR, id VARCHAR) ### ANSWER SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T3.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor'
{ "answer": "SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T3.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor'", "context": "CREATE TABLE medicine (id VARCHAR, name VARCHAR); CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, medicine_id VARCHAR, interaction_type VARCHAR); CREATE TABLE enzyme (name VARCHAR, id VARCHAR)", "question": "What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'?" }
### QUESTION When five is the new channel what is the date of original removal? ### CONTEXT CREATE TABLE table_19114172_11 (date_s__of_original_removal VARCHAR, new_channel_s_ VARCHAR) ### ANSWER SELECT date_s__of_original_removal FROM table_19114172_11 WHERE new_channel_s_ = "Five"
{ "answer": "SELECT date_s__of_original_removal FROM table_19114172_11 WHERE new_channel_s_ = \"Five\"", "context": "CREATE TABLE table_19114172_11 (date_s__of_original_removal VARCHAR, new_channel_s_ VARCHAR)", "question": "When five is the new channel what is the date of original removal?" }
### QUESTION When bbc two is the original channel what is the date of original removal? ### CONTEXT CREATE TABLE table_19114172_11 (date_s__of_original_removal VARCHAR, original_channel VARCHAR) ### ANSWER SELECT date_s__of_original_removal FROM table_19114172_11 WHERE original_channel = "BBC Two"
{ "answer": "SELECT date_s__of_original_removal FROM table_19114172_11 WHERE original_channel = \"BBC Two\"", "context": "CREATE TABLE table_19114172_11 (date_s__of_original_removal VARCHAR, original_channel VARCHAR)", "question": "When bbc two is the original channel what is the date of original removal?" }
### QUESTION What general classification has david de la fuente as mountains classification, and thor hushovd as points classification? ### CONTEXT CREATE TABLE table_name_45 (general_classification VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR) ### ANSWER SELECT general_classification FROM table_name_45 WHERE mountains_classification = "david de la fuente" AND points_classification = "thor hushovd"
{ "answer": "SELECT general_classification FROM table_name_45 WHERE mountains_classification = \"david de la fuente\" AND points_classification = \"thor hushovd\"", "context": "CREATE TABLE table_name_45 (general_classification VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR)", "question": "What general classification has david de la fuente as mountains classification, and thor hushovd as points classification?" }
### QUESTION What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with. ### CONTEXT CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR); CREATE TABLE medicine (id VARCHAR, Name VARCHAR, FDA_approved VARCHAR) ### ANSWER SELECT T1.id, T1.Name, T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC
{ "answer": "SELECT T1.id, T1.Name, T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC", "context": "CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR); CREATE TABLE medicine (id VARCHAR, Name VARCHAR, FDA_approved VARCHAR)", "question": "What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with." }
### QUESTION What is the interaction type of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'? ### CONTEXT CREATE TABLE enzyme (id VARCHAR, name VARCHAR); CREATE TABLE medicine (id VARCHAR, name VARCHAR); CREATE TABLE medicine_enzyme_interaction (interaction_type VARCHAR, medicine_id VARCHAR, enzyme_id VARCHAR) ### ANSWER SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id = T2.id JOIN enzyme AS T3 ON T1.enzyme_id = T3.id WHERE T3.name = 'ALA synthase' AND T2.name = 'Aripiprazole'
{ "answer": "SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id = T2.id JOIN enzyme AS T3 ON T1.enzyme_id = T3.id WHERE T3.name = 'ALA synthase' AND T2.name = 'Aripiprazole'", "context": "CREATE TABLE enzyme (id VARCHAR, name VARCHAR); CREATE TABLE medicine (id VARCHAR, name VARCHAR); CREATE TABLE medicine_enzyme_interaction (interaction_type VARCHAR, medicine_id VARCHAR, enzyme_id VARCHAR)", "question": "What is the interaction type of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?" }
### QUESTION In what year was there an award for TV Adicto Golden Awards and the category Female Revelation? ### CONTEXT CREATE TABLE table_name_78 (year VARCHAR, award VARCHAR, category VARCHAR) ### ANSWER SELECT year FROM table_name_78 WHERE award = "tv adicto golden awards" AND category = "female revelation"
{ "answer": "SELECT year FROM table_name_78 WHERE award = \"tv adicto golden awards\" AND category = \"female revelation\"", "context": "CREATE TABLE table_name_78 (year VARCHAR, award VARCHAR, category VARCHAR)", "question": "In what year was there an award for TV Adicto Golden Awards and the category Female Revelation?" }
### QUESTION What is the id and trade name of the medicines can interact with at least 3 enzymes? ### CONTEXT CREATE TABLE medicine (id VARCHAR, trade_name VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR) ### ANSWER SELECT T1.id, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 3
{ "answer": "SELECT T1.id, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 3", "context": "CREATE TABLE medicine (id VARCHAR, trade_name VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR)", "question": "What is the id and trade name of the medicines can interact with at least 3 enzymes?" }
### QUESTION What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction? ### CONTEXT CREATE TABLE enzyme (name VARCHAR, location VARCHAR, product VARCHAR, id VARCHAR); CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, interaction_type VARCHAR) ### ANSWER SELECT DISTINCT T1.name, T1.location, T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor'
{ "answer": "SELECT DISTINCT T1.name, T1.location, T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor'", "context": "CREATE TABLE enzyme (name VARCHAR, location VARCHAR, product VARCHAR, id VARCHAR); CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, interaction_type VARCHAR)", "question": "What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction?" }
### QUESTION List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes. ### CONTEXT CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, id VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR) ### ANSWER SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor'
{ "answer": "SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor'", "context": "CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, id VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR)", "question": "List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes." }
### QUESTION Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'. ### CONTEXT CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR, enzyme_id VARCHAR); CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, id VARCHAR); CREATE TABLE enzyme (id VARCHAR, product VARCHAR) ### ANSWER SELECT name, trade_name FROM medicine EXCEPT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id JOIN enzyme AS T3 ON T3.id = T2.enzyme_id WHERE T3.product = 'Protoporphyrinogen IX'
{ "answer": "SELECT name, trade_name FROM medicine EXCEPT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id JOIN enzyme AS T3 ON T3.id = T2.enzyme_id WHERE T3.product = 'Protoporphyrinogen IX'", "context": "CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR, enzyme_id VARCHAR); CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, id VARCHAR); CREATE TABLE enzyme (id VARCHAR, product VARCHAR)", "question": "Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'." }
### QUESTION What Miss Maja Pilipinas has a Binibining Pilipinas-Tourism of not awarded, and a Binibining Pilipinas-Universe of anjanette abayari? ### CONTEXT CREATE TABLE table_name_30 (miss_maja_pilipinas VARCHAR, binibining_pilipinas_tourism VARCHAR, binibining_pilipinas_universe VARCHAR) ### ANSWER SELECT miss_maja_pilipinas FROM table_name_30 WHERE binibining_pilipinas_tourism = "not awarded" AND binibining_pilipinas_universe = "anjanette abayari"
{ "answer": "SELECT miss_maja_pilipinas FROM table_name_30 WHERE binibining_pilipinas_tourism = \"not awarded\" AND binibining_pilipinas_universe = \"anjanette abayari\"", "context": "CREATE TABLE table_name_30 (miss_maja_pilipinas VARCHAR, binibining_pilipinas_tourism VARCHAR, binibining_pilipinas_universe VARCHAR)", "question": "What Miss Maja Pilipinas has a Binibining Pilipinas-Tourism of not awarded, and a Binibining Pilipinas-Universe of anjanette abayari?" }
### QUESTION What are the notes of the satellite whose nssdc id number is 1959-002a? ### CONTEXT CREATE TABLE table_191323_2 (notes VARCHAR, nssdc_id_no VARCHAR) ### ANSWER SELECT notes FROM table_191323_2 WHERE nssdc_id_no = "1959-002A"
{ "answer": "SELECT notes FROM table_191323_2 WHERE nssdc_id_no = \"1959-002A\"", "context": "CREATE TABLE table_191323_2 (notes VARCHAR, nssdc_id_no VARCHAR)", "question": "What are the notes of the satellite whose nssdc id number is 1959-002a?" }
### QUESTION What is the primary conference of the school that has the lowest acc percent score in the competition? ### CONTEXT CREATE TABLE basketball_match (school_id VARCHAR, acc_percent VARCHAR); CREATE TABLE university (Primary_conference VARCHAR, school_id VARCHAR) ### ANSWER SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1
{ "answer": "SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1", "context": "CREATE TABLE basketball_match (school_id VARCHAR, acc_percent VARCHAR); CREATE TABLE university (Primary_conference VARCHAR, school_id VARCHAR)", "question": "What is the primary conference of the school that has the lowest acc percent score in the competition?" }
### QUESTION What is the smallest Year with a Binibining Pilipinas-International of jessie alice salones dixson? ### CONTEXT CREATE TABLE table_name_90 (year INTEGER, binibining_pilipinas_international VARCHAR) ### ANSWER SELECT MIN(year) FROM table_name_90 WHERE binibining_pilipinas_international = "jessie alice salones dixson"
{ "answer": "SELECT MIN(year) FROM table_name_90 WHERE binibining_pilipinas_international = \"jessie alice salones dixson\"", "context": "CREATE TABLE table_name_90 (year INTEGER, binibining_pilipinas_international VARCHAR)", "question": "What is the smallest Year with a Binibining Pilipinas-International of jessie alice salones dixson?" }
### QUESTION Find the location and all games score of the school that has Clemson as its team name. ### CONTEXT CREATE TABLE basketball_match (All_Games VARCHAR, school_id VARCHAR); CREATE TABLE university (location VARCHAR, school_id VARCHAR) ### ANSWER SELECT t2.All_Games, t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson'
{ "answer": "SELECT t2.All_Games, t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson'", "context": "CREATE TABLE basketball_match (All_Games VARCHAR, school_id VARCHAR); CREATE TABLE university (location VARCHAR, school_id VARCHAR)", "question": "Find the location and all games score of the school that has Clemson as its team name." }
### QUESTION What is the team name and acc regular season score of the school that was founded for the longest time? ### CONTEXT CREATE TABLE university (school_id VARCHAR, founded VARCHAR); CREATE TABLE basketball_match (team_name VARCHAR, ACC_Regular_Season VARCHAR, school_id VARCHAR) ### ANSWER SELECT t2.team_name, t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t1.founded LIMIT 1
{ "answer": "SELECT t2.team_name, t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t1.founded LIMIT 1", "context": "CREATE TABLE university (school_id VARCHAR, founded VARCHAR); CREATE TABLE basketball_match (team_name VARCHAR, ACC_Regular_Season VARCHAR, school_id VARCHAR)", "question": "What is the team name and acc regular season score of the school that was founded for the longest time?" }
### QUESTION Show the enrollment and primary_conference of the oldest college. ### CONTEXT CREATE TABLE university (enrollment VARCHAR, primary_conference VARCHAR, founded VARCHAR) ### ANSWER SELECT enrollment, primary_conference FROM university ORDER BY founded LIMIT 1
{ "answer": "SELECT enrollment, primary_conference FROM university ORDER BY founded LIMIT 1", "context": "CREATE TABLE university (enrollment VARCHAR, primary_conference VARCHAR, founded VARCHAR)", "question": "Show the enrollment and primary_conference of the oldest college." }
### QUESTION What are the alternative names of those satellites where the notes are: mission failed. guidance system failed. no orbit. ### CONTEXT CREATE TABLE table_191323_2 (alt_name VARCHAR, notes VARCHAR) ### ANSWER SELECT alt_name FROM table_191323_2 WHERE notes = "Mission failed. Guidance system failed. No orbit."
{ "answer": "SELECT alt_name FROM table_191323_2 WHERE notes = \"Mission failed. Guidance system failed. No orbit.\"", "context": "CREATE TABLE table_191323_2 (alt_name VARCHAR, notes VARCHAR)", "question": "What are the alternative names of those satellites where the notes are: mission failed. guidance system failed. no orbit." }
### QUESTION How many Bangladeshi citizens are there in the borough ranked at number 7? ### CONTEXT CREATE TABLE table_19149550_9 (bangladeshi_population INTEGER, rank VARCHAR) ### ANSWER SELECT MIN(bangladeshi_population) FROM table_19149550_9 WHERE rank = 7
{ "answer": "SELECT MIN(bangladeshi_population) FROM table_19149550_9 WHERE rank = 7", "context": "CREATE TABLE table_19149550_9 (bangladeshi_population INTEGER, rank VARCHAR)", "question": "How many Bangladeshi citizens are there in the borough ranked at number 7?" }
### QUESTION Find the team names of the universities whose enrollments are smaller than the average enrollment size. ### CONTEXT CREATE TABLE university (school_id VARCHAR); CREATE TABLE basketball_match (team_name VARCHAR, school_id VARCHAR); CREATE TABLE university (enrollment INTEGER) ### ANSWER SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE enrollment < (SELECT AVG(enrollment) FROM university)
{ "answer": "SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE enrollment < (SELECT AVG(enrollment) FROM university)", "context": "CREATE TABLE university (school_id VARCHAR); CREATE TABLE basketball_match (team_name VARCHAR, school_id VARCHAR); CREATE TABLE university (enrollment INTEGER)", "question": "Find the team names of the universities whose enrollments are smaller than the average enrollment size." }