text
stringlengths
147
1.06k
source
dict
### INSTRUCTION Show the names of players and names of their coaches in descending order of the votes of players. ### INPUT CREATE TABLE coach (coach_name VARCHAR, Coach_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR); CREATE TABLE player (Player_name VARCHAR, Player_ID VARCHAR, Votes VARCHAR) ### OUTPUT SELECT T3.Player_name, T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID ORDER BY T3.Votes DESC
{ "input": "CREATE TABLE coach (coach_name VARCHAR, Coach_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR); CREATE TABLE player (Player_name VARCHAR, Player_ID VARCHAR, Votes VARCHAR)", "instruction": "Show the names of players and names of their coaches in descending order of the votes of players.", "output": "SELECT T3.Player_name, T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID ORDER BY T3.Votes DESC" }
### INSTRUCTION When bbc two is the original channel what is the date of original removal? ### INPUT CREATE TABLE table_19114172_11 (date_s__of_original_removal VARCHAR, original_channel VARCHAR) ### OUTPUT SELECT date_s__of_original_removal FROM table_19114172_11 WHERE original_channel = "BBC Two"
{ "input": "CREATE TABLE table_19114172_11 (date_s__of_original_removal VARCHAR, original_channel VARCHAR)", "instruction": "When bbc two is the original channel what is the date of original removal?", "output": "SELECT date_s__of_original_removal FROM table_19114172_11 WHERE original_channel = \"BBC Two\"" }
### INSTRUCTION What place is the United States in that has a score of 68-73-68=209? ### INPUT CREATE TABLE table_name_8 (place VARCHAR, country VARCHAR, score VARCHAR) ### OUTPUT SELECT place FROM table_name_8 WHERE country = "united states" AND score = 68 - 73 - 68 = 209
{ "input": "CREATE TABLE table_name_8 (place VARCHAR, country VARCHAR, score VARCHAR)", "instruction": "What place is the United States in that has a score of 68-73-68=209?", "output": "SELECT place FROM table_name_8 WHERE country = \"united states\" AND score = 68 - 73 - 68 = 209" }
### INSTRUCTION What are the id and name of the stadium where the most injury accidents happened? ### INPUT CREATE TABLE stadium (id VARCHAR, name VARCHAR); CREATE TABLE injury_accident (game_id VARCHAR); CREATE TABLE game (stadium_id VARCHAR, id VARCHAR) ### OUTPUT SELECT T1.id, T1.name FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id JOIN injury_accident AS T3 ON T2.id = T3.game_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE stadium (id VARCHAR, name VARCHAR); CREATE TABLE injury_accident (game_id VARCHAR); CREATE TABLE game (stadium_id VARCHAR, id VARCHAR)", "instruction": "What are the id and name of the stadium where the most injury accidents happened?", "output": "SELECT T1.id, T1.name FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id JOIN injury_accident AS T3 ON T2.id = T3.game_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION How many overall values have a college of Notre Dame and rounds over 2? ### INPUT CREATE TABLE table_name_97 (overall VARCHAR, college VARCHAR, round VARCHAR) ### OUTPUT SELECT COUNT(overall) FROM table_name_97 WHERE college = "notre dame" AND round > 2
{ "input": "CREATE TABLE table_name_97 (overall VARCHAR, college VARCHAR, round VARCHAR)", "instruction": "How many overall values have a college of Notre Dame and rounds over 2?", "output": "SELECT COUNT(overall) FROM table_name_97 WHERE college = \"notre dame\" AND round > 2" }
### INSTRUCTION Show id, first name and last name for all customers and the number of accounts. ### INPUT CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR) ### OUTPUT SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name, COUNT(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id
{ "input": "CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)", "instruction": "Show id, first name and last name for all customers and the number of accounts.", "output": "SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name, COUNT(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id" }
### INSTRUCTION How many different winners both participated in the WTA Championships and were left handed? ### INPUT CREATE TABLE matches (winner_name VARCHAR, tourney_name VARCHAR, winner_hand VARCHAR) ### OUTPUT SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'
{ "input": "CREATE TABLE matches (winner_name VARCHAR, tourney_name VARCHAR, winner_hand VARCHAR)", "instruction": "How many different winners both participated in the WTA Championships and were left handed?", "output": "SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'" }
### INSTRUCTION Director for Star Wars Episode II: attack of the clones? ### INPUT CREATE TABLE table_name_92 (director_s_ VARCHAR, title VARCHAR) ### OUTPUT SELECT director_s_ FROM table_name_92 WHERE title = "star wars episode ii: attack of the clones"
{ "input": "CREATE TABLE table_name_92 (director_s_ VARCHAR, title VARCHAR)", "instruction": "Director for Star Wars Episode II: attack of the clones?", "output": "SELECT director_s_ FROM table_name_92 WHERE title = \"star wars episode ii: attack of the clones\"" }
### INSTRUCTION How many home team scores have a time of 4:40 PM? ### INPUT CREATE TABLE table_14425454_1 (home_team VARCHAR, time VARCHAR) ### OUTPUT SELECT COUNT(home_team) AS score FROM table_14425454_1 WHERE time = "4:40 PM"
{ "input": "CREATE TABLE table_14425454_1 (home_team VARCHAR, time VARCHAR)", "instruction": "How many home team scores have a time of 4:40 PM?", "output": "SELECT COUNT(home_team) AS score FROM table_14425454_1 WHERE time = \"4:40 PM\"" }
### INSTRUCTION how many times were high rebounds mehmet okur , paul millsap (6) ### INPUT CREATE TABLE table_17355716_10 (score VARCHAR, high_rebounds VARCHAR) ### OUTPUT SELECT COUNT(score) FROM table_17355716_10 WHERE high_rebounds = "Mehmet Okur , Paul Millsap (6)"
{ "input": "CREATE TABLE table_17355716_10 (score VARCHAR, high_rebounds VARCHAR)", "instruction": "how many times were high rebounds mehmet okur , paul millsap (6)", "output": "SELECT COUNT(score) FROM table_17355716_10 WHERE high_rebounds = \"Mehmet Okur , Paul Millsap (6)\"" }
### INSTRUCTION How many year locations are there for the womens doubles in jing junhong li jiawei? ### INPUT CREATE TABLE table_28138035_20 (year_location VARCHAR, womens_doubles VARCHAR) ### OUTPUT SELECT COUNT(year_location) FROM table_28138035_20 WHERE womens_doubles = "Jing Junhong Li Jiawei"
{ "input": "CREATE TABLE table_28138035_20 (year_location VARCHAR, womens_doubles VARCHAR)", "instruction": "How many year locations are there for the womens doubles in jing junhong li jiawei?", "output": "SELECT COUNT(year_location) FROM table_28138035_20 WHERE womens_doubles = \"Jing Junhong Li Jiawei\"" }
### INSTRUCTION What is Score In The Final, when Date is "22 October 1990"? ### INPUT CREATE TABLE table_name_94 (score_in_the_final VARCHAR, date VARCHAR) ### OUTPUT SELECT score_in_the_final FROM table_name_94 WHERE date = "22 october 1990"
{ "input": "CREATE TABLE table_name_94 (score_in_the_final VARCHAR, date VARCHAR)", "instruction": "What is Score In The Final, when Date is \"22 October 1990\"?", "output": "SELECT score_in_the_final FROM table_name_94 WHERE date = \"22 october 1990\"" }
### INSTRUCTION What candidates ran in the election when john s. wood was the incumbent? ### INPUT CREATE TABLE table_1342331_11 (candidates VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT candidates FROM table_1342331_11 WHERE incumbent = "John S. Wood"
{ "input": "CREATE TABLE table_1342331_11 (candidates VARCHAR, incumbent VARCHAR)", "instruction": "What candidates ran in the election when john s. wood was the incumbent?", "output": "SELECT candidates FROM table_1342331_11 WHERE incumbent = \"John S. Wood\"" }
### INSTRUCTION How many Liberal candidates have a Liberal leader of pearson, and a % of popular vote of 40.2%, and Seats won smaller than 131? ### INPUT CREATE TABLE table_name_94 (liberal_candidates VARCHAR, seats_won VARCHAR, liberal_leader VARCHAR, _percentage_of_popular_vote VARCHAR) ### OUTPUT SELECT COUNT(liberal_candidates) FROM table_name_94 WHERE liberal_leader = "pearson" AND _percentage_of_popular_vote = "40.2%" AND seats_won < 131
{ "input": "CREATE TABLE table_name_94 (liberal_candidates VARCHAR, seats_won VARCHAR, liberal_leader VARCHAR, _percentage_of_popular_vote VARCHAR)", "instruction": "How many Liberal candidates have a Liberal leader of pearson, and a % of popular vote of 40.2%, and Seats won smaller than 131?", "output": "SELECT COUNT(liberal_candidates) FROM table_name_94 WHERE liberal_leader = \"pearson\" AND _percentage_of_popular_vote = \"40.2%\" AND seats_won < 131" }
### INSTRUCTION Display the first name and department name for each employee. ### INPUT CREATE TABLE departments (department_name VARCHAR, department_id VARCHAR); CREATE TABLE employees (first_name VARCHAR, department_id VARCHAR) ### OUTPUT SELECT T1.first_name, T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id
{ "input": "CREATE TABLE departments (department_name VARCHAR, department_id VARCHAR); CREATE TABLE employees (first_name VARCHAR, department_id VARCHAR)", "instruction": "Display the first name and department name for each employee.", "output": "SELECT T1.first_name, T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id" }
### INSTRUCTION Find the id of courses which are registered or attended by student whose id is 121? ### INPUT CREATE TABLE student_course_attendance (course_id VARCHAR, student_id VARCHAR); CREATE TABLE student_course_registrations (course_id VARCHAR, student_id VARCHAR) ### OUTPUT SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121
{ "input": "CREATE TABLE student_course_attendance (course_id VARCHAR, student_id VARCHAR); CREATE TABLE student_course_registrations (course_id VARCHAR, student_id VARCHAR)", "instruction": "Find the id of courses which are registered or attended by student whose id is 121?", "output": "SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121" }
### INSTRUCTION When the Swedish People's Party had a net gain/loss of 0, how many seats did they have? ### INPUT CREATE TABLE table_name_38 (seats VARCHAR, net_gain_loss VARCHAR, party VARCHAR) ### OUTPUT SELECT seats FROM table_name_38 WHERE net_gain_loss = "0" AND party = "swedish people's party"
{ "input": "CREATE TABLE table_name_38 (seats VARCHAR, net_gain_loss VARCHAR, party VARCHAR)", "instruction": "When the Swedish People's Party had a net gain/loss of 0, how many seats did they have?", "output": "SELECT seats FROM table_name_38 WHERE net_gain_loss = \"0\" AND party = \"swedish people's party\"" }
### INSTRUCTION What are the notes where the authors are Zhou & Zhang? ### INPUT CREATE TABLE table_name_11 (notes VARCHAR, authors VARCHAR) ### OUTPUT SELECT notes FROM table_name_11 WHERE authors = "zhou & zhang"
{ "input": "CREATE TABLE table_name_11 (notes VARCHAR, authors VARCHAR)", "instruction": "What are the notes where the authors are Zhou & Zhang?", "output": "SELECT notes FROM table_name_11 WHERE authors = \"zhou & zhang\"" }
### INSTRUCTION What are all the characteristic names of product "sesame"? ### INPUT CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR) ### OUTPUT SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = "sesame"
{ "input": "CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)", "instruction": "What are all the characteristic names of product \"sesame\"?", "output": "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"sesame\"" }
### INSTRUCTION What is the highest number of players during 1r year with a clay set and more than 4 aces? ### INPUT CREATE TABLE table_name_63 (player INTEGER, year VARCHAR, sets VARCHAR, aces VARCHAR) ### OUTPUT SELECT MAX(player) FROM table_name_63 WHERE year = "1r" AND sets = "clay" AND NOT aces > 4
{ "input": "CREATE TABLE table_name_63 (player INTEGER, year VARCHAR, sets VARCHAR, aces VARCHAR)", "instruction": "What is the highest number of players during 1r year with a clay set and more than 4 aces?", "output": "SELECT MAX(player) FROM table_name_63 WHERE year = \"1r\" AND sets = \"clay\" AND NOT aces > 4" }
### INSTRUCTION When 5 is the position what is the state or country? ### INPUT CREATE TABLE table_1858574_2 (state_country VARCHAR, position VARCHAR) ### OUTPUT SELECT state_country FROM table_1858574_2 WHERE position = 5
{ "input": "CREATE TABLE table_1858574_2 (state_country VARCHAR, position VARCHAR)", "instruction": "When 5 is the position what is the state or country?", "output": "SELECT state_country FROM table_1858574_2 WHERE position = 5" }
### INSTRUCTION How many current account balances are associated with GDP at constant prices growth rates of 4.6? ### INPUT CREATE TABLE table_30133_1 (current_account_balance__percent_of_gdp_ VARCHAR, gdp_at_constant_prices_growth_rate__percent_change_ VARCHAR) ### OUTPUT SELECT COUNT(current_account_balance__percent_of_gdp_) FROM table_30133_1 WHERE gdp_at_constant_prices_growth_rate__percent_change_ = "4.6"
{ "input": "CREATE TABLE table_30133_1 (current_account_balance__percent_of_gdp_ VARCHAR, gdp_at_constant_prices_growth_rate__percent_change_ VARCHAR)", "instruction": "How many current account balances are associated with GDP at constant prices growth rates of 4.6?", "output": "SELECT COUNT(current_account_balance__percent_of_gdp_) FROM table_30133_1 WHERE gdp_at_constant_prices_growth_rate__percent_change_ = \"4.6\"" }
### INSTRUCTION Show all document ids, names and the number of paragraphs in each document. ### INPUT CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR); CREATE TABLE Paragraphs (document_id VARCHAR) ### OUTPUT SELECT T1.document_id, T2.document_name, COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id
{ "input": "CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR); CREATE TABLE Paragraphs (document_id VARCHAR)", "instruction": "Show all document ids, names and the number of paragraphs in each document.", "output": "SELECT T1.document_id, T2.document_name, COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id" }
### INSTRUCTION What shows for House 1950 when the Governors 1950 show governors 1995? ### INPUT CREATE TABLE table_name_39 (house_1950 VARCHAR, governors_1950 VARCHAR) ### OUTPUT SELECT house_1950 FROM table_name_39 WHERE governors_1950 = "governors 1995"
{ "input": "CREATE TABLE table_name_39 (house_1950 VARCHAR, governors_1950 VARCHAR)", "instruction": "What shows for House 1950 when the Governors 1950 show governors 1995?", "output": "SELECT house_1950 FROM table_name_39 WHERE governors_1950 = \"governors 1995\"" }
### INSTRUCTION Find the names of customers who ordered both products Latte and Americano. ### INPUT CREATE TABLE products (product_id VARCHAR, product_details VARCHAR); CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR) ### OUTPUT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte' INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Americano'
{ "input": "CREATE TABLE products (product_id VARCHAR, product_details VARCHAR); CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR)", "instruction": "Find the names of customers who ordered both products Latte and Americano.", "output": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte' INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Americano'" }
### INSTRUCTION Which Mission has a Launch Date of december 30, 1970; 14:50 gmt? ### INPUT CREATE TABLE table_name_47 (mission VARCHAR, launch_date VARCHAR) ### OUTPUT SELECT mission FROM table_name_47 WHERE launch_date = "december 30, 1970; 14:50 gmt"
{ "input": "CREATE TABLE table_name_47 (mission VARCHAR, launch_date VARCHAR)", "instruction": "Which Mission has a Launch Date of december 30, 1970; 14:50 gmt?", "output": "SELECT mission FROM table_name_47 WHERE launch_date = \"december 30, 1970; 14:50 gmt\"" }
### INSTRUCTION What is the total attendance at games against the New York Mets with a record of 18-18? ### INPUT CREATE TABLE table_name_76 (attendance VARCHAR, opponent VARCHAR, record VARCHAR) ### OUTPUT SELECT COUNT(attendance) FROM table_name_76 WHERE opponent = "new york mets" AND record = "18-18"
{ "input": "CREATE TABLE table_name_76 (attendance VARCHAR, opponent VARCHAR, record VARCHAR)", "instruction": "What is the total attendance at games against the New York Mets with a record of 18-18?", "output": "SELECT COUNT(attendance) FROM table_name_76 WHERE opponent = \"new york mets\" AND record = \"18-18\"" }
### INSTRUCTION What is the lowest Draft, when Player is "Dave Christian Category:Articles with hCards"? ### INPUT CREATE TABLE table_name_74 (draft INTEGER, player VARCHAR) ### OUTPUT SELECT MIN(draft) FROM table_name_74 WHERE player = "dave christian category:articles with hcards"
{ "input": "CREATE TABLE table_name_74 (draft INTEGER, player VARCHAR)", "instruction": "What is the lowest Draft, when Player is \"Dave Christian Category:Articles with hCards\"?", "output": "SELECT MIN(draft) FROM table_name_74 WHERE player = \"dave christian category:articles with hcards\"" }
### INSTRUCTION What incumbent was a federalist that was first elected in 1803? ### INPUT CREATE TABLE table_2668374_18 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR) ### OUTPUT SELECT incumbent FROM table_2668374_18 WHERE party = "Federalist" AND first_elected = "1803"
{ "input": "CREATE TABLE table_2668374_18 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR)", "instruction": "What incumbent was a federalist that was first elected in 1803?", "output": "SELECT incumbent FROM table_2668374_18 WHERE party = \"Federalist\" AND first_elected = \"1803\"" }
### INSTRUCTION What is josé maría olazábal's country? ### INPUT CREATE TABLE table_name_39 (country VARCHAR, player VARCHAR) ### OUTPUT SELECT country FROM table_name_39 WHERE player = "josé maría olazábal"
{ "input": "CREATE TABLE table_name_39 (country VARCHAR, player VARCHAR)", "instruction": "What is josé maría olazábal's country?", "output": "SELECT country FROM table_name_39 WHERE player = \"josé maría olazábal\"" }
### INSTRUCTION Find the number of songs in all the studio albums. ### INPUT CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE albums (aid VARCHAR); CREATE TABLE tracklists (albumid VARCHAR, songid VARCHAR) ### OUTPUT SELECT COUNT(DISTINCT T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.type = "Studio"
{ "input": "CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE albums (aid VARCHAR); CREATE TABLE tracklists (albumid VARCHAR, songid VARCHAR)", "instruction": "Find the number of songs in all the studio albums.", "output": "SELECT COUNT(DISTINCT T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.type = \"Studio\"" }
### INSTRUCTION What is the population when the Per capita income of $18,884, and a Number of households smaller than 14,485? ### INPUT CREATE TABLE table_name_98 (population INTEGER, per_capita_income VARCHAR, number_of_households VARCHAR) ### OUTPUT SELECT SUM(population) FROM table_name_98 WHERE per_capita_income = "$18,884" AND number_of_households < 14 OFFSET 485
{ "input": "CREATE TABLE table_name_98 (population INTEGER, per_capita_income VARCHAR, number_of_households VARCHAR)", "instruction": "What is the population when the Per capita income of $18,884, and a Number of households smaller than 14,485?", "output": "SELECT SUM(population) FROM table_name_98 WHERE per_capita_income = \"$18,884\" AND number_of_households < 14 OFFSET 485" }
### INSTRUCTION What's the tail number of the airplane involved in the accident described as crashed? ### INPUT CREATE TABLE table_229917_2 (tail_number VARCHAR, brief_description VARCHAR) ### OUTPUT SELECT tail_number FROM table_229917_2 WHERE brief_description = "Crashed"
{ "input": "CREATE TABLE table_229917_2 (tail_number VARCHAR, brief_description VARCHAR)", "instruction": "What's the tail number of the airplane involved in the accident described as crashed?", "output": "SELECT tail_number FROM table_229917_2 WHERE brief_description = \"Crashed\"" }
### INSTRUCTION Name the number of population for врбас ### INPUT CREATE TABLE table_2562572_20 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR) ### OUTPUT SELECT COUNT(population__2011_) FROM table_2562572_20 WHERE cyrillic_name_other_names = "Врбас"
{ "input": "CREATE TABLE table_2562572_20 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR)", "instruction": "Name the number of population for врбас", "output": "SELECT COUNT(population__2011_) FROM table_2562572_20 WHERE cyrillic_name_other_names = \"Врбас\"" }
### INSTRUCTION Show the names of employees with role name Editor. ### INPUT CREATE TABLE ROLES (role_code VARCHAR, role_name VARCHAR); CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR) ### OUTPUT SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Editor"
{ "input": "CREATE TABLE ROLES (role_code VARCHAR, role_name VARCHAR); CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR)", "instruction": "Show the names of employees with role name Editor.", "output": "SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Editor\"" }
### INSTRUCTION Which Gold has a Nation of india, and a Bronze smaller than 0? ### INPUT CREATE TABLE table_name_84 (gold INTEGER, nation VARCHAR, bronze VARCHAR) ### OUTPUT SELECT AVG(gold) FROM table_name_84 WHERE nation = "india" AND bronze < 0
{ "input": "CREATE TABLE table_name_84 (gold INTEGER, nation VARCHAR, bronze VARCHAR)", "instruction": "Which Gold has a Nation of india, and a Bronze smaller than 0?", "output": "SELECT AVG(gold) FROM table_name_84 WHERE nation = \"india\" AND bronze < 0" }
### INSTRUCTION How many points did the bills score when their opponent had 14 ### INPUT CREATE TABLE table_16028459_2 (bills_points VARCHAR, opponents VARCHAR) ### OUTPUT SELECT bills_points FROM table_16028459_2 WHERE opponents = 14
{ "input": "CREATE TABLE table_16028459_2 (bills_points VARCHAR, opponents VARCHAR)", "instruction": "How many points did the bills score when their opponent had 14", "output": "SELECT bills_points FROM table_16028459_2 WHERE opponents = 14" }
### INSTRUCTION Show the unique first names, last names, and phone numbers for all customers with any account. ### INPUT CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, phone_number VARCHAR, customer_id VARCHAR) ### OUTPUT SELECT DISTINCT T1.customer_first_name, T1.customer_last_name, T1.phone_number FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id
{ "input": "CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, phone_number VARCHAR, customer_id VARCHAR)", "instruction": "Show the unique first names, last names, and phone numbers for all customers with any account.", "output": "SELECT DISTINCT T1.customer_first_name, T1.customer_last_name, T1.phone_number FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id" }
### INSTRUCTION How many credit cards does customer Blanche Huels have? ### INPUT 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) ### OUTPUT 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"
{ "input": "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)", "instruction": "How many credit cards does customer Blanche Huels have?", "output": "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\"" }
### INSTRUCTION What is Tommy Nobis' position that has fewer than 16 picks? ### INPUT CREATE TABLE table_name_80 (position VARCHAR, pick__number VARCHAR, name VARCHAR) ### OUTPUT SELECT position FROM table_name_80 WHERE pick__number < 16 AND name = "tommy nobis"
{ "input": "CREATE TABLE table_name_80 (position VARCHAR, pick__number VARCHAR, name VARCHAR)", "instruction": "What is Tommy Nobis' position that has fewer than 16 picks?", "output": "SELECT position FROM table_name_80 WHERE pick__number < 16 AND name = \"tommy nobis\"" }
### INSTRUCTION What is the total number of Silver medals for the Nation with less than 1 Bronze? ### INPUT CREATE TABLE table_name_84 (silver VARCHAR, bronze INTEGER) ### OUTPUT SELECT COUNT(silver) FROM table_name_84 WHERE bronze < 1
{ "input": "CREATE TABLE table_name_84 (silver VARCHAR, bronze INTEGER)", "instruction": "What is the total number of Silver medals for the Nation with less than 1 Bronze?", "output": "SELECT COUNT(silver) FROM table_name_84 WHERE bronze < 1" }
### INSTRUCTION What is the total number of languages used in Aruba? ### INPUT CREATE TABLE country (Code VARCHAR, Name VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR) ### OUTPUT SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = "Aruba"
{ "input": "CREATE TABLE country (Code VARCHAR, Name VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)", "instruction": "What is the total number of languages used in Aruba?", "output": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\"" }
### INSTRUCTION Which date was hermanos rodríguez the location? ### INPUT CREATE TABLE table_name_37 (date VARCHAR, location VARCHAR) ### OUTPUT SELECT date FROM table_name_37 WHERE location = "hermanos rodríguez"
{ "input": "CREATE TABLE table_name_37 (date VARCHAR, location VARCHAR)", "instruction": "Which date was hermanos rodríguez the location?", "output": "SELECT date FROM table_name_37 WHERE location = \"hermanos rodríguez\"" }
### INSTRUCTION Find the names of products that were bought by at least two distinct customers. ### INPUT CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE customer_orders (order_id VARCHAR, customer_id VARCHAR); CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR) ### OUTPUT SELECT DISTINCT T3.product_name FROM customer_orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id JOIN products AS T3 ON T2.product_id = T3.product_id GROUP BY T3.product_id HAVING COUNT(DISTINCT T1.customer_id) >= 2
{ "input": "CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE customer_orders (order_id VARCHAR, customer_id VARCHAR); CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR)", "instruction": "Find the names of products that were bought by at least two distinct customers.", "output": "SELECT DISTINCT T3.product_name FROM customer_orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id JOIN products AS T3 ON T2.product_id = T3.product_id GROUP BY T3.product_id HAVING COUNT(DISTINCT T1.customer_id) >= 2" }
### INSTRUCTION What is the highest earnings for Tom watson who had a ranking larger than 2? ### INPUT CREATE TABLE table_name_26 (earnings___ INTEGER, player VARCHAR, rank VARCHAR) ### OUTPUT SELECT MAX(earnings___) AS $__ FROM table_name_26 WHERE player = "tom watson" AND rank > 2
{ "input": "CREATE TABLE table_name_26 (earnings___ INTEGER, player VARCHAR, rank VARCHAR)", "instruction": "What is the highest earnings for Tom watson who had a ranking larger than 2?", "output": "SELECT MAX(earnings___) AS $__ FROM table_name_26 WHERE player = \"tom watson\" AND rank > 2" }
### INSTRUCTION Which year had UTC as the runner-up and Saint-Gaudens Bears as the winners? ### INPUT CREATE TABLE table_name_3 (year VARCHAR, runner_up VARCHAR, winners VARCHAR) ### OUTPUT SELECT year FROM table_name_3 WHERE runner_up = "utc" AND winners = "saint-gaudens bears"
{ "input": "CREATE TABLE table_name_3 (year VARCHAR, runner_up VARCHAR, winners VARCHAR)", "instruction": "Which year had UTC as the runner-up and Saint-Gaudens Bears as the winners?", "output": "SELECT year FROM table_name_3 WHERE runner_up = \"utc\" AND winners = \"saint-gaudens bears\"" }
### INSTRUCTION What is the last name of the musician that has been at the back position the most? ### INPUT CREATE TABLE Band (lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR) ### OUTPUT SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE stageposition = "back" GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE Band (lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR)", "instruction": "What is the last name of the musician that has been at the back position the most?", "output": "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE stageposition = \"back\" GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What is the series 4 with sarah newman in series 1? ### INPUT CREATE TABLE table_name_70 (series_4 VARCHAR, series_1 VARCHAR) ### OUTPUT SELECT series_4 FROM table_name_70 WHERE series_1 = "sarah newman"
{ "input": "CREATE TABLE table_name_70 (series_4 VARCHAR, series_1 VARCHAR)", "instruction": "What is the series 4 with sarah newman in series 1?", "output": "SELECT series_4 FROM table_name_70 WHERE series_1 = \"sarah newman\"" }
### INSTRUCTION What DVD season/name for region 2 was released August 22, 2010? ### INPUT CREATE TABLE table_1067134_1 (dvd_name VARCHAR, region_2 VARCHAR) ### OUTPUT SELECT dvd_name FROM table_1067134_1 WHERE region_2 = "August 22, 2010"
{ "input": "CREATE TABLE table_1067134_1 (dvd_name VARCHAR, region_2 VARCHAR)", "instruction": "What DVD season/name for region 2 was released August 22, 2010?", "output": "SELECT dvd_name FROM table_1067134_1 WHERE region_2 = \"August 22, 2010\"" }
### INSTRUCTION What is every media type for the Psychedelic Trance genre? ### INPUT CREATE TABLE table_23829490_1 (media_type VARCHAR, genre VARCHAR) ### OUTPUT SELECT media_type FROM table_23829490_1 WHERE genre = "Psychedelic Trance"
{ "input": "CREATE TABLE table_23829490_1 (media_type VARCHAR, genre VARCHAR)", "instruction": "What is every media type for the Psychedelic Trance genre?", "output": "SELECT media_type FROM table_23829490_1 WHERE genre = \"Psychedelic Trance\"" }
### INSTRUCTION Which Country has a Place of t10, and a Player of tony jacklin? ### INPUT CREATE TABLE table_name_2 (country VARCHAR, place VARCHAR, player VARCHAR) ### OUTPUT SELECT country FROM table_name_2 WHERE place = "t10" AND player = "tony jacklin"
{ "input": "CREATE TABLE table_name_2 (country VARCHAR, place VARCHAR, player VARCHAR)", "instruction": "Which Country has a Place of t10, and a Player of tony jacklin?", "output": "SELECT country FROM table_name_2 WHERE place = \"t10\" AND player = \"tony jacklin\"" }
### INSTRUCTION Find the names of courses taught by the tutor who has personal name "Julio". ### INPUT CREATE TABLE Course_Authors_and_Tutors (author_id VARCHAR, personal_name VARCHAR); CREATE TABLE Courses (course_name VARCHAR, author_id VARCHAR) ### OUTPUT SELECT T2.course_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T1.personal_name = "Julio"
{ "input": "CREATE TABLE Course_Authors_and_Tutors (author_id VARCHAR, personal_name VARCHAR); CREATE TABLE Courses (course_name VARCHAR, author_id VARCHAR)", "instruction": "Find the names of courses taught by the tutor who has personal name \"Julio\".", "output": "SELECT T2.course_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T1.personal_name = \"Julio\"" }
### INSTRUCTION Name the typ for project of igmdp and weight of 16,000 ### INPUT CREATE TABLE table_name_65 (type VARCHAR, project VARCHAR, weight__kg_ VARCHAR) ### OUTPUT SELECT type FROM table_name_65 WHERE project = "igmdp" AND weight__kg_ = "16,000"
{ "input": "CREATE TABLE table_name_65 (type VARCHAR, project VARCHAR, weight__kg_ VARCHAR)", "instruction": "Name the typ for project of igmdp and weight of 16,000", "output": "SELECT type FROM table_name_65 WHERE project = \"igmdp\" AND weight__kg_ = \"16,000\"" }
### INSTRUCTION What is Ken Walter's lowest pick number with an overall pick number larger than 195? ### INPUT CREATE TABLE table_name_28 (pick__number INTEGER, name VARCHAR, overall VARCHAR) ### OUTPUT SELECT MIN(pick__number) FROM table_name_28 WHERE name = "ken walter" AND overall > 195
{ "input": "CREATE TABLE table_name_28 (pick__number INTEGER, name VARCHAR, overall VARCHAR)", "instruction": "What is Ken Walter's lowest pick number with an overall pick number larger than 195?", "output": "SELECT MIN(pick__number) FROM table_name_28 WHERE name = \"ken walter\" AND overall > 195" }
### INSTRUCTION Which tracking method has a latest stable release of 2.23-05? ### INPUT CREATE TABLE table_name_14 (tracking_method VARCHAR, latest_stable_release VARCHAR) ### OUTPUT SELECT tracking_method FROM table_name_14 WHERE latest_stable_release = "2.23-05"
{ "input": "CREATE TABLE table_name_14 (tracking_method VARCHAR, latest_stable_release VARCHAR)", "instruction": "Which tracking method has a latest stable release of 2.23-05?", "output": "SELECT tracking_method FROM table_name_14 WHERE latest_stable_release = \"2.23-05\"" }
### INSTRUCTION When the second intermediate period of egypt is the ubaid period in mesopotamia how many early calcolithics are there? ### INPUT CREATE TABLE table_23537091_1 (early_chalcolithic VARCHAR, ubaid_period_in_mesopotamia VARCHAR) ### OUTPUT SELECT COUNT(early_chalcolithic) FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = "Second Intermediate Period of Egypt"
{ "input": "CREATE TABLE table_23537091_1 (early_chalcolithic VARCHAR, ubaid_period_in_mesopotamia VARCHAR)", "instruction": "When the second intermediate period of egypt is the ubaid period in mesopotamia how many early calcolithics are there?", "output": "SELECT COUNT(early_chalcolithic) FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = \"Second Intermediate Period of Egypt\"" }
### INSTRUCTION Find the checking balance of the accounts whose savings balance is higher than the average savings balance. ### INPUT CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER) ### OUTPUT SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name IN (SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT AVG(balance) FROM savings))
{ "input": "CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER)", "instruction": "Find the checking balance of the accounts whose savings balance is higher than the average savings balance.", "output": "SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name IN (SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT AVG(balance) FROM savings))" }
### INSTRUCTION What's the name of the city or town of the school that operates the http://www.mfschools.org/high/ website? ### INPUT CREATE TABLE table_29612224_1 (institution VARCHAR, school_website VARCHAR) ### OUTPUT SELECT institution FROM table_29612224_1 WHERE school_website = "http://www.mfschools.org/high/"
{ "input": "CREATE TABLE table_29612224_1 (institution VARCHAR, school_website VARCHAR)", "instruction": "What's the name of the city or town of the school that operates the http://www.mfschools.org/high/ website?", "output": "SELECT institution FROM table_29612224_1 WHERE school_website = \"http://www.mfschools.org/high/\"" }
### INSTRUCTION Name the M809 seris with M939 series of M931/932 ### INPUT CREATE TABLE table_name_88 (m809_series VARCHAR, m939_series VARCHAR) ### OUTPUT SELECT m809_series FROM table_name_88 WHERE m939_series = "m931/932"
{ "input": "CREATE TABLE table_name_88 (m809_series VARCHAR, m939_series VARCHAR)", "instruction": "Name the M809 seris with M939 series of M931/932", "output": "SELECT m809_series FROM table_name_88 WHERE m939_series = \"m931/932\"" }
### INSTRUCTION Which Altitude (mslm) is the highest one that has an Area (km 2) smaller than 13.01, and a Population of 74536, and a Density (inhabitants/km 2) larger than 5869? ### INPUT CREATE TABLE table_name_20 (altitude__mslm_ INTEGER, density__inhabitants_km_2__ VARCHAR, area__km_2__ VARCHAR, population VARCHAR) ### OUTPUT SELECT MAX(altitude__mslm_) FROM table_name_20 WHERE area__km_2__ < 13.01 AND population = 74536 AND density__inhabitants_km_2__ > 5869
{ "input": "CREATE TABLE table_name_20 (altitude__mslm_ INTEGER, density__inhabitants_km_2__ VARCHAR, area__km_2__ VARCHAR, population VARCHAR)", "instruction": "Which Altitude (mslm) is the highest one that has an Area (km 2) smaller than 13.01, and a Population of 74536, and a Density (inhabitants/km 2) larger than 5869?", "output": "SELECT MAX(altitude__mslm_) FROM table_name_20 WHERE area__km_2__ < 13.01 AND population = 74536 AND density__inhabitants_km_2__ > 5869" }
### INSTRUCTION What is English Meaning, when Full Word is "Shens Gamo"? ### INPUT CREATE TABLE table_name_22 (english_meaning VARCHAR, full_word VARCHAR) ### OUTPUT SELECT english_meaning FROM table_name_22 WHERE full_word = "shens gamo"
{ "input": "CREATE TABLE table_name_22 (english_meaning VARCHAR, full_word VARCHAR)", "instruction": "What is English Meaning, when Full Word is \"Shens Gamo\"?", "output": "SELECT english_meaning FROM table_name_22 WHERE full_word = \"shens gamo\"" }
### INSTRUCTION If the working force of HK is 10.4%, what is the salary range? ### INPUT CREATE TABLE table_27257896_2 (salary_range VARCHAR, working_force_of_hk VARCHAR) ### OUTPUT SELECT salary_range FROM table_27257896_2 WHERE working_force_of_hk = "10.4%"
{ "input": "CREATE TABLE table_27257896_2 (salary_range VARCHAR, working_force_of_hk VARCHAR)", "instruction": "If the working force of HK is 10.4%, what is the salary range?", "output": "SELECT salary_range FROM table_27257896_2 WHERE working_force_of_hk = \"10.4%\"" }
### INSTRUCTION what is the part number(s) when l2 cache is 512 kb, release date is june 2001 and sSpec number is sl5lv, sl5pu, sl6bw, sl6jm? ### INPUT CREATE TABLE table_name_71 (part_number_s_ VARCHAR, sspec_number VARCHAR, l2_cache VARCHAR, release_date VARCHAR) ### OUTPUT SELECT part_number_s_ FROM table_name_71 WHERE l2_cache = "512 kb" AND release_date = "june 2001" AND sspec_number = "sl5lv, sl5pu, sl6bw, sl6jm"
{ "input": "CREATE TABLE table_name_71 (part_number_s_ VARCHAR, sspec_number VARCHAR, l2_cache VARCHAR, release_date VARCHAR)", "instruction": "what is the part number(s) when l2 cache is 512 kb, release date is june 2001 and sSpec number is sl5lv, sl5pu, sl6bw, sl6jm?", "output": "SELECT part_number_s_ FROM table_name_71 WHERE l2_cache = \"512 kb\" AND release_date = \"june 2001\" AND sspec_number = \"sl5lv, sl5pu, sl6bw, sl6jm\"" }
### INSTRUCTION What was the record on April 8? ### INPUT CREATE TABLE table_name_53 (record VARCHAR, date VARCHAR) ### OUTPUT SELECT record FROM table_name_53 WHERE date = "april 8"
{ "input": "CREATE TABLE table_name_53 (record VARCHAR, date VARCHAR)", "instruction": "What was the record on April 8?", "output": "SELECT record FROM table_name_53 WHERE date = \"april 8\"" }
### INSTRUCTION Who is the opponent when the score was 6–4, 6–2 and the surface was clay? ### INPUT CREATE TABLE table_name_94 (opponent VARCHAR, score VARCHAR, surface VARCHAR) ### OUTPUT SELECT opponent FROM table_name_94 WHERE score = "6–4, 6–2" AND surface = "clay"
{ "input": "CREATE TABLE table_name_94 (opponent VARCHAR, score VARCHAR, surface VARCHAR)", "instruction": "Who is the opponent when the score was 6–4, 6–2 and the surface was clay?", "output": "SELECT opponent FROM table_name_94 WHERE score = \"6–4, 6–2\" AND surface = \"clay\"" }
### INSTRUCTION What is the Name with an Opened (closing date if defunct) of 1995 and has a Length of miles (m), in Illinois? ### INPUT CREATE TABLE table_name_9 (name VARCHAR, state VARCHAR, opened__closing_date_if_defunct_ VARCHAR, length VARCHAR) ### OUTPUT SELECT name FROM table_name_9 WHERE opened__closing_date_if_defunct_ = "1995" AND length = "miles (m)" AND state = "illinois"
{ "input": "CREATE TABLE table_name_9 (name VARCHAR, state VARCHAR, opened__closing_date_if_defunct_ VARCHAR, length VARCHAR)", "instruction": "What is the Name with an Opened (closing date if defunct) of 1995 and has a Length of miles (m), in Illinois?", "output": "SELECT name FROM table_name_9 WHERE opened__closing_date_if_defunct_ = \"1995\" AND length = \"miles (m)\" AND state = \"illinois\"" }
### INSTRUCTION What is the smallest amount of water having landmass over 34.864 sqmi, in Pierce township, with a GEO ID over 3800362460? ### INPUT CREATE TABLE table_name_2 (water__sqmi_ INTEGER, geo_id VARCHAR, land___sqmi__ VARCHAR, township VARCHAR) ### OUTPUT SELECT MIN(water__sqmi_) FROM table_name_2 WHERE land___sqmi__ > 34.864 AND township = "pierce" AND geo_id > 3800362460
{ "input": "CREATE TABLE table_name_2 (water__sqmi_ INTEGER, geo_id VARCHAR, land___sqmi__ VARCHAR, township VARCHAR)", "instruction": "What is the smallest amount of water having landmass over 34.864 sqmi, in Pierce township, with a GEO ID over 3800362460?", "output": "SELECT MIN(water__sqmi_) FROM table_name_2 WHERE land___sqmi__ > 34.864 AND township = \"pierce\" AND geo_id > 3800362460" }
### INSTRUCTION Find the name and address of the department that has the highest number of students. ### INPUT CREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_address VARCHAR, dept_code VARCHAR) ### OUTPUT SELECT T2.dept_name, T2.dept_address FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_address VARCHAR, dept_code VARCHAR)", "instruction": "Find the name and address of the department that has the highest number of students.", "output": "SELECT T2.dept_name, T2.dept_address FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What is the highest number of not usable satellites when there are more than 0 launch failures, less than 30 retired, and the block is I? ### INPUT CREATE TABLE table_name_30 (not_usable INTEGER, block VARCHAR, launch_failures VARCHAR, retired VARCHAR) ### OUTPUT SELECT MAX(not_usable) FROM table_name_30 WHERE launch_failures > 0 AND retired < 30 AND block = "block i"
{ "input": "CREATE TABLE table_name_30 (not_usable INTEGER, block VARCHAR, launch_failures VARCHAR, retired VARCHAR)", "instruction": "What is the highest number of not usable satellites when there are more than 0 launch failures, less than 30 retired, and the block is I?", "output": "SELECT MAX(not_usable) FROM table_name_30 WHERE launch_failures > 0 AND retired < 30 AND block = \"block i\"" }
### INSTRUCTION Before 1979, what position was the European Indoor Championships? ### INPUT CREATE TABLE table_name_78 (position VARCHAR, competition VARCHAR, year VARCHAR) ### OUTPUT SELECT position FROM table_name_78 WHERE competition = "european indoor championships" AND year < 1979
{ "input": "CREATE TABLE table_name_78 (position VARCHAR, competition VARCHAR, year VARCHAR)", "instruction": "Before 1979, what position was the European Indoor Championships?", "output": "SELECT position FROM table_name_78 WHERE competition = \"european indoor championships\" AND year < 1979" }
### INSTRUCTION How many total team penalties are there when cross country penalties is 30.40? ### INPUT CREATE TABLE table_18666752_3 (total_team_penalties VARCHAR, cross_country_penalties VARCHAR) ### OUTPUT SELECT total_team_penalties FROM table_18666752_3 WHERE cross_country_penalties = "30.40"
{ "input": "CREATE TABLE table_18666752_3 (total_team_penalties VARCHAR, cross_country_penalties VARCHAR)", "instruction": "How many total team penalties are there when cross country penalties is 30.40?", "output": "SELECT total_team_penalties FROM table_18666752_3 WHERE cross_country_penalties = \"30.40\"" }
### INSTRUCTION If the round is the semi-finals, what are the new entries this round? ### INPUT CREATE TABLE table_1859269_1 (new_entries_this_round VARCHAR, round VARCHAR) ### OUTPUT SELECT new_entries_this_round FROM table_1859269_1 WHERE round = "Semi-finals"
{ "input": "CREATE TABLE table_1859269_1 (new_entries_this_round VARCHAR, round VARCHAR)", "instruction": "If the round is the semi-finals, what are the new entries this round?", "output": "SELECT new_entries_this_round FROM table_1859269_1 WHERE round = \"Semi-finals\"" }
### INSTRUCTION What are the dates of leaving office for politician from the province of Seville? ### INPUT CREATE TABLE table_26362472_1 (left_office VARCHAR, province VARCHAR) ### OUTPUT SELECT left_office FROM table_26362472_1 WHERE province = "Seville"
{ "input": "CREATE TABLE table_26362472_1 (left_office VARCHAR, province VARCHAR)", "instruction": "What are the dates of leaving office for politician from the province of Seville?", "output": "SELECT left_office FROM table_26362472_1 WHERE province = \"Seville\"" }
### INSTRUCTION How many pageants were margaret ann awitan bayot the delegate of? ### INPUT CREATE TABLE table_1825751_14 (pageant VARCHAR, delegate VARCHAR) ### OUTPUT SELECT COUNT(pageant) FROM table_1825751_14 WHERE delegate = "Margaret Ann Awitan Bayot"
{ "input": "CREATE TABLE table_1825751_14 (pageant VARCHAR, delegate VARCHAR)", "instruction": "How many pageants were margaret ann awitan bayot the delegate of?", "output": "SELECT COUNT(pageant) FROM table_1825751_14 WHERE delegate = \"Margaret Ann Awitan Bayot\"" }
### INSTRUCTION List the hardware model name for the phones that were produced by "Nokia Corporation" or whose screen mode type is "Graphics." ### INPUT CREATE TABLE phone (Hardware_Model_name VARCHAR, screen_mode VARCHAR); CREATE TABLE screen_mode (Graphics_mode VARCHAR, Type VARCHAR) ### OUTPUT SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = "Graphics" OR t2.Company_name = "Nokia Corporation"
{ "input": "CREATE TABLE phone (Hardware_Model_name VARCHAR, screen_mode VARCHAR); CREATE TABLE screen_mode (Graphics_mode VARCHAR, Type VARCHAR)", "instruction": "List the hardware model name for the phones that were produced by \"Nokia Corporation\" or whose screen mode type is \"Graphics.\"", "output": "SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = \"Graphics\" OR t2.Company_name = \"Nokia Corporation\"" }
### INSTRUCTION In what arena was the game against the Sharks played? ### INPUT CREATE TABLE table_name_33 (arena VARCHAR, opponent VARCHAR) ### OUTPUT SELECT arena FROM table_name_33 WHERE opponent = "sharks"
{ "input": "CREATE TABLE table_name_33 (arena VARCHAR, opponent VARCHAR)", "instruction": "In what arena was the game against the Sharks played?", "output": "SELECT arena FROM table_name_33 WHERE opponent = \"sharks\"" }
### INSTRUCTION What is number of the train that originated in Secunderabad Junction? ### INPUT CREATE TABLE table_name_87 (train_no VARCHAR, origin VARCHAR) ### OUTPUT SELECT train_no FROM table_name_87 WHERE origin = "secunderabad junction"
{ "input": "CREATE TABLE table_name_87 (train_no VARCHAR, origin VARCHAR)", "instruction": "What is number of the train that originated in Secunderabad Junction?", "output": "SELECT train_no FROM table_name_87 WHERE origin = \"secunderabad junction\"" }
### INSTRUCTION What is the lowest heat that had a time of 1:02.85 in a lane larger than 7? ### INPUT CREATE TABLE table_name_40 (heat INTEGER, time VARCHAR, lane VARCHAR) ### OUTPUT SELECT MIN(heat) FROM table_name_40 WHERE time = "1:02.85" AND lane > 7
{ "input": "CREATE TABLE table_name_40 (heat INTEGER, time VARCHAR, lane VARCHAR)", "instruction": "What is the lowest heat that had a time of 1:02.85 in a lane larger than 7?", "output": "SELECT MIN(heat) FROM table_name_40 WHERE time = \"1:02.85\" AND lane > 7" }
### INSTRUCTION What is Score Points, when Shooter is "Sandra Kolly ( SUI )"? ### INPUT CREATE TABLE table_name_81 (score_points VARCHAR, shooter VARCHAR) ### OUTPUT SELECT score_points FROM table_name_81 WHERE shooter = "sandra kolly ( sui )"
{ "input": "CREATE TABLE table_name_81 (score_points VARCHAR, shooter VARCHAR)", "instruction": "What is Score Points, when Shooter is \"Sandra Kolly ( SUI )\"?", "output": "SELECT score_points FROM table_name_81 WHERE shooter = \"sandra kolly ( sui )\"" }
### INSTRUCTION What is the lowest Taijiquan of the athlete who has a Taijijian of 9.7 and a total more than 19.34? ### INPUT CREATE TABLE table_name_90 (taijiquan INTEGER, taijijian VARCHAR, total VARCHAR) ### OUTPUT SELECT MIN(taijiquan) FROM table_name_90 WHERE taijijian = 9.7 AND total > 19.34
{ "input": "CREATE TABLE table_name_90 (taijiquan INTEGER, taijijian VARCHAR, total VARCHAR)", "instruction": "What is the lowest Taijiquan of the athlete who has a Taijijian of 9.7 and a total more than 19.34?", "output": "SELECT MIN(taijiquan) FROM table_name_90 WHERE taijijian = 9.7 AND total > 19.34" }
### INSTRUCTION When was Chaka Fattah first elected in the Pennsylvania 2 district? ### INPUT CREATE TABLE table_1341453_40 (first_elected VARCHAR, district VARCHAR) ### OUTPUT SELECT first_elected FROM table_1341453_40 WHERE district = "Pennsylvania 2"
{ "input": "CREATE TABLE table_1341453_40 (first_elected VARCHAR, district VARCHAR)", "instruction": "When was Chaka Fattah first elected in the Pennsylvania 2 district? ", "output": "SELECT first_elected FROM table_1341453_40 WHERE district = \"Pennsylvania 2\"" }
### INSTRUCTION Find the first name of students who are living in the dorm that has most number of amenities. ### INPUT CREATE TABLE dorm_amenity (amenid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE dorm (dormid VARCHAR); CREATE TABLE student (fname VARCHAR, stuid VARCHAR); CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR) ### OUTPUT SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T2.dormid FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid = T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid = T5.amenid GROUP BY T3.dormid ORDER BY COUNT(*) DESC LIMIT 1)
{ "input": "CREATE TABLE dorm_amenity (amenid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE dorm (dormid VARCHAR); CREATE TABLE student (fname VARCHAR, stuid VARCHAR); CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR)", "instruction": "Find the first name of students who are living in the dorm that has most number of amenities.", "output": "SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T2.dormid FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid = T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid = T5.amenid GROUP BY T3.dormid ORDER BY COUNT(*) DESC LIMIT 1)" }
### INSTRUCTION When was the outcome runner-up with a score of 4–6, 3–6? ### INPUT CREATE TABLE table_name_49 (date VARCHAR, outcome VARCHAR, score VARCHAR) ### OUTPUT SELECT date FROM table_name_49 WHERE outcome = "runner-up" AND score = "4–6, 3–6"
{ "input": "CREATE TABLE table_name_49 (date VARCHAR, outcome VARCHAR, score VARCHAR)", "instruction": "When was the outcome runner-up with a score of 4–6, 3–6?", "output": "SELECT date FROM table_name_49 WHERE outcome = \"runner-up\" AND score = \"4–6, 3–6\"" }
### INSTRUCTION What is the FCC info for the translator with frequency over 89.3MHz and licensd in Portales, New Mexico? ### INPUT CREATE TABLE table_name_98 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR) ### OUTPUT SELECT fcc_info FROM table_name_98 WHERE frequency_mhz > 89.3 AND city_of_license = "portales, new mexico"
{ "input": "CREATE TABLE table_name_98 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)", "instruction": "What is the FCC info for the translator with frequency over 89.3MHz and licensd in Portales, New Mexico?", "output": "SELECT fcc_info FROM table_name_98 WHERE frequency_mhz > 89.3 AND city_of_license = \"portales, new mexico\"" }
### INSTRUCTION Show all product names without an order. ### INPUT CREATE TABLE Products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE Order_items (product_id VARCHAR); CREATE TABLE Products (product_name VARCHAR) ### OUTPUT SELECT product_name FROM Products EXCEPT SELECT T1.product_name FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id
{ "input": "CREATE TABLE Products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE Order_items (product_id VARCHAR); CREATE TABLE Products (product_name VARCHAR)", "instruction": "Show all product names without an order.", "output": "SELECT product_name FROM Products EXCEPT SELECT T1.product_name FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id" }
### INSTRUCTION Which episode has boy george and lee mack on dave's team? ### INPUT CREATE TABLE table_23292220_4 (episode VARCHAR, daves_team VARCHAR) ### OUTPUT SELECT episode FROM table_23292220_4 WHERE daves_team = "Boy George and Lee Mack"
{ "input": "CREATE TABLE table_23292220_4 (episode VARCHAR, daves_team VARCHAR)", "instruction": "Which episode has boy george and lee mack on dave's team?", "output": "SELECT episode FROM table_23292220_4 WHERE daves_team = \"Boy George and Lee Mack\"" }
### INSTRUCTION what was the attendance for a home venue and a w 3-0 result? ### INPUT CREATE TABLE table_name_34 (attendance INTEGER, venue VARCHAR, result VARCHAR) ### OUTPUT SELECT AVG(attendance) FROM table_name_34 WHERE venue = "home" AND result = "w 3-0"
{ "input": "CREATE TABLE table_name_34 (attendance INTEGER, venue VARCHAR, result VARCHAR)", "instruction": "what was the attendance for a home venue and a w 3-0 result?", "output": "SELECT AVG(attendance) FROM table_name_34 WHERE venue = \"home\" AND result = \"w 3-0\"" }
### INSTRUCTION What year were there less than 1.5 points and an Entrant of escuderia bandeirantes, and a maserati straight-4 engine? ### INPUT CREATE TABLE table_name_90 (year VARCHAR, engine VARCHAR, points VARCHAR, entrant VARCHAR) ### OUTPUT SELECT year FROM table_name_90 WHERE points < 1.5 AND entrant = "escuderia bandeirantes" AND engine = "maserati straight-4"
{ "input": "CREATE TABLE table_name_90 (year VARCHAR, engine VARCHAR, points VARCHAR, entrant VARCHAR)", "instruction": "What year were there less than 1.5 points and an Entrant of escuderia bandeirantes, and a maserati straight-4 engine?", "output": "SELECT year FROM table_name_90 WHERE points < 1.5 AND entrant = \"escuderia bandeirantes\" AND engine = \"maserati straight-4\"" }
### INSTRUCTION What is the lowest number of bronze of the nation with more than 13 total medals, more than 10 gold medals, and less than 22 silvers? ### INPUT CREATE TABLE table_name_3 (bronze INTEGER, silver VARCHAR, total VARCHAR, gold VARCHAR) ### OUTPUT SELECT MIN(bronze) FROM table_name_3 WHERE total > 13 AND gold > 10 AND silver < 22
{ "input": "CREATE TABLE table_name_3 (bronze INTEGER, silver VARCHAR, total VARCHAR, gold VARCHAR)", "instruction": "What is the lowest number of bronze of the nation with more than 13 total medals, more than 10 gold medals, and less than 22 silvers?", "output": "SELECT MIN(bronze) FROM table_name_3 WHERE total > 13 AND gold > 10 AND silver < 22" }
### INSTRUCTION What country has the most height in the northwestern peak of rysy? ### INPUT CREATE TABLE table_24285393_1 (country_or_region VARCHAR, highest_point VARCHAR) ### OUTPUT SELECT country_or_region FROM table_24285393_1 WHERE highest_point = "Northwestern peak of Rysy"
{ "input": "CREATE TABLE table_24285393_1 (country_or_region VARCHAR, highest_point VARCHAR)", "instruction": "What country has the most height in the northwestern peak of rysy?", "output": "SELECT country_or_region FROM table_24285393_1 WHERE highest_point = \"Northwestern peak of Rysy\"" }
### INSTRUCTION What is the shirt no with a position of setter, a nationality of Italy, and height larger than 172? ### INPUT CREATE TABLE table_name_11 (shirt_no INTEGER, height VARCHAR, position VARCHAR, nationality VARCHAR) ### OUTPUT SELECT SUM(shirt_no) FROM table_name_11 WHERE position = "setter" AND nationality = "italy" AND height > 172
{ "input": "CREATE TABLE table_name_11 (shirt_no INTEGER, height VARCHAR, position VARCHAR, nationality VARCHAR)", "instruction": "What is the shirt no with a position of setter, a nationality of Italy, and height larger than 172?", "output": "SELECT SUM(shirt_no) FROM table_name_11 WHERE position = \"setter\" AND nationality = \"italy\" AND height > 172" }
### INSTRUCTION What is the score when the attendance is less than 83 and Raunds Town is the away team? ### INPUT CREATE TABLE table_name_91 (score VARCHAR, attendance VARCHAR, away_team VARCHAR) ### OUTPUT SELECT score FROM table_name_91 WHERE attendance < 83 AND away_team = "raunds town"
{ "input": "CREATE TABLE table_name_91 (score VARCHAR, attendance VARCHAR, away_team VARCHAR)", "instruction": "What is the score when the attendance is less than 83 and Raunds Town is the away team?", "output": "SELECT score FROM table_name_91 WHERE attendance < 83 AND away_team = \"raunds town\"" }
### INSTRUCTION What is the highest scored in the 2010 east asian football championship? ### INPUT CREATE TABLE table_name_66 (scored INTEGER, competition VARCHAR) ### OUTPUT SELECT MAX(scored) FROM table_name_66 WHERE competition = "2010 east asian football championship"
{ "input": "CREATE TABLE table_name_66 (scored INTEGER, competition VARCHAR)", "instruction": "What is the highest scored in the 2010 east asian football championship?", "output": "SELECT MAX(scored) FROM table_name_66 WHERE competition = \"2010 east asian football championship\"" }
### INSTRUCTION Find the organisation type description of the organisation detailed as 'quo'. ### INPUT CREATE TABLE Organisations (organisation_type VARCHAR, organisation_details VARCHAR); CREATE TABLE organisation_Types (organisation_type_description VARCHAR, organisation_type VARCHAR) ### OUTPUT SELECT T1.organisation_type_description FROM organisation_Types AS T1 JOIN Organisations AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_details = 'quo'
{ "input": "CREATE TABLE Organisations (organisation_type VARCHAR, organisation_details VARCHAR); CREATE TABLE organisation_Types (organisation_type_description VARCHAR, organisation_type VARCHAR)", "instruction": "Find the organisation type description of the organisation detailed as 'quo'.", "output": "SELECT T1.organisation_type_description FROM organisation_Types AS T1 JOIN Organisations AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_details = 'quo'" }
### INSTRUCTION When nicole dubuc duane capizzi is the writer who is the director? ### INPUT CREATE TABLE table_29475589_3 (director VARCHAR, writer_s_ VARCHAR) ### OUTPUT SELECT director FROM table_29475589_3 WHERE writer_s_ = "Nicole Dubuc Duane Capizzi"
{ "input": "CREATE TABLE table_29475589_3 (director VARCHAR, writer_s_ VARCHAR)", "instruction": "When nicole dubuc duane capizzi is the writer who is the director?", "output": "SELECT director FROM table_29475589_3 WHERE writer_s_ = \"Nicole Dubuc Duane Capizzi\"" }
### INSTRUCTION List all information about customer master index, and sort them by details in descending order. ### INPUT CREATE TABLE customer_master_index (cmi_details VARCHAR) ### OUTPUT SELECT * FROM customer_master_index ORDER BY cmi_details DESC
{ "input": "CREATE TABLE customer_master_index (cmi_details VARCHAR)", "instruction": "List all information about customer master index, and sort them by details in descending order.", "output": "SELECT * FROM customer_master_index ORDER BY cmi_details DESC" }
### INSTRUCTION what is the play when the company is national theatre of greece? ### INPUT CREATE TABLE table_name_11 (play VARCHAR, company VARCHAR) ### OUTPUT SELECT play FROM table_name_11 WHERE company = "national theatre of greece"
{ "input": "CREATE TABLE table_name_11 (play VARCHAR, company VARCHAR)", "instruction": "what is the play when the company is national theatre of greece?", "output": "SELECT play FROM table_name_11 WHERE company = \"national theatre of greece\"" }
### INSTRUCTION Find the name of the club that has the most female students. ### INPUT CREATE TABLE student (stuid VARCHAR, sex VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR) ### OUTPUT SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.sex = "F" GROUP BY t1.clubname ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE student (stuid VARCHAR, sex VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR)", "instruction": "Find the name of the club that has the most female students.", "output": "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.sex = \"F\" GROUP BY t1.clubname ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What Marisa Monte song choice was song during top 5? ### INPUT CREATE TABLE table_27614707_1 (song_choice VARCHAR, week__number VARCHAR, original_artist VARCHAR) ### OUTPUT SELECT song_choice FROM table_27614707_1 WHERE week__number = "Top 5" AND original_artist = "Marisa Monte"
{ "input": "CREATE TABLE table_27614707_1 (song_choice VARCHAR, week__number VARCHAR, original_artist VARCHAR)", "instruction": "What Marisa Monte song choice was song during top 5?", "output": "SELECT song_choice FROM table_27614707_1 WHERE week__number = \"Top 5\" AND original_artist = \"Marisa Monte\"" }
### INSTRUCTION When Mark Cavendish wins sprint classification and Maarten Tjallingii wins most courageous, who wins youth classification? ### INPUT CREATE TABLE table_25055040_22 (youth_classification VARCHAR, sprint_classification VARCHAR, most_courageous VARCHAR) ### OUTPUT SELECT youth_classification FROM table_25055040_22 WHERE sprint_classification = "Mark Cavendish" AND most_courageous = "Maarten Tjallingii"
{ "input": "CREATE TABLE table_25055040_22 (youth_classification VARCHAR, sprint_classification VARCHAR, most_courageous VARCHAR)", "instruction": "When Mark Cavendish wins sprint classification and Maarten Tjallingii wins most courageous, who wins youth classification?", "output": "SELECT youth_classification FROM table_25055040_22 WHERE sprint_classification = \"Mark Cavendish\" AND most_courageous = \"Maarten Tjallingii\"" }