text
stringlengths
147
1.06k
source
dict
### INSTRUCTION Who had the lowest interview score from South Dakota with an evening gown less than 8.513? ### INPUT CREATE TABLE table_name_52 (interview INTEGER, state VARCHAR, evening_gown VARCHAR) ### OUTPUT SELECT MIN(interview) FROM table_name_52 WHERE state = "south dakota" AND evening_gown < 8.513
{ "input": "CREATE TABLE table_name_52 (interview INTEGER, state VARCHAR, evening_gown VARCHAR)", "instruction": "Who had the lowest interview score from South Dakota with an evening gown less than 8.513?", "output": "SELECT MIN(interview) FROM table_name_52 WHERE state = \"south dakota\" AND evening_gown < 8.513" }
### INSTRUCTION What was the 2006 population count of the local government area where Coober Pedy is located? ### INPUT CREATE TABLE table_23685890_2 (pop_2006 VARCHAR, major_town VARCHAR) ### OUTPUT SELECT pop_2006 FROM table_23685890_2 WHERE major_town = "Coober Pedy"
{ "input": "CREATE TABLE table_23685890_2 (pop_2006 VARCHAR, major_town VARCHAR)", "instruction": "What was the 2006 population count of the local government area where Coober Pedy is located?", "output": "SELECT pop_2006 FROM table_23685890_2 WHERE major_town = \"Coober Pedy\"" }
### INSTRUCTION Show the result of the submission with the highest score. ### INPUT CREATE TABLE acceptance (Result VARCHAR, Submission_ID VARCHAR); CREATE TABLE submission (Submission_ID VARCHAR, Scores VARCHAR) ### OUTPUT SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1
{ "input": "CREATE TABLE acceptance (Result VARCHAR, Submission_ID VARCHAR); CREATE TABLE submission (Submission_ID VARCHAR, Scores VARCHAR)", "instruction": "Show the result of the submission with the highest score.", "output": "SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1" }
### INSTRUCTION Who were the incumbent(s) in the election featuring john murray (dr) 50.4% george denison (dr) 49.6% with a result of a retired democratic-republican hold? ### INPUT CREATE TABLE table_2668336_19 (incumbent VARCHAR, candidates VARCHAR, result VARCHAR) ### OUTPUT SELECT incumbent FROM table_2668336_19 WHERE candidates = "John Murray (DR) 50.4% George Denison (DR) 49.6%" AND result = "Retired Democratic-Republican hold"
{ "input": "CREATE TABLE table_2668336_19 (incumbent VARCHAR, candidates VARCHAR, result VARCHAR)", "instruction": "Who were the incumbent(s) in the election featuring john murray (dr) 50.4% george denison (dr) 49.6% with a result of a retired democratic-republican hold?", "output": "SELECT incumbent FROM table_2668336_19 WHERE candidates = \"John Murray (DR) 50.4% George Denison (DR) 49.6%\" AND result = \"Retired Democratic-Republican hold\"" }
### INSTRUCTION When is the earliest season at waverley park, a Score of 15.12 (102) – 9.14 (68), and a Margin larger than 34? ### INPUT CREATE TABLE table_name_46 (season INTEGER, margin VARCHAR, venue VARCHAR, score VARCHAR) ### OUTPUT SELECT MIN(season) FROM table_name_46 WHERE venue = "waverley park" AND score = "15.12 (102) – 9.14 (68)" AND margin > 34
{ "input": "CREATE TABLE table_name_46 (season INTEGER, margin VARCHAR, venue VARCHAR, score VARCHAR)", "instruction": "When is the earliest season at waverley park, a Score of 15.12 (102) – 9.14 (68), and a Margin larger than 34?", "output": "SELECT MIN(season) FROM table_name_46 WHERE venue = \"waverley park\" AND score = \"15.12 (102) – 9.14 (68)\" AND margin > 34" }
### INSTRUCTION What is the highest number of nominations by Taoiseach of the composition with an administrative panel greater than 0 and an industrial and commercial panel less than 1? ### INPUT CREATE TABLE table_name_11 (nominated_by_the_taoiseach INTEGER, administrative_panel VARCHAR, industrial_and_commercial_panel VARCHAR) ### OUTPUT SELECT MAX(nominated_by_the_taoiseach) FROM table_name_11 WHERE administrative_panel > 0 AND industrial_and_commercial_panel < 1
{ "input": "CREATE TABLE table_name_11 (nominated_by_the_taoiseach INTEGER, administrative_panel VARCHAR, industrial_and_commercial_panel VARCHAR)", "instruction": "What is the highest number of nominations by Taoiseach of the composition with an administrative panel greater than 0 and an industrial and commercial panel less than 1?", "output": "SELECT MAX(nominated_by_the_taoiseach) FROM table_name_11 WHERE administrative_panel > 0 AND industrial_and_commercial_panel < 1" }
### INSTRUCTION Show all the activity names and the number of faculty involved in each activity. ### INPUT CREATE TABLE Faculty_participates_in (actID VARCHAR); CREATE TABLE Activity (activity_name VARCHAR, actID VARCHAR) ### OUTPUT SELECT T1.activity_name, COUNT(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID
{ "input": "CREATE TABLE Faculty_participates_in (actID VARCHAR); CREATE TABLE Activity (activity_name VARCHAR, actID VARCHAR)", "instruction": "Show all the activity names and the number of faculty involved in each activity.", "output": "SELECT T1.activity_name, COUNT(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID" }
### INSTRUCTION What is Score, when Date is "13 March 1985", and when Away Team is "Millwall"? ### INPUT CREATE TABLE table_name_67 (score VARCHAR, date VARCHAR, away_team VARCHAR) ### OUTPUT SELECT score FROM table_name_67 WHERE date = "13 march 1985" AND away_team = "millwall"
{ "input": "CREATE TABLE table_name_67 (score VARCHAR, date VARCHAR, away_team VARCHAR)", "instruction": "What is Score, when Date is \"13 March 1985\", and when Away Team is \"Millwall\"?", "output": "SELECT score FROM table_name_67 WHERE date = \"13 march 1985\" AND away_team = \"millwall\"" }
### INSTRUCTION What is the sum of value for average finish with poles less than 0? ### INPUT CREATE TABLE table_name_80 (avg_finish INTEGER, poles INTEGER) ### OUTPUT SELECT SUM(avg_finish) FROM table_name_80 WHERE poles < 0
{ "input": "CREATE TABLE table_name_80 (avg_finish INTEGER, poles INTEGER)", "instruction": "What is the sum of value for average finish with poles less than 0?", "output": "SELECT SUM(avg_finish) FROM table_name_80 WHERE poles < 0" }
### INSTRUCTION What is the Fatalities when the tail number was unknown and in Kabul> ### INPUT CREATE TABLE table_name_53 (fatalities VARCHAR, tail_number VARCHAR, location VARCHAR) ### OUTPUT SELECT fatalities FROM table_name_53 WHERE tail_number = "unknown" AND location = "kabul"
{ "input": "CREATE TABLE table_name_53 (fatalities VARCHAR, tail_number VARCHAR, location VARCHAR)", "instruction": "What is the Fatalities when the tail number was unknown and in Kabul>", "output": "SELECT fatalities FROM table_name_53 WHERE tail_number = \"unknown\" AND location = \"kabul\"" }
### INSTRUCTION Find the first names and offices of all instructors who have taught some course and also find the course description. ### INPUT CREATE TABLE professor (prof_office VARCHAR, emp_num VARCHAR); CREATE TABLE course (crs_description VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR, crs_code VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR) ### OUTPUT SELECT T2.emp_fname, T4.prof_office, T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num
{ "input": "CREATE TABLE professor (prof_office VARCHAR, emp_num VARCHAR); CREATE TABLE course (crs_description VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR, crs_code VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)", "instruction": "Find the first names and offices of all instructors who have taught some course and also find the course description.", "output": "SELECT T2.emp_fname, T4.prof_office, T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num" }
### INSTRUCTION What is the result on Saturday when it's रविवार ravivār on Sunday and मंगळवार mangaḷavār on Tuesday? ### INPUT CREATE TABLE table_name_41 (saturday_shani__saturn_ VARCHAR, sunday_surya__the_sun_ VARCHAR, tuesday_mangala__mars_ VARCHAR) ### OUTPUT SELECT saturday_shani__saturn_ FROM table_name_41 WHERE sunday_surya__the_sun_ = "रविवार ravivār" AND tuesday_mangala__mars_ = "मंगळवार mangaḷavār"
{ "input": "CREATE TABLE table_name_41 (saturday_shani__saturn_ VARCHAR, sunday_surya__the_sun_ VARCHAR, tuesday_mangala__mars_ VARCHAR)", "instruction": "What is the result on Saturday when it's रविवार ravivār on Sunday and मंगळवार mangaḷavār on Tuesday?", "output": "SELECT saturday_shani__saturn_ FROM table_name_41 WHERE sunday_surya__the_sun_ = \"रविवार ravivār\" AND tuesday_mangala__mars_ = \"मंगळवार mangaḷavār\"" }
### INSTRUCTION What was the latest number in series that was directed by Skip Sudduth? ### INPUT CREATE TABLE table_27491610_2 (no_in_series INTEGER, directed_by VARCHAR) ### OUTPUT SELECT MAX(no_in_series) FROM table_27491610_2 WHERE directed_by = "Skip Sudduth"
{ "input": "CREATE TABLE table_27491610_2 (no_in_series INTEGER, directed_by VARCHAR)", "instruction": "What was the latest number in series that was directed by Skip Sudduth?", "output": "SELECT MAX(no_in_series) FROM table_27491610_2 WHERE directed_by = \"Skip Sudduth\"" }
### INSTRUCTION What date was the Izmir Cup in which İlhan played against Somdev Devvarman? ### INPUT CREATE TABLE table_name_35 (date VARCHAR, tournament VARCHAR, opponent VARCHAR) ### OUTPUT SELECT date FROM table_name_35 WHERE tournament = "izmir cup" AND opponent = "somdev devvarman"
{ "input": "CREATE TABLE table_name_35 (date VARCHAR, tournament VARCHAR, opponent VARCHAR)", "instruction": "What date was the Izmir Cup in which İlhan played against Somdev Devvarman?", "output": "SELECT date FROM table_name_35 WHERE tournament = \"izmir cup\" AND opponent = \"somdev devvarman\"" }
### INSTRUCTION What model number had a chipset of intel q43? ### INPUT CREATE TABLE table_name_51 (model VARCHAR, chipset VARCHAR) ### OUTPUT SELECT model FROM table_name_51 WHERE chipset = "intel q43"
{ "input": "CREATE TABLE table_name_51 (model VARCHAR, chipset VARCHAR)", "instruction": "What model number had a chipset of intel q43?", "output": "SELECT model FROM table_name_51 WHERE chipset = \"intel q43\"" }
### INSTRUCTION Operation start of 2015 has what gross mw? ### INPUT CREATE TABLE table_name_56 (gross_mw VARCHAR, operation_start VARCHAR) ### OUTPUT SELECT gross_mw FROM table_name_56 WHERE operation_start = "2015"
{ "input": "CREATE TABLE table_name_56 (gross_mw VARCHAR, operation_start VARCHAR)", "instruction": "Operation start of 2015 has what gross mw?", "output": "SELECT gross_mw FROM table_name_56 WHERE operation_start = \"2015\"" }
### INSTRUCTION What is the total number of all bills co-sponsored associated with all amendments sponsored under 15, all bills sponsored of 6, and 0 amendments cosponsored? ### INPUT CREATE TABLE table_name_80 (all_bills_cosponsored VARCHAR, all_amendments_cosponsored VARCHAR, all_amendments_sponsored VARCHAR, all_bills_sponsored VARCHAR) ### OUTPUT SELECT COUNT(all_bills_cosponsored) FROM table_name_80 WHERE all_amendments_sponsored < 15 AND all_bills_sponsored = 6 AND all_amendments_cosponsored < 0
{ "input": "CREATE TABLE table_name_80 (all_bills_cosponsored VARCHAR, all_amendments_cosponsored VARCHAR, all_amendments_sponsored VARCHAR, all_bills_sponsored VARCHAR)", "instruction": "What is the total number of all bills co-sponsored associated with all amendments sponsored under 15, all bills sponsored of 6, and 0 amendments cosponsored?", "output": "SELECT COUNT(all_bills_cosponsored) FROM table_name_80 WHERE all_amendments_sponsored < 15 AND all_bills_sponsored = 6 AND all_amendments_cosponsored < 0" }
### INSTRUCTION Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015. ### INPUT CREATE TABLE stadium (name VARCHAR, location VARCHAR, stadium_id VARCHAR); CREATE TABLE concert (stadium_id VARCHAR, Year VARCHAR) ### OUTPUT SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015
{ "input": "CREATE TABLE stadium (name VARCHAR, location VARCHAR, stadium_id VARCHAR); CREATE TABLE concert (stadium_id VARCHAR, Year VARCHAR)", "instruction": "Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.", "output": "SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015" }
### INSTRUCTION Crawley Town as the home team has what as the tie no? ### INPUT CREATE TABLE table_name_77 (tie_no VARCHAR, home_team VARCHAR) ### OUTPUT SELECT tie_no FROM table_name_77 WHERE home_team = "crawley town"
{ "input": "CREATE TABLE table_name_77 (tie_no VARCHAR, home_team VARCHAR)", "instruction": "Crawley Town as the home team has what as the tie no?", "output": "SELECT tie_no FROM table_name_77 WHERE home_team = \"crawley town\"" }
### INSTRUCTION what's the total number of south australia with victoria value of 2173 ### INPUT CREATE TABLE table_1057262_2 (south_australia VARCHAR, victoria VARCHAR) ### OUTPUT SELECT COUNT(south_australia) FROM table_1057262_2 WHERE victoria = 2173
{ "input": "CREATE TABLE table_1057262_2 (south_australia VARCHAR, victoria VARCHAR)", "instruction": "what's the total number of south australia with victoria value of 2173", "output": "SELECT COUNT(south_australia) FROM table_1057262_2 WHERE victoria = 2173" }
### INSTRUCTION Which Division that has a Reg Season of 1st, western, and Playoffs of champions, and a Year smaller than 2013? ### INPUT CREATE TABLE table_name_36 (division INTEGER, year VARCHAR, reg_season VARCHAR, playoffs VARCHAR) ### OUTPUT SELECT AVG(division) FROM table_name_36 WHERE reg_season = "1st, western" AND playoffs = "champions" AND year < 2013
{ "input": "CREATE TABLE table_name_36 (division INTEGER, year VARCHAR, reg_season VARCHAR, playoffs VARCHAR)", "instruction": "Which Division that has a Reg Season of 1st, western, and Playoffs of champions, and a Year smaller than 2013?", "output": "SELECT AVG(division) FROM table_name_36 WHERE reg_season = \"1st, western\" AND playoffs = \"champions\" AND year < 2013" }
### INSTRUCTION What is the lowest rank with less than 1 gold, 0 silver, 1 bronze, and a total less than 1? ### INPUT CREATE TABLE table_name_75 (rank INTEGER, total VARCHAR, bronze VARCHAR, gold VARCHAR, silver VARCHAR) ### OUTPUT SELECT MIN(rank) FROM table_name_75 WHERE gold < 1 AND silver = 0 AND bronze = 1 AND total < 1
{ "input": "CREATE TABLE table_name_75 (rank INTEGER, total VARCHAR, bronze VARCHAR, gold VARCHAR, silver VARCHAR)", "instruction": "What is the lowest rank with less than 1 gold, 0 silver, 1 bronze, and a total less than 1?", "output": "SELECT MIN(rank) FROM table_name_75 WHERE gold < 1 AND silver = 0 AND bronze = 1 AND total < 1" }
### INSTRUCTION Find the number of routes from the United States to Canada. ### INPUT CREATE TABLE airports (dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR); CREATE TABLE routes (dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR) ### OUTPUT SELECT COUNT(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'Canada') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States')
{ "input": "CREATE TABLE airports (dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR); CREATE TABLE routes (dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR)", "instruction": "Find the number of routes from the United States to Canada.", "output": "SELECT COUNT(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'Canada') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States')" }
### INSTRUCTION Which Water (sqmi) has a Pop (2010) of 359, and a Longitude smaller than -97.176811? ### INPUT CREATE TABLE table_name_91 (water__sqmi_ INTEGER, pop__2010_ VARCHAR, longitude VARCHAR) ### OUTPUT SELECT MAX(water__sqmi_) FROM table_name_91 WHERE pop__2010_ = 359 AND longitude < -97.176811
{ "input": "CREATE TABLE table_name_91 (water__sqmi_ INTEGER, pop__2010_ VARCHAR, longitude VARCHAR)", "instruction": "Which Water (sqmi) has a Pop (2010) of 359, and a Longitude smaller than -97.176811?", "output": "SELECT MAX(water__sqmi_) FROM table_name_91 WHERE pop__2010_ = 359 AND longitude < -97.176811" }
### INSTRUCTION What is the country that has a place of T6 that Eduardo Romero plays for? ### INPUT CREATE TABLE table_name_73 (country VARCHAR, place VARCHAR, player VARCHAR) ### OUTPUT SELECT country FROM table_name_73 WHERE place = "t6" AND player = "eduardo romero"
{ "input": "CREATE TABLE table_name_73 (country VARCHAR, place VARCHAR, player VARCHAR)", "instruction": "What is the country that has a place of T6 that Eduardo Romero plays for?", "output": "SELECT country FROM table_name_73 WHERE place = \"t6\" AND player = \"eduardo romero\"" }
### INSTRUCTION For any rating where the name of reviewer is the same as the director of the movie, return the reviewer name, movie title, and number of stars. ### INPUT CREATE TABLE Rating (stars VARCHAR, mID VARCHAR, rID VARCHAR); CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR, director VARCHAR) ### OUTPUT SELECT DISTINCT T3.name, T2.title, T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.director = T3.name
{ "input": "CREATE TABLE Rating (stars VARCHAR, mID VARCHAR, rID VARCHAR); CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR, director VARCHAR)", "instruction": "For any rating where the name of reviewer is the same as the director of the movie, return the reviewer name, movie title, and number of stars.", "output": "SELECT DISTINCT T3.name, T2.title, T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.director = T3.name" }
### INSTRUCTION What is the name of the high schooler who has the greatest number of likes? ### INPUT CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR) ### OUTPUT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR)", "instruction": "What is the name of the high schooler who has the greatest number of likes?", "output": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION After 1989, what was the score of the Grand Prix Passing Shot where the Runners-up were Jeff Tarango? ### INPUT CREATE TABLE table_name_65 (score VARCHAR, runners_up VARCHAR, year VARCHAR, tournament_name VARCHAR) ### OUTPUT SELECT score FROM table_name_65 WHERE year > 1989 AND tournament_name = "grand prix passing shot" AND runners_up = "jeff tarango"
{ "input": "CREATE TABLE table_name_65 (score VARCHAR, runners_up VARCHAR, year VARCHAR, tournament_name VARCHAR)", "instruction": "After 1989, what was the score of the Grand Prix Passing Shot where the Runners-up were Jeff Tarango?", "output": "SELECT score FROM table_name_65 WHERE year > 1989 AND tournament_name = \"grand prix passing shot\" AND runners_up = \"jeff tarango\"" }
### INSTRUCTION Which player is the centre for the Detroit Red Wings? ### INPUT CREATE TABLE table_2897457_4 (player VARCHAR, position VARCHAR, nhl_team VARCHAR) ### OUTPUT SELECT player FROM table_2897457_4 WHERE position = "Centre" AND nhl_team = "Detroit Red Wings"
{ "input": "CREATE TABLE table_2897457_4 (player VARCHAR, position VARCHAR, nhl_team VARCHAR)", "instruction": "Which player is the centre for the Detroit Red Wings?", "output": "SELECT player FROM table_2897457_4 WHERE position = \"Centre\" AND nhl_team = \"Detroit Red Wings\"" }
### INSTRUCTION What was the position of the Slavia team in 1998? ### INPUT CREATE TABLE table_name_10 (position_in_1998 VARCHAR, team VARCHAR) ### OUTPUT SELECT position_in_1998 FROM table_name_10 WHERE team = "slavia"
{ "input": "CREATE TABLE table_name_10 (position_in_1998 VARCHAR, team VARCHAR)", "instruction": "What was the position of the Slavia team in 1998?", "output": "SELECT position_in_1998 FROM table_name_10 WHERE team = \"slavia\"" }
### INSTRUCTION Who is the writer of Wallace & Gromit: A Close Shave, a short film from before 2008? ### INPUT CREATE TABLE table_name_15 (writer VARCHAR, title VARCHAR, year VARCHAR, notes VARCHAR) ### OUTPUT SELECT writer FROM table_name_15 WHERE year < 2008 AND notes = "short film" AND title = "wallace & gromit: a close shave"
{ "input": "CREATE TABLE table_name_15 (writer VARCHAR, title VARCHAR, year VARCHAR, notes VARCHAR)", "instruction": "Who is the writer of Wallace & Gromit: A Close Shave, a short film from before 2008?", "output": "SELECT writer FROM table_name_15 WHERE year < 2008 AND notes = \"short film\" AND title = \"wallace & gromit: a close shave\"" }
### INSTRUCTION What is the low attendance was based in phoenix with a Record of 1–0–0? ### INPUT CREATE TABLE table_name_38 (attendance INTEGER, home VARCHAR, record VARCHAR) ### OUTPUT SELECT MIN(attendance) FROM table_name_38 WHERE home = "phoenix" AND record = "1–0–0"
{ "input": "CREATE TABLE table_name_38 (attendance INTEGER, home VARCHAR, record VARCHAR)", "instruction": "What is the low attendance was based in phoenix with a Record of 1–0–0?", "output": "SELECT MIN(attendance) FROM table_name_38 WHERE home = \"phoenix\" AND record = \"1–0–0\"" }
### INSTRUCTION What is the frequency for I/O bus of DMI, voltage of 0.725–1.4v and part cn80617004458ab? ### INPUT CREATE TABLE table_name_4 (frequency VARCHAR, part_number_s_ VARCHAR, i_o_bus VARCHAR, voltage VARCHAR) ### OUTPUT SELECT frequency FROM table_name_4 WHERE i_o_bus = "dmi" AND voltage = "0.725–1.4v" AND part_number_s_ = "cn80617004458ab"
{ "input": "CREATE TABLE table_name_4 (frequency VARCHAR, part_number_s_ VARCHAR, i_o_bus VARCHAR, voltage VARCHAR)", "instruction": "What is the frequency for I/O bus of DMI, voltage of 0.725–1.4v and part cn80617004458ab?", "output": "SELECT frequency FROM table_name_4 WHERE i_o_bus = \"dmi\" AND voltage = \"0.725–1.4v\" AND part_number_s_ = \"cn80617004458ab\"" }
### INSTRUCTION What are the official languages of the countries of players from Maryland or Duke college? ### INPUT CREATE TABLE country (Official_native_language VARCHAR, Country_id VARCHAR); CREATE TABLE match_season (Country VARCHAR, College VARCHAR) ### OUTPUT SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.College = "Maryland" OR T2.College = "Duke"
{ "input": "CREATE TABLE country (Official_native_language VARCHAR, Country_id VARCHAR); CREATE TABLE match_season (Country VARCHAR, College VARCHAR)", "instruction": "What are the official languages of the countries of players from Maryland or Duke college?", "output": "SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.College = \"Maryland\" OR T2.College = \"Duke\"" }
### INSTRUCTION On what date was the game more than 5? ### INPUT CREATE TABLE table_name_23 (date VARCHAR, game INTEGER) ### OUTPUT SELECT date FROM table_name_23 WHERE game > 5
{ "input": "CREATE TABLE table_name_23 (date VARCHAR, game INTEGER)", "instruction": "On what date was the game more than 5?", "output": "SELECT date FROM table_name_23 WHERE game > 5" }
### INSTRUCTION display the department name and number of employees in each of the department. ### INPUT CREATE TABLE employees (department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR) ### OUTPUT SELECT department_name, COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name
{ "input": "CREATE TABLE employees (department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR)", "instruction": "display the department name and number of employees in each of the department.", "output": "SELECT department_name, COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name" }
### INSTRUCTION Name the player for 1945 for player ### INPUT CREATE TABLE table_19611329_1 (year_inducted VARCHAR, inducted_as VARCHAR) ### OUTPUT SELECT "player" FROM table_19611329_1 WHERE year_inducted = 1945 AND inducted_as = "player"
{ "input": "CREATE TABLE table_19611329_1 (year_inducted VARCHAR, inducted_as VARCHAR)", "instruction": "Name the player for 1945 for player", "output": "SELECT \"player\" FROM table_19611329_1 WHERE year_inducted = 1945 AND inducted_as = \"player\"" }
### INSTRUCTION Which GNU/Linux had no haiku and a client of airdc++? ### INPUT CREATE TABLE table_name_60 (gnu_linux VARCHAR, haiku VARCHAR, client VARCHAR) ### OUTPUT SELECT gnu_linux FROM table_name_60 WHERE haiku = "no" AND client = "airdc++"
{ "input": "CREATE TABLE table_name_60 (gnu_linux VARCHAR, haiku VARCHAR, client VARCHAR)", "instruction": "Which GNU/Linux had no haiku and a client of airdc++?", "output": "SELECT gnu_linux FROM table_name_60 WHERE haiku = \"no\" AND client = \"airdc++\"" }
### INSTRUCTION What is the lowest apps for rank 3 and 0% wins? ### INPUT CREATE TABLE table_name_33 (apps INTEGER, rank VARCHAR, win__percentage VARCHAR) ### OUTPUT SELECT MIN(apps) FROM table_name_33 WHERE rank = 3 AND win__percentage < 0
{ "input": "CREATE TABLE table_name_33 (apps INTEGER, rank VARCHAR, win__percentage VARCHAR)", "instruction": "What is the lowest apps for rank 3 and 0% wins?", "output": "SELECT MIN(apps) FROM table_name_33 WHERE rank = 3 AND win__percentage < 0" }
### INSTRUCTION When troy is the regular season winner what is the conference tournament? ### INPUT CREATE TABLE table_24160890_3 (conference VARCHAR, regular_season_winner VARCHAR) ### OUTPUT SELECT conference AS Tournament FROM table_24160890_3 WHERE regular_season_winner = "Troy"
{ "input": "CREATE TABLE table_24160890_3 (conference VARCHAR, regular_season_winner VARCHAR)", "instruction": "When troy is the regular season winner what is the conference tournament?", "output": "SELECT conference AS Tournament FROM table_24160890_3 WHERE regular_season_winner = \"Troy\"" }
### INSTRUCTION What are all the details of the organisations described as 'Sponsor'? Sort the result in an ascending order. ### INPUT CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Organisations (organisation_type VARCHAR) ### OUTPUT SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details
{ "input": "CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Organisations (organisation_type VARCHAR)", "instruction": "What are all the details of the organisations described as 'Sponsor'? Sort the result in an ascending order.", "output": "SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details" }
### INSTRUCTION How many degrees does the engineering department offer? ### INPUT CREATE TABLE Degree_Programs (department_id VARCHAR); CREATE TABLE Departments (department_id VARCHAR, department_name VARCHAR) ### OUTPUT SELECT COUNT(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'
{ "input": "CREATE TABLE Degree_Programs (department_id VARCHAR); CREATE TABLE Departments (department_id VARCHAR, department_name VARCHAR)", "instruction": "How many degrees does the engineering department offer?", "output": "SELECT COUNT(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'" }
### INSTRUCTION Which player for a team with an 18-20 record had the most rebounds in a game? ### INPUT CREATE TABLE table_name_38 (high_rebounds VARCHAR, record VARCHAR) ### OUTPUT SELECT high_rebounds FROM table_name_38 WHERE record = "18-20"
{ "input": "CREATE TABLE table_name_38 (high_rebounds VARCHAR, record VARCHAR)", "instruction": "Which player for a team with an 18-20 record had the most rebounds in a game?", "output": "SELECT high_rebounds FROM table_name_38 WHERE record = \"18-20\"" }
### INSTRUCTION When did indiana play? ### INPUT CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR) ### OUTPUT SELECT date FROM table_name_8 WHERE opponent = "indiana"
{ "input": "CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR)", "instruction": "When did indiana play?", "output": "SELECT date FROM table_name_8 WHERE opponent = \"indiana\"" }
### INSTRUCTION What is the directed/undirected for mfinder, which has an induced/non-induced of induced and an exact counting method? ### INPUT CREATE TABLE table_name_13 (directed___undirected VARCHAR, name VARCHAR, induced___non_induced VARCHAR, counting_method VARCHAR) ### OUTPUT SELECT directed___undirected FROM table_name_13 WHERE induced___non_induced = "induced" AND counting_method = "exact" AND name = "mfinder"
{ "input": "CREATE TABLE table_name_13 (directed___undirected VARCHAR, name VARCHAR, induced___non_induced VARCHAR, counting_method VARCHAR)", "instruction": "What is the directed/undirected for mfinder, which has an induced/non-induced of induced and an exact counting method?", "output": "SELECT directed___undirected FROM table_name_13 WHERE induced___non_induced = \"induced\" AND counting_method = \"exact\" AND name = \"mfinder\"" }
### INSTRUCTION Which Frequency has a Branding of country 600? ### INPUT CREATE TABLE table_name_26 (frequency VARCHAR, branding VARCHAR) ### OUTPUT SELECT frequency FROM table_name_26 WHERE branding = "country 600"
{ "input": "CREATE TABLE table_name_26 (frequency VARCHAR, branding VARCHAR)", "instruction": "Which Frequency has a Branding of country 600?", "output": "SELECT frequency FROM table_name_26 WHERE branding = \"country 600\"" }
### INSTRUCTION What is Race, when Winning Team is Chip Ganassi Racing, when Pole Position is Ryan Briscoe, and when Most Laps Led is Scott Dixon? ### INPUT CREATE TABLE table_name_91 (race VARCHAR, most_laps_led VARCHAR, winning_team VARCHAR, pole_position VARCHAR) ### OUTPUT SELECT race FROM table_name_91 WHERE winning_team = "chip ganassi racing" AND pole_position = "ryan briscoe" AND most_laps_led = "scott dixon"
{ "input": "CREATE TABLE table_name_91 (race VARCHAR, most_laps_led VARCHAR, winning_team VARCHAR, pole_position VARCHAR)", "instruction": "What is Race, when Winning Team is Chip Ganassi Racing, when Pole Position is Ryan Briscoe, and when Most Laps Led is Scott Dixon?", "output": "SELECT race FROM table_name_91 WHERE winning_team = \"chip ganassi racing\" AND pole_position = \"ryan briscoe\" AND most_laps_led = \"scott dixon\"" }
### INSTRUCTION I want the prothrombin time with a partial thromboplastin time of prolonged and unaffected bleeding time and factor xii deficiency for condition of factor ### INPUT CREATE TABLE table_name_49 (prothrombin_time VARCHAR, condition VARCHAR, partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR) ### OUTPUT SELECT prothrombin_time FROM table_name_49 WHERE partial_thromboplastin_time = "prolonged" AND bleeding_time = "unaffected" AND condition = "factor xii deficiency"
{ "input": "CREATE TABLE table_name_49 (prothrombin_time VARCHAR, condition VARCHAR, partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR)", "instruction": "I want the prothrombin time with a partial thromboplastin time of prolonged and unaffected bleeding time and factor xii deficiency for condition of factor", "output": "SELECT prothrombin_time FROM table_name_49 WHERE partial_thromboplastin_time = \"prolonged\" AND bleeding_time = \"unaffected\" AND condition = \"factor xii deficiency\"" }
### INSTRUCTION What are the details and opening hours of the museums? ### INPUT CREATE TABLE TOURIST_ATTRACTIONS (Opening_Hours VARCHAR, Tourist_Attraction_ID VARCHAR); CREATE TABLE MUSEUMS (Museum_Details VARCHAR, Museum_ID VARCHAR) ### OUTPUT SELECT T1.Museum_Details, T2.Opening_Hours FROM MUSEUMS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Museum_ID = T2.Tourist_Attraction_ID
{ "input": "CREATE TABLE TOURIST_ATTRACTIONS (Opening_Hours VARCHAR, Tourist_Attraction_ID VARCHAR); CREATE TABLE MUSEUMS (Museum_Details VARCHAR, Museum_ID VARCHAR)", "instruction": "What are the details and opening hours of the museums?", "output": "SELECT T1.Museum_Details, T2.Opening_Hours FROM MUSEUMS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Museum_ID = T2.Tourist_Attraction_ID" }
### INSTRUCTION What is the power output (kw) of builder zhuzhou, model hxd1d, with a total production of 2? ### INPUT CREATE TABLE table_name_79 (power_output__kw_ VARCHAR, model VARCHAR, total_production VARCHAR, builder__family_ VARCHAR) ### OUTPUT SELECT power_output__kw_ FROM table_name_79 WHERE total_production = "2" AND builder__family_ = "zhuzhou" AND model = "hxd1d"
{ "input": "CREATE TABLE table_name_79 (power_output__kw_ VARCHAR, model VARCHAR, total_production VARCHAR, builder__family_ VARCHAR)", "instruction": "What is the power output (kw) of builder zhuzhou, model hxd1d, with a total production of 2?", "output": "SELECT power_output__kw_ FROM table_name_79 WHERE total_production = \"2\" AND builder__family_ = \"zhuzhou\" AND model = \"hxd1d\"" }
### INSTRUCTION How many appointed archbishops were ordained as priests on December 20, 1959 ### INPUT CREATE TABLE table_1656555_1 (Appointed VARCHAR, ordained_priest VARCHAR) ### OUTPUT SELECT COUNT(Appointed) AS archbishop FROM table_1656555_1 WHERE ordained_priest = "December 20, 1959"
{ "input": "CREATE TABLE table_1656555_1 (Appointed VARCHAR, ordained_priest VARCHAR)", "instruction": "How many appointed archbishops were ordained as priests on December 20, 1959", "output": "SELECT COUNT(Appointed) AS archbishop FROM table_1656555_1 WHERE ordained_priest = \"December 20, 1959\"" }
### INSTRUCTION what are all the date withdrawn for twin screw ro-ro motorship ### INPUT CREATE TABLE table_11662133_3 (date_withdrawn VARCHAR, type_of_ship VARCHAR) ### OUTPUT SELECT date_withdrawn FROM table_11662133_3 WHERE type_of_ship = "Twin Screw Ro-Ro Motorship"
{ "input": "CREATE TABLE table_11662133_3 (date_withdrawn VARCHAR, type_of_ship VARCHAR)", "instruction": "what are all the date withdrawn for twin screw ro-ro motorship", "output": "SELECT date_withdrawn FROM table_11662133_3 WHERE type_of_ship = \"Twin Screw Ro-Ro Motorship\"" }
### INSTRUCTION Who was the contestant eliminated on episode 8 of RW: Key West season? ### INPUT CREATE TABLE table_18974269_1 (player VARCHAR, original_season VARCHAR, eliminated VARCHAR) ### OUTPUT SELECT player FROM table_18974269_1 WHERE original_season = "RW: Key West" AND eliminated = "Episode 8"
{ "input": "CREATE TABLE table_18974269_1 (player VARCHAR, original_season VARCHAR, eliminated VARCHAR)", "instruction": "Who was the contestant eliminated on episode 8 of RW: Key West season?", "output": "SELECT player FROM table_18974269_1 WHERE original_season = \"RW: Key West\" AND eliminated = \"Episode 8\"" }
### INSTRUCTION the sum of Events that has a Rank larger than 5 is 3 ### INPUT CREATE TABLE table_name_97 (events INTEGER, rank INTEGER) ### OUTPUT SELECT SUM(events) FROM table_name_97 WHERE rank > 5
{ "input": "CREATE TABLE table_name_97 (events INTEGER, rank INTEGER)", "instruction": "the sum of Events that has a Rank larger than 5 is 3", "output": "SELECT SUM(events) FROM table_name_97 WHERE rank > 5" }
### INSTRUCTION What is the UCI rating of the race in Italy with the progetto ciclismo alplast team? ### INPUT CREATE TABLE table_name_81 (uci_rating VARCHAR, location VARCHAR, team VARCHAR) ### OUTPUT SELECT uci_rating FROM table_name_81 WHERE location = "italy" AND team = "progetto ciclismo alplast"
{ "input": "CREATE TABLE table_name_81 (uci_rating VARCHAR, location VARCHAR, team VARCHAR)", "instruction": "What is the UCI rating of the race in Italy with the progetto ciclismo alplast team?", "output": "SELECT uci_rating FROM table_name_81 WHERE location = \"italy\" AND team = \"progetto ciclismo alplast\"" }
### INSTRUCTION what are all the report where winning constructor is williams - renault and grand prix is south african grand prix ### INPUT CREATE TABLE table_1137704_2 (report VARCHAR, winning_constructor VARCHAR, grand_prix VARCHAR) ### OUTPUT SELECT report FROM table_1137704_2 WHERE winning_constructor = "Williams - Renault" AND grand_prix = "South African grand_prix"
{ "input": "CREATE TABLE table_1137704_2 (report VARCHAR, winning_constructor VARCHAR, grand_prix VARCHAR)", "instruction": "what are all the report where winning constructor is williams - renault and grand prix is south african grand prix", "output": "SELECT report FROM table_1137704_2 WHERE winning_constructor = \"Williams - Renault\" AND grand_prix = \"South African grand_prix\"" }
### INSTRUCTION Show the pair of male and female names in all weddings after year 2014 ### INPUT CREATE TABLE wedding (male_id VARCHAR, female_id VARCHAR, year INTEGER); CREATE TABLE people (name VARCHAR, people_id VARCHAR) ### OUTPUT SELECT T2.name, T3.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id WHERE T1.year > 2014
{ "input": "CREATE TABLE wedding (male_id VARCHAR, female_id VARCHAR, year INTEGER); CREATE TABLE people (name VARCHAR, people_id VARCHAR)", "instruction": "Show the pair of male and female names in all weddings after year 2014", "output": "SELECT T2.name, T3.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id WHERE T1.year > 2014" }
### INSTRUCTION How many millions of $ were spent in Iceland in 1948/49? ### INPUT ### OUTPUT SELECT MAX(*) AS millions FROM countries WHERE country = "Iceland" AND year in (1948, 1949)
{ "input": "", "instruction": "How many millions of $ were spent in Iceland in 1948/49?", "output": "SELECT MAX(*) AS millions FROM countries WHERE country = \"Iceland\" AND year in (1948, 1949)" }
### INSTRUCTION What is the Opponents from the final with a Tournament that is puebla? ### INPUT CREATE TABLE table_name_44 (opponents_in_the_final VARCHAR, tournament VARCHAR) ### OUTPUT SELECT opponents_in_the_final FROM table_name_44 WHERE tournament = "puebla"
{ "input": "CREATE TABLE table_name_44 (opponents_in_the_final VARCHAR, tournament VARCHAR)", "instruction": "What is the Opponents from the final with a Tournament that is puebla?", "output": "SELECT opponents_in_the_final FROM table_name_44 WHERE tournament = \"puebla\"" }
### INSTRUCTION What was the playoff result for theteam in the apsl in 1992? ### INPUT CREATE TABLE table_12002388_1 (playoffs VARCHAR, league VARCHAR, year VARCHAR) ### OUTPUT SELECT playoffs FROM table_12002388_1 WHERE league = "APSL" AND year = 1992
{ "input": "CREATE TABLE table_12002388_1 (playoffs VARCHAR, league VARCHAR, year VARCHAR)", "instruction": "What was the playoff result for theteam in the apsl in 1992?", "output": "SELECT playoffs FROM table_12002388_1 WHERE league = \"APSL\" AND year = 1992" }
### INSTRUCTION What is the greatest point of an Entrant of connaught engineering alta straight-4 engine before 1957 ### INPUT CREATE TABLE table_name_9 (points INTEGER, year VARCHAR, engine VARCHAR, entrant VARCHAR) ### OUTPUT SELECT MAX(points) FROM table_name_9 WHERE engine = "alta straight-4" AND entrant = "connaught engineering" AND year < 1957
{ "input": "CREATE TABLE table_name_9 (points INTEGER, year VARCHAR, engine VARCHAR, entrant VARCHAR)", "instruction": "What is the greatest point of an Entrant of connaught engineering alta straight-4 engine before 1957", "output": "SELECT MAX(points) FROM table_name_9 WHERE engine = \"alta straight-4\" AND entrant = \"connaught engineering\" AND year < 1957" }
### INSTRUCTION How many distance places have brisbane at $3.80? ### INPUT CREATE TABLE table_2923917_4 (distance VARCHAR, brisbane VARCHAR) ### OUTPUT SELECT COUNT(distance) FROM table_2923917_4 WHERE brisbane = "$3.80"
{ "input": "CREATE TABLE table_2923917_4 (distance VARCHAR, brisbane VARCHAR)", "instruction": "How many distance places have brisbane at $3.80?", "output": "SELECT COUNT(distance) FROM table_2923917_4 WHERE brisbane = \"$3.80\"" }
### INSTRUCTION What are the scores when total score/week is 41/60 and co-contestant is Shalini Chandran? ### INPUT CREATE TABLE table_name_10 (scores_by_each_individual_judge VARCHAR, total_score_week VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR) ### OUTPUT SELECT scores_by_each_individual_judge FROM table_name_10 WHERE total_score_week = "41/60" AND co_contestant__yaar_vs_pyaar_ = "shalini chandran"
{ "input": "CREATE TABLE table_name_10 (scores_by_each_individual_judge VARCHAR, total_score_week VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)", "instruction": "What are the scores when total score/week is 41/60 and co-contestant is Shalini Chandran?", "output": "SELECT scores_by_each_individual_judge FROM table_name_10 WHERE total_score_week = \"41/60\" AND co_contestant__yaar_vs_pyaar_ = \"shalini chandran\"" }
### INSTRUCTION For the Crew with Year 9 2nd Quads of STM, Year 9 1st Quads of SOM, and a Year 8 3rd Quads of STA what was the Year 8 1st Quads? ### INPUT CREATE TABLE table_name_5 (year_8_1st_quad VARCHAR, year_8_3rd_quad VARCHAR, year_9_2nd_quad VARCHAR, year_9_1st_quad VARCHAR) ### OUTPUT SELECT year_8_1st_quad FROM table_name_5 WHERE year_9_2nd_quad = "stm" AND year_9_1st_quad = "som" AND year_8_3rd_quad = "sta"
{ "input": "CREATE TABLE table_name_5 (year_8_1st_quad VARCHAR, year_8_3rd_quad VARCHAR, year_9_2nd_quad VARCHAR, year_9_1st_quad VARCHAR)", "instruction": "For the Crew with Year 9 2nd Quads of STM, Year 9 1st Quads of SOM, and a Year 8 3rd Quads of STA what was the Year 8 1st Quads?", "output": "SELECT year_8_1st_quad FROM table_name_5 WHERE year_9_2nd_quad = \"stm\" AND year_9_1st_quad = \"som\" AND year_8_3rd_quad = \"sta\"" }
### INSTRUCTION How many countries speak both English and Dutch? ### INPUT CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR) ### OUTPUT SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "Dutch")
{ "input": "CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)", "instruction": "How many countries speak both English and Dutch?", "output": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\")" }
### INSTRUCTION What's the highest Ends Lost with a shot % greater than 77, 11 blank ends, 7 stolen ends, and more than 44 ends one? ### INPUT CREATE TABLE table_name_2 (ends_lost INTEGER, ends_won VARCHAR, stolen_ends VARCHAR, shot_pct VARCHAR, blank_ends VARCHAR) ### OUTPUT SELECT MAX(ends_lost) FROM table_name_2 WHERE shot_pct > 77 AND blank_ends = 11 AND stolen_ends = 7 AND ends_won > 44
{ "input": "CREATE TABLE table_name_2 (ends_lost INTEGER, ends_won VARCHAR, stolen_ends VARCHAR, shot_pct VARCHAR, blank_ends VARCHAR)", "instruction": "What's the highest Ends Lost with a shot % greater than 77, 11 blank ends, 7 stolen ends, and more than 44 ends one?", "output": "SELECT MAX(ends_lost) FROM table_name_2 WHERE shot_pct > 77 AND blank_ends = 11 AND stolen_ends = 7 AND ends_won > 44" }
### INSTRUCTION Are there any Teams after 1997? ### INPUT CREATE TABLE table_name_21 (team VARCHAR, year INTEGER) ### OUTPUT SELECT team FROM table_name_21 WHERE year > 1997
{ "input": "CREATE TABLE table_name_21 (team VARCHAR, year INTEGER)", "instruction": "Are there any Teams after 1997?", "output": "SELECT team FROM table_name_21 WHERE year > 1997" }
### INSTRUCTION What is the result/margin when fox sports 1 broadcast the game played at mcg? ### INPUT CREATE TABLE table_24919137_2 (result_margin VARCHAR, broadcaster VARCHAR, venue VARCHAR) ### OUTPUT SELECT result_margin FROM table_24919137_2 WHERE broadcaster = "Fox Sports 1" AND venue = "MCG"
{ "input": "CREATE TABLE table_24919137_2 (result_margin VARCHAR, broadcaster VARCHAR, venue VARCHAR)", "instruction": "What is the result/margin when fox sports 1 broadcast the game played at mcg?", "output": "SELECT result_margin FROM table_24919137_2 WHERE broadcaster = \"Fox Sports 1\" AND venue = \"MCG\"" }
### INSTRUCTION What is the Average Qualifying Goals for Jack Froggatt where the Final Goals is greater than 0? ### INPUT CREATE TABLE table_name_3 (qualifying_goals INTEGER, player VARCHAR, finals_goals VARCHAR) ### OUTPUT SELECT AVG(qualifying_goals) FROM table_name_3 WHERE player = "jack froggatt" AND finals_goals > 0
{ "input": "CREATE TABLE table_name_3 (qualifying_goals INTEGER, player VARCHAR, finals_goals VARCHAR)", "instruction": "What is the Average Qualifying Goals for Jack Froggatt where the Final Goals is greater than 0?", "output": "SELECT AVG(qualifying_goals) FROM table_name_3 WHERE player = \"jack froggatt\" AND finals_goals > 0" }
### INSTRUCTION What was the press like in Paris for Roger Francois, and Carlo Galimberti? ### INPUT CREATE TABLE table_name_67 (paris___fra__ VARCHAR, roger_françois VARCHAR) ### OUTPUT SELECT paris___fra__ FROM table_name_67 WHERE "press" = "press" AND roger_françois = "carlo galimberti"
{ "input": "CREATE TABLE table_name_67 (paris___fra__ VARCHAR, roger_françois VARCHAR)", "instruction": "What was the press like in Paris for Roger Francois, and Carlo Galimberti?", "output": "SELECT paris___fra__ FROM table_name_67 WHERE \"press\" = \"press\" AND roger_françois = \"carlo galimberti\"" }
### INSTRUCTION List every individual's first name, middle name and last name in alphabetical order by last name. ### INPUT CREATE TABLE individuals (individual_first_name VARCHAR, individual_middle_name VARCHAR, individual_last_name VARCHAR) ### OUTPUT SELECT individual_first_name, individual_middle_name, individual_last_name FROM individuals ORDER BY individual_last_name
{ "input": "CREATE TABLE individuals (individual_first_name VARCHAR, individual_middle_name VARCHAR, individual_last_name VARCHAR)", "instruction": "List every individual's first name, middle name and last name in alphabetical order by last name.", "output": "SELECT individual_first_name, individual_middle_name, individual_last_name FROM individuals ORDER BY individual_last_name" }
### INSTRUCTION What is the sum of the numbers in series written by sam meikle, which have 21 numbers in the season? ### INPUT CREATE TABLE table_name_5 (no_in_series INTEGER, written_by VARCHAR, no_in_season VARCHAR) ### OUTPUT SELECT SUM(no_in_series) FROM table_name_5 WHERE written_by = "sam meikle" AND no_in_season = 21
{ "input": "CREATE TABLE table_name_5 (no_in_series INTEGER, written_by VARCHAR, no_in_season VARCHAR)", "instruction": "What is the sum of the numbers in series written by sam meikle, which have 21 numbers in the season?", "output": "SELECT SUM(no_in_series) FROM table_name_5 WHERE written_by = \"sam meikle\" AND no_in_season = 21" }
### INSTRUCTION What was the total for united states player phil mickelson? ### INPUT CREATE TABLE table_name_72 (total INTEGER, country VARCHAR, player VARCHAR) ### OUTPUT SELECT MIN(total) FROM table_name_72 WHERE country = "united states" AND player = "phil mickelson"
{ "input": "CREATE TABLE table_name_72 (total INTEGER, country VARCHAR, player VARCHAR)", "instruction": "What was the total for united states player phil mickelson?", "output": "SELECT MIN(total) FROM table_name_72 WHERE country = \"united states\" AND player = \"phil mickelson\"" }
### INSTRUCTION Tell me the command set with FDD capacity of 270kb and sides of ds with #FDD more than 1 ### INPUT CREATE TABLE table_name_35 (command_set VARCHAR, _number_fdd VARCHAR, fdd_capacity__each_ VARCHAR, sides VARCHAR) ### OUTPUT SELECT command_set FROM table_name_35 WHERE fdd_capacity__each_ = "270kb" AND sides = "ds" AND _number_fdd > 1
{ "input": "CREATE TABLE table_name_35 (command_set VARCHAR, _number_fdd VARCHAR, fdd_capacity__each_ VARCHAR, sides VARCHAR)", "instruction": "Tell me the command set with FDD capacity of 270kb and sides of ds with #FDD more than 1", "output": "SELECT command_set FROM table_name_35 WHERE fdd_capacity__each_ = \"270kb\" AND sides = \"ds\" AND _number_fdd > 1" }
### INSTRUCTION Tell me the sum of number of jamaicans given british citizenship for 2004 and registration of a minor child more than 640 ### INPUT CREATE TABLE table_name_44 (numer_of_jamaicans_granted_british_citizenship INTEGER, year VARCHAR, registration_of_a_minor_child VARCHAR) ### OUTPUT SELECT SUM(numer_of_jamaicans_granted_british_citizenship) FROM table_name_44 WHERE year = 2004 AND registration_of_a_minor_child > 640
{ "input": "CREATE TABLE table_name_44 (numer_of_jamaicans_granted_british_citizenship INTEGER, year VARCHAR, registration_of_a_minor_child VARCHAR)", "instruction": "Tell me the sum of number of jamaicans given british citizenship for 2004 and registration of a minor child more than 640", "output": "SELECT SUM(numer_of_jamaicans_granted_british_citizenship) FROM table_name_44 WHERE year = 2004 AND registration_of_a_minor_child > 640" }
### INSTRUCTION What is the sum of the poles of Team la filière, which has less than 162 points? ### INPUT CREATE TABLE table_name_13 (poles INTEGER, team VARCHAR, points VARCHAR) ### OUTPUT SELECT SUM(poles) FROM table_name_13 WHERE team = "la filière" AND points < 162
{ "input": "CREATE TABLE table_name_13 (poles INTEGER, team VARCHAR, points VARCHAR)", "instruction": "What is the sum of the poles of Team la filière, which has less than 162 points?", "output": "SELECT SUM(poles) FROM table_name_13 WHERE team = \"la filière\" AND points < 162" }
### INSTRUCTION Who is the winner in the week listed as 26 June 2 weeks, when the runner-up is Arantxa Sánchez Vicario? ### INPUT CREATE TABLE table_name_71 (winner VARCHAR, week_of VARCHAR, runner_up VARCHAR) ### OUTPUT SELECT winner FROM table_name_71 WHERE week_of = "26 june 2 weeks" AND runner_up = "arantxa sánchez vicario"
{ "input": "CREATE TABLE table_name_71 (winner VARCHAR, week_of VARCHAR, runner_up VARCHAR)", "instruction": "Who is the winner in the week listed as 26 June 2 weeks, when the runner-up is Arantxa Sánchez Vicario?", "output": "SELECT winner FROM table_name_71 WHERE week_of = \"26 june 2 weeks\" AND runner_up = \"arantxa sánchez vicario\"" }
### INSTRUCTION Find the total ranking points for each player and their first name. ### INPUT CREATE TABLE players (first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR) ### OUTPUT SELECT SUM(ranking_points), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name
{ "input": "CREATE TABLE players (first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR)", "instruction": "Find the total ranking points for each player and their first name.", "output": "SELECT SUM(ranking_points), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name" }
### INSTRUCTION Show the property type descriptions of properties belonging to that code. ### INPUT CREATE TABLE Properties (property_type_code VARCHAR); CREATE TABLE Ref_Property_Types (property_type_description VARCHAR, property_type_code VARCHAR) ### OUTPUT SELECT T2.property_type_description FROM Properties AS T1 JOIN Ref_Property_Types AS T2 ON T1.property_type_code = T2.property_type_code GROUP BY T1.property_type_code
{ "input": "CREATE TABLE Properties (property_type_code VARCHAR); CREATE TABLE Ref_Property_Types (property_type_description VARCHAR, property_type_code VARCHAR)", "instruction": "Show the property type descriptions of properties belonging to that code.", "output": "SELECT T2.property_type_description FROM Properties AS T1 JOIN Ref_Property_Types AS T2 ON T1.property_type_code = T2.property_type_code GROUP BY T1.property_type_code" }
### INSTRUCTION What Label has a Format of cd, and a Catalog of crgd 86136? ### INPUT CREATE TABLE table_name_88 (label VARCHAR, format VARCHAR, catalog VARCHAR) ### OUTPUT SELECT label FROM table_name_88 WHERE format = "cd" AND catalog = "crgd 86136"
{ "input": "CREATE TABLE table_name_88 (label VARCHAR, format VARCHAR, catalog VARCHAR)", "instruction": "What Label has a Format of cd, and a Catalog of crgd 86136?", "output": "SELECT label FROM table_name_88 WHERE format = \"cd\" AND catalog = \"crgd 86136\"" }
### INSTRUCTION what is the average wins when percent is more than 0.4 and teams is chargers~? ### INPUT CREATE TABLE table_name_53 (wins INTEGER, percent VARCHAR, teams VARCHAR) ### OUTPUT SELECT AVG(wins) FROM table_name_53 WHERE percent > 0.4 AND teams = "chargers~"
{ "input": "CREATE TABLE table_name_53 (wins INTEGER, percent VARCHAR, teams VARCHAR)", "instruction": "what is the average wins when percent is more than 0.4 and teams is chargers~?", "output": "SELECT AVG(wins) FROM table_name_53 WHERE percent > 0.4 AND teams = \"chargers~\"" }
### INSTRUCTION How many times has a wrestler whose federation was roh, wwe competed in this event? ### INPUT CREATE TABLE table_2305948_1 (other_placings VARCHAR, federation VARCHAR) ### OUTPUT SELECT COUNT(other_placings) FROM table_2305948_1 WHERE federation = "ROH, WWE"
{ "input": "CREATE TABLE table_2305948_1 (other_placings VARCHAR, federation VARCHAR)", "instruction": "How many times has a wrestler whose federation was roh, wwe competed in this event?", "output": "SELECT COUNT(other_placings) FROM table_2305948_1 WHERE federation = \"ROH, WWE\"" }
### INSTRUCTION What is the default desktop environment when the edition is kde and the compatible repository is ubuntu 13.04? ### INPUT CREATE TABLE table_27329061_2 (default_desktop_environment VARCHAR, edition VARCHAR, compatible_repository VARCHAR) ### OUTPUT SELECT default_desktop_environment FROM table_27329061_2 WHERE edition = "KDE" AND compatible_repository = "Ubuntu 13.04"
{ "input": "CREATE TABLE table_27329061_2 (default_desktop_environment VARCHAR, edition VARCHAR, compatible_repository VARCHAR)", "instruction": "What is the default desktop environment when the edition is kde and the compatible repository is ubuntu 13.04?", "output": "SELECT default_desktop_environment FROM table_27329061_2 WHERE edition = \"KDE\" AND compatible_repository = \"Ubuntu 13.04\"" }
### INSTRUCTION Find the policy type used by more than 4 customers. ### INPUT CREATE TABLE available_policies (policy_type_code VARCHAR) ### OUTPUT SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING COUNT(*) > 4
{ "input": "CREATE TABLE available_policies (policy_type_code VARCHAR)", "instruction": "Find the policy type used by more than 4 customers.", "output": "SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING COUNT(*) > 4" }
### INSTRUCTION What is the area km2 of the area with a pop density people/km2 larger than 91, is a member state of Italy, and had less than 58.8 population in millions? ### INPUT CREATE TABLE table_name_70 (area_km_2 INTEGER, population_in_millions VARCHAR, pop_density_people_km_2 VARCHAR, member_state VARCHAR) ### OUTPUT SELECT SUM(area_km_2) FROM table_name_70 WHERE pop_density_people_km_2 > 91 AND member_state = "italy" AND population_in_millions < 58.8
{ "input": "CREATE TABLE table_name_70 (area_km_2 INTEGER, population_in_millions VARCHAR, pop_density_people_km_2 VARCHAR, member_state VARCHAR)", "instruction": "What is the area km2 of the area with a pop density people/km2 larger than 91, is a member state of Italy, and had less than 58.8 population in millions?", "output": "SELECT SUM(area_km_2) FROM table_name_70 WHERE pop_density_people_km_2 > 91 AND member_state = \"italy\" AND population_in_millions < 58.8" }
### INSTRUCTION What is the Birthplace, when the Jersey # is less than 18, when the Height (cm) is higher than 185, and when the Birthdate is March 3, 1980? ### INPUT CREATE TABLE table_name_24 (birthplace VARCHAR, birthdate VARCHAR, jersey__number VARCHAR, height__cm_ VARCHAR) ### OUTPUT SELECT birthplace FROM table_name_24 WHERE jersey__number < 18 AND height__cm_ > 185 AND birthdate = "march 3, 1980"
{ "input": "CREATE TABLE table_name_24 (birthplace VARCHAR, birthdate VARCHAR, jersey__number VARCHAR, height__cm_ VARCHAR)", "instruction": "What is the Birthplace, when the Jersey # is less than 18, when the Height (cm) is higher than 185, and when the Birthdate is March 3, 1980?", "output": "SELECT birthplace FROM table_name_24 WHERE jersey__number < 18 AND height__cm_ > 185 AND birthdate = \"march 3, 1980\"" }
### INSTRUCTION How many U.S. viewers (million) watched the episode directed by Allison Liddi-Brown? ### INPUT CREATE TABLE table_27116696_1 (us_viewers__million_ VARCHAR, directed_by VARCHAR) ### OUTPUT SELECT us_viewers__million_ FROM table_27116696_1 WHERE directed_by = "Allison Liddi-Brown"
{ "input": "CREATE TABLE table_27116696_1 (us_viewers__million_ VARCHAR, directed_by VARCHAR)", "instruction": "How many U.S. viewers (million) watched the episode directed by Allison Liddi-Brown?", "output": "SELECT us_viewers__million_ FROM table_27116696_1 WHERE directed_by = \"Allison Liddi-Brown\"" }
### INSTRUCTION What is every year where opponent in the final is John Mcenroe at Wimbledon? ### INPUT CREATE TABLE table_23235767_1 (year VARCHAR, opponent_in_the_final VARCHAR, championship VARCHAR) ### OUTPUT SELECT year FROM table_23235767_1 WHERE opponent_in_the_final = "John McEnroe" AND championship = "Wimbledon"
{ "input": "CREATE TABLE table_23235767_1 (year VARCHAR, opponent_in_the_final VARCHAR, championship VARCHAR)", "instruction": "What is every year where opponent in the final is John Mcenroe at Wimbledon?", "output": "SELECT year FROM table_23235767_1 WHERE opponent_in_the_final = \"John McEnroe\" AND championship = \"Wimbledon\"" }
### INSTRUCTION How many different percentages of immigrants in 2006 can there be for Morocco? ### INPUT CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2006 VARCHAR, country VARCHAR) ### OUTPUT SELECT COUNT(_percentage_of_all_immigrants_2006) FROM table_23619212_1 WHERE country = "Morocco"
{ "input": "CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2006 VARCHAR, country VARCHAR)", "instruction": "How many different percentages of immigrants in 2006 can there be for Morocco?", "output": "SELECT COUNT(_percentage_of_all_immigrants_2006) FROM table_23619212_1 WHERE country = \"Morocco\"" }
### INSTRUCTION Which Cultural and Educational Panel has a Labour Panel larger than 5, and an Industrial and Commercial Panel larger than 9? ### INPUT CREATE TABLE table_name_9 (cultural_and_educational_panel VARCHAR, labour_panel VARCHAR, industrial_and_commercial_panel VARCHAR) ### OUTPUT SELECT COUNT(cultural_and_educational_panel) FROM table_name_9 WHERE labour_panel > 5 AND industrial_and_commercial_panel > 9
{ "input": "CREATE TABLE table_name_9 (cultural_and_educational_panel VARCHAR, labour_panel VARCHAR, industrial_and_commercial_panel VARCHAR)", "instruction": "Which Cultural and Educational Panel has a Labour Panel larger than 5, and an Industrial and Commercial Panel larger than 9?", "output": "SELECT COUNT(cultural_and_educational_panel) FROM table_name_9 WHERE labour_panel > 5 AND industrial_and_commercial_panel > 9" }
### INSTRUCTION January 7.34 where is June ? ### INPUT CREATE TABLE table_15945862_1 (january VARCHAR, june VARCHAR) ### OUTPUT SELECT january FROM table_15945862_1 WHERE june = "7.34"
{ "input": "CREATE TABLE table_15945862_1 (january VARCHAR, june VARCHAR)", "instruction": "January 7.34 where is June ?", "output": "SELECT january FROM table_15945862_1 WHERE june = \"7.34\"" }
### INSTRUCTION What is the longitude with a latitude of 48.930222 with a Geo ID smaller than 3806755660? ### INPUT CREATE TABLE table_name_38 (longitude VARCHAR, latitude VARCHAR, geo_id VARCHAR) ### OUTPUT SELECT COUNT(longitude) FROM table_name_38 WHERE latitude = 48.930222 AND geo_id < 3806755660
{ "input": "CREATE TABLE table_name_38 (longitude VARCHAR, latitude VARCHAR, geo_id VARCHAR)", "instruction": "What is the longitude with a latitude of 48.930222 with a Geo ID smaller than 3806755660?", "output": "SELECT COUNT(longitude) FROM table_name_38 WHERE latitude = 48.930222 AND geo_id < 3806755660" }
### INSTRUCTION Find the name and salary of the instructors who are advisors of any student from History department? ### INPUT CREATE TABLE instructor (name VARCHAR, salary VARCHAR, id VARCHAR); CREATE TABLE advisor (i_id VARCHAR, s_id VARCHAR); CREATE TABLE student (id VARCHAR, dept_name VARCHAR) ### OUTPUT SELECT T2.name, T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'History'
{ "input": "CREATE TABLE instructor (name VARCHAR, salary VARCHAR, id VARCHAR); CREATE TABLE advisor (i_id VARCHAR, s_id VARCHAR); CREATE TABLE student (id VARCHAR, dept_name VARCHAR)", "instruction": "Find the name and salary of the instructors who are advisors of any student from History department?", "output": "SELECT T2.name, T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'History'" }
### INSTRUCTION In what year did the team compete in the 2nd, Northeast season of the USL PDL League? ### INPUT CREATE TABLE table_1939214_1 (year VARCHAR, league VARCHAR, regular_season VARCHAR) ### OUTPUT SELECT year FROM table_1939214_1 WHERE league = "USL PDL" AND regular_season = "2nd, Northeast"
{ "input": "CREATE TABLE table_1939214_1 (year VARCHAR, league VARCHAR, regular_season VARCHAR)", "instruction": "In what year did the team compete in the 2nd, Northeast season of the USL PDL League?", "output": "SELECT year FROM table_1939214_1 WHERE league = \"USL PDL\" AND regular_season = \"2nd, Northeast\"" }
### INSTRUCTION Which document type is described with the prefix 'Initial'? ### INPUT CREATE TABLE Document_Types (document_type_code VARCHAR, document_description VARCHAR) ### OUTPUT SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%'
{ "input": "CREATE TABLE Document_Types (document_type_code VARCHAR, document_description VARCHAR)", "instruction": "Which document type is described with the prefix 'Initial'?", "output": "SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%'" }
### INSTRUCTION Show the theme for exhibitions with both records of an attendance below 100 and above 500. ### INPUT CREATE TABLE exhibition (theme VARCHAR, exhibition_id VARCHAR); CREATE TABLE exhibition_record (exhibition_id VARCHAR, attendance INTEGER) ### OUTPUT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance < 100 INTERSECT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 500
{ "input": "CREATE TABLE exhibition (theme VARCHAR, exhibition_id VARCHAR); CREATE TABLE exhibition_record (exhibition_id VARCHAR, attendance INTEGER)", "instruction": "Show the theme for exhibitions with both records of an attendance below 100 and above 500.", "output": "SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance < 100 INTERSECT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 500" }
### INSTRUCTION what last performance has past status, ballet as style and tommy batchelor? ### INPUT CREATE TABLE table_name_7 (last_performance VARCHAR, name VARCHAR, status VARCHAR, style VARCHAR) ### OUTPUT SELECT last_performance FROM table_name_7 WHERE status = "past" AND style = "ballet" AND name = "tommy batchelor"
{ "input": "CREATE TABLE table_name_7 (last_performance VARCHAR, name VARCHAR, status VARCHAR, style VARCHAR)", "instruction": "what last performance has past status, ballet as style and tommy batchelor?", "output": "SELECT last_performance FROM table_name_7 WHERE status = \"past\" AND style = \"ballet\" AND name = \"tommy batchelor\"" }
### INSTRUCTION What is Videoconferencing, when Synchronous Conferencing is "No", when Web Conferencing is "No", and when Faxing is "Yes"? ### INPUT CREATE TABLE table_name_24 (videoconferencing VARCHAR, faxing VARCHAR, synchronous_conferencing VARCHAR, web_conferencing VARCHAR) ### OUTPUT SELECT videoconferencing FROM table_name_24 WHERE synchronous_conferencing = "no" AND web_conferencing = "no" AND faxing = "yes"
{ "input": "CREATE TABLE table_name_24 (videoconferencing VARCHAR, faxing VARCHAR, synchronous_conferencing VARCHAR, web_conferencing VARCHAR)", "instruction": "What is Videoconferencing, when Synchronous Conferencing is \"No\", when Web Conferencing is \"No\", and when Faxing is \"Yes\"?", "output": "SELECT videoconferencing FROM table_name_24 WHERE synchronous_conferencing = \"no\" AND web_conferencing = \"no\" AND faxing = \"yes\"" }
### INSTRUCTION what is the outcome when the tournament is san diego and the opponent is ann grossman? ### INPUT CREATE TABLE table_name_40 (outcome VARCHAR, tournament VARCHAR, opponent VARCHAR) ### OUTPUT SELECT outcome FROM table_name_40 WHERE tournament = "san diego" AND opponent = "ann grossman"
{ "input": "CREATE TABLE table_name_40 (outcome VARCHAR, tournament VARCHAR, opponent VARCHAR)", "instruction": "what is the outcome when the tournament is san diego and the opponent is ann grossman?", "output": "SELECT outcome FROM table_name_40 WHERE tournament = \"san diego\" AND opponent = \"ann grossman\"" }
### INSTRUCTION Find number of tracks in each genre? ### INPUT CREATE TABLE tracks (genre_id VARCHAR); CREATE TABLE genres (name VARCHAR, id VARCHAR) ### OUTPUT SELECT COUNT(*), T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name
{ "input": "CREATE TABLE tracks (genre_id VARCHAR); CREATE TABLE genres (name VARCHAR, id VARCHAR)", "instruction": "Find number of tracks in each genre?", "output": "SELECT COUNT(*), T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name" }