text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What is the sum of the Europe totals for players with other appearances of 0, league appearances under 328, and a position of MF? ### INPUT CREATE TABLE table_name_72 (europe INTEGER, position VARCHAR, others VARCHAR, league VARCHAR) ### OUTPUT SELECT SUM(europe) FROM table_name_72 WHERE others = 0 AND league < 328 AND position = "mf"
{ "input": "CREATE TABLE table_name_72 (europe INTEGER, position VARCHAR, others VARCHAR, league VARCHAR)", "instruction": "What is the sum of the Europe totals for players with other appearances of 0, league appearances under 328, and a position of MF?", "output": "SELECT SUM(europe) FROM table_name_72 WHERE others = 0 AND league < 328 AND position = \"mf\"" }
### INSTRUCTION What is the number of draws for the team with more than 8 losses and 13 points? ### INPUT CREATE TABLE table_name_61 (draws VARCHAR, losses VARCHAR, points VARCHAR) ### OUTPUT SELECT draws FROM table_name_61 WHERE losses > 8 AND points = 13
{ "input": "CREATE TABLE table_name_61 (draws VARCHAR, losses VARCHAR, points VARCHAR)", "instruction": "What is the number of draws for the team with more than 8 losses and 13 points?", "output": "SELECT draws FROM table_name_61 WHERE losses > 8 AND points = 13" }
### INSTRUCTION Find all the addresses in East Julianaside, Texas or in Gleasonmouth, Arizona. ### INPUT CREATE TABLE addresses (address_content VARCHAR, city VARCHAR, state_province_county VARCHAR) ### OUTPUT SELECT address_content FROM addresses WHERE city = "East Julianaside" AND state_province_county = "Texas" UNION SELECT address_content FROM addresses WHERE city = "Gleasonmouth" AND state_province_county = "Arizona"
{ "input": "CREATE TABLE addresses (address_content VARCHAR, city VARCHAR, state_province_county VARCHAR)", "instruction": "Find all the addresses in East Julianaside, Texas or in Gleasonmouth, Arizona.", "output": "SELECT address_content FROM addresses WHERE city = \"East Julianaside\" AND state_province_county = \"Texas\" UNION SELECT address_content FROM addresses WHERE city = \"Gleasonmouth\" AND state_province_county = \"Arizona\"" }
### INSTRUCTION What is the average day in December with a Record of 16-3-4 and a Game smaller than 23? ### INPUT CREATE TABLE table_name_84 (december INTEGER, record VARCHAR, game VARCHAR) ### OUTPUT SELECT AVG(december) FROM table_name_84 WHERE record = "16-3-4" AND game < 23
{ "input": "CREATE TABLE table_name_84 (december INTEGER, record VARCHAR, game VARCHAR)", "instruction": "What is the average day in December with a Record of 16-3-4 and a Game smaller than 23?", "output": "SELECT AVG(december) FROM table_name_84 WHERE record = \"16-3-4\" AND game < 23" }
### INSTRUCTION For all directors who directed more than one movie, return the titles of all movies directed by them, along with the director name. Sort by director name, then movie title. ### INPUT CREATE TABLE Movie (title VARCHAR, director VARCHAR); CREATE TABLE Movie (director VARCHAR, title VARCHAR) ### OUTPUT SELECT T1.title, T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title <> T2.title ORDER BY T1.director, T1.title
{ "input": "CREATE TABLE Movie (title VARCHAR, director VARCHAR); CREATE TABLE Movie (director VARCHAR, title VARCHAR)", "instruction": "For all directors who directed more than one movie, return the titles of all movies directed by them, along with the director name. Sort by director name, then movie title.", "output": "SELECT T1.title, T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title <> T2.title ORDER BY T1.director, T1.title" }
### INSTRUCTION What is the Score of the match on a clay surface with an outcome of winner, at the tournament ciudad juárez, and an Opponent in the final of estefania craciún? ### INPUT CREATE TABLE table_name_48 (score VARCHAR, opponent_in_the_final VARCHAR, tournament VARCHAR, surface VARCHAR, outcome VARCHAR) ### OUTPUT SELECT score FROM table_name_48 WHERE surface = "clay" AND outcome = "winner" AND tournament = "ciudad juárez" AND opponent_in_the_final = "estefania craciún"
{ "input": "CREATE TABLE table_name_48 (score VARCHAR, opponent_in_the_final VARCHAR, tournament VARCHAR, surface VARCHAR, outcome VARCHAR)", "instruction": "What is the Score of the match on a clay surface with an outcome of winner, at the tournament ciudad juárez, and an Opponent in the final of estefania craciún?", "output": "SELECT score FROM table_name_48 WHERE surface = \"clay\" AND outcome = \"winner\" AND tournament = \"ciudad juárez\" AND opponent_in_the_final = \"estefania craciún\"" }
### INSTRUCTION What is the English name of the country whose official native language is Dutch Papiamento? ### INPUT CREATE TABLE table_1008653_1 (country___exonym__ VARCHAR, official_or_native_language_s___alphabet_script_ VARCHAR) ### OUTPUT SELECT country___exonym__ FROM table_1008653_1 WHERE official_or_native_language_s___alphabet_script_ = "Dutch Papiamento"
{ "input": "CREATE TABLE table_1008653_1 (country___exonym__ VARCHAR, official_or_native_language_s___alphabet_script_ VARCHAR)", "instruction": "What is the English name of the country whose official native language is Dutch Papiamento?", "output": "SELECT country___exonym__ FROM table_1008653_1 WHERE official_or_native_language_s___alphabet_script_ = \"Dutch Papiamento\"" }
### INSTRUCTION What country has a silver medal in the boxing, heavyweight event? ### INPUT CREATE TABLE table_name_77 (country VARCHAR, medal VARCHAR, event VARCHAR) ### OUTPUT SELECT country FROM table_name_77 WHERE medal = "silver" AND event = "boxing, heavyweight"
{ "input": "CREATE TABLE table_name_77 (country VARCHAR, medal VARCHAR, event VARCHAR)", "instruction": "What country has a silver medal in the boxing, heavyweight event?", "output": "SELECT country FROM table_name_77 WHERE medal = \"silver\" AND event = \"boxing, heavyweight\"" }
### INSTRUCTION What is the college/junior/club team for player don barber? ### INPUT CREATE TABLE table_2679061_6 (college_junior_club_team VARCHAR, player VARCHAR) ### OUTPUT SELECT college_junior_club_team FROM table_2679061_6 WHERE player = "Don Barber"
{ "input": "CREATE TABLE table_2679061_6 (college_junior_club_team VARCHAR, player VARCHAR)", "instruction": "What is the college/junior/club team for player don barber?", "output": "SELECT college_junior_club_team FROM table_2679061_6 WHERE player = \"Don Barber\"" }
### INSTRUCTION Which To par has a Player of jack nicklaus, and a Total smaller than 146? ### INPUT CREATE TABLE table_name_63 (to_par INTEGER, player VARCHAR, total VARCHAR) ### OUTPUT SELECT AVG(to_par) FROM table_name_63 WHERE player = "jack nicklaus" AND total < 146
{ "input": "CREATE TABLE table_name_63 (to_par INTEGER, player VARCHAR, total VARCHAR)", "instruction": "Which To par has a Player of jack nicklaus, and a Total smaller than 146?", "output": "SELECT AVG(to_par) FROM table_name_63 WHERE player = \"jack nicklaus\" AND total < 146" }
### INSTRUCTION What year was Otto Passman (d) unopposed first elected? ### INPUT CREATE TABLE table_1341690_18 (first_elected INTEGER, candidates VARCHAR) ### OUTPUT SELECT MAX(first_elected) FROM table_1341690_18 WHERE candidates = "Otto Passman (D) Unopposed"
{ "input": "CREATE TABLE table_1341690_18 (first_elected INTEGER, candidates VARCHAR)", "instruction": "What year was Otto Passman (d) unopposed first elected?", "output": "SELECT MAX(first_elected) FROM table_1341690_18 WHERE candidates = \"Otto Passman (D) Unopposed\"" }
### INSTRUCTION Name the name for when overs bowled is 31.2 ### INPUT CREATE TABLE table_15700367_2 (name VARCHAR, overs_bowled VARCHAR) ### OUTPUT SELECT name FROM table_15700367_2 WHERE overs_bowled = "31.2"
{ "input": "CREATE TABLE table_15700367_2 (name VARCHAR, overs_bowled VARCHAR)", "instruction": "Name the name for when overs bowled is 31.2", "output": "SELECT name FROM table_15700367_2 WHERE overs_bowled = \"31.2\"" }
### INSTRUCTION Tell me the highest interview for north carolina and evening gown more than 7.68 ### INPUT CREATE TABLE table_name_19 (interview INTEGER, state VARCHAR, evening_gown VARCHAR) ### OUTPUT SELECT MAX(interview) FROM table_name_19 WHERE state = "north carolina" AND evening_gown > 7.68
{ "input": "CREATE TABLE table_name_19 (interview INTEGER, state VARCHAR, evening_gown VARCHAR)", "instruction": "Tell me the highest interview for north carolina and evening gown more than 7.68", "output": "SELECT MAX(interview) FROM table_name_19 WHERE state = \"north carolina\" AND evening_gown > 7.68" }
### INSTRUCTION How many reasons for change were listed when Edward Hempstead was the successor? ### INPUT CREATE TABLE table_225095_4 (reason_for_change VARCHAR, successor VARCHAR) ### OUTPUT SELECT COUNT(reason_for_change) FROM table_225095_4 WHERE successor = "Edward Hempstead"
{ "input": "CREATE TABLE table_225095_4 (reason_for_change VARCHAR, successor VARCHAR)", "instruction": "How many reasons for change were listed when Edward Hempstead was the successor?", "output": "SELECT COUNT(reason_for_change) FROM table_225095_4 WHERE successor = \"Edward Hempstead\"" }
### INSTRUCTION Who did they play when there were only 751 in attendance? ### INPUT CREATE TABLE table_name_78 (opponent VARCHAR, attendance INTEGER) ### OUTPUT SELECT opponent FROM table_name_78 WHERE attendance < 751
{ "input": "CREATE TABLE table_name_78 (opponent VARCHAR, attendance INTEGER)", "instruction": "Who did they play when there were only 751 in attendance?", "output": "SELECT opponent FROM table_name_78 WHERE attendance < 751" }
### INSTRUCTION Name the termination of mission for woodrow wilson appointed by and representative of benton mcmillin ### INPUT CREATE TABLE table_name_18 (termination_of_mission VARCHAR, appointed_by VARCHAR, representative VARCHAR) ### OUTPUT SELECT termination_of_mission FROM table_name_18 WHERE appointed_by = "woodrow wilson" AND representative = "benton mcmillin"
{ "input": "CREATE TABLE table_name_18 (termination_of_mission VARCHAR, appointed_by VARCHAR, representative VARCHAR)", "instruction": "Name the termination of mission for woodrow wilson appointed by and representative of benton mcmillin", "output": "SELECT termination_of_mission FROM table_name_18 WHERE appointed_by = \"woodrow wilson\" AND representative = \"benton mcmillin\"" }
### INSTRUCTION What is the Piano di Sorrento, Napoli lowest km2 with a total smaller than 121.14 km2? ### INPUT CREATE TABLE table_name_26 (area__km²_ INTEGER, total__km²_ VARCHAR, province VARCHAR, comune VARCHAR) ### OUTPUT SELECT MIN(area__km²_) FROM table_name_26 WHERE province = "napoli" AND comune = "piano di sorrento" AND total__km²_ < 121.14
{ "input": "CREATE TABLE table_name_26 (area__km²_ INTEGER, total__km²_ VARCHAR, province VARCHAR, comune VARCHAR)", "instruction": "What is the Piano di Sorrento, Napoli lowest km2 with a total smaller than 121.14 km2?", "output": "SELECT MIN(area__km²_) FROM table_name_26 WHERE province = \"napoli\" AND comune = \"piano di sorrento\" AND total__km²_ < 121.14" }
### INSTRUCTION What's the average year that sara orlesky and farhan lalji are the sideline reporters? ### INPUT CREATE TABLE table_name_65 (year INTEGER, sideline_reporters VARCHAR) ### OUTPUT SELECT AVG(year) FROM table_name_65 WHERE sideline_reporters = "sara orlesky and farhan lalji"
{ "input": "CREATE TABLE table_name_65 (year INTEGER, sideline_reporters VARCHAR)", "instruction": "What's the average year that sara orlesky and farhan lalji are the sideline reporters?", "output": "SELECT AVG(year) FROM table_name_65 WHERE sideline_reporters = \"sara orlesky and farhan lalji\"" }
### INSTRUCTION Where is the Hometown that the person who attended Camarillo High School is from? ### INPUT CREATE TABLE table_name_40 (hometown VARCHAR, school VARCHAR) ### OUTPUT SELECT hometown FROM table_name_40 WHERE school = "camarillo high school"
{ "input": "CREATE TABLE table_name_40 (hometown VARCHAR, school VARCHAR)", "instruction": "Where is the Hometown that the person who attended Camarillo High School is from?", "output": "SELECT hometown FROM table_name_40 WHERE school = \"camarillo high school\"" }
### INSTRUCTION What average wheels has accounting as the type, with IBM Collection as the location? ### INPUT CREATE TABLE table_name_71 (wheels INTEGER, type VARCHAR, location VARCHAR) ### OUTPUT SELECT AVG(wheels) FROM table_name_71 WHERE type = "accounting" AND location = "ibm collection"
{ "input": "CREATE TABLE table_name_71 (wheels INTEGER, type VARCHAR, location VARCHAR)", "instruction": "What average wheels has accounting as the type, with IBM Collection as the location?", "output": "SELECT AVG(wheels) FROM table_name_71 WHERE type = \"accounting\" AND location = \"ibm collection\"" }
### INSTRUCTION Which method had a 3 rounds, result in a loss and the Juiz de Fora - fight 1 event? ### INPUT CREATE TABLE table_name_86 (method VARCHAR, event VARCHAR, round VARCHAR, res VARCHAR) ### OUTPUT SELECT method FROM table_name_86 WHERE round = "3" AND res = "loss" AND event = "juiz de fora - fight 1"
{ "input": "CREATE TABLE table_name_86 (method VARCHAR, event VARCHAR, round VARCHAR, res VARCHAR)", "instruction": "Which method had a 3 rounds, result in a loss and the Juiz de Fora - fight 1 event?", "output": "SELECT method FROM table_name_86 WHERE round = \"3\" AND res = \"loss\" AND event = \"juiz de fora - fight 1\"" }
### INSTRUCTION What is the lowest average of the contestant with an interview of 8.275 and an evening gown bigger than 8.7? ### INPUT CREATE TABLE table_name_31 (average INTEGER, interview VARCHAR, evening_gown VARCHAR) ### OUTPUT SELECT MIN(average) FROM table_name_31 WHERE interview = 8.275 AND evening_gown > 8.7
{ "input": "CREATE TABLE table_name_31 (average INTEGER, interview VARCHAR, evening_gown VARCHAR)", "instruction": "What is the lowest average of the contestant with an interview of 8.275 and an evening gown bigger than 8.7?", "output": "SELECT MIN(average) FROM table_name_31 WHERE interview = 8.275 AND evening_gown > 8.7" }
### INSTRUCTION What is the average money for a to par of 15, and is from the United States? ### INPUT CREATE TABLE table_name_55 (money___ INTEGER, to_par VARCHAR, country VARCHAR) ### OUTPUT SELECT AVG(money___) AS $__ FROM table_name_55 WHERE to_par = 15 AND country = "united states"
{ "input": "CREATE TABLE table_name_55 (money___ INTEGER, to_par VARCHAR, country VARCHAR)", "instruction": "What is the average money for a to par of 15, and is from the United States?", "output": "SELECT AVG(money___) AS $__ FROM table_name_55 WHERE to_par = 15 AND country = \"united states\"" }
### INSTRUCTION For model volvo, how many cylinders does the car with the least accelerate have? ### INPUT CREATE TABLE CARS_DATA (cylinders VARCHAR, Id VARCHAR, accelerate VARCHAR); CREATE TABLE CAR_NAMES (MakeId VARCHAR, Model VARCHAR) ### OUTPUT SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate LIMIT 1
{ "input": "CREATE TABLE CARS_DATA (cylinders VARCHAR, Id VARCHAR, accelerate VARCHAR); CREATE TABLE CAR_NAMES (MakeId VARCHAR, Model VARCHAR)", "instruction": "For model volvo, how many cylinders does the car with the least accelerate have?", "output": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate LIMIT 1" }
### INSTRUCTION Who was the trainer in 2013? ### INPUT CREATE TABLE table_name_71 (trainer VARCHAR, year VARCHAR) ### OUTPUT SELECT trainer FROM table_name_71 WHERE year = 2013
{ "input": "CREATE TABLE table_name_71 (trainer VARCHAR, year VARCHAR)", "instruction": "Who was the trainer in 2013?", "output": "SELECT trainer FROM table_name_71 WHERE year = 2013" }
### INSTRUCTION How many times did Saxby Chambliss have a lead margin of 21? ### INPUT CREATE TABLE table_16751596_16 (republican VARCHAR, lead_margin VARCHAR) ### OUTPUT SELECT COUNT(republican) AS :_saxby_chambliss FROM table_16751596_16 WHERE lead_margin = 21
{ "input": "CREATE TABLE table_16751596_16 (republican VARCHAR, lead_margin VARCHAR)", "instruction": "How many times did Saxby Chambliss have a lead margin of 21?", "output": "SELECT COUNT(republican) AS :_saxby_chambliss FROM table_16751596_16 WHERE lead_margin = 21" }
### INSTRUCTION when does the train arriving at bourne at 11.45 departure ### INPUT CREATE TABLE table_18333678_2 (departure VARCHAR, going_to VARCHAR, arrival VARCHAR) ### OUTPUT SELECT departure FROM table_18333678_2 WHERE going_to = "Bourne" AND arrival = "11.45"
{ "input": "CREATE TABLE table_18333678_2 (departure VARCHAR, going_to VARCHAR, arrival VARCHAR)", "instruction": "when does the train arriving at bourne at 11.45 departure ", "output": "SELECT departure FROM table_18333678_2 WHERE going_to = \"Bourne\" AND arrival = \"11.45\"" }
### INSTRUCTION Who performed the song named "Badlands"? Show the first name and the last name. ### INPUT CREATE TABLE Band (firstname VARCHAR, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR) ### OUTPUT SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Badlands"
{ "input": "CREATE TABLE Band (firstname VARCHAR, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR)", "instruction": "Who performed the song named \"Badlands\"? Show the first name and the last name.", "output": "SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = \"Badlands\"" }
### INSTRUCTION What is the number in January for Philadelphia Flyers as opponents? ### INPUT CREATE TABLE table_name_30 (january VARCHAR, opponent VARCHAR) ### OUTPUT SELECT COUNT(january) FROM table_name_30 WHERE opponent = "philadelphia flyers"
{ "input": "CREATE TABLE table_name_30 (january VARCHAR, opponent VARCHAR)", "instruction": "What is the number in January for Philadelphia Flyers as opponents?", "output": "SELECT COUNT(january) FROM table_name_30 WHERE opponent = \"philadelphia flyers\"" }
### INSTRUCTION How many poles does the European F3 Open series have? ### INPUT CREATE TABLE table_29434211_1 (poles VARCHAR, series VARCHAR) ### OUTPUT SELECT poles FROM table_29434211_1 WHERE series = "European F3 Open"
{ "input": "CREATE TABLE table_29434211_1 (poles VARCHAR, series VARCHAR)", "instruction": "How many poles does the European F3 Open series have?", "output": "SELECT poles FROM table_29434211_1 WHERE series = \"European F3 Open\"" }
### INSTRUCTION In which title was Ann Rutherford the leading lady for Joseph Kane? ### INPUT CREATE TABLE table_name_73 (title VARCHAR, leading_lady VARCHAR, director VARCHAR) ### OUTPUT SELECT title FROM table_name_73 WHERE leading_lady = "ann rutherford" AND director = "joseph kane"
{ "input": "CREATE TABLE table_name_73 (title VARCHAR, leading_lady VARCHAR, director VARCHAR)", "instruction": "In which title was Ann Rutherford the leading lady for Joseph Kane?", "output": "SELECT title FROM table_name_73 WHERE leading_lady = \"ann rutherford\" AND director = \"joseph kane\"" }
### INSTRUCTION Which distinct source system code includes the substring 'en'? ### INPUT CREATE TABLE cmi_cross_references (source_system_code VARCHAR) ### OUTPUT SELECT DISTINCT source_system_code FROM cmi_cross_references WHERE source_system_code LIKE '%en%'
{ "input": "CREATE TABLE cmi_cross_references (source_system_code VARCHAR)", "instruction": "Which distinct source system code includes the substring 'en'?", "output": "SELECT DISTINCT source_system_code FROM cmi_cross_references WHERE source_system_code LIKE '%en%'" }
### INSTRUCTION In which year are there festivals both inside the 'United States' and outside the 'United States'? ### INPUT CREATE TABLE festival_detail (YEAR VARCHAR, LOCATION VARCHAR) ### OUTPUT SELECT YEAR FROM festival_detail WHERE LOCATION = 'United States' INTERSECT SELECT YEAR FROM festival_detail WHERE LOCATION <> 'United States'
{ "input": "CREATE TABLE festival_detail (YEAR VARCHAR, LOCATION VARCHAR)", "instruction": "In which year are there festivals both inside the 'United States' and outside the 'United States'?", "output": "SELECT YEAR FROM festival_detail WHERE LOCATION = 'United States' INTERSECT SELECT YEAR FROM festival_detail WHERE LOCATION <> 'United States'" }
### INSTRUCTION Which student visited restaurant most often? List student's first name and last name. ### INPUT CREATE TABLE Visits_Restaurant (Id VARCHAR); CREATE TABLE Student (Id VARCHAR) ### OUTPUT SELECT Student.Fname, Student.Lname FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID GROUP BY Student.StuID ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE Visits_Restaurant (Id VARCHAR); CREATE TABLE Student (Id VARCHAR)", "instruction": "Which student visited restaurant most often? List student's first name and last name.", "output": "SELECT Student.Fname, Student.Lname FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID GROUP BY Student.StuID ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What team uses a Cosworth DFV V8 engine and DN9 Chassis? ### INPUT CREATE TABLE table_name_68 (entrant VARCHAR, engine VARCHAR, chassis VARCHAR) ### OUTPUT SELECT entrant FROM table_name_68 WHERE engine = "cosworth dfv v8" AND chassis = "dn9"
{ "input": "CREATE TABLE table_name_68 (entrant VARCHAR, engine VARCHAR, chassis VARCHAR)", "instruction": "What team uses a Cosworth DFV V8 engine and DN9 Chassis?", "output": "SELECT entrant FROM table_name_68 WHERE engine = \"cosworth dfv v8\" AND chassis = \"dn9\"" }
### INSTRUCTION With the score of 6–3, 2–6, [10–8] and played on clay who was the opponent? ### INPUT CREATE TABLE table_name_69 (opponent VARCHAR, surface VARCHAR, score VARCHAR) ### OUTPUT SELECT opponent FROM table_name_69 WHERE surface = "clay" AND score = "6–3, 2–6, [10–8]"
{ "input": "CREATE TABLE table_name_69 (opponent VARCHAR, surface VARCHAR, score VARCHAR)", "instruction": "With the score of 6–3, 2–6, [10–8] and played on clay who was the opponent?", "output": "SELECT opponent FROM table_name_69 WHERE surface = \"clay\" AND score = \"6–3, 2–6, [10–8]\"" }
### INSTRUCTION Which Baltimore group is of the retroviridae family? ### INPUT CREATE TABLE table_name_62 (baltimore_group VARCHAR, family VARCHAR) ### OUTPUT SELECT baltimore_group FROM table_name_62 WHERE family = "retroviridae"
{ "input": "CREATE TABLE table_name_62 (baltimore_group VARCHAR, family VARCHAR)", "instruction": "Which Baltimore group is of the retroviridae family?", "output": "SELECT baltimore_group FROM table_name_62 WHERE family = \"retroviridae\"" }
### INSTRUCTION Name the state class for resigned november 3, 1964 ### INPUT CREATE TABLE table_2159506_3 (state__class_ VARCHAR, reason_for_change VARCHAR) ### OUTPUT SELECT state__class_ FROM table_2159506_3 WHERE reason_for_change = "Resigned November 3, 1964"
{ "input": "CREATE TABLE table_2159506_3 (state__class_ VARCHAR, reason_for_change VARCHAR)", "instruction": "Name the state class for resigned november 3, 1964", "output": "SELECT state__class_ FROM table_2159506_3 WHERE reason_for_change = \"Resigned November 3, 1964\"" }
### INSTRUCTION When id the episode broadcast with Mark Webber as Jamie and John's guest? ### INPUT CREATE TABLE table_29141354_4 (first_broadcast VARCHAR, jamie_and_johns_guest VARCHAR) ### OUTPUT SELECT first_broadcast FROM table_29141354_4 WHERE jamie_and_johns_guest = "Mark Webber"
{ "input": "CREATE TABLE table_29141354_4 (first_broadcast VARCHAR, jamie_and_johns_guest VARCHAR)", "instruction": "When id the episode broadcast with Mark Webber as Jamie and John's guest?", "output": "SELECT first_broadcast FROM table_29141354_4 WHERE jamie_and_johns_guest = \"Mark Webber\"" }
### INSTRUCTION What is the lowest attendance for December 14, 1958 after week 12? ### INPUT CREATE TABLE table_name_76 (attendance INTEGER, date VARCHAR, week VARCHAR) ### OUTPUT SELECT MIN(attendance) FROM table_name_76 WHERE date = "december 14, 1958" AND week > 12
{ "input": "CREATE TABLE table_name_76 (attendance INTEGER, date VARCHAR, week VARCHAR)", "instruction": "What is the lowest attendance for December 14, 1958 after week 12?", "output": "SELECT MIN(attendance) FROM table_name_76 WHERE date = \"december 14, 1958\" AND week > 12" }
### INSTRUCTION Name the english meaning for engey poringo ### INPUT CREATE TABLE table_name_8 (english_meaning VARCHAR, how_other_tamils_say_it VARCHAR) ### OUTPUT SELECT english_meaning FROM table_name_8 WHERE how_other_tamils_say_it = "engey poringo"
{ "input": "CREATE TABLE table_name_8 (english_meaning VARCHAR, how_other_tamils_say_it VARCHAR)", "instruction": "Name the english meaning for engey poringo", "output": "SELECT english_meaning FROM table_name_8 WHERE how_other_tamils_say_it = \"engey poringo\"" }
### INSTRUCTION WHAT IS THE AWAY TEAM WITH HOME OF LEICESTER CITY? ### INPUT CREATE TABLE table_name_33 (away_team VARCHAR, home_team VARCHAR) ### OUTPUT SELECT away_team FROM table_name_33 WHERE home_team = "leicester city"
{ "input": "CREATE TABLE table_name_33 (away_team VARCHAR, home_team VARCHAR)", "instruction": "WHAT IS THE AWAY TEAM WITH HOME OF LEICESTER CITY?", "output": "SELECT away_team FROM table_name_33 WHERE home_team = \"leicester city\"" }
### INSTRUCTION Who is the youngest employee in the company? List employee's first and last name. ### INPUT CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, birth_date VARCHAR) ### OUTPUT SELECT first_name, last_name FROM employees ORDER BY birth_date DESC LIMIT 1
{ "input": "CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, birth_date VARCHAR)", "instruction": "Who is the youngest employee in the company? List employee's first and last name.", "output": "SELECT first_name, last_name FROM employees ORDER BY birth_date DESC LIMIT 1" }
### INSTRUCTION What is the highest rank for the boys swimming team in Albuquerque? ### INPUT CREATE TABLE table_name_72 (rank INTEGER, sport VARCHAR, city VARCHAR) ### OUTPUT SELECT MAX(rank) FROM table_name_72 WHERE sport = "boys swimming" AND city = "albuquerque"
{ "input": "CREATE TABLE table_name_72 (rank INTEGER, sport VARCHAR, city VARCHAR)", "instruction": "What is the highest rank for the boys swimming team in Albuquerque?", "output": "SELECT MAX(rank) FROM table_name_72 WHERE sport = \"boys swimming\" AND city = \"albuquerque\"" }
### INSTRUCTION Which venue led to a result of 13th and had an extra of Long Race? ### INPUT CREATE TABLE table_name_51 (venue VARCHAR, extra VARCHAR, result VARCHAR) ### OUTPUT SELECT venue FROM table_name_51 WHERE extra = "long race" AND result = "13th"
{ "input": "CREATE TABLE table_name_51 (venue VARCHAR, extra VARCHAR, result VARCHAR)", "instruction": "Which venue led to a result of 13th and had an extra of Long Race?", "output": "SELECT venue FROM table_name_51 WHERE extra = \"long race\" AND result = \"13th\"" }
### INSTRUCTION What is the listed Tonnage that has U-boats destroyed (KuK) of 2 and Ships sunk (Pola) of (not recorded)? ### INPUT CREATE TABLE table_name_54 (tonnage VARCHAR, u_boats_destroyed__kuk_ VARCHAR, ships_sunk__pola_ VARCHAR) ### OUTPUT SELECT tonnage FROM table_name_54 WHERE u_boats_destroyed__kuk_ = "2" AND ships_sunk__pola_ = "(not recorded)"
{ "input": "CREATE TABLE table_name_54 (tonnage VARCHAR, u_boats_destroyed__kuk_ VARCHAR, ships_sunk__pola_ VARCHAR)", "instruction": "What is the listed Tonnage that has U-boats destroyed (KuK) of 2 and Ships sunk (Pola) of (not recorded)?", "output": "SELECT tonnage FROM table_name_54 WHERE u_boats_destroyed__kuk_ = \"2\" AND ships_sunk__pola_ = \"(not recorded)\"" }
### INSTRUCTION What was Olga Govortsova's score when she played on a clay surface on 19 May 2008? ### INPUT CREATE TABLE table_name_11 (score VARCHAR, surface VARCHAR, date VARCHAR) ### OUTPUT SELECT score FROM table_name_11 WHERE surface = "clay" AND date = "19 may 2008"
{ "input": "CREATE TABLE table_name_11 (score VARCHAR, surface VARCHAR, date VARCHAR)", "instruction": "What was Olga Govortsova's score when she played on a clay surface on 19 May 2008?", "output": "SELECT score FROM table_name_11 WHERE surface = \"clay\" AND date = \"19 may 2008\"" }
### INSTRUCTION Which polling institute showed a lead of 12% and a Labour share of the poll at 40.2%? ### INPUT CREATE TABLE table_name_46 (polling_institute VARCHAR, lead VARCHAR, labour VARCHAR) ### OUTPUT SELECT polling_institute FROM table_name_46 WHERE lead = "12%" AND labour = "40.2%"
{ "input": "CREATE TABLE table_name_46 (polling_institute VARCHAR, lead VARCHAR, labour VARCHAR)", "instruction": "Which polling institute showed a lead of 12% and a Labour share of the poll at 40.2%?", "output": "SELECT polling_institute FROM table_name_46 WHERE lead = \"12%\" AND labour = \"40.2%\"" }
### INSTRUCTION Who is the Original west end performer for the character Martha? ### INPUT CREATE TABLE table_1901751_1 (original_west_end_performer VARCHAR, character VARCHAR) ### OUTPUT SELECT original_west_end_performer FROM table_1901751_1 WHERE character = "Martha"
{ "input": "CREATE TABLE table_1901751_1 (original_west_end_performer VARCHAR, character VARCHAR)", "instruction": "Who is the Original west end performer for the character Martha?", "output": "SELECT original_west_end_performer FROM table_1901751_1 WHERE character = \"Martha\"" }
### INSTRUCTION With a year larger than 1905, and a location of philadelphia, pennsylvania with a to par [a] of n/a and a country of scotland what is the course? ### INPUT CREATE TABLE table_name_1 (course VARCHAR, location VARCHAR, year VARCHAR, country VARCHAR, to_par_ VARCHAR, a_ VARCHAR) ### OUTPUT SELECT course FROM table_name_1 WHERE to_par_[a_] = "n/a" AND country = "scotland" AND year > 1905 AND location = "philadelphia, pennsylvania"
{ "input": "CREATE TABLE table_name_1 (course VARCHAR, location VARCHAR, year VARCHAR, country VARCHAR, to_par_ VARCHAR, a_ VARCHAR)", "instruction": "With a year larger than 1905, and a location of philadelphia, pennsylvania with a to par [a] of n/a and a country of scotland what is the course?", "output": "SELECT course FROM table_name_1 WHERE to_par_[a_] = \"n/a\" AND country = \"scotland\" AND year > 1905 AND location = \"philadelphia, pennsylvania\"" }
### INSTRUCTION With the Type is game of friendly and the City Belgrade and November 2 as the Date what were the Results¹? ### INPUT CREATE TABLE table_name_82 (results¹ VARCHAR, date VARCHAR, type_of_game VARCHAR, city VARCHAR) ### OUTPUT SELECT results¹ FROM table_name_82 WHERE type_of_game = "friendly" AND city = "belgrade" AND date = "november 2"
{ "input": "CREATE TABLE table_name_82 (results¹ VARCHAR, date VARCHAR, type_of_game VARCHAR, city VARCHAR)", "instruction": "With the Type is game of friendly and the City Belgrade and November 2 as the Date what were the Results¹?", "output": "SELECT results¹ FROM table_name_82 WHERE type_of_game = \"friendly\" AND city = \"belgrade\" AND date = \"november 2\"" }
### INSTRUCTION What is the Year 10 6th Quads for the Open 2nd VIII of ACGS and a Year 11 2nd VIII NC? ### INPUT CREATE TABLE table_name_7 (year_10_6th_quad VARCHAR, open_2nd_viii VARCHAR, year_11_2nd_viii VARCHAR) ### OUTPUT SELECT year_10_6th_quad FROM table_name_7 WHERE open_2nd_viii = "acgs" AND year_11_2nd_viii = "nc"
{ "input": "CREATE TABLE table_name_7 (year_10_6th_quad VARCHAR, open_2nd_viii VARCHAR, year_11_2nd_viii VARCHAR)", "instruction": "What is the Year 10 6th Quads for the Open 2nd VIII of ACGS and a Year 11 2nd VIII NC?", "output": "SELECT year_10_6th_quad FROM table_name_7 WHERE open_2nd_viii = \"acgs\" AND year_11_2nd_viii = \"nc\"" }
### INSTRUCTION When in 2009 season has a Group of group b, and cancha del mystic with a Club of el tecal? ### INPUT CREATE TABLE table_name_17 (club VARCHAR, group VARCHAR, stadium VARCHAR) ### OUTPUT SELECT 2009 AS _season FROM table_name_17 WHERE group = "group b" AND stadium = "cancha del mystic" AND club = "el tecal"
{ "input": "CREATE TABLE table_name_17 (club VARCHAR, group VARCHAR, stadium VARCHAR)", "instruction": "When in 2009 season has a Group of group b, and cancha del mystic with a Club of el tecal?", "output": "SELECT 2009 AS _season FROM table_name_17 WHERE group = \"group b\" AND stadium = \"cancha del mystic\" AND club = \"el tecal\"" }
### INSTRUCTION How many losses were there when the record was 4-0? ### INPUT CREATE TABLE table_20745444_1 (opponents INTEGER, record VARCHAR) ### OUTPUT SELECT MAX(opponents) FROM table_20745444_1 WHERE record = "4-0"
{ "input": "CREATE TABLE table_20745444_1 (opponents INTEGER, record VARCHAR)", "instruction": "How many losses were there when the record was 4-0?", "output": "SELECT MAX(opponents) FROM table_20745444_1 WHERE record = \"4-0\"" }
### INSTRUCTION Which Performance has a Test Standard of bs en779, and a Particulate size approaching 100% retention of >2µm, and a Class of f6? ### INPUT CREATE TABLE table_name_39 (performance VARCHAR, class VARCHAR, test_standard VARCHAR, particulate_size_approaching_100_percentage_retention VARCHAR) ### OUTPUT SELECT performance FROM table_name_39 WHERE test_standard = "bs en779" AND particulate_size_approaching_100_percentage_retention = ">2µm" AND class = "f6"
{ "input": "CREATE TABLE table_name_39 (performance VARCHAR, class VARCHAR, test_standard VARCHAR, particulate_size_approaching_100_percentage_retention VARCHAR)", "instruction": "Which Performance has a Test Standard of bs en779, and a Particulate size approaching 100% retention of >2µm, and a Class of f6?", "output": "SELECT performance FROM table_name_39 WHERE test_standard = \"bs en779\" AND particulate_size_approaching_100_percentage_retention = \">2µm\" AND class = \"f6\"" }
### INSTRUCTION How many export volume of goods and services values are associated with GDP at current prices of 161.340? ### INPUT CREATE TABLE table_30133_1 (export_volume_of_goods_and_services__percent_change_ VARCHAR, gdp_at_current_prices__usd_billions_ VARCHAR) ### OUTPUT SELECT COUNT(export_volume_of_goods_and_services__percent_change_) FROM table_30133_1 WHERE gdp_at_current_prices__usd_billions_ = "161.340"
{ "input": "CREATE TABLE table_30133_1 (export_volume_of_goods_and_services__percent_change_ VARCHAR, gdp_at_current_prices__usd_billions_ VARCHAR)", "instruction": "How many export volume of goods and services values are associated with GDP at current prices of 161.340?", "output": "SELECT COUNT(export_volume_of_goods_and_services__percent_change_) FROM table_30133_1 WHERE gdp_at_current_prices__usd_billions_ = \"161.340\"" }
### INSTRUCTION What is the total fat with a smoke point of °c () and 37g of polyunsaturated fat? ### INPUT CREATE TABLE table_name_33 (total_fat VARCHAR, smoke_point VARCHAR, polyunsaturated_fat VARCHAR) ### OUTPUT SELECT total_fat FROM table_name_33 WHERE smoke_point = "°c ()" AND polyunsaturated_fat = "37g"
{ "input": "CREATE TABLE table_name_33 (total_fat VARCHAR, smoke_point VARCHAR, polyunsaturated_fat VARCHAR)", "instruction": "What is the total fat with a smoke point of °c () and 37g of polyunsaturated fat?", "output": "SELECT total_fat FROM table_name_33 WHERE smoke_point = \"°c ()\" AND polyunsaturated_fat = \"37g\"" }
### INSTRUCTION What school has more than 533 enrolled and is an IHSAA Football Class of aa? ### INPUT CREATE TABLE table_name_27 (school VARCHAR, enrollment VARCHAR, ihsaa_football_class VARCHAR) ### OUTPUT SELECT school FROM table_name_27 WHERE enrollment > 533 AND ihsaa_football_class = "aa"
{ "input": "CREATE TABLE table_name_27 (school VARCHAR, enrollment VARCHAR, ihsaa_football_class VARCHAR)", "instruction": "What school has more than 533 enrolled and is an IHSAA Football Class of aa?", "output": "SELECT school FROM table_name_27 WHERE enrollment > 533 AND ihsaa_football_class = \"aa\"" }
### INSTRUCTION Show the name, role code, and date of birth for the employee with name 'Armani'. ### INPUT CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR, date_of_birth VARCHAR, employee_Name VARCHAR) ### OUTPUT SELECT employee_name, role_code, date_of_birth FROM Employees WHERE employee_Name = 'Armani'
{ "input": "CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR, date_of_birth VARCHAR, employee_Name VARCHAR)", "instruction": "Show the name, role code, and date of birth for the employee with name 'Armani'.", "output": "SELECT employee_name, role_code, date_of_birth FROM Employees WHERE employee_Name = 'Armani'" }
### INSTRUCTION Which date did the oakland raiders play as the opponent when the Bills first downs were under 28? ### INPUT CREATE TABLE table_name_76 (date VARCHAR, bills_first_downs VARCHAR, opponent VARCHAR) ### OUTPUT SELECT date FROM table_name_76 WHERE bills_first_downs < 28 AND opponent = "oakland raiders"
{ "input": "CREATE TABLE table_name_76 (date VARCHAR, bills_first_downs VARCHAR, opponent VARCHAR)", "instruction": "Which date did the oakland raiders play as the opponent when the Bills first downs were under 28?", "output": "SELECT date FROM table_name_76 WHERE bills_first_downs < 28 AND opponent = \"oakland raiders\"" }
### INSTRUCTION Which position does Deshawn Stevenson play? ### INPUT CREATE TABLE table_11545282_18 (position VARCHAR, player VARCHAR) ### OUTPUT SELECT position FROM table_11545282_18 WHERE player = "DeShawn Stevenson"
{ "input": "CREATE TABLE table_11545282_18 (position VARCHAR, player VARCHAR)", "instruction": "Which position does Deshawn Stevenson play?", "output": "SELECT position FROM table_11545282_18 WHERE player = \"DeShawn Stevenson\"" }
### INSTRUCTION What is the Score, when the Location is Clemson, SC, when the Winner is Clemson, and when the Date is November 11, 2006? ### INPUT CREATE TABLE table_name_67 (score VARCHAR, date VARCHAR, location VARCHAR, winner VARCHAR) ### OUTPUT SELECT score FROM table_name_67 WHERE location = "clemson, sc" AND winner = "clemson" AND date = "november 11, 2006"
{ "input": "CREATE TABLE table_name_67 (score VARCHAR, date VARCHAR, location VARCHAR, winner VARCHAR)", "instruction": "What is the Score, when the Location is Clemson, SC, when the Winner is Clemson, and when the Date is November 11, 2006?", "output": "SELECT score FROM table_name_67 WHERE location = \"clemson, sc\" AND winner = \"clemson\" AND date = \"november 11, 2006\"" }
### INSTRUCTION What's the to par of the United States with the score of 71-71=142? ### INPUT CREATE TABLE table_name_1 (to_par VARCHAR, country VARCHAR, score VARCHAR) ### OUTPUT SELECT to_par FROM table_name_1 WHERE country = "united states" AND score = 71 - 71 = 142
{ "input": "CREATE TABLE table_name_1 (to_par VARCHAR, country VARCHAR, score VARCHAR)", "instruction": "What's the to par of the United States with the score of 71-71=142?", "output": "SELECT to_par FROM table_name_1 WHERE country = \"united states\" AND score = 71 - 71 = 142" }
### INSTRUCTION Which Year has a Winning score of –4 (69-72-70-69=280)? ### INPUT CREATE TABLE table_name_42 (year INTEGER, winning_score VARCHAR) ### OUTPUT SELECT MIN(year) FROM table_name_42 WHERE winning_score = –4(69 - 72 - 70 - 69 = 280)
{ "input": "CREATE TABLE table_name_42 (year INTEGER, winning_score VARCHAR)", "instruction": "Which Year has a Winning score of –4 (69-72-70-69=280)?", "output": "SELECT MIN(year) FROM table_name_42 WHERE winning_score = –4(69 - 72 - 70 - 69 = 280)" }
### INSTRUCTION How many laps led when the Grid was 15? ### INPUT CREATE TABLE table_name_29 (laps VARCHAR, grid VARCHAR) ### OUTPUT SELECT laps AS Led FROM table_name_29 WHERE grid = "15"
{ "input": "CREATE TABLE table_name_29 (laps VARCHAR, grid VARCHAR)", "instruction": "How many laps led when the Grid was 15?", "output": "SELECT laps AS Led FROM table_name_29 WHERE grid = \"15\"" }
### INSTRUCTION How many points were scored in 1:44:59.557 of time? ### INPUT CREATE TABLE table_name_64 (points VARCHAR, time_retired VARCHAR) ### OUTPUT SELECT points FROM table_name_64 WHERE time_retired = "1:44:59.557"
{ "input": "CREATE TABLE table_name_64 (points VARCHAR, time_retired VARCHAR)", "instruction": "How many points were scored in 1:44:59.557 of time?", "output": "SELECT points FROM table_name_64 WHERE time_retired = \"1:44:59.557\"" }
### INSTRUCTION What is the highest number when there were more than 50 long and less than 762 yards? ### INPUT CREATE TABLE table_name_81 (number INTEGER, long VARCHAR, yards VARCHAR) ### OUTPUT SELECT MAX(number) FROM table_name_81 WHERE long > 50 AND yards < 762
{ "input": "CREATE TABLE table_name_81 (number INTEGER, long VARCHAR, yards VARCHAR)", "instruction": "What is the highest number when there were more than 50 long and less than 762 yards?", "output": "SELECT MAX(number) FROM table_name_81 WHERE long > 50 AND yards < 762" }
### INSTRUCTION Find the names of the clubs that have at least a member from the city with city code "HOU". ### INPUT CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, city_code VARCHAR) ### OUTPUT SELECT DISTINCT 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.city_code = "HOU"
{ "input": "CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, city_code VARCHAR)", "instruction": "Find the names of the clubs that have at least a member from the city with city code \"HOU\".", "output": "SELECT DISTINCT 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.city_code = \"HOU\"" }
### INSTRUCTION Which first election for the labor party is James Sharpe a part of? ### INPUT CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, member VARCHAR) ### OUTPUT SELECT first_elected FROM table_name_28 WHERE party = "labor" AND member = "james sharpe"
{ "input": "CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, member VARCHAR)", "instruction": "Which first election for the labor party is James Sharpe a part of?", "output": "SELECT first_elected FROM table_name_28 WHERE party = \"labor\" AND member = \"james sharpe\"" }
### INSTRUCTION What is every pregame analyst with Chris Rose as trophy presenter? ### INPUT CREATE TABLE table_2941848_2 (pregame_analysts VARCHAR, trophy_presentation VARCHAR) ### OUTPUT SELECT pregame_analysts FROM table_2941848_2 WHERE trophy_presentation = "Chris Rose"
{ "input": "CREATE TABLE table_2941848_2 (pregame_analysts VARCHAR, trophy_presentation VARCHAR)", "instruction": "What is every pregame analyst with Chris Rose as trophy presenter?", "output": "SELECT pregame_analysts FROM table_2941848_2 WHERE trophy_presentation = \"Chris Rose\"" }
### INSTRUCTION When the engine Ford Cosworth DFV 3.0 v8 has a chassis of m23 and in rounds 14-15, what is its Tyre? ### INPUT CREATE TABLE table_name_51 (tyre VARCHAR, chassis VARCHAR, rounds VARCHAR, engine VARCHAR) ### OUTPUT SELECT tyre FROM table_name_51 WHERE rounds = "14-15" AND engine = "ford cosworth dfv 3.0 v8" AND chassis = "m23"
{ "input": "CREATE TABLE table_name_51 (tyre VARCHAR, chassis VARCHAR, rounds VARCHAR, engine VARCHAR)", "instruction": "When the engine Ford Cosworth DFV 3.0 v8 has a chassis of m23 and in rounds 14-15, what is its Tyre?", "output": "SELECT tyre FROM table_name_51 WHERE rounds = \"14-15\" AND engine = \"ford cosworth dfv 3.0 v8\" AND chassis = \"m23\"" }
### INSTRUCTION What are the values of n for cinema content provided by Sky Cinema +24 on its Sky Cinema package? ### INPUT CREATE TABLE table_15887683_5 (n° VARCHAR, television_service VARCHAR, package_option VARCHAR, content VARCHAR) ### OUTPUT SELECT n° FROM table_15887683_5 WHERE package_option = "Sky Cinema" AND content = "cinema" AND television_service = "Sky Cinema" + 24
{ "input": "CREATE TABLE table_15887683_5 (n° VARCHAR, television_service VARCHAR, package_option VARCHAR, content VARCHAR)", "instruction": "What are the values of n for cinema content provided by Sky Cinema +24 on its Sky Cinema package?", "output": "SELECT n° FROM table_15887683_5 WHERE package_option = \"Sky Cinema\" AND content = \"cinema\" AND television_service = \"Sky Cinema\" + 24" }
### INSTRUCTION What is Place, when Score is 72-72=144, when Country is United States, and when Player is Scott McCarron? ### INPUT CREATE TABLE table_name_14 (place VARCHAR, player VARCHAR, country VARCHAR, score VARCHAR) ### OUTPUT SELECT place FROM table_name_14 WHERE score = 72 - 72 = 144 AND country = "united states" AND player = "scott mccarron"
{ "input": "CREATE TABLE table_name_14 (place VARCHAR, player VARCHAR, country VARCHAR, score VARCHAR)", "instruction": "What is Place, when Score is 72-72=144, when Country is United States, and when Player is Scott McCarron?", "output": "SELECT place FROM table_name_14 WHERE score = 72 - 72 = 144 AND country = \"united states\" AND player = \"scott mccarron\"" }
### INSTRUCTION Who was hired to fill the spot that became vacant on 3 March 2009? ### INPUT CREATE TABLE table_name_11 (replaced_by VARCHAR, date_of_vacancy VARCHAR) ### OUTPUT SELECT replaced_by FROM table_name_11 WHERE date_of_vacancy = "3 march 2009"
{ "input": "CREATE TABLE table_name_11 (replaced_by VARCHAR, date_of_vacancy VARCHAR)", "instruction": "Who was hired to fill the spot that became vacant on 3 March 2009?", "output": "SELECT replaced_by FROM table_name_11 WHERE date_of_vacancy = \"3 march 2009\"" }
### INSTRUCTION how many crew had u15 3rd iv being bgs and u15 1st iv being acgs and open 1st viii being acgs ### INPUT CREATE TABLE table_11318462_5 (crew VARCHAR, open_1st_viii VARCHAR, u15_3rd_iv VARCHAR, u15_1st_iv VARCHAR) ### OUTPUT SELECT COUNT(crew) FROM table_11318462_5 WHERE u15_3rd_iv = "BGS" AND u15_1st_iv = "ACGS" AND open_1st_viii = "ACGS"
{ "input": "CREATE TABLE table_11318462_5 (crew VARCHAR, open_1st_viii VARCHAR, u15_3rd_iv VARCHAR, u15_1st_iv VARCHAR)", "instruction": "how many crew had u15 3rd iv being bgs and u15 1st iv being acgs and open 1st viii being acgs", "output": "SELECT COUNT(crew) FROM table_11318462_5 WHERE u15_3rd_iv = \"BGS\" AND u15_1st_iv = \"ACGS\" AND open_1st_viii = \"ACGS\"" }
### INSTRUCTION Which GDP per capita (US$) (2004) has a Literacy (2003) of 90%, and an Area (km²) of 1247689.5? ### INPUT CREATE TABLE table_name_53 (gdp_per_capita__us INTEGER, literacy__2003_ VARCHAR, area__km²_ VARCHAR) ### OUTPUT SELECT AVG(gdp_per_capita__us) AS $___2004_ FROM table_name_53 WHERE literacy__2003_ = "90%" AND area__km²_ = 1247689.5
{ "input": "CREATE TABLE table_name_53 (gdp_per_capita__us INTEGER, literacy__2003_ VARCHAR, area__km²_ VARCHAR)", "instruction": "Which GDP per capita (US$) (2004) has a Literacy (2003) of 90%, and an Area (km²) of 1247689.5?", "output": "SELECT AVG(gdp_per_capita__us) AS $___2004_ FROM table_name_53 WHERE literacy__2003_ = \"90%\" AND area__km²_ = 1247689.5" }
### INSTRUCTION What is Beohari's reserved for (SC/ST/None)? ### INPUT CREATE TABLE table_name_31 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR) ### OUTPUT SELECT reserved_for___sc___st__none_ FROM table_name_31 WHERE name = "beohari"
{ "input": "CREATE TABLE table_name_31 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR)", "instruction": "What is Beohari's reserved for (SC/ST/None)?", "output": "SELECT reserved_for___sc___st__none_ FROM table_name_31 WHERE name = \"beohari\"" }
### INSTRUCTION What is the original air date of the episode that was number 31 in the series? ### INPUT CREATE TABLE table_29584044_1 (original_air_date VARCHAR, no_in_series VARCHAR) ### OUTPUT SELECT original_air_date FROM table_29584044_1 WHERE no_in_series = 31
{ "input": "CREATE TABLE table_29584044_1 (original_air_date VARCHAR, no_in_series VARCHAR)", "instruction": "What is the original air date of the episode that was number 31 in the series? ", "output": "SELECT original_air_date FROM table_29584044_1 WHERE no_in_series = 31" }
### INSTRUCTION What is the production code for the episode that had 1.32 million U.S. viewers? ### INPUT CREATE TABLE table_22347090_6 (production_code VARCHAR, us_viewers__million_ VARCHAR) ### OUTPUT SELECT production_code FROM table_22347090_6 WHERE us_viewers__million_ = "1.32"
{ "input": "CREATE TABLE table_22347090_6 (production_code VARCHAR, us_viewers__million_ VARCHAR)", "instruction": "What is the production code for the episode that had 1.32 million U.S. viewers?", "output": "SELECT production_code FROM table_22347090_6 WHERE us_viewers__million_ = \"1.32\"" }
### INSTRUCTION What is the area of the corporation named the powell river, the corporation of the city of? ### INPUT CREATE TABLE table_28367242_1 (area__km²_ VARCHAR, corporate_name VARCHAR) ### OUTPUT SELECT area__km²_ FROM table_28367242_1 WHERE corporate_name = "Powell River, The Corporation of the City of"
{ "input": "CREATE TABLE table_28367242_1 (area__km²_ VARCHAR, corporate_name VARCHAR)", "instruction": "What is the area of the corporation named the powell river, the corporation of the city of?", "output": "SELECT area__km²_ FROM table_28367242_1 WHERE corporate_name = \"Powell River, The Corporation of the City of\"" }
### INSTRUCTION Name the episode number that aired on july 23, 2000 ### INPUT CREATE TABLE table_name_34 (episode__number VARCHAR, original_airdate VARCHAR) ### OUTPUT SELECT episode__number FROM table_name_34 WHERE original_airdate = "july 23, 2000"
{ "input": "CREATE TABLE table_name_34 (episode__number VARCHAR, original_airdate VARCHAR)", "instruction": "Name the episode number that aired on july 23, 2000", "output": "SELECT episode__number FROM table_name_34 WHERE original_airdate = \"july 23, 2000\"" }
### INSTRUCTION What is the total number of Total Goals scored by Stan Mortensen where the Qualifying Goals is greater than 3? ### INPUT CREATE TABLE table_name_1 (total_goals VARCHAR, player VARCHAR, qualifying_goals VARCHAR) ### OUTPUT SELECT COUNT(total_goals) FROM table_name_1 WHERE player = "stan mortensen" AND qualifying_goals > 3
{ "input": "CREATE TABLE table_name_1 (total_goals VARCHAR, player VARCHAR, qualifying_goals VARCHAR)", "instruction": "What is the total number of Total Goals scored by Stan Mortensen where the Qualifying Goals is greater than 3?", "output": "SELECT COUNT(total_goals) FROM table_name_1 WHERE player = \"stan mortensen\" AND qualifying_goals > 3" }
### INSTRUCTION What is the total area with the Census Ranking of 3,129 of 5,008, and a Population larger than 460? ### INPUT CREATE TABLE table_name_66 (area_km_2 VARCHAR, census_ranking VARCHAR, population VARCHAR) ### OUTPUT SELECT COUNT(area_km_2) FROM table_name_66 WHERE census_ranking = "3,129 of 5,008" AND population > 460
{ "input": "CREATE TABLE table_name_66 (area_km_2 VARCHAR, census_ranking VARCHAR, population VARCHAR)", "instruction": "What is the total area with the Census Ranking of 3,129 of 5,008, and a Population larger than 460?", "output": "SELECT COUNT(area_km_2) FROM table_name_66 WHERE census_ranking = \"3,129 of 5,008\" AND population > 460" }
### INSTRUCTION List the name of the stadium where both the player 'Walter Samuel' and the player 'Thiago Motta' got injured. ### INPUT CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE game (stadium_id VARCHAR, id VARCHAR); CREATE TABLE injury_accident (game_id VARCHAR, player VARCHAR) ### OUTPUT SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.player = 'Walter Samuel' INTERSECT SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.player = 'Thiago Motta'
{ "input": "CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE game (stadium_id VARCHAR, id VARCHAR); CREATE TABLE injury_accident (game_id VARCHAR, player VARCHAR)", "instruction": "List the name of the stadium where both the player 'Walter Samuel' and the player 'Thiago Motta' got injured.", "output": "SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.player = 'Walter Samuel' INTERSECT SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.player = 'Thiago Motta'" }
### INSTRUCTION Name the venue for margin less than 66 and opponent of north queensland cowboys ### INPUT CREATE TABLE table_name_60 (venue VARCHAR, margin VARCHAR, opponent VARCHAR) ### OUTPUT SELECT venue FROM table_name_60 WHERE margin < 66 AND opponent = "north queensland cowboys"
{ "input": "CREATE TABLE table_name_60 (venue VARCHAR, margin VARCHAR, opponent VARCHAR)", "instruction": "Name the venue for margin less than 66 and opponent of north queensland cowboys", "output": "SELECT venue FROM table_name_60 WHERE margin < 66 AND opponent = \"north queensland cowboys\"" }
### INSTRUCTION Who is listed as the Visitor that has a Home of Boston Bruins and a Date of November 15? ### INPUT CREATE TABLE table_name_97 (visitor VARCHAR, home VARCHAR, date VARCHAR) ### OUTPUT SELECT visitor FROM table_name_97 WHERE home = "boston bruins" AND date = "november 15"
{ "input": "CREATE TABLE table_name_97 (visitor VARCHAR, home VARCHAR, date VARCHAR)", "instruction": "Who is listed as the Visitor that has a Home of Boston Bruins and a Date of November 15?", "output": "SELECT visitor FROM table_name_97 WHERE home = \"boston bruins\" AND date = \"november 15\"" }
### INSTRUCTION What is the points average when the tied is greater than 8, less than 82 games and the coach of Bryan Mclay † Morris Lallo ‡ Gerry Moore ‡, and greater than 322 goals? ### INPUT CREATE TABLE table_name_13 (points INTEGER, goals_against VARCHAR, coach VARCHAR, tied VARCHAR, games VARCHAR) ### OUTPUT SELECT AVG(points) FROM table_name_13 WHERE tied > 8 AND games < 82 AND coach = "bryan mclay † morris lallo ‡ gerry moore ‡" AND goals_against > 322
{ "input": "CREATE TABLE table_name_13 (points INTEGER, goals_against VARCHAR, coach VARCHAR, tied VARCHAR, games VARCHAR)", "instruction": "What is the points average when the tied is greater than 8, less than 82 games and the coach of Bryan Mclay † Morris Lallo ‡ Gerry Moore ‡, and greater than 322 goals?", "output": "SELECT AVG(points) FROM table_name_13 WHERE tied > 8 AND games < 82 AND coach = \"bryan mclay † morris lallo ‡ gerry moore ‡\" AND goals_against > 322" }
### INSTRUCTION What is the id, name and IATA code of the airport that had most number of flights? ### INPUT CREATE TABLE airport (id VARCHAR, name VARCHAR, IATA VARCHAR); CREATE TABLE flight (id VARCHAR, airport_id VARCHAR) ### OUTPUT SELECT T1.id, T1.name, T1.IATA FROM airport AS T1 JOIN flight AS T2 ON T1.id = T2.airport_id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE airport (id VARCHAR, name VARCHAR, IATA VARCHAR); CREATE TABLE flight (id VARCHAR, airport_id VARCHAR)", "instruction": "What is the id, name and IATA code of the airport that had most number of flights?", "output": "SELECT T1.id, T1.name, T1.IATA FROM airport AS T1 JOIN flight AS T2 ON T1.id = T2.airport_id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION Which Faces have a Dual Archimedean solid of truncated icosahedron, and Vertices larger than 32? ### INPUT CREATE TABLE table_name_39 (faces INTEGER, dual_archimedean_solid VARCHAR, vertices VARCHAR) ### OUTPUT SELECT AVG(faces) FROM table_name_39 WHERE dual_archimedean_solid = "truncated icosahedron" AND vertices > 32
{ "input": "CREATE TABLE table_name_39 (faces INTEGER, dual_archimedean_solid VARCHAR, vertices VARCHAR)", "instruction": "Which Faces have a Dual Archimedean solid of truncated icosahedron, and Vertices larger than 32?", "output": "SELECT AVG(faces) FROM table_name_39 WHERE dual_archimedean_solid = \"truncated icosahedron\" AND vertices > 32" }
### INSTRUCTION How many people were in attendance in a week over 4 on December 6, 1981? ### INPUT CREATE TABLE table_name_76 (attendance VARCHAR, week VARCHAR, date VARCHAR) ### OUTPUT SELECT COUNT(attendance) FROM table_name_76 WHERE week > 4 AND date = "december 6, 1981"
{ "input": "CREATE TABLE table_name_76 (attendance VARCHAR, week VARCHAR, date VARCHAR)", "instruction": "How many people were in attendance in a week over 4 on December 6, 1981?", "output": "SELECT COUNT(attendance) FROM table_name_76 WHERE week > 4 AND date = \"december 6, 1981\"" }
### INSTRUCTION When +18.1 is the ± yes side 2008 percentage what is the percentage of against? ### INPUT CREATE TABLE table_20683381_3 (against___percentage_ VARCHAR, ±_yes_side_2008___percentage_ VARCHAR) ### OUTPUT SELECT against___percentage_ FROM table_20683381_3 WHERE ±_yes_side_2008___percentage_ = "+18.1"
{ "input": "CREATE TABLE table_20683381_3 (against___percentage_ VARCHAR, ±_yes_side_2008___percentage_ VARCHAR)", "instruction": "When +18.1 is the ± yes side 2008 percentage what is the percentage of against?", "output": "SELECT against___percentage_ FROM table_20683381_3 WHERE ±_yes_side_2008___percentage_ = \"+18.1\"" }
### INSTRUCTION How many number of screenings have an opening film of the journey of vaan nguyen? ### INPUT CREATE TABLE table_18220102_1 (number_of_screening VARCHAR, opening_film VARCHAR) ### OUTPUT SELECT COUNT(number_of_screening) FROM table_18220102_1 WHERE opening_film = "The Journey of Vaan Nguyen"
{ "input": "CREATE TABLE table_18220102_1 (number_of_screening VARCHAR, opening_film VARCHAR)", "instruction": "How many number of screenings have an opening film of the journey of vaan nguyen?", "output": "SELECT COUNT(number_of_screening) FROM table_18220102_1 WHERE opening_film = \"The Journey of Vaan Nguyen\"" }
### INSTRUCTION Can you tell me the average Average that has the Rank larger than 4, and the Player of dean minors? ### INPUT CREATE TABLE table_name_77 (average INTEGER, rank VARCHAR, player VARCHAR) ### OUTPUT SELECT AVG(average) FROM table_name_77 WHERE rank > 4 AND player = "dean minors"
{ "input": "CREATE TABLE table_name_77 (average INTEGER, rank VARCHAR, player VARCHAR)", "instruction": "Can you tell me the average Average that has the Rank larger than 4, and the Player of dean minors?", "output": "SELECT AVG(average) FROM table_name_77 WHERE rank > 4 AND player = \"dean minors\"" }
### INSTRUCTION Which Record has a Round larger than 2, and an Event of bellator 38? ### INPUT CREATE TABLE table_name_62 (record VARCHAR, round VARCHAR, event VARCHAR) ### OUTPUT SELECT record FROM table_name_62 WHERE round > 2 AND event = "bellator 38"
{ "input": "CREATE TABLE table_name_62 (record VARCHAR, round VARCHAR, event VARCHAR)", "instruction": "Which Record has a Round larger than 2, and an Event of bellator 38?", "output": "SELECT record FROM table_name_62 WHERE round > 2 AND event = \"bellator 38\"" }
### INSTRUCTION What is the score for the away team of north melbourne? ### INPUT CREATE TABLE table_name_79 (away_team VARCHAR) ### OUTPUT SELECT away_team AS score FROM table_name_79 WHERE away_team = "north melbourne"
{ "input": "CREATE TABLE table_name_79 (away_team VARCHAR)", "instruction": "What is the score for the away team of north melbourne?", "output": "SELECT away_team AS score FROM table_name_79 WHERE away_team = \"north melbourne\"" }
### INSTRUCTION What is the sum of all domestic passengers with 10.9% change and less than 4,022 tonnes in freight? ### INPUT CREATE TABLE table_name_38 (domestic_passengers INTEGER, _percentage_change_2005_2006 VARCHAR, freight__metric_tonnes_ VARCHAR) ### OUTPUT SELECT SUM(domestic_passengers) FROM table_name_38 WHERE _percentage_change_2005_2006 = "10.9%" AND freight__metric_tonnes_ < 4 OFFSET 022
{ "input": "CREATE TABLE table_name_38 (domestic_passengers INTEGER, _percentage_change_2005_2006 VARCHAR, freight__metric_tonnes_ VARCHAR)", "instruction": "What is the sum of all domestic passengers with 10.9% change and less than 4,022 tonnes in freight?", "output": "SELECT SUM(domestic_passengers) FROM table_name_38 WHERE _percentage_change_2005_2006 = \"10.9%\" AND freight__metric_tonnes_ < 4 OFFSET 022" }
### INSTRUCTION In which round was Gabriel Veiga the opponent? ### INPUT CREATE TABLE table_name_42 (round VARCHAR, opponent VARCHAR) ### OUTPUT SELECT round FROM table_name_42 WHERE opponent = "gabriel veiga"
{ "input": "CREATE TABLE table_name_42 (round VARCHAR, opponent VARCHAR)", "instruction": "In which round was Gabriel Veiga the opponent?", "output": "SELECT round FROM table_name_42 WHERE opponent = \"gabriel veiga\"" }
### INSTRUCTION What is the score of the game with the San Diego Padres as the opponent and a record of 11-23? ### INPUT CREATE TABLE table_name_29 (score VARCHAR, opponent VARCHAR, record VARCHAR) ### OUTPUT SELECT score FROM table_name_29 WHERE opponent = "san diego padres" AND record = "11-23"
{ "input": "CREATE TABLE table_name_29 (score VARCHAR, opponent VARCHAR, record VARCHAR)", "instruction": "What is the score of the game with the San Diego Padres as the opponent and a record of 11-23?", "output": "SELECT score FROM table_name_29 WHERE opponent = \"san diego padres\" AND record = \"11-23\"" }
### INSTRUCTION On what Date had a Score of 5-2 and a Loss of Greinke (1-2)? ### INPUT CREATE TABLE table_name_84 (date VARCHAR, score VARCHAR, loss VARCHAR) ### OUTPUT SELECT date FROM table_name_84 WHERE score = "5-2" AND loss = "greinke (1-2)"
{ "input": "CREATE TABLE table_name_84 (date VARCHAR, score VARCHAR, loss VARCHAR)", "instruction": "On what Date had a Score of 5-2 and a Loss of Greinke (1-2)?", "output": "SELECT date FROM table_name_84 WHERE score = \"5-2\" AND loss = \"greinke (1-2)\"" }
### INSTRUCTION What are the title and maximum price of each film? ### INPUT CREATE TABLE film (title VARCHAR, film_id VARCHAR); CREATE TABLE schedule (price INTEGER, film_id VARCHAR) ### OUTPUT SELECT T2.title, MAX(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id
{ "input": "CREATE TABLE film (title VARCHAR, film_id VARCHAR); CREATE TABLE schedule (price INTEGER, film_id VARCHAR)", "instruction": "What are the title and maximum price of each film?", "output": "SELECT T2.title, MAX(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id" }