text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
Which one has a rank bigger than 2, lane of 1, and is from Hong Kong?
### INPUT
CREATE TABLE table_name_55 (name VARCHAR, nationality VARCHAR, rank VARCHAR, lane VARCHAR)
### OUTPUT
SELECT name FROM table_name_55 WHERE rank > 2 AND lane = 1 AND nationality = "hong kong" | {
"input": "CREATE TABLE table_name_55 (name VARCHAR, nationality VARCHAR, rank VARCHAR, lane VARCHAR)",
"instruction": "Which one has a rank bigger than 2, lane of 1, and is from Hong Kong?",
"output": "SELECT name FROM table_name_55 WHERE rank > 2 AND lane = 1 AND nationality = \"hong kong\""
} |
### INSTRUCTION
What is the total for Robert Stanescu ( rou ), when the B Score is larger than 8.75?
### INPUT
CREATE TABLE table_name_40 (total INTEGER, gymnast VARCHAR, b_score VARCHAR)
### OUTPUT
SELECT SUM(total) FROM table_name_40 WHERE gymnast = "robert stanescu ( rou )" AND b_score > 8.75 | {
"input": "CREATE TABLE table_name_40 (total INTEGER, gymnast VARCHAR, b_score VARCHAR)",
"instruction": "What is the total for Robert Stanescu ( rou ), when the B Score is larger than 8.75?",
"output": "SELECT SUM(total) FROM table_name_40 WHERE gymnast = \"robert stanescu ( rou )\" AND b_score > 8.75"
} |
### INSTRUCTION
What episode number of the season was written by Tom Garrigus and had 2.31 million u.s. viewers?
### INPUT
CREATE TABLE table_28019988_5 (season__number INTEGER, us_viewers__million_ VARCHAR, written_by VARCHAR)
### OUTPUT
SELECT MAX(season__number) FROM table_28019988_5 WHERE us_viewers__million_ = "2.31" AND written_by = "Tom Garrigus" | {
"input": "CREATE TABLE table_28019988_5 (season__number INTEGER, us_viewers__million_ VARCHAR, written_by VARCHAR)",
"instruction": "What episode number of the season was written by Tom Garrigus and had 2.31 million u.s. viewers?",
"output": "SELECT MAX(season__number) FROM table_28019988_5 WHERE us_viewers__million_ = \"2.31\" AND written_by = \"Tom Garrigus\""
} |
### INSTRUCTION
What is the boat builder for a boat built in 1910/11 and a number of 39?
### INPUT
CREATE TABLE table_name_42 (boat_builder VARCHAR, year_built VARCHAR, number VARCHAR)
### OUTPUT
SELECT boat_builder FROM table_name_42 WHERE year_built = "1910/11" AND number = 39 | {
"input": "CREATE TABLE table_name_42 (boat_builder VARCHAR, year_built VARCHAR, number VARCHAR)",
"instruction": "What is the boat builder for a boat built in 1910/11 and a number of 39?",
"output": "SELECT boat_builder FROM table_name_42 WHERE year_built = \"1910/11\" AND number = 39"
} |
### INSTRUCTION
Find the name of the department that has no students minored in?
### INPUT
CREATE TABLE DEPARTMENT (DName VARCHAR, DNO VARCHAR); CREATE TABLE MINOR_IN (DNO VARCHAR); CREATE TABLE DEPARTMENT (DName VARCHAR)
### OUTPUT
SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO | {
"input": "CREATE TABLE DEPARTMENT (DName VARCHAR, DNO VARCHAR); CREATE TABLE MINOR_IN (DNO VARCHAR); CREATE TABLE DEPARTMENT (DName VARCHAR)",
"instruction": "Find the name of the department that has no students minored in?",
"output": "SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO"
} |
### INSTRUCTION
How many losses have points against greater than 592, with high park demons as the club, and points for greater than 631?
### INPUT
CREATE TABLE table_name_45 (loses VARCHAR, points_for VARCHAR, points_against VARCHAR, club VARCHAR)
### OUTPUT
SELECT COUNT(loses) FROM table_name_45 WHERE points_against > 592 AND club = "high park demons" AND points_for > 631 | {
"input": "CREATE TABLE table_name_45 (loses VARCHAR, points_for VARCHAR, points_against VARCHAR, club VARCHAR)",
"instruction": "How many losses have points against greater than 592, with high park demons as the club, and points for greater than 631?",
"output": "SELECT COUNT(loses) FROM table_name_45 WHERE points_against > 592 AND club = \"high park demons\" AND points_for > 631"
} |
### INSTRUCTION
what is the total number of coach where captain is grant welsh and win/loss is 5-15
### INPUT
CREATE TABLE table_1165048_1 (coach VARCHAR, captain VARCHAR, win_loss VARCHAR)
### OUTPUT
SELECT COUNT(coach) FROM table_1165048_1 WHERE captain = "Grant Welsh" AND win_loss = "5-15" | {
"input": "CREATE TABLE table_1165048_1 (coach VARCHAR, captain VARCHAR, win_loss VARCHAR)",
"instruction": "what is the total number of coach where captain is grant welsh and win/loss is 5-15",
"output": "SELECT COUNT(coach) FROM table_1165048_1 WHERE captain = \"Grant Welsh\" AND win_loss = \"5-15\""
} |
### INSTRUCTION
Which removal treaty covered the chickasaw nation?
### INPUT
CREATE TABLE table_name_32 (removal_treaty__year_signed_ VARCHAR, nation VARCHAR)
### OUTPUT
SELECT removal_treaty__year_signed_ FROM table_name_32 WHERE nation = "chickasaw" | {
"input": "CREATE TABLE table_name_32 (removal_treaty__year_signed_ VARCHAR, nation VARCHAR)",
"instruction": "Which removal treaty covered the chickasaw nation?",
"output": "SELECT removal_treaty__year_signed_ FROM table_name_32 WHERE nation = \"chickasaw\""
} |
### INSTRUCTION
Who directed the film Nuits d'arabie?
### INPUT
CREATE TABLE table_18994724_1 (director_s_ VARCHAR, film_title_used_in_nomination VARCHAR)
### OUTPUT
SELECT director_s_ FROM table_18994724_1 WHERE film_title_used_in_nomination = "Nuits d'Arabie" | {
"input": "CREATE TABLE table_18994724_1 (director_s_ VARCHAR, film_title_used_in_nomination VARCHAR)",
"instruction": "Who directed the film Nuits d'arabie?",
"output": "SELECT director_s_ FROM table_18994724_1 WHERE film_title_used_in_nomination = \"Nuits d'Arabie\""
} |
### INSTRUCTION
What is the total number of playoff games played by the Seattle Thunderbirds team where the number of regular games played is less than 5 and pick number is less than 131?
### INPUT
CREATE TABLE table_name_16 (pl_gp VARCHAR, pick__number VARCHAR, reg_gp VARCHAR, team__league_ VARCHAR)
### OUTPUT
SELECT COUNT(pl_gp) FROM table_name_16 WHERE reg_gp < 5 AND team__league_ = "seattle thunderbirds" AND pick__number < 131 | {
"input": "CREATE TABLE table_name_16 (pl_gp VARCHAR, pick__number VARCHAR, reg_gp VARCHAR, team__league_ VARCHAR)",
"instruction": "What is the total number of playoff games played by the Seattle Thunderbirds team where the number of regular games played is less than 5 and pick number is less than 131?",
"output": "SELECT COUNT(pl_gp) FROM table_name_16 WHERE reg_gp < 5 AND team__league_ = \"seattle thunderbirds\" AND pick__number < 131"
} |
### INSTRUCTION
I want the control trailers for 1931 with builder of grcw
### INPUT
CREATE TABLE table_name_45 (Control VARCHAR, year VARCHAR, builder VARCHAR)
### OUTPUT
SELECT Control AS trailers FROM table_name_45 WHERE year = "1931" AND builder = "grcw" | {
"input": "CREATE TABLE table_name_45 (Control VARCHAR, year VARCHAR, builder VARCHAR)",
"instruction": "I want the control trailers for 1931 with builder of grcw",
"output": "SELECT Control AS trailers FROM table_name_45 WHERE year = \"1931\" AND builder = \"grcw\""
} |
### INSTRUCTION
What is the lowest amount of floors after rank 1 in the Trillium (residential) building?
### INPUT
CREATE TABLE table_name_33 (floors INTEGER, rank VARCHAR, building VARCHAR)
### OUTPUT
SELECT MIN(floors) FROM table_name_33 WHERE rank > 1 AND building = "the trillium (residential)" | {
"input": "CREATE TABLE table_name_33 (floors INTEGER, rank VARCHAR, building VARCHAR)",
"instruction": "What is the lowest amount of floors after rank 1 in the Trillium (residential) building?",
"output": "SELECT MIN(floors) FROM table_name_33 WHERE rank > 1 AND building = \"the trillium (residential)\""
} |
### INSTRUCTION
Find the name of physicians who are affiliated with Surgery or Psychiatry department.
### INPUT
CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR); CREATE TABLE department (DepartmentID VARCHAR, name VARCHAR); CREATE TABLE physician (name VARCHAR, EmployeeID VARCHAR)
### OUTPUT
SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' OR T3.name = 'Psychiatry' | {
"input": "CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR); CREATE TABLE department (DepartmentID VARCHAR, name VARCHAR); CREATE TABLE physician (name VARCHAR, EmployeeID VARCHAR)",
"instruction": "Find the name of physicians who are affiliated with Surgery or Psychiatry department.",
"output": "SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' OR T3.name = 'Psychiatry'"
} |
### INSTRUCTION
Find the name and position of physicians who prescribe some medication whose brand is X?
### INPUT
CREATE TABLE medication (code VARCHAR, Brand VARCHAR); CREATE TABLE prescribes (physician VARCHAR, medication VARCHAR); CREATE TABLE physician (name VARCHAR, position VARCHAR, employeeid VARCHAR)
### OUTPUT
SELECT DISTINCT T1.name, T1.position FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand = "X" | {
"input": "CREATE TABLE medication (code VARCHAR, Brand VARCHAR); CREATE TABLE prescribes (physician VARCHAR, medication VARCHAR); CREATE TABLE physician (name VARCHAR, position VARCHAR, employeeid VARCHAR)",
"instruction": "Find the name and position of physicians who prescribe some medication whose brand is X?",
"output": "SELECT DISTINCT T1.name, T1.position FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand = \"X\""
} |
### INSTRUCTION
Tell me the object type which has an apparent magnitude more than 10.6 and declination of °44′07″
### INPUT
CREATE TABLE table_name_28 (object_type VARCHAR, apparent_magnitude VARCHAR, declination___j2000__ VARCHAR)
### OUTPUT
SELECT object_type FROM table_name_28 WHERE apparent_magnitude > 10.6 AND declination___j2000__ = "°44′07″" | {
"input": "CREATE TABLE table_name_28 (object_type VARCHAR, apparent_magnitude VARCHAR, declination___j2000__ VARCHAR)",
"instruction": "Tell me the object type which has an apparent magnitude more than 10.6 and declination of °44′07″",
"output": "SELECT object_type FROM table_name_28 WHERE apparent_magnitude > 10.6 AND declination___j2000__ = \"°44′07″\""
} |
### INSTRUCTION
What is Home, when Score is 103-93?
### INPUT
CREATE TABLE table_name_95 (home VARCHAR, score VARCHAR)
### OUTPUT
SELECT home FROM table_name_95 WHERE score = "103-93" | {
"input": "CREATE TABLE table_name_95 (home VARCHAR, score VARCHAR)",
"instruction": "What is Home, when Score is 103-93?",
"output": "SELECT home FROM table_name_95 WHERE score = \"103-93\""
} |
### INSTRUCTION
What was Mark Begich polling on October 6, 2008?
### INPUT
CREATE TABLE table_16751596_13 (democrat VARCHAR, dates_administered VARCHAR)
### OUTPUT
SELECT democrat AS :_mark_begich FROM table_16751596_13 WHERE dates_administered = "October 6, 2008" | {
"input": "CREATE TABLE table_16751596_13 (democrat VARCHAR, dates_administered VARCHAR)",
"instruction": "What was Mark Begich polling on October 6, 2008?",
"output": "SELECT democrat AS :_mark_begich FROM table_16751596_13 WHERE dates_administered = \"October 6, 2008\""
} |
### INSTRUCTION
What is Population density (per km²), when Name is Antigua and Barbuda, and when Capital is St. John's?
### INPUT
CREATE TABLE table_name_81 (population_density__per_km²_ VARCHAR, name VARCHAR, capital VARCHAR)
### OUTPUT
SELECT population_density__per_km²_ FROM table_name_81 WHERE name = "antigua and barbuda" AND capital = "st. john's" | {
"input": "CREATE TABLE table_name_81 (population_density__per_km²_ VARCHAR, name VARCHAR, capital VARCHAR)",
"instruction": "What is Population density (per km²), when Name is Antigua and Barbuda, and when Capital is St. John's?",
"output": "SELECT population_density__per_km²_ FROM table_name_81 WHERE name = \"antigua and barbuda\" AND capital = \"st. john's\""
} |
### INSTRUCTION
What is the percentage for Brown when the lead margin is 26?
### INPUT
CREATE TABLE table_name_35 (republican VARCHAR, lead_margin VARCHAR)
### OUTPUT
SELECT republican AS :_roy_brown FROM table_name_35 WHERE lead_margin = 26 | {
"input": "CREATE TABLE table_name_35 (republican VARCHAR, lead_margin VARCHAR)",
"instruction": "What is the percentage for Brown when the lead margin is 26?",
"output": "SELECT republican AS :_roy_brown FROM table_name_35 WHERE lead_margin = 26"
} |
### INSTRUCTION
What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'?
### INPUT
CREATE TABLE medicine (id VARCHAR, name VARCHAR); CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, medicine_id VARCHAR, interaction_type VARCHAR); CREATE TABLE enzyme (name VARCHAR, id VARCHAR)
### OUTPUT
SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T3.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor' | {
"input": "CREATE TABLE medicine (id VARCHAR, name VARCHAR); CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, medicine_id VARCHAR, interaction_type VARCHAR); CREATE TABLE enzyme (name VARCHAR, id VARCHAR)",
"instruction": "What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'?",
"output": "SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T3.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor'"
} |
### INSTRUCTION
Show names of actors that have appeared in musical with name "The Phantom of the Opera".
### INPUT
CREATE TABLE actor (Name VARCHAR, Musical_ID VARCHAR); CREATE TABLE musical (Musical_ID VARCHAR, Name VARCHAR)
### OUTPUT
SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID WHERE T2.Name = "The Phantom of the Opera" | {
"input": "CREATE TABLE actor (Name VARCHAR, Musical_ID VARCHAR); CREATE TABLE musical (Musical_ID VARCHAR, Name VARCHAR)",
"instruction": "Show names of actors that have appeared in musical with name \"The Phantom of the Opera\".",
"output": "SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID WHERE T2.Name = \"The Phantom of the Opera\""
} |
### INSTRUCTION
How many episodes in the series has a production code of 111?
### INPUT
CREATE TABLE table_24425976_2 (series VARCHAR, production_code VARCHAR)
### OUTPUT
SELECT COUNT(series) FROM table_24425976_2 WHERE production_code = "111" | {
"input": "CREATE TABLE table_24425976_2 (series VARCHAR, production_code VARCHAR)",
"instruction": "How many episodes in the series has a production code of 111?",
"output": "SELECT COUNT(series) FROM table_24425976_2 WHERE production_code = \"111\""
} |
### INSTRUCTION
Show all template type codes and the number of documents using each type.
### INPUT
CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (template_type_code VARCHAR, template_id VARCHAR)
### OUTPUT
SELECT T1.template_type_code, COUNT(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code | {
"input": "CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (template_type_code VARCHAR, template_id VARCHAR)",
"instruction": "Show all template type codes and the number of documents using each type.",
"output": "SELECT T1.template_type_code, COUNT(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code"
} |
### INSTRUCTION
What is the college where player terry moss attended?
### INPUT
CREATE TABLE table_26996293_7 (college VARCHAR, player VARCHAR)
### OUTPUT
SELECT college FROM table_26996293_7 WHERE player = "Terry Moss" | {
"input": "CREATE TABLE table_26996293_7 (college VARCHAR, player VARCHAR)",
"instruction": "What is the college where player terry moss attended?",
"output": "SELECT college FROM table_26996293_7 WHERE player = \"Terry Moss\""
} |
### INSTRUCTION
Which Year Left is the lowest one that has a School of calumet, and a Year Joined larger than 1993?
### INPUT
CREATE TABLE table_name_13 (year_left INTEGER, school VARCHAR, year_joined VARCHAR)
### OUTPUT
SELECT MIN(year_left) FROM table_name_13 WHERE school = "calumet" AND year_joined > 1993 | {
"input": "CREATE TABLE table_name_13 (year_left INTEGER, school VARCHAR, year_joined VARCHAR)",
"instruction": "Which Year Left is the lowest one that has a School of calumet, and a Year Joined larger than 1993?",
"output": "SELECT MIN(year_left) FROM table_name_13 WHERE school = \"calumet\" AND year_joined > 1993"
} |
### INSTRUCTION
What was the score did phoenix have with a Record of 3–6–0 at home?
### INPUT
CREATE TABLE table_name_88 (score VARCHAR, home VARCHAR, record VARCHAR)
### OUTPUT
SELECT score FROM table_name_88 WHERE home = "phoenix" AND record = "3–6–0" | {
"input": "CREATE TABLE table_name_88 (score VARCHAR, home VARCHAR, record VARCHAR)",
"instruction": "What was the score did phoenix have with a Record of 3–6–0 at home?",
"output": "SELECT score FROM table_name_88 WHERE home = \"phoenix\" AND record = \"3–6–0\""
} |
### INSTRUCTION
what is the mascot when the county is 43 kosciusko?
### INPUT
CREATE TABLE table_name_82 (mascot VARCHAR, county VARCHAR)
### OUTPUT
SELECT mascot FROM table_name_82 WHERE county = "43 kosciusko" | {
"input": "CREATE TABLE table_name_82 (mascot VARCHAR, county VARCHAR)",
"instruction": "what is the mascot when the county is 43 kosciusko?",
"output": "SELECT mascot FROM table_name_82 WHERE county = \"43 kosciusko\""
} |
### INSTRUCTION
How many live births where the crude birth rate is lore than 15.7, average population is less than 297 and deaths are al 4 686?
### INPUT
CREATE TABLE table_name_79 (live_births VARCHAR, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR, average_population__x_1000_ VARCHAR)
### OUTPUT
SELECT live_births FROM table_name_79 WHERE crude_birth_rate__per_1000_ > 15.7 AND average_population__x_1000_ < 297 AND deaths = "4 686" | {
"input": "CREATE TABLE table_name_79 (live_births VARCHAR, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR, average_population__x_1000_ VARCHAR)",
"instruction": "How many live births where the crude birth rate is lore than 15.7, average population is less than 297 and deaths are al 4 686?",
"output": "SELECT live_births FROM table_name_79 WHERE crude_birth_rate__per_1000_ > 15.7 AND average_population__x_1000_ < 297 AND deaths = \"4 686\""
} |
### INSTRUCTION
Name the clas AAAA of school year 2000-01
### INPUT
CREATE TABLE table_name_76 (class_aAAA VARCHAR, school_year VARCHAR)
### OUTPUT
SELECT class_aAAA FROM table_name_76 WHERE school_year = "2000-01" | {
"input": "CREATE TABLE table_name_76 (class_aAAA VARCHAR, school_year VARCHAR)",
"instruction": "Name the clas AAAA of school year 2000-01",
"output": "SELECT class_aAAA FROM table_name_76 WHERE school_year = \"2000-01\""
} |
### INSTRUCTION
What was the highest rank for rowers who represented Denmark?
### INPUT
CREATE TABLE table_name_94 (rank INTEGER, country VARCHAR)
### OUTPUT
SELECT MAX(rank) FROM table_name_94 WHERE country = "denmark" | {
"input": "CREATE TABLE table_name_94 (rank INTEGER, country VARCHAR)",
"instruction": "What was the highest rank for rowers who represented Denmark?",
"output": "SELECT MAX(rank) FROM table_name_94 WHERE country = \"denmark\""
} |
### INSTRUCTION
Which object has an Apparent magnitude larger than 9.6, and a Right ascension ( J2000 ) of 17h59m02.0s?
### INPUT
CREATE TABLE table_name_56 (object_type VARCHAR, apparent_magnitude VARCHAR, right_ascension___j2000__ VARCHAR)
### OUTPUT
SELECT object_type FROM table_name_56 WHERE apparent_magnitude > 9.6 AND right_ascension___j2000__ = "17h59m02.0s" | {
"input": "CREATE TABLE table_name_56 (object_type VARCHAR, apparent_magnitude VARCHAR, right_ascension___j2000__ VARCHAR)",
"instruction": "Which object has an Apparent magnitude larger than 9.6, and a Right ascension ( J2000 ) of 17h59m02.0s?",
"output": "SELECT object_type FROM table_name_56 WHERE apparent_magnitude > 9.6 AND right_ascension___j2000__ = \"17h59m02.0s\""
} |
### INSTRUCTION
Find the total number of students living in the male dorm (with gender M).
### INPUT
CREATE TABLE dorm (dormid VARCHAR, gender VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (stuid VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.gender = 'M' | {
"input": "CREATE TABLE dorm (dormid VARCHAR, gender VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (stuid VARCHAR)",
"instruction": "Find the total number of students living in the male dorm (with gender M).",
"output": "SELECT COUNT(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.gender = 'M'"
} |
### INSTRUCTION
Which tournament had a winning score of 67-61-68-67=263?
### INPUT
CREATE TABLE table_name_96 (tournament VARCHAR, winning_score VARCHAR)
### OUTPUT
SELECT tournament FROM table_name_96 WHERE winning_score = 67 - 61 - 68 - 67 = 263 | {
"input": "CREATE TABLE table_name_96 (tournament VARCHAR, winning_score VARCHAR)",
"instruction": "Which tournament had a winning score of 67-61-68-67=263?",
"output": "SELECT tournament FROM table_name_96 WHERE winning_score = 67 - 61 - 68 - 67 = 263"
} |
### INSTRUCTION
How many wins for the Caramut team with fewer than 11 losses and fewer than 2 byes?
### INPUT
CREATE TABLE table_name_48 (wins INTEGER, byes VARCHAR, losses VARCHAR, mininera_dfl VARCHAR)
### OUTPUT
SELECT MAX(wins) FROM table_name_48 WHERE losses < 11 AND mininera_dfl = "caramut" AND byes < 2 | {
"input": "CREATE TABLE table_name_48 (wins INTEGER, byes VARCHAR, losses VARCHAR, mininera_dfl VARCHAR)",
"instruction": "How many wins for the Caramut team with fewer than 11 losses and fewer than 2 byes?",
"output": "SELECT MAX(wins) FROM table_name_48 WHERE losses < 11 AND mininera_dfl = \"caramut\" AND byes < 2"
} |
### INSTRUCTION
which gender got the highest average uncertain ratio.
### INPUT
CREATE TABLE candidate (people_id VARCHAR, unsure_rate INTEGER); CREATE TABLE people (sex VARCHAR, people_id VARCHAR)
### OUTPUT
SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY AVG(t2.unsure_rate) DESC LIMIT 1 | {
"input": "CREATE TABLE candidate (people_id VARCHAR, unsure_rate INTEGER); CREATE TABLE people (sex VARCHAR, people_id VARCHAR)",
"instruction": "which gender got the highest average uncertain ratio.",
"output": "SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY AVG(t2.unsure_rate) DESC LIMIT 1"
} |
### INSTRUCTION
Which Name has a AAFC Team of los angeles dons, and a Position of fb, and a College of oklahoma a&m?
### INPUT
CREATE TABLE table_name_70 (name VARCHAR, college VARCHAR, aafc_team VARCHAR, position VARCHAR)
### OUTPUT
SELECT name FROM table_name_70 WHERE aafc_team = "los angeles dons" AND position = "fb" AND college = "oklahoma a&m" | {
"input": "CREATE TABLE table_name_70 (name VARCHAR, college VARCHAR, aafc_team VARCHAR, position VARCHAR)",
"instruction": "Which Name has a AAFC Team of los angeles dons, and a Position of fb, and a College of oklahoma a&m?",
"output": "SELECT name FROM table_name_70 WHERE aafc_team = \"los angeles dons\" AND position = \"fb\" AND college = \"oklahoma a&m\""
} |
### INSTRUCTION
What was the round when he fought Joe Stevenson?
### INPUT
CREATE TABLE table_name_26 (round VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT round FROM table_name_26 WHERE opponent = "joe stevenson" | {
"input": "CREATE TABLE table_name_26 (round VARCHAR, opponent VARCHAR)",
"instruction": "What was the round when he fought Joe Stevenson?",
"output": "SELECT round FROM table_name_26 WHERE opponent = \"joe stevenson\""
} |
### INSTRUCTION
Which administrative division had a population of 2011 according to the siak database of 3,672,994?
### INPUT
CREATE TABLE table_21734764_1 (administrative_division VARCHAR, population_2011_siak_database VARCHAR)
### OUTPUT
SELECT administrative_division FROM table_21734764_1 WHERE population_2011_siak_database = "3,672,994" | {
"input": "CREATE TABLE table_21734764_1 (administrative_division VARCHAR, population_2011_siak_database VARCHAR)",
"instruction": "Which administrative division had a population of 2011 according to the siak database of 3,672,994?",
"output": "SELECT administrative_division FROM table_21734764_1 WHERE population_2011_siak_database = \"3,672,994\""
} |
### INSTRUCTION
What was the away team score, when the away team was Fitzroy?
### INPUT
CREATE TABLE table_name_32 (away_team VARCHAR)
### OUTPUT
SELECT away_team AS score FROM table_name_32 WHERE away_team = "fitzroy" | {
"input": "CREATE TABLE table_name_32 (away_team VARCHAR)",
"instruction": "What was the away team score, when the away team was Fitzroy?",
"output": "SELECT away_team AS score FROM table_name_32 WHERE away_team = \"fitzroy\""
} |
### INSTRUCTION
What is the total number of military deaths when there are 78 military and/or civilian wounded and more than 27 total deaths?
### INPUT
CREATE TABLE table_name_41 (military_deaths VARCHAR, military_and_or_civilian_wounded VARCHAR, total_deaths VARCHAR)
### OUTPUT
SELECT COUNT(military_deaths) FROM table_name_41 WHERE military_and_or_civilian_wounded = "78" AND total_deaths > 27 | {
"input": "CREATE TABLE table_name_41 (military_deaths VARCHAR, military_and_or_civilian_wounded VARCHAR, total_deaths VARCHAR)",
"instruction": "What is the total number of military deaths when there are 78 military and/or civilian wounded and more than 27 total deaths?",
"output": "SELECT COUNT(military_deaths) FROM table_name_41 WHERE military_and_or_civilian_wounded = \"78\" AND total_deaths > 27"
} |
### INSTRUCTION
Which country has an IATA of JFK?
### INPUT
CREATE TABLE table_name_3 (country VARCHAR, iata VARCHAR)
### OUTPUT
SELECT country FROM table_name_3 WHERE iata = "jfk" | {
"input": "CREATE TABLE table_name_3 (country VARCHAR, iata VARCHAR)",
"instruction": "Which country has an IATA of JFK?",
"output": "SELECT country FROM table_name_3 WHERE iata = \"jfk\""
} |
### INSTRUCTION
What is the hometown of Bubba Starling?
### INPUT
CREATE TABLE table_11677100_17 (hometown VARCHAR, player VARCHAR)
### OUTPUT
SELECT hometown FROM table_11677100_17 WHERE player = "Bubba Starling" | {
"input": "CREATE TABLE table_11677100_17 (hometown VARCHAR, player VARCHAR)",
"instruction": "What is the hometown of Bubba Starling?",
"output": "SELECT hometown FROM table_11677100_17 WHERE player = \"Bubba Starling\""
} |
### INSTRUCTION
What is the first names of the professors from the history department who do not teach a class.
### INPUT
CREATE TABLE professor (emp_num VARCHAR, dept_code VARCHAR); CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)
### OUTPUT
SELECT T1.emp_fname FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History' EXCEPT SELECT T4.emp_fname FROM employee AS T4 JOIN CLASS AS T5 ON T4.emp_num = T5.prof_num | {
"input": "CREATE TABLE professor (emp_num VARCHAR, dept_code VARCHAR); CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)",
"instruction": "What is the first names of the professors from the history department who do not teach a class.",
"output": "SELECT T1.emp_fname FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History' EXCEPT SELECT T4.emp_fname FROM employee AS T4 JOIN CLASS AS T5 ON T4.emp_num = T5.prof_num"
} |
### INSTRUCTION
What is the lifespan of the democratic party in New York, for which Terence J. Quinn is a representative?
### INPUT
CREATE TABLE table_name_21 (lifespan VARCHAR, representative VARCHAR, party VARCHAR, state VARCHAR)
### OUTPUT
SELECT lifespan FROM table_name_21 WHERE party = "democratic" AND state = "new york" AND representative = "terence j. quinn" | {
"input": "CREATE TABLE table_name_21 (lifespan VARCHAR, representative VARCHAR, party VARCHAR, state VARCHAR)",
"instruction": "What is the lifespan of the democratic party in New York, for which Terence J. Quinn is a representative?",
"output": "SELECT lifespan FROM table_name_21 WHERE party = \"democratic\" AND state = \"new york\" AND representative = \"terence j. quinn\""
} |
### INSTRUCTION
What is the version shown for the Length of 4:58?
### INPUT
CREATE TABLE table_name_1 (version VARCHAR, length VARCHAR)
### OUTPUT
SELECT version FROM table_name_1 WHERE length = "4:58" | {
"input": "CREATE TABLE table_name_1 (version VARCHAR, length VARCHAR)",
"instruction": "What is the version shown for the Length of 4:58?",
"output": "SELECT version FROM table_name_1 WHERE length = \"4:58\""
} |
### INSTRUCTION
What is the average Joined with a Nickname of wildcats in longmeadow, massachusetts?
### INPUT
CREATE TABLE table_name_55 (joined INTEGER, nickname VARCHAR, location VARCHAR)
### OUTPUT
SELECT AVG(joined) FROM table_name_55 WHERE nickname = "wildcats" AND location = "longmeadow, massachusetts" | {
"input": "CREATE TABLE table_name_55 (joined INTEGER, nickname VARCHAR, location VARCHAR)",
"instruction": "What is the average Joined with a Nickname of wildcats in longmeadow, massachusetts?",
"output": "SELECT AVG(joined) FROM table_name_55 WHERE nickname = \"wildcats\" AND location = \"longmeadow, massachusetts\""
} |
### INSTRUCTION
Find the name, age, and job title of persons who are friends with Alice for the longest years.
### INPUT
CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR, year VARCHAR); CREATE TABLE Person (name VARCHAR, age VARCHAR, job VARCHAR); CREATE TABLE PersonFriend (YEAR INTEGER, friend VARCHAR)
### OUTPUT
SELECT T1.name, T1.age, T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' AND T2.year = (SELECT MAX(YEAR) FROM PersonFriend WHERE friend = 'Alice') | {
"input": "CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR, year VARCHAR); CREATE TABLE Person (name VARCHAR, age VARCHAR, job VARCHAR); CREATE TABLE PersonFriend (YEAR INTEGER, friend VARCHAR)",
"instruction": "Find the name, age, and job title of persons who are friends with Alice for the longest years.",
"output": "SELECT T1.name, T1.age, T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' AND T2.year = (SELECT MAX(YEAR) FROM PersonFriend WHERE friend = 'Alice')"
} |
### INSTRUCTION
Which animal has an AP duration of 1.0 and a conduction speed of 7–30?
### INPUT
CREATE TABLE table_name_11 (animal VARCHAR, ap_duration__ms_ VARCHAR, conduction_speed__m_s_ VARCHAR)
### OUTPUT
SELECT animal FROM table_name_11 WHERE ap_duration__ms_ = "1.0" AND conduction_speed__m_s_ = "7–30" | {
"input": "CREATE TABLE table_name_11 (animal VARCHAR, ap_duration__ms_ VARCHAR, conduction_speed__m_s_ VARCHAR)",
"instruction": "Which animal has an AP duration of 1.0 and a conduction speed of 7–30?",
"output": "SELECT animal FROM table_name_11 WHERE ap_duration__ms_ = \"1.0\" AND conduction_speed__m_s_ = \"7–30\""
} |
### INSTRUCTION
Find the name of the customer that has been involved in the most policies.
### INPUT
CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE policies (customer_id VARCHAR)
### OUTPUT
SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE policies (customer_id VARCHAR)",
"instruction": "Find the name of the customer that has been involved in the most policies.",
"output": "SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What is the rank of the airport with freight ( metric tonnes ) of 255121?
### INPUT
CREATE TABLE table_13836704_6 (rank VARCHAR, freight___metric_tonnes__ VARCHAR)
### OUTPUT
SELECT rank FROM table_13836704_6 WHERE freight___metric_tonnes__ = 255121 | {
"input": "CREATE TABLE table_13836704_6 (rank VARCHAR, freight___metric_tonnes__ VARCHAR)",
"instruction": "What is the rank of the airport with freight ( metric tonnes ) of 255121?",
"output": "SELECT rank FROM table_13836704_6 WHERE freight___metric_tonnes__ = 255121"
} |
### INSTRUCTION
Show the average amount of transactions for different lots, ordered by average amount of transactions.
### INPUT
CREATE TABLE TRANSACTIONS (transaction_id VARCHAR); CREATE TABLE Transactions_Lots (lot_id VARCHAR, transaction_id VARCHAR)
### OUTPUT
SELECT T2.lot_id, AVG(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id ORDER BY AVG(amount_of_transaction) | {
"input": "CREATE TABLE TRANSACTIONS (transaction_id VARCHAR); CREATE TABLE Transactions_Lots (lot_id VARCHAR, transaction_id VARCHAR)",
"instruction": "Show the average amount of transactions for different lots, ordered by average amount of transactions.",
"output": "SELECT T2.lot_id, AVG(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id ORDER BY AVG(amount_of_transaction)"
} |
### INSTRUCTION
Which Year has a Group of césar awards, and a Result of nominated, and an Award of the best actress, and a Film of 8 women (8 femmes)?
### INPUT
CREATE TABLE table_name_41 (year INTEGER, film VARCHAR, award VARCHAR, group VARCHAR, result VARCHAR)
### OUTPUT
SELECT AVG(year) FROM table_name_41 WHERE group = "césar awards" AND result = "nominated" AND award = "best actress" AND film = "8 women (8 femmes)" | {
"input": "CREATE TABLE table_name_41 (year INTEGER, film VARCHAR, award VARCHAR, group VARCHAR, result VARCHAR)",
"instruction": "Which Year has a Group of césar awards, and a Result of nominated, and an Award of the best actress, and a Film of 8 women (8 femmes)?",
"output": "SELECT AVG(year) FROM table_name_41 WHERE group = \"césar awards\" AND result = \"nominated\" AND award = \"best actress\" AND film = \"8 women (8 femmes)\""
} |
### INSTRUCTION
When by80607002529af is the part number and september 2009 is the release date what is the l2 cache?
### INPUT
CREATE TABLE table_18823880_10 (l2_cache VARCHAR, release_date VARCHAR, part_number_s_ VARCHAR)
### OUTPUT
SELECT l2_cache FROM table_18823880_10 WHERE release_date = "September 2009" AND part_number_s_ = "BY80607002529AF" | {
"input": "CREATE TABLE table_18823880_10 (l2_cache VARCHAR, release_date VARCHAR, part_number_s_ VARCHAR)",
"instruction": "When by80607002529af is the part number and september 2009 is the release date what is the l2 cache?",
"output": "SELECT l2_cache FROM table_18823880_10 WHERE release_date = \"September 2009\" AND part_number_s_ = \"BY80607002529AF\""
} |
### INSTRUCTION
What are the names of parties with at least 2 events?
### INPUT
CREATE TABLE party (party_name VARCHAR, party_id VARCHAR); CREATE TABLE party_events (party_id VARCHAR)
### OUTPUT
SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING COUNT(*) >= 2 | {
"input": "CREATE TABLE party (party_name VARCHAR, party_id VARCHAR); CREATE TABLE party_events (party_id VARCHAR)",
"instruction": "What are the names of parties with at least 2 events?",
"output": "SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING COUNT(*) >= 2"
} |
### INSTRUCTION
What is the lowest All-Time, when First Title is before 1974, when Last Title is "1933", and when Amateur Era is greater than 2?
### INPUT
CREATE TABLE table_name_95 (all_time INTEGER, amateur_era VARCHAR, first_title VARCHAR, last_title VARCHAR)
### OUTPUT
SELECT MIN(all_time) FROM table_name_95 WHERE first_title < 1974 AND last_title = 1933 AND amateur_era > 2 | {
"input": "CREATE TABLE table_name_95 (all_time INTEGER, amateur_era VARCHAR, first_title VARCHAR, last_title VARCHAR)",
"instruction": "What is the lowest All-Time, when First Title is before 1974, when Last Title is \"1933\", and when Amateur Era is greater than 2?",
"output": "SELECT MIN(all_time) FROM table_name_95 WHERE first_title < 1974 AND last_title = 1933 AND amateur_era > 2"
} |
### INSTRUCTION
What is the highest Area (KM 2) for the Province of Ontario, that has the Status of Town, a Municipality of Minto, and a Rank that's smaller than 84?
### INPUT
CREATE TABLE table_name_96 (area__km_2__ INTEGER, rank VARCHAR, municipality VARCHAR, province VARCHAR, status VARCHAR)
### OUTPUT
SELECT MAX(area__km_2__) FROM table_name_96 WHERE province = "ontario" AND status = "town" AND municipality = "minto" AND rank < 84 | {
"input": "CREATE TABLE table_name_96 (area__km_2__ INTEGER, rank VARCHAR, municipality VARCHAR, province VARCHAR, status VARCHAR)",
"instruction": "What is the highest Area (KM 2) for the Province of Ontario, that has the Status of Town, a Municipality of Minto, and a Rank that's smaller than 84?",
"output": "SELECT MAX(area__km_2__) FROM table_name_96 WHERE province = \"ontario\" AND status = \"town\" AND municipality = \"minto\" AND rank < 84"
} |
### INSTRUCTION
Which Inhabitants has a Party of south tyrolean people's party, a Municipality of bruneck, and an Election larger than 2010?
### INPUT
CREATE TABLE table_name_36 (inhabitants INTEGER, election VARCHAR, party VARCHAR, municipality VARCHAR)
### OUTPUT
SELECT AVG(inhabitants) FROM table_name_36 WHERE party = "south tyrolean people's party" AND municipality = "bruneck" AND election > 2010 | {
"input": "CREATE TABLE table_name_36 (inhabitants INTEGER, election VARCHAR, party VARCHAR, municipality VARCHAR)",
"instruction": "Which Inhabitants has a Party of south tyrolean people's party, a Municipality of bruneck, and an Election larger than 2010?",
"output": "SELECT AVG(inhabitants) FROM table_name_36 WHERE party = \"south tyrolean people's party\" AND municipality = \"bruneck\" AND election > 2010"
} |
### INSTRUCTION
what voice acter played tien
### INPUT
CREATE TABLE table_name_59 (voice_actor__japanese_ VARCHAR, character_name VARCHAR)
### OUTPUT
SELECT voice_actor__japanese_ FROM table_name_59 WHERE character_name = "tien" | {
"input": "CREATE TABLE table_name_59 (voice_actor__japanese_ VARCHAR, character_name VARCHAR)",
"instruction": "what voice acter played tien",
"output": "SELECT voice_actor__japanese_ FROM table_name_59 WHERE character_name = \"tien\""
} |
### INSTRUCTION
What is the lowest area when the density is greater than 234.77, the population is less than 965,040, and the rank is 32?
### INPUT
CREATE TABLE table_name_75 (area INTEGER, population VARCHAR, density VARCHAR, rank VARCHAR)
### OUTPUT
SELECT MIN(area) FROM table_name_75 WHERE density > 234.77 AND rank = 32 AND population < 965 OFFSET 040 | {
"input": "CREATE TABLE table_name_75 (area INTEGER, population VARCHAR, density VARCHAR, rank VARCHAR)",
"instruction": "What is the lowest area when the density is greater than 234.77, the population is less than 965,040, and the rank is 32?",
"output": "SELECT MIN(area) FROM table_name_75 WHERE density > 234.77 AND rank = 32 AND population < 965 OFFSET 040"
} |
### INSTRUCTION
What is the highest Markatal, when Municipality is Leirvík, and when Inhabitants Per Km² is greater than 79?
### INPUT
CREATE TABLE table_name_69 (markatal INTEGER, municipality VARCHAR, inhabitants_per_km² VARCHAR)
### OUTPUT
SELECT MAX(markatal) FROM table_name_69 WHERE municipality = "leirvík" AND inhabitants_per_km² > 79 | {
"input": "CREATE TABLE table_name_69 (markatal INTEGER, municipality VARCHAR, inhabitants_per_km² VARCHAR)",
"instruction": "What is the highest Markatal, when Municipality is Leirvík, and when Inhabitants Per Km² is greater than 79?",
"output": "SELECT MAX(markatal) FROM table_name_69 WHERE municipality = \"leirvík\" AND inhabitants_per_km² > 79"
} |
### INSTRUCTION
Name the place for score of 67-70=137 and stuart appleby
### INPUT
CREATE TABLE table_name_55 (place VARCHAR, player VARCHAR, score VARCHAR)
### OUTPUT
SELECT place FROM table_name_55 WHERE score = 67 - 70 = 137 AND player = "stuart appleby" | {
"input": "CREATE TABLE table_name_55 (place VARCHAR, player VARCHAR, score VARCHAR)",
"instruction": "Name the place for score of 67-70=137 and stuart appleby",
"output": "SELECT place FROM table_name_55 WHERE score = 67 - 70 = 137 AND player = \"stuart appleby\""
} |
### INSTRUCTION
How much Overall has a Position of ot, and a Round larger than 5?
### INPUT
CREATE TABLE table_name_76 (overall VARCHAR, position VARCHAR, round VARCHAR)
### OUTPUT
SELECT COUNT(overall) FROM table_name_76 WHERE position = "ot" AND round > 5 | {
"input": "CREATE TABLE table_name_76 (overall VARCHAR, position VARCHAR, round VARCHAR)",
"instruction": "How much Overall has a Position of ot, and a Round larger than 5?",
"output": "SELECT COUNT(overall) FROM table_name_76 WHERE position = \"ot\" AND round > 5"
} |
### INSTRUCTION
Tell me the total number of years for wins less than 2 and class of 50cc with points of 15
### INPUT
CREATE TABLE table_name_4 (year VARCHAR, points VARCHAR, wins VARCHAR, class VARCHAR)
### OUTPUT
SELECT COUNT(year) FROM table_name_4 WHERE wins < 2 AND class = "50cc" AND points = 15 | {
"input": "CREATE TABLE table_name_4 (year VARCHAR, points VARCHAR, wins VARCHAR, class VARCHAR)",
"instruction": "Tell me the total number of years for wins less than 2 and class of 50cc with points of 15",
"output": "SELECT COUNT(year) FROM table_name_4 WHERE wins < 2 AND class = \"50cc\" AND points = 15"
} |
### INSTRUCTION
Who was the driver/passengar when the position was smaller than 8, the third was 1, and there was 1 win?
### INPUT
CREATE TABLE table_name_56 (driver___passenger VARCHAR, wins VARCHAR, third VARCHAR, position VARCHAR)
### OUTPUT
SELECT driver___passenger FROM table_name_56 WHERE third = "1" AND position < 8 AND wins = "1" | {
"input": "CREATE TABLE table_name_56 (driver___passenger VARCHAR, wins VARCHAR, third VARCHAR, position VARCHAR)",
"instruction": "Who was the driver/passengar when the position was smaller than 8, the third was 1, and there was 1 win?",
"output": "SELECT driver___passenger FROM table_name_56 WHERE third = \"1\" AND position < 8 AND wins = \"1\""
} |
### INSTRUCTION
Who is the artist where the vocal percussionist is Benjamin Holder?
### INPUT
CREATE TABLE table_28715942_6 (original_artist VARCHAR, vocal_percussionist VARCHAR)
### OUTPUT
SELECT original_artist FROM table_28715942_6 WHERE vocal_percussionist = "Benjamin Holder" | {
"input": "CREATE TABLE table_28715942_6 (original_artist VARCHAR, vocal_percussionist VARCHAR)",
"instruction": "Who is the artist where the vocal percussionist is Benjamin Holder?",
"output": "SELECT original_artist FROM table_28715942_6 WHERE vocal_percussionist = \"Benjamin Holder\""
} |
### INSTRUCTION
Which organisation hired the most number of research staff? List the organisation id, type and detail.
### INPUT
CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR, organisation_details VARCHAR); CREATE TABLE Research_Staff (employer_organisation_id VARCHAR)
### OUTPUT
SELECT T1.organisation_id, T1.organisation_type, T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR, organisation_details VARCHAR); CREATE TABLE Research_Staff (employer_organisation_id VARCHAR)",
"instruction": "Which organisation hired the most number of research staff? List the organisation id, type and detail.",
"output": "SELECT T1.organisation_id, T1.organisation_type, T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What was the theme during the week # of top 24 (12 men)
### INPUT
CREATE TABLE table_name_73 (theme VARCHAR, week__number VARCHAR)
### OUTPUT
SELECT theme FROM table_name_73 WHERE week__number = "top 24 (12 men)" | {
"input": "CREATE TABLE table_name_73 (theme VARCHAR, week__number VARCHAR)",
"instruction": "What was the theme during the week # of top 24 (12 men)",
"output": "SELECT theme FROM table_name_73 WHERE week__number = \"top 24 (12 men)\""
} |
### INSTRUCTION
What was the highest lap for Luigi Piotti with more than 13 grid and a time/retired engine?
### INPUT
CREATE TABLE table_name_19 (laps INTEGER, driver VARCHAR, grid VARCHAR, time_retired VARCHAR)
### OUTPUT
SELECT MAX(laps) FROM table_name_19 WHERE grid > 13 AND time_retired = "engine" AND driver = "luigi piotti" | {
"input": "CREATE TABLE table_name_19 (laps INTEGER, driver VARCHAR, grid VARCHAR, time_retired VARCHAR)",
"instruction": "What was the highest lap for Luigi Piotti with more than 13 grid and a time/retired engine?",
"output": "SELECT MAX(laps) FROM table_name_19 WHERE grid > 13 AND time_retired = \"engine\" AND driver = \"luigi piotti\""
} |
### INSTRUCTION
What is the location of the match with chad armstrong as the opponent?
### INPUT
CREATE TABLE table_name_47 (location VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT location FROM table_name_47 WHERE opponent = "chad armstrong" | {
"input": "CREATE TABLE table_name_47 (location VARCHAR, opponent VARCHAR)",
"instruction": "What is the location of the match with chad armstrong as the opponent?",
"output": "SELECT location FROM table_name_47 WHERE opponent = \"chad armstrong\""
} |
### INSTRUCTION
What is the dpi for the scanner with a max page size of 216mm x 355mm?
### INPUT
CREATE TABLE table_16409745_1 (dpi VARCHAR, max_page_size VARCHAR)
### OUTPUT
SELECT dpi FROM table_16409745_1 WHERE max_page_size = "216mm x 355mm" | {
"input": "CREATE TABLE table_16409745_1 (dpi VARCHAR, max_page_size VARCHAR)",
"instruction": "What is the dpi for the scanner with a max page size of 216mm x 355mm?",
"output": "SELECT dpi FROM table_16409745_1 WHERE max_page_size = \"216mm x 355mm\""
} |
### INSTRUCTION
What is the name of the Leftfielder when Davey Lopes was the Second Baseman and first baseman was steve garvey, Shortstop of bill russell eariler than 1977?
### INPUT
CREATE TABLE table_name_90 (leftfielder VARCHAR, year VARCHAR, shortstop VARCHAR, second_baseman VARCHAR, first_baseman VARCHAR)
### OUTPUT
SELECT leftfielder FROM table_name_90 WHERE second_baseman = "davey lopes" AND first_baseman = "steve garvey" AND shortstop = "bill russell" AND year > 1977 | {
"input": "CREATE TABLE table_name_90 (leftfielder VARCHAR, year VARCHAR, shortstop VARCHAR, second_baseman VARCHAR, first_baseman VARCHAR)",
"instruction": "What is the name of the Leftfielder when Davey Lopes was the Second Baseman and first baseman was steve garvey, Shortstop of bill russell eariler than 1977?",
"output": "SELECT leftfielder FROM table_name_90 WHERE second_baseman = \"davey lopes\" AND first_baseman = \"steve garvey\" AND shortstop = \"bill russell\" AND year > 1977"
} |
### INSTRUCTION
How many votes were tallied in 1956 with a % of national vote larger than 11.47?
### INPUT
CREATE TABLE table_name_66 (votes INTEGER, date VARCHAR, _percentage_of_national_vote VARCHAR)
### OUTPUT
SELECT SUM(votes) FROM table_name_66 WHERE date = "1956" AND _percentage_of_national_vote > 11.47 | {
"input": "CREATE TABLE table_name_66 (votes INTEGER, date VARCHAR, _percentage_of_national_vote VARCHAR)",
"instruction": "How many votes were tallied in 1956 with a % of national vote larger than 11.47?",
"output": "SELECT SUM(votes) FROM table_name_66 WHERE date = \"1956\" AND _percentage_of_national_vote > 11.47"
} |
### INSTRUCTION
Name the least matches for runs being 276
### INPUT
CREATE TABLE table_17900317_5 (matches INTEGER, runs VARCHAR)
### OUTPUT
SELECT MIN(matches) FROM table_17900317_5 WHERE runs = 276 | {
"input": "CREATE TABLE table_17900317_5 (matches INTEGER, runs VARCHAR)",
"instruction": "Name the least matches for runs being 276",
"output": "SELECT MIN(matches) FROM table_17900317_5 WHERE runs = 276"
} |
### INSTRUCTION
How many incumbents were the result of sanford bishop (d) 57% joseph mccormick (r) 43%?
### INPUT
CREATE TABLE table_27021001_1 (incumbent VARCHAR, result VARCHAR)
### OUTPUT
SELECT COUNT(incumbent) FROM table_27021001_1 WHERE result = "Sanford Bishop (D) 57% Joseph McCormick (R) 43%" | {
"input": "CREATE TABLE table_27021001_1 (incumbent VARCHAR, result VARCHAR)",
"instruction": "How many incumbents were the result of sanford bishop (d) 57% joseph mccormick (r) 43%?",
"output": "SELECT COUNT(incumbent) FROM table_27021001_1 WHERE result = \"Sanford Bishop (D) 57% Joseph McCormick (R) 43%\""
} |
### INSTRUCTION
What is the highest field goals when there were more than 1 touchdown and 0 extra points?
### INPUT
CREATE TABLE table_name_7 (field_goals INTEGER, touchdowns VARCHAR, extra_points VARCHAR)
### OUTPUT
SELECT MAX(field_goals) FROM table_name_7 WHERE touchdowns > 1 AND extra_points > 0 | {
"input": "CREATE TABLE table_name_7 (field_goals INTEGER, touchdowns VARCHAR, extra_points VARCHAR)",
"instruction": "What is the highest field goals when there were more than 1 touchdown and 0 extra points?",
"output": "SELECT MAX(field_goals) FROM table_name_7 WHERE touchdowns > 1 AND extra_points > 0"
} |
### INSTRUCTION
How many losses does Toronto Downtown Dingos have?
### INPUT
CREATE TABLE table_26200568_16 (losses VARCHAR, club VARCHAR)
### OUTPUT
SELECT losses FROM table_26200568_16 WHERE club = "Toronto Downtown Dingos" | {
"input": "CREATE TABLE table_26200568_16 (losses VARCHAR, club VARCHAR)",
"instruction": "How many losses does Toronto Downtown Dingos have?",
"output": "SELECT losses FROM table_26200568_16 WHERE club = \"Toronto Downtown Dingos\""
} |
### INSTRUCTION
Which Winning Team has the Fastest Lap of brendon hartley, and a Pole Position of oliver turvey, and a Circuit of spa-francorchamps, and the Winning Driver of brendon hartley?
### INPUT
CREATE TABLE table_name_75 (winning_team VARCHAR, winning_driver VARCHAR, circuit VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
### OUTPUT
SELECT winning_team FROM table_name_75 WHERE fastest_lap = "brendon hartley" AND pole_position = "oliver turvey" AND circuit = "spa-francorchamps" AND winning_driver = "brendon hartley" | {
"input": "CREATE TABLE table_name_75 (winning_team VARCHAR, winning_driver VARCHAR, circuit VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)",
"instruction": "Which Winning Team has the Fastest Lap of brendon hartley, and a Pole Position of oliver turvey, and a Circuit of spa-francorchamps, and the Winning Driver of brendon hartley?",
"output": "SELECT winning_team FROM table_name_75 WHERE fastest_lap = \"brendon hartley\" AND pole_position = \"oliver turvey\" AND circuit = \"spa-francorchamps\" AND winning_driver = \"brendon hartley\""
} |
### INSTRUCTION
For each trip, return its ending station's installation date.
### INPUT
CREATE TABLE station (installation_date VARCHAR, id VARCHAR); CREATE TABLE trip (id VARCHAR, end_station_id VARCHAR)
### OUTPUT
SELECT T1.id, T2.installation_date FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id | {
"input": "CREATE TABLE station (installation_date VARCHAR, id VARCHAR); CREATE TABLE trip (id VARCHAR, end_station_id VARCHAR)",
"instruction": "For each trip, return its ending station's installation date.",
"output": "SELECT T1.id, T2.installation_date FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id"
} |
### INSTRUCTION
When was construction completed that was listed on 09/21/1984 and a Deleted of 11/04/1999?
### INPUT
CREATE TABLE table_name_9 (construction_completed VARCHAR, listed VARCHAR, deleted VARCHAR)
### OUTPUT
SELECT construction_completed FROM table_name_9 WHERE listed = "09/21/1984" AND deleted = "11/04/1999" | {
"input": "CREATE TABLE table_name_9 (construction_completed VARCHAR, listed VARCHAR, deleted VARCHAR)",
"instruction": "When was construction completed that was listed on 09/21/1984 and a Deleted of 11/04/1999?",
"output": "SELECT construction_completed FROM table_name_9 WHERE listed = \"09/21/1984\" AND deleted = \"11/04/1999\""
} |
### INSTRUCTION
What Average Pick # has an Overall of 296?
### INPUT
CREATE TABLE table_name_8 (pick__number INTEGER, overall VARCHAR)
### OUTPUT
SELECT AVG(pick__number) FROM table_name_8 WHERE overall = 296 | {
"input": "CREATE TABLE table_name_8 (pick__number INTEGER, overall VARCHAR)",
"instruction": "What Average Pick # has an Overall of 296?",
"output": "SELECT AVG(pick__number) FROM table_name_8 WHERE overall = 296"
} |
### INSTRUCTION
Who was the architect that built the Electric Railway Chambers before 1915?
### INPUT
CREATE TABLE table_name_43 (architect VARCHAR, built VARCHAR, building VARCHAR)
### OUTPUT
SELECT architect FROM table_name_43 WHERE built < 1915 AND building = "electric railway chambers" | {
"input": "CREATE TABLE table_name_43 (architect VARCHAR, built VARCHAR, building VARCHAR)",
"instruction": "Who was the architect that built the Electric Railway Chambers before 1915?",
"output": "SELECT architect FROM table_name_43 WHERE built < 1915 AND building = \"electric railway chambers\""
} |
### INSTRUCTION
What was the home team's score of the game where South Melbourne is the away team?
### INPUT
CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR)
### OUTPUT
SELECT home_team AS score FROM table_name_77 WHERE away_team = "south melbourne" | {
"input": "CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR)",
"instruction": "What was the home team's score of the game where South Melbourne is the away team?",
"output": "SELECT home_team AS score FROM table_name_77 WHERE away_team = \"south melbourne\""
} |
### INSTRUCTION
Which League Cup goals have a Scorer of ken houghton, and an FA Cup goals smaller than 0?
### INPUT
CREATE TABLE table_name_93 (league_cup_goals INTEGER, scorer VARCHAR, fa_cup_goals VARCHAR)
### OUTPUT
SELECT MAX(league_cup_goals) FROM table_name_93 WHERE scorer = "ken houghton" AND fa_cup_goals < 0 | {
"input": "CREATE TABLE table_name_93 (league_cup_goals INTEGER, scorer VARCHAR, fa_cup_goals VARCHAR)",
"instruction": "Which League Cup goals have a Scorer of ken houghton, and an FA Cup goals smaller than 0?",
"output": "SELECT MAX(league_cup_goals) FROM table_name_93 WHERE scorer = \"ken houghton\" AND fa_cup_goals < 0"
} |
### INSTRUCTION
What is the country of player ian woosnam?
### INPUT
CREATE TABLE table_name_93 (country VARCHAR, player VARCHAR)
### OUTPUT
SELECT country FROM table_name_93 WHERE player = "ian woosnam" | {
"input": "CREATE TABLE table_name_93 (country VARCHAR, player VARCHAR)",
"instruction": "What is the country of player ian woosnam?",
"output": "SELECT country FROM table_name_93 WHERE player = \"ian woosnam\""
} |
### INSTRUCTION
What is the number listed under against when there were less than 13 losses and less than 2 byes?
### INPUT
CREATE TABLE table_name_72 (against VARCHAR, losses VARCHAR, byes VARCHAR)
### OUTPUT
SELECT COUNT(against) FROM table_name_72 WHERE losses < 13 AND byes < 2 | {
"input": "CREATE TABLE table_name_72 (against VARCHAR, losses VARCHAR, byes VARCHAR)",
"instruction": "What is the number listed under against when there were less than 13 losses and less than 2 byes?",
"output": "SELECT COUNT(against) FROM table_name_72 WHERE losses < 13 AND byes < 2"
} |
### INSTRUCTION
What is Player, when Country is "United States", and when To Par is "WD"?
### INPUT
CREATE TABLE table_name_79 (player VARCHAR, country VARCHAR, to_par VARCHAR)
### OUTPUT
SELECT player FROM table_name_79 WHERE country = "united states" AND to_par = "wd" | {
"input": "CREATE TABLE table_name_79 (player VARCHAR, country VARCHAR, to_par VARCHAR)",
"instruction": "What is Player, when Country is \"United States\", and when To Par is \"WD\"?",
"output": "SELECT player FROM table_name_79 WHERE country = \"united states\" AND to_par = \"wd\""
} |
### INSTRUCTION
How many episodes have a share bigger than 7.0?
### INPUT
CREATE TABLE table_16072430_1 (_number VARCHAR, share INTEGER)
### OUTPUT
SELECT COUNT(_number) FROM table_16072430_1 WHERE share > 7.0 | {
"input": "CREATE TABLE table_16072430_1 (_number VARCHAR, share INTEGER)",
"instruction": "How many episodes have a share bigger than 7.0?",
"output": "SELECT COUNT(_number) FROM table_16072430_1 WHERE share > 7.0"
} |
### INSTRUCTION
When the position in 2012-13 is 13th, third division what is the location?
### INPUT
CREATE TABLE table_name_68 (location VARCHAR, position_in_2012_13 VARCHAR)
### OUTPUT
SELECT location FROM table_name_68 WHERE position_in_2012_13 = "13th, third division" | {
"input": "CREATE TABLE table_name_68 (location VARCHAR, position_in_2012_13 VARCHAR)",
"instruction": "When the position in 2012-13 is 13th, third division what is the location?",
"output": "SELECT location FROM table_name_68 WHERE position_in_2012_13 = \"13th, third division\""
} |
### INSTRUCTION
What is the sum of Avg/G for Dan Dierking when the Loss is 0 and the Gain is more than 34?
### INPUT
CREATE TABLE table_name_95 (avg_g INTEGER, gain VARCHAR, loss VARCHAR, name VARCHAR)
### OUTPUT
SELECT SUM(avg_g) FROM table_name_95 WHERE loss = 0 AND name = "dan dierking" AND gain > 34 | {
"input": "CREATE TABLE table_name_95 (avg_g INTEGER, gain VARCHAR, loss VARCHAR, name VARCHAR)",
"instruction": "What is the sum of Avg/G for Dan Dierking when the Loss is 0 and the Gain is more than 34?",
"output": "SELECT SUM(avg_g) FROM table_name_95 WHERE loss = 0 AND name = \"dan dierking\" AND gain > 34"
} |
### INSTRUCTION
What is the magnitude with epicenter at Vrancea County, unknown intensity and which happened at 06:36?
### INPUT
CREATE TABLE table_name_67 (magnitude VARCHAR, time__utc_ VARCHAR, epicenter VARCHAR, intensity VARCHAR)
### OUTPUT
SELECT magnitude FROM table_name_67 WHERE epicenter = "vrancea county" AND intensity = "unknown" AND time__utc_ = "06:36" | {
"input": "CREATE TABLE table_name_67 (magnitude VARCHAR, time__utc_ VARCHAR, epicenter VARCHAR, intensity VARCHAR)",
"instruction": "What is the magnitude with epicenter at Vrancea County, unknown intensity and which happened at 06:36?",
"output": "SELECT magnitude FROM table_name_67 WHERE epicenter = \"vrancea county\" AND intensity = \"unknown\" AND time__utc_ = \"06:36\""
} |
### INSTRUCTION
What is the average win percentage of a season with a GB of 5?
### INPUT
CREATE TABLE table_name_76 (win__percentage INTEGER, gb_ VARCHAR, d_ VARCHAR)
### OUTPUT
SELECT AVG(win__percentage) FROM table_name_76 WHERE gb_[d_] = "5" | {
"input": "CREATE TABLE table_name_76 (win__percentage INTEGER, gb_ VARCHAR, d_ VARCHAR)",
"instruction": "What is the average win percentage of a season with a GB of 5?",
"output": "SELECT AVG(win__percentage) FROM table_name_76 WHERE gb_[d_] = \"5\""
} |
### INSTRUCTION
when was the premiere of the episode where the amount of North American spectators was 1.76 millions?
### INPUT
CREATE TABLE table_21979779_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
### OUTPUT
SELECT original_air_date FROM table_21979779_1 WHERE us_viewers__million_ = "1.76" | {
"input": "CREATE TABLE table_21979779_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)",
"instruction": "when was the premiere of the episode where the amount of North American spectators was 1.76 millions?",
"output": "SELECT original_air_date FROM table_21979779_1 WHERE us_viewers__million_ = \"1.76\""
} |
### INSTRUCTION
Which player has a Position of fly-half, and a Caps of 3?
### INPUT
CREATE TABLE table_name_41 (player VARCHAR, position VARCHAR, caps VARCHAR)
### OUTPUT
SELECT player FROM table_name_41 WHERE position = "fly-half" AND caps = 3 | {
"input": "CREATE TABLE table_name_41 (player VARCHAR, position VARCHAR, caps VARCHAR)",
"instruction": "Which player has a Position of fly-half, and a Caps of 3?",
"output": "SELECT player FROM table_name_41 WHERE position = \"fly-half\" AND caps = 3"
} |
### INSTRUCTION
What are the names of parties that have both delegates on "Appropriations" committee and
### INPUT
CREATE TABLE election (Party VARCHAR, Committee VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR)
### OUTPUT
SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Appropriations" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Economic Matters" | {
"input": "CREATE TABLE election (Party VARCHAR, Committee VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR)",
"instruction": "What are the names of parties that have both delegates on \"Appropriations\" committee and",
"output": "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = \"Appropriations\" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = \"Economic Matters\""
} |
### INSTRUCTION
How many Drawn does the team Portuguesa Santista have?
### INPUT
CREATE TABLE table_15352382_1 (drawn VARCHAR, team VARCHAR)
### OUTPUT
SELECT drawn FROM table_15352382_1 WHERE team = "Portuguesa Santista" | {
"input": "CREATE TABLE table_15352382_1 (drawn VARCHAR, team VARCHAR)",
"instruction": "How many Drawn does the team Portuguesa Santista have?",
"output": "SELECT drawn FROM table_15352382_1 WHERE team = \"Portuguesa Santista\""
} |
### INSTRUCTION
What is the score of champion Ken Rosewall in 1957?
### INPUT
CREATE TABLE table_name_39 (score VARCHAR, champion VARCHAR, year VARCHAR)
### OUTPUT
SELECT score FROM table_name_39 WHERE champion = "ken rosewall" AND year = "1957" | {
"input": "CREATE TABLE table_name_39 (score VARCHAR, champion VARCHAR, year VARCHAR)",
"instruction": "What is the score of champion Ken Rosewall in 1957?",
"output": "SELECT score FROM table_name_39 WHERE champion = \"ken rosewall\" AND year = \"1957\""
} |
### INSTRUCTION
What is the latest year that shadow racing team scored more than 0 points?
### INPUT
CREATE TABLE table_name_13 (year INTEGER, entrant VARCHAR, pts VARCHAR)
### OUTPUT
SELECT MAX(year) FROM table_name_13 WHERE entrant = "shadow racing team" AND pts > 0 | {
"input": "CREATE TABLE table_name_13 (year INTEGER, entrant VARCHAR, pts VARCHAR)",
"instruction": "What is the latest year that shadow racing team scored more than 0 points?",
"output": "SELECT MAX(year) FROM table_name_13 WHERE entrant = \"shadow racing team\" AND pts > 0"
} |
### INSTRUCTION
What are the first and last names of the instructors who teach the top 3 number of courses?
### INPUT
CREATE TABLE COURSE (Instructor VARCHAR); CREATE TABLE FACULTY (Fname VARCHAR, Lname VARCHAR, FacID VARCHAR)
### OUTPUT
SELECT T2.Fname, T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY COUNT(*) DESC LIMIT 3 | {
"input": "CREATE TABLE COURSE (Instructor VARCHAR); CREATE TABLE FACULTY (Fname VARCHAR, Lname VARCHAR, FacID VARCHAR)",
"instruction": "What are the first and last names of the instructors who teach the top 3 number of courses?",
"output": "SELECT T2.Fname, T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY COUNT(*) DESC LIMIT 3"
} |
### INSTRUCTION
What country made the Flieger-Doppelpistole 1919?
### INPUT
CREATE TABLE table_29474407_11 (country_of_origin VARCHAR, name__designation VARCHAR)
### OUTPUT
SELECT country_of_origin FROM table_29474407_11 WHERE name__designation = "Flieger-Doppelpistole 1919" | {
"input": "CREATE TABLE table_29474407_11 (country_of_origin VARCHAR, name__designation VARCHAR)",
"instruction": "What country made the Flieger-Doppelpistole 1919?",
"output": "SELECT country_of_origin FROM table_29474407_11 WHERE name__designation = \"Flieger-Doppelpistole 1919\""
} |
### INSTRUCTION
Which Site has a Sport of w swimming?
### INPUT
CREATE TABLE table_name_38 (site VARCHAR, sport VARCHAR)
### OUTPUT
SELECT site FROM table_name_38 WHERE sport = "w swimming" | {
"input": "CREATE TABLE table_name_38 (site VARCHAR, sport VARCHAR)",
"instruction": "Which Site has a Sport of w swimming?",
"output": "SELECT site FROM table_name_38 WHERE sport = \"w swimming\""
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.