text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
Find the number of students who is older than 20 in each dorm.
### INPUT
CREATE TABLE dorm (dorm_name VARCHAR, dormid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (stuid VARCHAR, age INTEGER)
### OUTPUT
SELECT COUNT(*), T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T1.age > 20 GROUP BY T3.dorm_name | {
"input": "CREATE TABLE dorm (dorm_name VARCHAR, dormid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (stuid VARCHAR, age INTEGER)",
"instruction": "Find the number of students who is older than 20 in each dorm.",
"output": "SELECT COUNT(*), T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T1.age > 20 GROUP BY T3.dorm_name"
} |
### INSTRUCTION
What is the total number of Top division titles for the club that has more than 40 seasons in top division, a First season of current spell in top division of 1943-44, and more than 89 seasons in Liga MX?
### INPUT
CREATE TABLE table_name_55 (top_division_titles VARCHAR, number_of_seasons_in_liga_mx VARCHAR, number_of_seasons_in_top_division VARCHAR, first_season_of_current_spell_in_top_division VARCHAR)
### OUTPUT
SELECT COUNT(top_division_titles) FROM table_name_55 WHERE number_of_seasons_in_top_division > 40 AND first_season_of_current_spell_in_top_division = "1943-44" AND number_of_seasons_in_liga_mx > 89 | {
"input": "CREATE TABLE table_name_55 (top_division_titles VARCHAR, number_of_seasons_in_liga_mx VARCHAR, number_of_seasons_in_top_division VARCHAR, first_season_of_current_spell_in_top_division VARCHAR)",
"instruction": "What is the total number of Top division titles for the club that has more than 40 seasons in top division, a First season of current spell in top division of 1943-44, and more than 89 seasons in Liga MX?",
"output": "SELECT COUNT(top_division_titles) FROM table_name_55 WHERE number_of_seasons_in_top_division > 40 AND first_season_of_current_spell_in_top_division = \"1943-44\" AND number_of_seasons_in_liga_mx > 89"
} |
### INSTRUCTION
What is the undisclosed when Aldertown is Aldershot Town and Wycombe Wanderers is Oxford United?
### INPUT
CREATE TABLE table_23835213_2 (undisclosed VARCHAR, wycombe_wanderers VARCHAR)
### OUTPUT
SELECT undisclosed FROM table_23835213_2 WHERE "aldershot_town" = "aldershot_town" AND wycombe_wanderers = "Oxford United" | {
"input": "CREATE TABLE table_23835213_2 (undisclosed VARCHAR, wycombe_wanderers VARCHAR)",
"instruction": "What is the undisclosed when Aldertown is Aldershot Town and Wycombe Wanderers is Oxford United?",
"output": "SELECT undisclosed FROM table_23835213_2 WHERE \"aldershot_town\" = \"aldershot_town\" AND wycombe_wanderers = \"Oxford United\""
} |
### INSTRUCTION
What is the L2 cache with a release date on September 10, 2009, a 128-bit FPU width, and a 12x multi 1?
### INPUT
CREATE TABLE table_name_80 (l2_cache VARCHAR, multi_1 VARCHAR, release_date VARCHAR, fpu_width VARCHAR)
### OUTPUT
SELECT l2_cache FROM table_name_80 WHERE release_date = "september 10, 2009" AND fpu_width = "128-bit" AND multi_1 = "12x" | {
"input": "CREATE TABLE table_name_80 (l2_cache VARCHAR, multi_1 VARCHAR, release_date VARCHAR, fpu_width VARCHAR)",
"instruction": "What is the L2 cache with a release date on September 10, 2009, a 128-bit FPU width, and a 12x multi 1?",
"output": "SELECT l2_cache FROM table_name_80 WHERE release_date = \"september 10, 2009\" AND fpu_width = \"128-bit\" AND multi_1 = \"12x\""
} |
### INSTRUCTION
What is listed under points 1 when the position was greater than 4, there were 54 goals for and more than 11 losses?
### INPUT
CREATE TABLE table_name_75 (points_1 VARCHAR, lost VARCHAR, position VARCHAR, goals_for VARCHAR)
### OUTPUT
SELECT points_1 FROM table_name_75 WHERE position > 4 AND goals_for = 54 AND lost > 11 | {
"input": "CREATE TABLE table_name_75 (points_1 VARCHAR, lost VARCHAR, position VARCHAR, goals_for VARCHAR)",
"instruction": "What is listed under points 1 when the position was greater than 4, there were 54 goals for and more than 11 losses?",
"output": "SELECT points_1 FROM table_name_75 WHERE position > 4 AND goals_for = 54 AND lost > 11"
} |
### INSTRUCTION
Show the product type codes that have at least two products.
### INPUT
CREATE TABLE Products (Product_Type_Code VARCHAR)
### OUTPUT
SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code HAVING COUNT(*) >= 2 | {
"input": "CREATE TABLE Products (Product_Type_Code VARCHAR)",
"instruction": "Show the product type codes that have at least two products.",
"output": "SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code HAVING COUNT(*) >= 2"
} |
### INSTRUCTION
Name the lessons taught for episode # 2/205
### INPUT
CREATE TABLE table_24172078_2 (lessons_taught VARCHAR, episode__number VARCHAR)
### OUTPUT
SELECT lessons_taught FROM table_24172078_2 WHERE episode__number = "2/205" | {
"input": "CREATE TABLE table_24172078_2 (lessons_taught VARCHAR, episode__number VARCHAR)",
"instruction": "Name the lessons taught for episode # 2/205",
"output": "SELECT lessons_taught FROM table_24172078_2 WHERE episode__number = \"2/205\""
} |
### INSTRUCTION
What is the date of debut that has a date of birth listed at 24-10-1887?
### INPUT
CREATE TABLE table_11585313_1 (date_of_debut VARCHAR, date_of_birth VARCHAR)
### OUTPUT
SELECT date_of_debut FROM table_11585313_1 WHERE date_of_birth = "24-10-1887" | {
"input": "CREATE TABLE table_11585313_1 (date_of_debut VARCHAR, date_of_birth VARCHAR)",
"instruction": "What is the date of debut that has a date of birth listed at 24-10-1887?",
"output": "SELECT date_of_debut FROM table_11585313_1 WHERE date_of_birth = \"24-10-1887\""
} |
### INSTRUCTION
Which customer had at least 2 policies but did not file any claims? List the customer details and id.
### INPUT
CREATE TABLE Customers (customer_details VARCHAR, customer_id VARCHAR, Customer_id VARCHAR); CREATE TABLE Customer_Policies (customer_id VARCHAR, policy_id VARCHAR); CREATE TABLE Claims (policy_id VARCHAR)
### OUTPUT
SELECT T1.customer_details, T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2 EXCEPT SELECT T1.customer_details, T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id JOIN Claims AS T3 ON T2.policy_id = T3.policy_id | {
"input": "CREATE TABLE Customers (customer_details VARCHAR, customer_id VARCHAR, Customer_id VARCHAR); CREATE TABLE Customer_Policies (customer_id VARCHAR, policy_id VARCHAR); CREATE TABLE Claims (policy_id VARCHAR)",
"instruction": "Which customer had at least 2 policies but did not file any claims? List the customer details and id.",
"output": "SELECT T1.customer_details, T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2 EXCEPT SELECT T1.customer_details, T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id JOIN Claims AS T3 ON T2.policy_id = T3.policy_id"
} |
### INSTRUCTION
Show the names for all females from Canada having a wedding in year 2016.
### INPUT
CREATE TABLE people (name VARCHAR, people_id VARCHAR, country VARCHAR, is_male VARCHAR); CREATE TABLE wedding (female_id VARCHAR, year VARCHAR)
### OUTPUT
SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id = T2.people_id WHERE T1.year = 2016 AND T2.is_male = 'F' AND T2.country = 'Canada' | {
"input": "CREATE TABLE people (name VARCHAR, people_id VARCHAR, country VARCHAR, is_male VARCHAR); CREATE TABLE wedding (female_id VARCHAR, year VARCHAR)",
"instruction": "Show the names for all females from Canada having a wedding in year 2016.",
"output": "SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id = T2.people_id WHERE T1.year = 2016 AND T2.is_male = 'F' AND T2.country = 'Canada'"
} |
### INSTRUCTION
What's the term start date for Meretz?
### INPUT
CREATE TABLE table_name_94 (term_start VARCHAR, party VARCHAR)
### OUTPUT
SELECT term_start FROM table_name_94 WHERE party = "meretz" | {
"input": "CREATE TABLE table_name_94 (term_start VARCHAR, party VARCHAR)",
"instruction": "What's the term start date for Meretz?",
"output": "SELECT term_start FROM table_name_94 WHERE party = \"meretz\""
} |
### INSTRUCTION
What is the result for the distance of 10f, and a winner or 2nd of Lampra?
### INPUT
CREATE TABLE table_name_30 (result VARCHAR, distance VARCHAR, winner_or_2nd VARCHAR)
### OUTPUT
SELECT result FROM table_name_30 WHERE distance = "10f" AND winner_or_2nd = "lampra" | {
"input": "CREATE TABLE table_name_30 (result VARCHAR, distance VARCHAR, winner_or_2nd VARCHAR)",
"instruction": "What is the result for the distance of 10f, and a winner or 2nd of Lampra?",
"output": "SELECT result FROM table_name_30 WHERE distance = \"10f\" AND winner_or_2nd = \"lampra\""
} |
### INSTRUCTION
what are all the circuit for gtc winner graeme mundy jamie smyth and pole position bradley ellis alex mortimer
### INPUT
CREATE TABLE table_13079788_3 (circuit VARCHAR, gtc_winner VARCHAR, pole_position VARCHAR)
### OUTPUT
SELECT circuit FROM table_13079788_3 WHERE gtc_winner = "Graeme Mundy Jamie Smyth" AND pole_position = "Bradley Ellis Alex Mortimer" | {
"input": "CREATE TABLE table_13079788_3 (circuit VARCHAR, gtc_winner VARCHAR, pole_position VARCHAR)",
"instruction": "what are all the circuit for gtc winner graeme mundy jamie smyth and pole position bradley ellis alex mortimer",
"output": "SELECT circuit FROM table_13079788_3 WHERE gtc_winner = \"Graeme Mundy Jamie Smyth\" AND pole_position = \"Bradley Ellis Alex Mortimer\""
} |
### INSTRUCTION
What date has a Decision of osgood, and a Score of 3 – 4?
### INPUT
CREATE TABLE table_name_63 (date VARCHAR, decision VARCHAR, score VARCHAR)
### OUTPUT
SELECT date FROM table_name_63 WHERE decision = "osgood" AND score = "3 – 4" | {
"input": "CREATE TABLE table_name_63 (date VARCHAR, decision VARCHAR, score VARCHAR)",
"instruction": "What date has a Decision of osgood, and a Score of 3 – 4?",
"output": "SELECT date FROM table_name_63 WHERE decision = \"osgood\" AND score = \"3 – 4\""
} |
### INSTRUCTION
Which nation has 0 gold, a rank greater than 14, a total of 1, and silver less than 1?
### INPUT
CREATE TABLE table_name_10 (nation VARCHAR, silver VARCHAR, total VARCHAR, gold VARCHAR, rank VARCHAR)
### OUTPUT
SELECT nation FROM table_name_10 WHERE gold = 0 AND rank > 14 AND total = 1 AND silver < 1 | {
"input": "CREATE TABLE table_name_10 (nation VARCHAR, silver VARCHAR, total VARCHAR, gold VARCHAR, rank VARCHAR)",
"instruction": "Which nation has 0 gold, a rank greater than 14, a total of 1, and silver less than 1?",
"output": "SELECT nation FROM table_name_10 WHERE gold = 0 AND rank > 14 AND total = 1 AND silver < 1"
} |
### INSTRUCTION
Find the number of routes that have destination John F Kennedy International Airport.
### INPUT
CREATE TABLE airports (apid VARCHAR, name VARCHAR); CREATE TABLE routes (dst_apid VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.name = 'John F Kennedy International Airport' | {
"input": "CREATE TABLE airports (apid VARCHAR, name VARCHAR); CREATE TABLE routes (dst_apid VARCHAR)",
"instruction": "Find the number of routes that have destination John F Kennedy International Airport.",
"output": "SELECT COUNT(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.name = 'John F Kennedy International Airport'"
} |
### INSTRUCTION
Provide me with the name of the village (German) where there is 96.9% Slovenes in 1951.
### INPUT
CREATE TABLE table_10798421_1 (village__german_ VARCHAR, percent_of_slovenes_1951 VARCHAR)
### OUTPUT
SELECT village__german_ FROM table_10798421_1 WHERE percent_of_slovenes_1951 = "96.9%" | {
"input": "CREATE TABLE table_10798421_1 (village__german_ VARCHAR, percent_of_slovenes_1951 VARCHAR)",
"instruction": "Provide me with the name of the village (German) where there is 96.9% Slovenes in 1951. ",
"output": "SELECT village__german_ FROM table_10798421_1 WHERE percent_of_slovenes_1951 = \"96.9%\""
} |
### INSTRUCTION
What is the team when the high assists was stephen curry (7) and the high points was monta ellis (27)?
### INPUT
CREATE TABLE table_27755784_10 (team VARCHAR, high_assists VARCHAR, high_points VARCHAR)
### OUTPUT
SELECT team FROM table_27755784_10 WHERE high_assists = "Stephen Curry (7)" AND high_points = "Monta Ellis (27)" | {
"input": "CREATE TABLE table_27755784_10 (team VARCHAR, high_assists VARCHAR, high_points VARCHAR)",
"instruction": "What is the team when the high assists was stephen curry (7) and the high points was monta ellis (27)?",
"output": "SELECT team FROM table_27755784_10 WHERE high_assists = \"Stephen Curry (7)\" AND high_points = \"Monta Ellis (27)\""
} |
### INSTRUCTION
List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes.
### INPUT
CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, id VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR)
### OUTPUT
SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor' | {
"input": "CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, id VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR)",
"instruction": "List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes.",
"output": "SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor'"
} |
### INSTRUCTION
What is the name of the city/municipality if the population is 1,388.88?
### INPUT
CREATE TABLE table_232458_1 (city___municipality VARCHAR, pop_density__per_km²_ VARCHAR)
### OUTPUT
SELECT city___municipality FROM table_232458_1 WHERE pop_density__per_km²_ = "1,388.88" | {
"input": "CREATE TABLE table_232458_1 (city___municipality VARCHAR, pop_density__per_km²_ VARCHAR)",
"instruction": "What is the name of the city/municipality if the population is 1,388.88?",
"output": "SELECT city___municipality FROM table_232458_1 WHERE pop_density__per_km²_ = \"1,388.88\""
} |
### INSTRUCTION
Which Award Ceremony has a Nominee of sarah travis, and a Category of the best orchestrations?
### INPUT
CREATE TABLE table_name_87 (award_ceremony VARCHAR, nominee VARCHAR, category VARCHAR)
### OUTPUT
SELECT award_ceremony FROM table_name_87 WHERE nominee = "sarah travis" AND category = "best orchestrations" | {
"input": "CREATE TABLE table_name_87 (award_ceremony VARCHAR, nominee VARCHAR, category VARCHAR)",
"instruction": "Which Award Ceremony has a Nominee of sarah travis, and a Category of the best orchestrations?",
"output": "SELECT award_ceremony FROM table_name_87 WHERE nominee = \"sarah travis\" AND category = \"best orchestrations\""
} |
### INSTRUCTION
What was the highest number of votes for mir-hossein mousavi when the number of invalid votes is 5683
### INPUT
CREATE TABLE table_23390604_1 (mir_hossein_mousavi INTEGER, spoiled_ballots VARCHAR)
### OUTPUT
SELECT MAX(mir_hossein_mousavi) FROM table_23390604_1 WHERE spoiled_ballots = 5683 | {
"input": "CREATE TABLE table_23390604_1 (mir_hossein_mousavi INTEGER, spoiled_ballots VARCHAR)",
"instruction": "What was the highest number of votes for mir-hossein mousavi when the number of invalid votes is 5683",
"output": "SELECT MAX(mir_hossein_mousavi) FROM table_23390604_1 WHERE spoiled_ballots = 5683"
} |
### INSTRUCTION
WHAT IS THE YEAR'S TALLEST VALUE WITH FLOORS LESS THAN 24, AND 05.0 210 north charles street?
### INPUT
CREATE TABLE table_name_10 (years_as_tallest VARCHAR, floors VARCHAR, street_address VARCHAR)
### OUTPUT
SELECT years_as_tallest FROM table_name_10 WHERE floors < 24 AND street_address = "05.0 210 north charles street" | {
"input": "CREATE TABLE table_name_10 (years_as_tallest VARCHAR, floors VARCHAR, street_address VARCHAR)",
"instruction": "WHAT IS THE YEAR'S TALLEST VALUE WITH FLOORS LESS THAN 24, AND 05.0 210 north charles street?",
"output": "SELECT years_as_tallest FROM table_name_10 WHERE floors < 24 AND street_address = \"05.0 210 north charles street\""
} |
### INSTRUCTION
Which TV season has a Season smaller than 8, and a Household (in millions) of 15.92 (17.1 rating)?
### INPUT
CREATE TABLE table_name_61 (tv_season VARCHAR, season VARCHAR, households__in_millions_ VARCHAR)
### OUTPUT
SELECT tv_season FROM table_name_61 WHERE season < 8 AND households__in_millions_ = "15.92 (17.1 rating)" | {
"input": "CREATE TABLE table_name_61 (tv_season VARCHAR, season VARCHAR, households__in_millions_ VARCHAR)",
"instruction": "Which TV season has a Season smaller than 8, and a Household (in millions) of 15.92 (17.1 rating)?",
"output": "SELECT tv_season FROM table_name_61 WHERE season < 8 AND households__in_millions_ = \"15.92 (17.1 rating)\""
} |
### INSTRUCTION
What is the role of the employee named Koby?
### INPUT
CREATE TABLE ROLES (role_description VARCHAR, role_code VARCHAR); CREATE TABLE Employees (role_code VARCHAR, employee_name VARCHAR)
### OUTPUT
SELECT T1.role_description FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code WHERE T2.employee_name = "Koby" | {
"input": "CREATE TABLE ROLES (role_description VARCHAR, role_code VARCHAR); CREATE TABLE Employees (role_code VARCHAR, employee_name VARCHAR)",
"instruction": "What is the role of the employee named Koby?",
"output": "SELECT T1.role_description FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code WHERE T2.employee_name = \"Koby\""
} |
### INSTRUCTION
which course has most number of registered students?
### INPUT
CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (course_Id VARCHAR)
### OUTPUT
SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (course_Id VARCHAR)",
"instruction": "which course has most number of registered students?",
"output": "SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
which Oberliga Südwes has an Oberliga Baden-Württemberg of sv sandhausen in 1984-85?
### INPUT
CREATE TABLE table_name_60 (oberliga_südwest VARCHAR, oberliga_baden_württemberg VARCHAR, season VARCHAR)
### OUTPUT
SELECT oberliga_südwest FROM table_name_60 WHERE oberliga_baden_württemberg = "sv sandhausen" AND season = "1984-85" | {
"input": "CREATE TABLE table_name_60 (oberliga_südwest VARCHAR, oberliga_baden_württemberg VARCHAR, season VARCHAR)",
"instruction": "which Oberliga Südwes has an Oberliga Baden-Württemberg of sv sandhausen in 1984-85?",
"output": "SELECT oberliga_südwest FROM table_name_60 WHERE oberliga_baden_württemberg = \"sv sandhausen\" AND season = \"1984-85\""
} |
### INSTRUCTION
How many different lead margins were stated in the poll administered on September 11, 2008?
### INPUT
CREATE TABLE table_17538810_10 (lead_margin VARCHAR, dates_administered VARCHAR)
### OUTPUT
SELECT COUNT(lead_margin) FROM table_17538810_10 WHERE dates_administered = "September 11, 2008" | {
"input": "CREATE TABLE table_17538810_10 (lead_margin VARCHAR, dates_administered VARCHAR)",
"instruction": "How many different lead margins were stated in the poll administered on September 11, 2008?",
"output": "SELECT COUNT(lead_margin) FROM table_17538810_10 WHERE dates_administered = \"September 11, 2008\""
} |
### INSTRUCTION
Show all member names who are not in charge of any event.
### INPUT
CREATE TABLE member (member_name VARCHAR); CREATE TABLE party_events (member_in_charge_id VARCHAR); CREATE TABLE member (member_name VARCHAR, member_id VARCHAR)
### OUTPUT
SELECT member_name FROM member EXCEPT SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id | {
"input": "CREATE TABLE member (member_name VARCHAR); CREATE TABLE party_events (member_in_charge_id VARCHAR); CREATE TABLE member (member_name VARCHAR, member_id VARCHAR)",
"instruction": "Show all member names who are not in charge of any event.",
"output": "SELECT member_name FROM member EXCEPT SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id"
} |
### INSTRUCTION
what is the standard when the pollutant is o 3 and averaging time is 8-hour?
### INPUT
CREATE TABLE table_name_79 (standard VARCHAR, pollutant VARCHAR, averaging_time VARCHAR)
### OUTPUT
SELECT standard FROM table_name_79 WHERE pollutant = "o 3" AND averaging_time = "8-hour" | {
"input": "CREATE TABLE table_name_79 (standard VARCHAR, pollutant VARCHAR, averaging_time VARCHAR)",
"instruction": "what is the standard when the pollutant is o 3 and averaging time is 8-hour?",
"output": "SELECT standard FROM table_name_79 WHERE pollutant = \"o 3\" AND averaging_time = \"8-hour\""
} |
### INSTRUCTION
Which season premiered on 29 October 1990 and had more than 6 episodes?
### INPUT
CREATE TABLE table_name_94 (series INTEGER, premiere VARCHAR, episodes VARCHAR)
### OUTPUT
SELECT MAX(series) FROM table_name_94 WHERE premiere = "29 october 1990" AND episodes > 6 | {
"input": "CREATE TABLE table_name_94 (series INTEGER, premiere VARCHAR, episodes VARCHAR)",
"instruction": "Which season premiered on 29 October 1990 and had more than 6 episodes?",
"output": "SELECT MAX(series) FROM table_name_94 WHERE premiere = \"29 october 1990\" AND episodes > 6"
} |
### INSTRUCTION
What is the total number of First Elected that has counties represented of Anne Arundel, District of 30, and a Ways and Means Committee?
### INPUT
CREATE TABLE table_name_22 (first_elected VARCHAR, committee VARCHAR, counties_represented VARCHAR, district VARCHAR)
### OUTPUT
SELECT COUNT(first_elected) FROM table_name_22 WHERE counties_represented = "anne arundel" AND district = "30" AND committee = "ways and means" | {
"input": "CREATE TABLE table_name_22 (first_elected VARCHAR, committee VARCHAR, counties_represented VARCHAR, district VARCHAR)",
"instruction": "What is the total number of First Elected that has counties represented of Anne Arundel, District of 30, and a Ways and Means Committee?",
"output": "SELECT COUNT(first_elected) FROM table_name_22 WHERE counties_represented = \"anne arundel\" AND district = \"30\" AND committee = \"ways and means\""
} |
### INSTRUCTION
What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21'
### INPUT
CREATE TABLE Timed_Status_of_Things (thing_id VARCHAR, Status_of_Thing_Code VARCHAR, Date_and_Date VARCHAR); CREATE TABLE Things (thing_id VARCHAR, Type_of_Thing_Code VARCHAR)
### OUTPUT
SELECT DISTINCT T2.thing_id, T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.Status_of_Thing_Code = 'Close' OR T1.Date_and_Date < '2017-06-19 02:59:21' | {
"input": "CREATE TABLE Timed_Status_of_Things (thing_id VARCHAR, Status_of_Thing_Code VARCHAR, Date_and_Date VARCHAR); CREATE TABLE Things (thing_id VARCHAR, Type_of_Thing_Code VARCHAR)",
"instruction": "What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21'",
"output": "SELECT DISTINCT T2.thing_id, T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.Status_of_Thing_Code = 'Close' OR T1.Date_and_Date < '2017-06-19 02:59:21'"
} |
### INSTRUCTION
What is the of Fleet size with a IATA of pr, and a Commenced operations smaller than 1941?
### INPUT
CREATE TABLE table_name_4 (fleet_size INTEGER, iata VARCHAR, commenced_operations VARCHAR)
### OUTPUT
SELECT SUM(fleet_size) FROM table_name_4 WHERE iata = "pr" AND commenced_operations < 1941 | {
"input": "CREATE TABLE table_name_4 (fleet_size INTEGER, iata VARCHAR, commenced_operations VARCHAR)",
"instruction": "What is the of Fleet size with a IATA of pr, and a Commenced operations smaller than 1941?",
"output": "SELECT SUM(fleet_size) FROM table_name_4 WHERE iata = \"pr\" AND commenced_operations < 1941"
} |
### INSTRUCTION
What county has a school with less than 301 students and plays IHSAA class A football?
### INPUT
CREATE TABLE table_name_81 (county VARCHAR, ihsaa_football_class VARCHAR, size VARCHAR)
### OUTPUT
SELECT county FROM table_name_81 WHERE ihsaa_football_class = "a" AND size < 301 | {
"input": "CREATE TABLE table_name_81 (county VARCHAR, ihsaa_football_class VARCHAR, size VARCHAR)",
"instruction": "What county has a school with less than 301 students and plays IHSAA class A football?",
"output": "SELECT county FROM table_name_81 WHERE ihsaa_football_class = \"a\" AND size < 301"
} |
### INSTRUCTION
What team has a national league in 2001?
### INPUT
CREATE TABLE table_name_31 (team VARCHAR, league VARCHAR, year VARCHAR)
### OUTPUT
SELECT team FROM table_name_31 WHERE league = "national" AND year = 2001 | {
"input": "CREATE TABLE table_name_31 (team VARCHAR, league VARCHAR, year VARCHAR)",
"instruction": "What team has a national league in 2001?",
"output": "SELECT team FROM table_name_31 WHERE league = \"national\" AND year = 2001"
} |
### INSTRUCTION
What is the lowest Pick #, when Position is REC, and when CFL Team is Hamilton Tiger-Cats?
### INPUT
CREATE TABLE table_name_62 (pick__number INTEGER, position VARCHAR, cfl_team VARCHAR)
### OUTPUT
SELECT MIN(pick__number) FROM table_name_62 WHERE position = "rec" AND cfl_team = "hamilton tiger-cats" | {
"input": "CREATE TABLE table_name_62 (pick__number INTEGER, position VARCHAR, cfl_team VARCHAR)",
"instruction": "What is the lowest Pick #, when Position is REC, and when CFL Team is Hamilton Tiger-Cats?",
"output": "SELECT MIN(pick__number) FROM table_name_62 WHERE position = \"rec\" AND cfl_team = \"hamilton tiger-cats\""
} |
### INSTRUCTION
How many games have the New York Islanders as an opponent before February 7?
### INPUT
CREATE TABLE table_name_63 (game INTEGER, opponent VARCHAR, february VARCHAR)
### OUTPUT
SELECT SUM(game) FROM table_name_63 WHERE opponent = "new york islanders" AND february < 7 | {
"input": "CREATE TABLE table_name_63 (game INTEGER, opponent VARCHAR, february VARCHAR)",
"instruction": "How many games have the New York Islanders as an opponent before February 7?",
"output": "SELECT SUM(game) FROM table_name_63 WHERE opponent = \"new york islanders\" AND february < 7"
} |
### INSTRUCTION
Who is the manager 1 with Puma as the kit manufacturer and Puma as the shirt sponsor?
### INPUT
CREATE TABLE table_name_29 (manager_1 VARCHAR, kit_manufacturer VARCHAR, shirt_sponsor VARCHAR)
### OUTPUT
SELECT manager_1 FROM table_name_29 WHERE kit_manufacturer = "puma" AND shirt_sponsor = "puma" | {
"input": "CREATE TABLE table_name_29 (manager_1 VARCHAR, kit_manufacturer VARCHAR, shirt_sponsor VARCHAR)",
"instruction": "Who is the manager 1 with Puma as the kit manufacturer and Puma as the shirt sponsor?",
"output": "SELECT manager_1 FROM table_name_29 WHERE kit_manufacturer = \"puma\" AND shirt_sponsor = \"puma\""
} |
### INSTRUCTION
How many places featured the DXCL Callsign?
### INPUT
CREATE TABLE table_12547903_3 (location VARCHAR, callsign VARCHAR)
### OUTPUT
SELECT COUNT(location) FROM table_12547903_3 WHERE callsign = "DXCL" | {
"input": "CREATE TABLE table_12547903_3 (location VARCHAR, callsign VARCHAR)",
"instruction": "How many places featured the DXCL Callsign?",
"output": "SELECT COUNT(location) FROM table_12547903_3 WHERE callsign = \"DXCL\""
} |
### INSTRUCTION
How many dates of vacancy were on 30 october 2010?
### INPUT
CREATE TABLE table_27683516_3 (team VARCHAR, date_of_vacancy VARCHAR)
### OUTPUT
SELECT COUNT(team) FROM table_27683516_3 WHERE date_of_vacancy = "30 October 2010" | {
"input": "CREATE TABLE table_27683516_3 (team VARCHAR, date_of_vacancy VARCHAR)",
"instruction": "How many dates of vacancy were on 30 october 2010?",
"output": "SELECT COUNT(team) FROM table_27683516_3 WHERE date_of_vacancy = \"30 October 2010\""
} |
### INSTRUCTION
How many winners from previous round were there in the semi finals?
### INPUT
CREATE TABLE table_28039032_1 (winners_from_previous_round VARCHAR, round VARCHAR)
### OUTPUT
SELECT winners_from_previous_round FROM table_28039032_1 WHERE round = "Semi finals" | {
"input": "CREATE TABLE table_28039032_1 (winners_from_previous_round VARCHAR, round VARCHAR)",
"instruction": "How many winners from previous round were there in the semi finals?",
"output": "SELECT winners_from_previous_round FROM table_28039032_1 WHERE round = \"Semi finals\""
} |
### INSTRUCTION
What is the earliest round where the gt winning car is max angelelli?
### INPUT
CREATE TABLE table_28490105_1 (rnd INTEGER, gt_winning_car VARCHAR)
### OUTPUT
SELECT MIN(rnd) FROM table_28490105_1 WHERE gt_winning_car = "Max Angelelli" | {
"input": "CREATE TABLE table_28490105_1 (rnd INTEGER, gt_winning_car VARCHAR)",
"instruction": "What is the earliest round where the gt winning car is max angelelli?",
"output": "SELECT MIN(rnd) FROM table_28490105_1 WHERE gt_winning_car = \"Max Angelelli\""
} |
### INSTRUCTION
Find name of the services that has never been used.
### INPUT
CREATE TABLE services (service_name VARCHAR); CREATE TABLE party_services (service_id VARCHAR); CREATE TABLE services (service_name VARCHAR, service_id VARCHAR)
### OUTPUT
SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id = t2.service_id | {
"input": "CREATE TABLE services (service_name VARCHAR); CREATE TABLE party_services (service_id VARCHAR); CREATE TABLE services (service_name VARCHAR, service_id VARCHAR)",
"instruction": "Find name of the services that has never been used.",
"output": "SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id = t2.service_id"
} |
### INSTRUCTION
What is the arena capacity of the arena in the town whose head coach is Yuriy Korotkevich?
### INPUT
CREATE TABLE table_19526911_1 (arena__capacity_ VARCHAR, head_coach VARCHAR)
### OUTPUT
SELECT COUNT(arena__capacity_) FROM table_19526911_1 WHERE head_coach = "Yuriy Korotkevich" | {
"input": "CREATE TABLE table_19526911_1 (arena__capacity_ VARCHAR, head_coach VARCHAR)",
"instruction": "What is the arena capacity of the arena in the town whose head coach is Yuriy Korotkevich?",
"output": "SELECT COUNT(arena__capacity_) FROM table_19526911_1 WHERE head_coach = \"Yuriy Korotkevich\""
} |
### INSTRUCTION
Find the first names of all the authors who have written a paper with title containing the word "Functional".
### INPUT
CREATE TABLE authors (fname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR); CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR)
### OUTPUT
SELECT t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE "%Functional%" | {
"input": "CREATE TABLE authors (fname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR); CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR)",
"instruction": "Find the first names of all the authors who have written a paper with title containing the word \"Functional\".",
"output": "SELECT t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE \"%Functional%\""
} |
### INSTRUCTION
What is the highest number of dave viewers of an episode with 119000 dave ja vu viewers?
### INPUT
CREATE TABLE table_25721_3 (dave_viewers INTEGER, dave_ja_vu_viewers VARCHAR)
### OUTPUT
SELECT MAX(dave_viewers) FROM table_25721_3 WHERE dave_ja_vu_viewers = 119000 | {
"input": "CREATE TABLE table_25721_3 (dave_viewers INTEGER, dave_ja_vu_viewers VARCHAR)",
"instruction": "What is the highest number of dave viewers of an episode with 119000 dave ja vu viewers?",
"output": "SELECT MAX(dave_viewers) FROM table_25721_3 WHERE dave_ja_vu_viewers = 119000"
} |
### INSTRUCTION
What is average frequency MHZ when is in portales, new mexico?
### INPUT
CREATE TABLE table_name_13 (frequency_mhz INTEGER, city_of_license VARCHAR)
### OUTPUT
SELECT AVG(frequency_mhz) FROM table_name_13 WHERE city_of_license = "portales, new mexico" | {
"input": "CREATE TABLE table_name_13 (frequency_mhz INTEGER, city_of_license VARCHAR)",
"instruction": "What is average frequency MHZ when is in portales, new mexico?",
"output": "SELECT AVG(frequency_mhz) FROM table_name_13 WHERE city_of_license = \"portales, new mexico\""
} |
### INSTRUCTION
Which stage corresponds to Banesto and Tony Rominger?
### INPUT
CREATE TABLE table_name_7 (stage VARCHAR, team_classification VARCHAR, points_classification VARCHAR)
### OUTPUT
SELECT stage FROM table_name_7 WHERE team_classification = "banesto" AND points_classification = "tony rominger" | {
"input": "CREATE TABLE table_name_7 (stage VARCHAR, team_classification VARCHAR, points_classification VARCHAR)",
"instruction": "Which stage corresponds to Banesto and Tony Rominger?",
"output": "SELECT stage FROM table_name_7 WHERE team_classification = \"banesto\" AND points_classification = \"tony rominger\""
} |
### INSTRUCTION
What institution won in 2010 with student Cheng Herng Yi?
### INPUT
CREATE TABLE table_name_82 (institution VARCHAR, year VARCHAR, name VARCHAR)
### OUTPUT
SELECT institution FROM table_name_82 WHERE year > 2010 AND name = "cheng herng yi" | {
"input": "CREATE TABLE table_name_82 (institution VARCHAR, year VARCHAR, name VARCHAR)",
"instruction": "What institution won in 2010 with student Cheng Herng Yi?",
"output": "SELECT institution FROM table_name_82 WHERE year > 2010 AND name = \"cheng herng yi\""
} |
### INSTRUCTION
what language is seethaiah in
### INPUT
CREATE TABLE table_name_27 (language VARCHAR, film_name VARCHAR)
### OUTPUT
SELECT language FROM table_name_27 WHERE film_name = "seethaiah" | {
"input": "CREATE TABLE table_name_27 (language VARCHAR, film_name VARCHAR)",
"instruction": "what language is seethaiah in",
"output": "SELECT language FROM table_name_27 WHERE film_name = \"seethaiah\""
} |
### INSTRUCTION
What is the status for tennis at cleveland state who has yes for swimming, golf and soccer?
### INPUT
CREATE TABLE table_name_78 (tennis VARCHAR, school VARCHAR, swimming VARCHAR, golf VARCHAR, soccer VARCHAR)
### OUTPUT
SELECT tennis FROM table_name_78 WHERE golf = "yes" AND soccer = "yes" AND swimming = "yes" AND school = "cleveland state" | {
"input": "CREATE TABLE table_name_78 (tennis VARCHAR, school VARCHAR, swimming VARCHAR, golf VARCHAR, soccer VARCHAR)",
"instruction": "What is the status for tennis at cleveland state who has yes for swimming, golf and soccer?",
"output": "SELECT tennis FROM table_name_78 WHERE golf = \"yes\" AND soccer = \"yes\" AND swimming = \"yes\" AND school = \"cleveland state\""
} |
### INSTRUCTION
Name the interacting settings for co-operate, plan, take care of, help
### INPUT
CREATE TABLE table_name_40 (interacting__settings_ VARCHAR, doing__actions_ VARCHAR)
### OUTPUT
SELECT interacting__settings_ FROM table_name_40 WHERE doing__actions_ = "co-operate, plan, take care of, help" | {
"input": "CREATE TABLE table_name_40 (interacting__settings_ VARCHAR, doing__actions_ VARCHAR)",
"instruction": "Name the interacting settings for co-operate, plan, take care of, help",
"output": "SELECT interacting__settings_ FROM table_name_40 WHERE doing__actions_ = \"co-operate, plan, take care of, help\""
} |
### INSTRUCTION
What date has 2006 fifa world cup qualification as the competition, and alamodome, san antonio, united States as the venue?
### INPUT
CREATE TABLE table_name_40 (date VARCHAR, competition VARCHAR, venue VARCHAR)
### OUTPUT
SELECT date FROM table_name_40 WHERE competition = "2006 fifa world cup qualification" AND venue = "alamodome, san antonio, united states" | {
"input": "CREATE TABLE table_name_40 (date VARCHAR, competition VARCHAR, venue VARCHAR)",
"instruction": "What date has 2006 fifa world cup qualification as the competition, and alamodome, san antonio, united States as the venue?",
"output": "SELECT date FROM table_name_40 WHERE competition = \"2006 fifa world cup qualification\" AND venue = \"alamodome, san antonio, united states\""
} |
### INSTRUCTION
Which Republican ran against the American Labor candidate Matthew J. Merritt?
### INPUT
CREATE TABLE table_name_5 (republican_ticket VARCHAR, american_labor_ticket VARCHAR)
### OUTPUT
SELECT republican_ticket FROM table_name_5 WHERE american_labor_ticket = "matthew j. merritt" | {
"input": "CREATE TABLE table_name_5 (republican_ticket VARCHAR, american_labor_ticket VARCHAR)",
"instruction": "Which Republican ran against the American Labor candidate Matthew J. Merritt?",
"output": "SELECT republican_ticket FROM table_name_5 WHERE american_labor_ticket = \"matthew j. merritt\""
} |
### INSTRUCTION
What was the date of the Paco Rabanne Open de France?
### INPUT
CREATE TABLE table_name_95 (date VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT date FROM table_name_95 WHERE tournament = "paco rabanne open de france" | {
"input": "CREATE TABLE table_name_95 (date VARCHAR, tournament VARCHAR)",
"instruction": "What was the date of the Paco Rabanne Open de France?",
"output": "SELECT date FROM table_name_95 WHERE tournament = \"paco rabanne open de france\""
} |
### INSTRUCTION
What is the lowest total metals of a team with more than 6 silver, 6 bronze, and fewer than 16 gold medals?
### INPUT
CREATE TABLE table_name_77 (total INTEGER, gold VARCHAR, silver VARCHAR, bronze VARCHAR)
### OUTPUT
SELECT MIN(total) FROM table_name_77 WHERE silver > 6 AND bronze = 6 AND gold < 16 | {
"input": "CREATE TABLE table_name_77 (total INTEGER, gold VARCHAR, silver VARCHAR, bronze VARCHAR)",
"instruction": "What is the lowest total metals of a team with more than 6 silver, 6 bronze, and fewer than 16 gold medals?",
"output": "SELECT MIN(total) FROM table_name_77 WHERE silver > 6 AND bronze = 6 AND gold < 16"
} |
### INSTRUCTION
Show last names for all student who are on scholarship.
### INPUT
CREATE TABLE Student (Lname VARCHAR, StuID VARCHAR); CREATE TABLE Sportsinfo (StuID VARCHAR, onscholarship VARCHAR)
### OUTPUT
SELECT T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y' | {
"input": "CREATE TABLE Student (Lname VARCHAR, StuID VARCHAR); CREATE TABLE Sportsinfo (StuID VARCHAR, onscholarship VARCHAR)",
"instruction": "Show last names for all student who are on scholarship.",
"output": "SELECT T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y'"
} |
### INSTRUCTION
Who is the Winning Applicant of Ensemble Name Muxco Lincolnshire in Block 10D?
### INPUT
CREATE TABLE table_name_45 (winning_applicant VARCHAR, block VARCHAR, ensemble_name VARCHAR)
### OUTPUT
SELECT winning_applicant FROM table_name_45 WHERE block = "10d" AND ensemble_name = "muxco lincolnshire" | {
"input": "CREATE TABLE table_name_45 (winning_applicant VARCHAR, block VARCHAR, ensemble_name VARCHAR)",
"instruction": "Who is the Winning Applicant of Ensemble Name Muxco Lincolnshire in Block 10D?",
"output": "SELECT winning_applicant FROM table_name_45 WHERE block = \"10d\" AND ensemble_name = \"muxco lincolnshire\""
} |
### INSTRUCTION
Who has a religion of ☪ and more than 1853 votes?
### INPUT
CREATE TABLE table_name_66 (candidate_name VARCHAR, votes VARCHAR, religion VARCHAR)
### OUTPUT
SELECT candidate_name FROM table_name_66 WHERE votes > 1853 AND religion = "☪" | {
"input": "CREATE TABLE table_name_66 (candidate_name VARCHAR, votes VARCHAR, religion VARCHAR)",
"instruction": "Who has a religion of ☪ and more than 1853 votes?",
"output": "SELECT candidate_name FROM table_name_66 WHERE votes > 1853 AND religion = \"☪\""
} |
### INSTRUCTION
What is the series number for the episode directed by jay sandrich that aired October 23, 1986?
### INPUT
CREATE TABLE table_2818164_4 (no_in_series INTEGER, directed_by VARCHAR, original_air_date VARCHAR)
### OUTPUT
SELECT MIN(no_in_series) FROM table_2818164_4 WHERE directed_by = "Jay Sandrich" AND original_air_date = "October 23, 1986" | {
"input": "CREATE TABLE table_2818164_4 (no_in_series INTEGER, directed_by VARCHAR, original_air_date VARCHAR)",
"instruction": "What is the series number for the episode directed by jay sandrich that aired October 23, 1986?",
"output": "SELECT MIN(no_in_series) FROM table_2818164_4 WHERE directed_by = \"Jay Sandrich\" AND original_air_date = \"October 23, 1986\""
} |
### INSTRUCTION
What DS division has S. L. M. Haneefa as the divisional secretary?
### INPUT
CREATE TABLE table_12485020_1 (ds_division VARCHAR, divisional_secretary VARCHAR)
### OUTPUT
SELECT ds_division FROM table_12485020_1 WHERE divisional_secretary = "S. L. M. Haneefa" | {
"input": "CREATE TABLE table_12485020_1 (ds_division VARCHAR, divisional_secretary VARCHAR)",
"instruction": "What DS division has S. L. M. Haneefa as the divisional secretary?",
"output": "SELECT ds_division FROM table_12485020_1 WHERE divisional_secretary = \"S. L. M. Haneefa\""
} |
### INSTRUCTION
Which events have the number of notes between one and three? List the event id and the property id.
### INPUT
CREATE TABLE Customer_Events (Customer_Event_ID VARCHAR, property_id VARCHAR, customer_event_id VARCHAR); CREATE TABLE Customer_Event_Notes (Customer_Event_ID VARCHAR)
### OUTPUT
SELECT T1.Customer_Event_ID, T1.property_id FROM Customer_Events AS T1 JOIN Customer_Event_Notes AS T2 ON T1.Customer_Event_ID = T2.Customer_Event_ID GROUP BY T1.customer_event_id HAVING COUNT(*) BETWEEN 1 AND 3 | {
"input": "CREATE TABLE Customer_Events (Customer_Event_ID VARCHAR, property_id VARCHAR, customer_event_id VARCHAR); CREATE TABLE Customer_Event_Notes (Customer_Event_ID VARCHAR)",
"instruction": "Which events have the number of notes between one and three? List the event id and the property id.",
"output": "SELECT T1.Customer_Event_ID, T1.property_id FROM Customer_Events AS T1 JOIN Customer_Event_Notes AS T2 ON T1.Customer_Event_ID = T2.Customer_Event_ID GROUP BY T1.customer_event_id HAVING COUNT(*) BETWEEN 1 AND 3"
} |
### INSTRUCTION
What is the highest Money ($), when Top Par is E, and when Player is Ernie Els?
### INPUT
CREATE TABLE table_name_35 (money___ INTEGER, to_par VARCHAR, player VARCHAR)
### OUTPUT
SELECT MAX(money___) AS $__ FROM table_name_35 WHERE to_par = "e" AND player = "ernie els" | {
"input": "CREATE TABLE table_name_35 (money___ INTEGER, to_par VARCHAR, player VARCHAR)",
"instruction": "What is the highest Money ($), when Top Par is E, and when Player is Ernie Els?",
"output": "SELECT MAX(money___) AS $__ FROM table_name_35 WHERE to_par = \"e\" AND player = \"ernie els\""
} |
### INSTRUCTION
Show the names of all the donors except those whose donation amount less than 9.
### INPUT
CREATE TABLE endowment (donator_name VARCHAR, amount INTEGER)
### OUTPUT
SELECT donator_name FROM endowment EXCEPT SELECT donator_name FROM endowment WHERE amount < 9 | {
"input": "CREATE TABLE endowment (donator_name VARCHAR, amount INTEGER)",
"instruction": "Show the names of all the donors except those whose donation amount less than 9.",
"output": "SELECT donator_name FROM endowment EXCEPT SELECT donator_name FROM endowment WHERE amount < 9"
} |
### INSTRUCTION
Which Date has Points smaller than 85 and a Game # of 74?
### INPUT
CREATE TABLE table_name_36 (date VARCHAR, points VARCHAR, game__number VARCHAR)
### OUTPUT
SELECT date FROM table_name_36 WHERE points < 85 AND game__number = 74 | {
"input": "CREATE TABLE table_name_36 (date VARCHAR, points VARCHAR, game__number VARCHAR)",
"instruction": "Which Date has Points smaller than 85 and a Game # of 74?",
"output": "SELECT date FROM table_name_36 WHERE points < 85 AND game__number = 74"
} |
### INSTRUCTION
what's the bleeding time with partial thromboplastin time being unaffected and condition being liver failure , early
### INPUT
CREATE TABLE table_14006_1 (bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR, condition VARCHAR)
### OUTPUT
SELECT bleeding_time FROM table_14006_1 WHERE partial_thromboplastin_time = "Unaffected" AND condition = "Liver failure , early" | {
"input": "CREATE TABLE table_14006_1 (bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR, condition VARCHAR)",
"instruction": "what's the bleeding time with partial thromboplastin time being unaffected and condition being liver failure , early",
"output": "SELECT bleeding_time FROM table_14006_1 WHERE partial_thromboplastin_time = \"Unaffected\" AND condition = \"Liver failure , early\""
} |
### INSTRUCTION
What was the country with a population density per km² of 3.5/km² (/sqmi)?
### INPUT
CREATE TABLE table_26769_1 (country_or_territory_with_flag VARCHAR, population_density_per_km² VARCHAR)
### OUTPUT
SELECT country_or_territory_with_flag FROM table_26769_1 WHERE population_density_per_km² = "3.5/km² (/sqmi)" | {
"input": "CREATE TABLE table_26769_1 (country_or_territory_with_flag VARCHAR, population_density_per_km² VARCHAR)",
"instruction": "What was the country with a population density per km² of 3.5/km² (/sqmi)?",
"output": "SELECT country_or_territory_with_flag FROM table_26769_1 WHERE population_density_per_km² = \"3.5/km² (/sqmi)\""
} |
### INSTRUCTION
What was the missing for lieutenant general sir thomas picton?
### INPUT
CREATE TABLE table_11793221_4 (missing VARCHAR, commander VARCHAR)
### OUTPUT
SELECT missing FROM table_11793221_4 WHERE commander = "Lieutenant General Sir Thomas Picton" | {
"input": "CREATE TABLE table_11793221_4 (missing VARCHAR, commander VARCHAR)",
"instruction": "What was the missing for lieutenant general sir thomas picton?",
"output": "SELECT missing FROM table_11793221_4 WHERE commander = \"Lieutenant General Sir Thomas Picton\""
} |
### INSTRUCTION
Which Date has a Tournament of at&t pebble beach national pro-am, and a Margin of victory of 1 stroke, and a To par of –11?
### INPUT
CREATE TABLE table_name_14 (date VARCHAR, to_par VARCHAR, tournament VARCHAR, margin_of_victory VARCHAR)
### OUTPUT
SELECT date FROM table_name_14 WHERE tournament = "at&t pebble beach national pro-am" AND margin_of_victory = "1 stroke" AND to_par = "–11" | {
"input": "CREATE TABLE table_name_14 (date VARCHAR, to_par VARCHAR, tournament VARCHAR, margin_of_victory VARCHAR)",
"instruction": "Which Date has a Tournament of at&t pebble beach national pro-am, and a Margin of victory of 1 stroke, and a To par of –11?",
"output": "SELECT date FROM table_name_14 WHERE tournament = \"at&t pebble beach national pro-am\" AND margin_of_victory = \"1 stroke\" AND to_par = \"–11\""
} |
### INSTRUCTION
Give me the maximum low temperature and average precipitation at the Amersham station.
### INPUT
CREATE TABLE weekly_weather (low_temperature INTEGER, precipitation INTEGER, station_id VARCHAR); CREATE TABLE station (id VARCHAR, network_name VARCHAR)
### OUTPUT
SELECT MAX(t1.low_temperature), AVG(t1.precipitation) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id WHERE t2.network_name = "Amersham" | {
"input": "CREATE TABLE weekly_weather (low_temperature INTEGER, precipitation INTEGER, station_id VARCHAR); CREATE TABLE station (id VARCHAR, network_name VARCHAR)",
"instruction": "Give me the maximum low temperature and average precipitation at the Amersham station.",
"output": "SELECT MAX(t1.low_temperature), AVG(t1.precipitation) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id WHERE t2.network_name = \"Amersham\""
} |
### INSTRUCTION
what are all the playoffs for regular season is 1st, atlantic division
### INPUT
CREATE TABLE table_1046170_5 (playoffs VARCHAR, regular_season VARCHAR)
### OUTPUT
SELECT playoffs FROM table_1046170_5 WHERE regular_season = "1st, Atlantic division" | {
"input": "CREATE TABLE table_1046170_5 (playoffs VARCHAR, regular_season VARCHAR)",
"instruction": "what are all the playoffs for regular season is 1st, atlantic division",
"output": "SELECT playoffs FROM table_1046170_5 WHERE regular_season = \"1st, Atlantic division\""
} |
### INSTRUCTION
What is the partial failure for the Country of russia, and a Failure larger than 0, and a Family of angara, and a Launch larger than 1?
### INPUT
CREATE TABLE table_name_53 (partial_failures INTEGER, launches VARCHAR, family VARCHAR, country VARCHAR, failures VARCHAR)
### OUTPUT
SELECT AVG(partial_failures) FROM table_name_53 WHERE country = "russia" AND failures > 0 AND family = "angara" AND launches > 1 | {
"input": "CREATE TABLE table_name_53 (partial_failures INTEGER, launches VARCHAR, family VARCHAR, country VARCHAR, failures VARCHAR)",
"instruction": "What is the partial failure for the Country of russia, and a Failure larger than 0, and a Family of angara, and a Launch larger than 1?",
"output": "SELECT AVG(partial_failures) FROM table_name_53 WHERE country = \"russia\" AND failures > 0 AND family = \"angara\" AND launches > 1"
} |
### INSTRUCTION
Find the titles of items that received both a rating higher than 8 and a rating below 5.
### INPUT
CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)
### OUTPUT
SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating > 8 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating < 5 | {
"input": "CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)",
"instruction": "Find the titles of items that received both a rating higher than 8 and a rating below 5.",
"output": "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating > 8 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating < 5"
} |
### INSTRUCTION
When 2010 is the first elected and Florida 7 is the district who are the candidates?
### INPUT
CREATE TABLE table_25030512_12 (candidates VARCHAR, district VARCHAR, first_elected VARCHAR)
### OUTPUT
SELECT candidates FROM table_25030512_12 WHERE district = "Florida 7" AND first_elected = "2010" | {
"input": "CREATE TABLE table_25030512_12 (candidates VARCHAR, district VARCHAR, first_elected VARCHAR)",
"instruction": "When 2010 is the first elected and Florida 7 is the district who are the candidates?",
"output": "SELECT candidates FROM table_25030512_12 WHERE district = \"Florida 7\" AND first_elected = \"2010\""
} |
### INSTRUCTION
what is the country when the nots is sa/b, the rank is more than 1 and the athlete is zhang xiuyun?
### INPUT
CREATE TABLE table_name_55 (country VARCHAR, athlete VARCHAR, notes VARCHAR, rank VARCHAR)
### OUTPUT
SELECT country FROM table_name_55 WHERE notes = "sa/b" AND rank > 1 AND athlete = "zhang xiuyun" | {
"input": "CREATE TABLE table_name_55 (country VARCHAR, athlete VARCHAR, notes VARCHAR, rank VARCHAR)",
"instruction": "what is the country when the nots is sa/b, the rank is more than 1 and the athlete is zhang xiuyun?",
"output": "SELECT country FROM table_name_55 WHERE notes = \"sa/b\" AND rank > 1 AND athlete = \"zhang xiuyun\""
} |
### INSTRUCTION
What is Date, when Location is Polo Grounds, when Winner is Philadelphia Eagles, and when Year is 1948?
### INPUT
CREATE TABLE table_name_70 (date VARCHAR, year VARCHAR, location VARCHAR, winner VARCHAR)
### OUTPUT
SELECT date FROM table_name_70 WHERE location = "polo grounds" AND winner = "philadelphia eagles" AND year = 1948 | {
"input": "CREATE TABLE table_name_70 (date VARCHAR, year VARCHAR, location VARCHAR, winner VARCHAR)",
"instruction": "What is Date, when Location is Polo Grounds, when Winner is Philadelphia Eagles, and when Year is 1948?",
"output": "SELECT date FROM table_name_70 WHERE location = \"polo grounds\" AND winner = \"philadelphia eagles\" AND year = 1948"
} |
### INSTRUCTION
Which astrological sign has the Latin motto of Vita?
### INPUT
CREATE TABLE table_name_21 (sign VARCHAR, latin_motto VARCHAR)
### OUTPUT
SELECT sign FROM table_name_21 WHERE latin_motto = "vita" | {
"input": "CREATE TABLE table_name_21 (sign VARCHAR, latin_motto VARCHAR)",
"instruction": "Which astrological sign has the Latin motto of Vita?",
"output": "SELECT sign FROM table_name_21 WHERE latin_motto = \"vita\""
} |
### INSTRUCTION
Find the first name and age of students who have a dog but do not have a cat as a pet.
### INPUT
CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE student (fname VARCHAR, age VARCHAR, stuid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR)
### OUTPUT
SELECT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND NOT T1.stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat') | {
"input": "CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE student (fname VARCHAR, age VARCHAR, stuid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR)",
"instruction": "Find the first name and age of students who have a dog but do not have a cat as a pet.",
"output": "SELECT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND NOT T1.stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')"
} |
### INSTRUCTION
What are the names of customers using the most popular payment method?
### INPUT
CREATE TABLE customers (customer_name VARCHAR, payment_method VARCHAR)
### OUTPUT
SELECT customer_name FROM customers WHERE payment_method = (SELECT payment_method FROM customers GROUP BY payment_method ORDER BY COUNT(*) DESC LIMIT 1) | {
"input": "CREATE TABLE customers (customer_name VARCHAR, payment_method VARCHAR)",
"instruction": "What are the names of customers using the most popular payment method?",
"output": "SELECT customer_name FROM customers WHERE payment_method = (SELECT payment_method FROM customers GROUP BY payment_method ORDER BY COUNT(*) DESC LIMIT 1)"
} |
### INSTRUCTION
What is Result, when Date is "June 11, 1994", and when Venue is "Miami, United States"?
### INPUT
CREATE TABLE table_name_58 (result VARCHAR, date VARCHAR, venue VARCHAR)
### OUTPUT
SELECT result FROM table_name_58 WHERE date = "june 11, 1994" AND venue = "miami, united states" | {
"input": "CREATE TABLE table_name_58 (result VARCHAR, date VARCHAR, venue VARCHAR)",
"instruction": "What is Result, when Date is \"June 11, 1994\", and when Venue is \"Miami, United States\"?",
"output": "SELECT result FROM table_name_58 WHERE date = \"june 11, 1994\" AND venue = \"miami, united states\""
} |
### INSTRUCTION
What is the crowd with Away team of hawthorn?
### INPUT
CREATE TABLE table_name_94 (crowd INTEGER, away_team VARCHAR)
### OUTPUT
SELECT AVG(crowd) FROM table_name_94 WHERE away_team = "hawthorn" | {
"input": "CREATE TABLE table_name_94 (crowd INTEGER, away_team VARCHAR)",
"instruction": "What is the crowd with Away team of hawthorn?",
"output": "SELECT AVG(crowd) FROM table_name_94 WHERE away_team = \"hawthorn\""
} |
### INSTRUCTION
Find the Char cells, Pixels and Hardware colours for the screen of the phone whose hardware model name is "LG-P760".
### INPUT
CREATE TABLE phone (screen_mode VARCHAR, Hardware_Model_name VARCHAR); CREATE TABLE screen_mode (Char_cells VARCHAR, Pixels VARCHAR, Hardware_colours VARCHAR, Graphics_mode VARCHAR)
### OUTPUT
SELECT T1.Char_cells, T1.Pixels, T1.Hardware_colours FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T2.Hardware_Model_name = "LG-P760" | {
"input": "CREATE TABLE phone (screen_mode VARCHAR, Hardware_Model_name VARCHAR); CREATE TABLE screen_mode (Char_cells VARCHAR, Pixels VARCHAR, Hardware_colours VARCHAR, Graphics_mode VARCHAR)",
"instruction": "Find the Char cells, Pixels and Hardware colours for the screen of the phone whose hardware model name is \"LG-P760\".",
"output": "SELECT T1.Char_cells, T1.Pixels, T1.Hardware_colours FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T2.Hardware_Model_name = \"LG-P760\""
} |
### INSTRUCTION
what is the venue when the year is 2006, the competition is asian games and the event is 400 m?
### INPUT
CREATE TABLE table_name_20 (venue VARCHAR, event VARCHAR, year VARCHAR, competition VARCHAR)
### OUTPUT
SELECT venue FROM table_name_20 WHERE year = 2006 AND competition = "asian games" AND event = "400 m" | {
"input": "CREATE TABLE table_name_20 (venue VARCHAR, event VARCHAR, year VARCHAR, competition VARCHAR)",
"instruction": "what is the venue when the year is 2006, the competition is asian games and the event is 400 m?",
"output": "SELECT venue FROM table_name_20 WHERE year = 2006 AND competition = \"asian games\" AND event = \"400 m\""
} |
### INSTRUCTION
If the home is Atlético Tucumán, what is the name of the first leg?
### INPUT
CREATE TABLE table_17968229_1 (home__2nd_leg_ VARCHAR)
### OUTPUT
SELECT 1 AS st_leg FROM table_17968229_1 WHERE home__2nd_leg_ = "Atlético Tucumán" | {
"input": "CREATE TABLE table_17968229_1 (home__2nd_leg_ VARCHAR)",
"instruction": "If the home is Atlético Tucumán, what is the name of the first leg?",
"output": "SELECT 1 AS st_leg FROM table_17968229_1 WHERE home__2nd_leg_ = \"Atlético Tucumán\""
} |
### INSTRUCTION
For events with under 3 times played and fewer than 1 cut made, what is the total number of top-10 finishes?
### INPUT
CREATE TABLE table_name_24 (top_10 VARCHAR, events VARCHAR, cuts_made VARCHAR)
### OUTPUT
SELECT COUNT(top_10) FROM table_name_24 WHERE events < 3 AND cuts_made < 1 | {
"input": "CREATE TABLE table_name_24 (top_10 VARCHAR, events VARCHAR, cuts_made VARCHAR)",
"instruction": "For events with under 3 times played and fewer than 1 cut made, what is the total number of top-10 finishes?",
"output": "SELECT COUNT(top_10) FROM table_name_24 WHERE events < 3 AND cuts_made < 1"
} |
### INSTRUCTION
Show the names of customers who have the most mailshots.
### INPUT
CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR)
### OUTPUT
SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR)",
"instruction": "Show the names of customers who have the most mailshots.",
"output": "SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
How many freedom indices does the country of Austria have?
### INPUT
CREATE TABLE table_1604579_2 (country VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM table_1604579_2 WHERE country = "Austria" | {
"input": "CREATE TABLE table_1604579_2 (country VARCHAR)",
"instruction": "How many freedom indices does the country of Austria have?",
"output": "SELECT COUNT(*) FROM table_1604579_2 WHERE country = \"Austria\""
} |
### INSTRUCTION
For End of Fiscal Year(s) with a Debt Held By Public ($Billions) larger than 236.8, and as % of GDP Low-High of 33.4 what is the sum of the number of Gross Debt in $Billions undeflated Treas.?
### INPUT
CREATE TABLE table_name_11 (gross_debt_in_ VARCHAR, debt_held_by_public__$billions_ VARCHAR, as__percentage_of_gdp_low_high VARCHAR)
### OUTPUT
SELECT COUNT(gross_debt_in_) AS $billions_undeflated_treas FROM table_name_11 WHERE debt_held_by_public__$billions_ > 236.8 AND as__percentage_of_gdp_low_high = "33.4" | {
"input": "CREATE TABLE table_name_11 (gross_debt_in_ VARCHAR, debt_held_by_public__$billions_ VARCHAR, as__percentage_of_gdp_low_high VARCHAR)",
"instruction": "For End of Fiscal Year(s) with a Debt Held By Public ($Billions) larger than 236.8, and as % of GDP Low-High of 33.4 what is the sum of the number of Gross Debt in $Billions undeflated Treas.?",
"output": "SELECT COUNT(gross_debt_in_) AS $billions_undeflated_treas FROM table_name_11 WHERE debt_held_by_public__$billions_ > 236.8 AND as__percentage_of_gdp_low_high = \"33.4\""
} |
### INSTRUCTION
What's the highest Played with a Scored of 15, and Draws that's less than 1?
### INPUT
CREATE TABLE table_name_80 (played INTEGER, scored VARCHAR, draws VARCHAR)
### OUTPUT
SELECT MAX(played) FROM table_name_80 WHERE scored = 15 AND draws < 1 | {
"input": "CREATE TABLE table_name_80 (played INTEGER, scored VARCHAR, draws VARCHAR)",
"instruction": "What's the highest Played with a Scored of 15, and Draws that's less than 1?",
"output": "SELECT MAX(played) FROM table_name_80 WHERE scored = 15 AND draws < 1"
} |
### INSTRUCTION
Name the number of total votes for # of seats won being 30
### INPUT
CREATE TABLE table_19283982_4 (_number_of_total_votes VARCHAR, _number_of_seats_won VARCHAR)
### OUTPUT
SELECT _number_of_total_votes FROM table_19283982_4 WHERE _number_of_seats_won = 30 | {
"input": "CREATE TABLE table_19283982_4 (_number_of_total_votes VARCHAR, _number_of_seats_won VARCHAR)",
"instruction": "Name the number of total votes for # of seats won being 30",
"output": "SELECT _number_of_total_votes FROM table_19283982_4 WHERE _number_of_seats_won = 30"
} |
### INSTRUCTION
who is the opponent when the surface is clay, the outcome is winner and the championship is estoril on 15 april 1996?
### INPUT
CREATE TABLE table_name_93 (opponent VARCHAR, date VARCHAR, championship VARCHAR, surface VARCHAR, outcome VARCHAR)
### OUTPUT
SELECT opponent FROM table_name_93 WHERE surface = "clay" AND outcome = "winner" AND championship = "estoril" AND date = "15 april 1996" | {
"input": "CREATE TABLE table_name_93 (opponent VARCHAR, date VARCHAR, championship VARCHAR, surface VARCHAR, outcome VARCHAR)",
"instruction": "who is the opponent when the surface is clay, the outcome is winner and the championship is estoril on 15 april 1996?",
"output": "SELECT opponent FROM table_name_93 WHERE surface = \"clay\" AND outcome = \"winner\" AND championship = \"estoril\" AND date = \"15 april 1996\""
} |
### INSTRUCTION
Show the hometowns shared by people older than 23 and younger than 20.
### INPUT
CREATE TABLE people (Hometown VARCHAR, Age INTEGER)
### OUTPUT
SELECT Hometown FROM people WHERE Age > 23 INTERSECT SELECT Hometown FROM people WHERE Age < 20 | {
"input": "CREATE TABLE people (Hometown VARCHAR, Age INTEGER)",
"instruction": "Show the hometowns shared by people older than 23 and younger than 20.",
"output": "SELECT Hometown FROM people WHERE Age > 23 INTERSECT SELECT Hometown FROM people WHERE Age < 20"
} |
### INSTRUCTION
What location attendance had a score of l 92–116?
### INPUT
CREATE TABLE table_name_30 (location_attendance VARCHAR, score VARCHAR)
### OUTPUT
SELECT location_attendance FROM table_name_30 WHERE score = "l 92–116" | {
"input": "CREATE TABLE table_name_30 (location_attendance VARCHAR, score VARCHAR)",
"instruction": "What location attendance had a score of l 92–116?",
"output": "SELECT location_attendance FROM table_name_30 WHERE score = \"l 92–116\""
} |
### INSTRUCTION
Who was the lead envoy of the congratulation mission in 1718 with the Ryūkyūan King shō kei?
### INPUT
CREATE TABLE table_name_10 (lead_envoy VARCHAR, year VARCHAR, ryūkyūan_king VARCHAR, mission_type VARCHAR)
### OUTPUT
SELECT lead_envoy FROM table_name_10 WHERE ryūkyūan_king = "shō kei" AND mission_type = "congratulation" AND year = 1718 | {
"input": "CREATE TABLE table_name_10 (lead_envoy VARCHAR, year VARCHAR, ryūkyūan_king VARCHAR, mission_type VARCHAR)",
"instruction": "Who was the lead envoy of the congratulation mission in 1718 with the Ryūkyūan King shō kei?",
"output": "SELECT lead_envoy FROM table_name_10 WHERE ryūkyūan_king = \"shō kei\" AND mission_type = \"congratulation\" AND year = 1718"
} |
### INSTRUCTION
What was the nominated work after 2006, that was awarded the Drama Desk award and the Outstanding featured actor in a musical?
### INPUT
CREATE TABLE table_name_68 (nominated_work VARCHAR, category VARCHAR, year VARCHAR, award VARCHAR)
### OUTPUT
SELECT nominated_work FROM table_name_68 WHERE year > 2006 AND award = "drama desk award" AND category = "outstanding featured actor in a musical" | {
"input": "CREATE TABLE table_name_68 (nominated_work VARCHAR, category VARCHAR, year VARCHAR, award VARCHAR)",
"instruction": "What was the nominated work after 2006, that was awarded the Drama Desk award and the Outstanding featured actor in a musical?",
"output": "SELECT nominated_work FROM table_name_68 WHERE year > 2006 AND award = \"drama desk award\" AND category = \"outstanding featured actor in a musical\""
} |
### INSTRUCTION
What is the most households with a median household income of $54,086 with less than 231,236 in population?
### INPUT
CREATE TABLE table_name_2 (number_of_households INTEGER, median_household_income VARCHAR, population VARCHAR)
### OUTPUT
SELECT MAX(number_of_households) FROM table_name_2 WHERE median_household_income = "$54,086" AND population < 231 OFFSET 236 | {
"input": "CREATE TABLE table_name_2 (number_of_households INTEGER, median_household_income VARCHAR, population VARCHAR)",
"instruction": "What is the most households with a median household income of $54,086 with less than 231,236 in population?",
"output": "SELECT MAX(number_of_households) FROM table_name_2 WHERE median_household_income = \"$54,086\" AND population < 231 OFFSET 236"
} |
### INSTRUCTION
How many tracks have an unformatted capacity per side of 2000kb?
### INPUT
CREATE TABLE table_name_7 (tracks VARCHAR, unformatted_capacity_per_side VARCHAR)
### OUTPUT
SELECT COUNT(tracks) FROM table_name_7 WHERE unformatted_capacity_per_side = "2000kb" | {
"input": "CREATE TABLE table_name_7 (tracks VARCHAR, unformatted_capacity_per_side VARCHAR)",
"instruction": "How many tracks have an unformatted capacity per side of 2000kb?",
"output": "SELECT COUNT(tracks) FROM table_name_7 WHERE unformatted_capacity_per_side = \"2000kb\""
} |
### INSTRUCTION
How many first games are associated with 5 games played and under 3 games lost?
### INPUT
CREATE TABLE table_name_85 (first_game INTEGER, played VARCHAR, lost VARCHAR)
### OUTPUT
SELECT SUM(first_game) FROM table_name_85 WHERE played = 5 AND lost < 3 | {
"input": "CREATE TABLE table_name_85 (first_game INTEGER, played VARCHAR, lost VARCHAR)",
"instruction": "How many first games are associated with 5 games played and under 3 games lost?",
"output": "SELECT SUM(first_game) FROM table_name_85 WHERE played = 5 AND lost < 3"
} |
### INSTRUCTION
What is the other name for martonoš?
### INPUT
CREATE TABLE table_2562572_33 (cyrillic_name_other_names VARCHAR, settlement VARCHAR)
### OUTPUT
SELECT cyrillic_name_other_names FROM table_2562572_33 WHERE settlement = "Martonoš" | {
"input": "CREATE TABLE table_2562572_33 (cyrillic_name_other_names VARCHAR, settlement VARCHAR)",
"instruction": "What is the other name for martonoš?",
"output": "SELECT cyrillic_name_other_names FROM table_2562572_33 WHERE settlement = \"Martonoš\""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.