text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
What year was the player born who is 2.02m tall?
### INPUT
CREATE TABLE table_12962773_14 (year_born INTEGER, height VARCHAR)
### OUTPUT
SELECT MAX(year_born) FROM table_12962773_14 WHERE height = "2.02" | {
"input": "CREATE TABLE table_12962773_14 (year_born INTEGER, height VARCHAR)",
"instruction": "What year was the player born who is 2.02m tall?",
"output": "SELECT MAX(year_born) FROM table_12962773_14 WHERE height = \"2.02\""
} |
### INSTRUCTION
What is the high loss total for players with zero wins and a win % greater than 0?
### INPUT
CREATE TABLE table_name_82 (losses INTEGER, wins VARCHAR, win__percentage VARCHAR)
### OUTPUT
SELECT MAX(losses) FROM table_name_82 WHERE wins = 0 AND win__percentage > 0 | {
"input": "CREATE TABLE table_name_82 (losses INTEGER, wins VARCHAR, win__percentage VARCHAR)",
"instruction": "What is the high loss total for players with zero wins and a win % greater than 0?",
"output": "SELECT MAX(losses) FROM table_name_82 WHERE wins = 0 AND win__percentage > 0"
} |
### INSTRUCTION
What date has new england patriots as the opponent?
### INPUT
CREATE TABLE table_name_26 (date VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT date FROM table_name_26 WHERE opponent = "new england patriots" | {
"input": "CREATE TABLE table_name_26 (date VARCHAR, opponent VARCHAR)",
"instruction": "What date has new england patriots as the opponent?",
"output": "SELECT date FROM table_name_26 WHERE opponent = \"new england patriots\""
} |
### INSTRUCTION
How many samples taken from producer Qingdao Suncare Nutritional Technology with a melamine content less than 53.4?
### INPUT
CREATE TABLE table_name_12 (samples_taken INTEGER, melamine_content_mg_kg_ VARCHAR, producer VARCHAR)
### OUTPUT
SELECT SUM(samples_taken) FROM table_name_12 WHERE melamine_content_mg_kg_ < 53.4 AND producer = "qingdao suncare nutritional technology" | {
"input": "CREATE TABLE table_name_12 (samples_taken INTEGER, melamine_content_mg_kg_ VARCHAR, producer VARCHAR)",
"instruction": "How many samples taken from producer Qingdao Suncare Nutritional Technology with a melamine content less than 53.4?",
"output": "SELECT SUM(samples_taken) FROM table_name_12 WHERE melamine_content_mg_kg_ < 53.4 AND producer = \"qingdao suncare nutritional technology\""
} |
### INSTRUCTION
How many products have the characteristic named "hot"?
### INPUT
CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = "hot" | {
"input": "CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)",
"instruction": "How many products have the characteristic named \"hot\"?",
"output": "SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = \"hot\""
} |
### INSTRUCTION
What team has jordan 193 chassis after 1990?
### INPUT
CREATE TABLE table_name_61 (team VARCHAR, year VARCHAR, chassis VARCHAR)
### OUTPUT
SELECT team FROM table_name_61 WHERE year > 1990 AND chassis = "jordan 193" | {
"input": "CREATE TABLE table_name_61 (team VARCHAR, year VARCHAR, chassis VARCHAR)",
"instruction": "What team has jordan 193 chassis after 1990?",
"output": "SELECT team FROM table_name_61 WHERE year > 1990 AND chassis = \"jordan 193\""
} |
### INSTRUCTION
How many countries does honoree Roberto de Vicenzo represent?
### INPUT
CREATE TABLE table_1515346_2 (country VARCHAR, honoree_s_ VARCHAR)
### OUTPUT
SELECT COUNT(country) FROM table_1515346_2 WHERE honoree_s_ = "Roberto De Vicenzo" | {
"input": "CREATE TABLE table_1515346_2 (country VARCHAR, honoree_s_ VARCHAR)",
"instruction": "How many countries does honoree Roberto de Vicenzo represent?",
"output": "SELECT COUNT(country) FROM table_1515346_2 WHERE honoree_s_ = \"Roberto De Vicenzo\""
} |
### INSTRUCTION
What is High Assists, when High Points is Keon Clark (19)?
### INPUT
CREATE TABLE table_name_57 (high_assists VARCHAR, high_points VARCHAR)
### OUTPUT
SELECT high_assists FROM table_name_57 WHERE high_points = "keon clark (19)" | {
"input": "CREATE TABLE table_name_57 (high_assists VARCHAR, high_points VARCHAR)",
"instruction": "What is High Assists, when High Points is Keon Clark (19)?",
"output": "SELECT high_assists FROM table_name_57 WHERE high_points = \"keon clark (19)\""
} |
### INSTRUCTION
Which malaysian team classification had mohd nur rizuan zainal as points classification?
### INPUT
CREATE TABLE table_22464308_2 (malaysian_team_classification VARCHAR, points_classification VARCHAR)
### OUTPUT
SELECT malaysian_team_classification FROM table_22464308_2 WHERE points_classification = "Mohd Nur Rizuan Zainal" | {
"input": "CREATE TABLE table_22464308_2 (malaysian_team_classification VARCHAR, points_classification VARCHAR)",
"instruction": "Which malaysian team classification had mohd nur rizuan zainal as points classification?",
"output": "SELECT malaysian_team_classification FROM table_22464308_2 WHERE points_classification = \"Mohd Nur Rizuan Zainal\""
} |
### INSTRUCTION
Tell me the host team for giants stadium and visiting of cincinnati bengals
### INPUT
CREATE TABLE table_name_57 (host_team VARCHAR, stadium VARCHAR, visiting_team VARCHAR)
### OUTPUT
SELECT host_team FROM table_name_57 WHERE stadium = "giants stadium" AND visiting_team = "cincinnati bengals" | {
"input": "CREATE TABLE table_name_57 (host_team VARCHAR, stadium VARCHAR, visiting_team VARCHAR)",
"instruction": "Tell me the host team for giants stadium and visiting of cincinnati bengals",
"output": "SELECT host_team FROM table_name_57 WHERE stadium = \"giants stadium\" AND visiting_team = \"cincinnati bengals\""
} |
### INSTRUCTION
What is the kickoff for the game on october 22, 2000?
### INPUT
CREATE TABLE table_name_30 (kickoff VARCHAR, date VARCHAR)
### OUTPUT
SELECT kickoff FROM table_name_30 WHERE date = "october 22, 2000" | {
"input": "CREATE TABLE table_name_30 (kickoff VARCHAR, date VARCHAR)",
"instruction": "What is the kickoff for the game on october 22, 2000?",
"output": "SELECT kickoff FROM table_name_30 WHERE date = \"october 22, 2000\""
} |
### INSTRUCTION
How many times has Ma Long won the men's singles?
### INPUT
CREATE TABLE table_28138035_33 (mens_doubles VARCHAR, mens_singles VARCHAR)
### OUTPUT
SELECT COUNT(mens_doubles) FROM table_28138035_33 WHERE mens_singles = "Ma Long" | {
"input": "CREATE TABLE table_28138035_33 (mens_doubles VARCHAR, mens_singles VARCHAR)",
"instruction": "How many times has Ma Long won the men's singles?",
"output": "SELECT COUNT(mens_doubles) FROM table_28138035_33 WHERE mens_singles = \"Ma Long\""
} |
### INSTRUCTION
what is the mccain % where obama got 19.3%
### INPUT
CREATE TABLE table_20424014_1 (mccain__percentage VARCHAR, obama__percentage VARCHAR)
### OUTPUT
SELECT mccain__percentage FROM table_20424014_1 WHERE obama__percentage = "19.3%" | {
"input": "CREATE TABLE table_20424014_1 (mccain__percentage VARCHAR, obama__percentage VARCHAR)",
"instruction": "what is the mccain % where obama got 19.3%",
"output": "SELECT mccain__percentage FROM table_20424014_1 WHERE obama__percentage = \"19.3%\""
} |
### INSTRUCTION
Opponent of @ blue jays, and a Date of october 6 had what score?
### INPUT
CREATE TABLE table_name_19 (score VARCHAR, opponent VARCHAR, date VARCHAR)
### OUTPUT
SELECT score FROM table_name_19 WHERE opponent = "@ blue jays" AND date = "october 6" | {
"input": "CREATE TABLE table_name_19 (score VARCHAR, opponent VARCHAR, date VARCHAR)",
"instruction": "Opponent of @ blue jays, and a Date of october 6 had what score?",
"output": "SELECT score FROM table_name_19 WHERE opponent = \"@ blue jays\" AND date = \"october 6\""
} |
### INSTRUCTION
Which album is the royal g's club mix version, which is remixed by royal garden sound, from?
### INPUT
CREATE TABLE table_name_20 (album VARCHAR, remixed_by VARCHAR, version VARCHAR)
### OUTPUT
SELECT album FROM table_name_20 WHERE remixed_by = "royal garden sound" AND version = "royal g's club mix" | {
"input": "CREATE TABLE table_name_20 (album VARCHAR, remixed_by VARCHAR, version VARCHAR)",
"instruction": "Which album is the royal g's club mix version, which is remixed by royal garden sound, from?",
"output": "SELECT album FROM table_name_20 WHERE remixed_by = \"royal garden sound\" AND version = \"royal g's club mix\""
} |
### INSTRUCTION
What is the lowest Grid with fewer than 65 Laps and with Driver Tim Schenken?
### INPUT
CREATE TABLE table_name_32 (grid INTEGER, laps VARCHAR, driver VARCHAR)
### OUTPUT
SELECT MIN(grid) FROM table_name_32 WHERE laps < 65 AND driver = "tim schenken" | {
"input": "CREATE TABLE table_name_32 (grid INTEGER, laps VARCHAR, driver VARCHAR)",
"instruction": "What is the lowest Grid with fewer than 65 Laps and with Driver Tim Schenken?",
"output": "SELECT MIN(grid) FROM table_name_32 WHERE laps < 65 AND driver = \"tim schenken\""
} |
### INSTRUCTION
Find the name of accounts whose checking balance is higher than corresponding saving balance.
### INPUT
CREATE TABLE savings (custid VARCHAR, balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR); CREATE TABLE checking (custid VARCHAR, balance INTEGER)
### OUTPUT
SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T2.balance > T3.balance | {
"input": "CREATE TABLE savings (custid VARCHAR, balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR); CREATE TABLE checking (custid VARCHAR, balance INTEGER)",
"instruction": "Find the name of accounts whose checking balance is higher than corresponding saving balance.",
"output": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T2.balance > T3.balance"
} |
### INSTRUCTION
Name the location for school eckstein
### INPUT
CREATE TABLE table_17641314_3 (location_denotes_location_of_school_by_seattle_neighborhood VARCHAR, _does_not_necessary_correspond_with_attendance_area VARCHAR, school VARCHAR)
### OUTPUT
SELECT location_denotes_location_of_school_by_seattle_neighborhood, _does_not_necessary_correspond_with_attendance_area FROM table_17641314_3 WHERE school = "Eckstein" | {
"input": "CREATE TABLE table_17641314_3 (location_denotes_location_of_school_by_seattle_neighborhood VARCHAR, _does_not_necessary_correspond_with_attendance_area VARCHAR, school VARCHAR)",
"instruction": "Name the location for school eckstein",
"output": "SELECT location_denotes_location_of_school_by_seattle_neighborhood, _does_not_necessary_correspond_with_attendance_area FROM table_17641314_3 WHERE school = \"Eckstein\""
} |
### INSTRUCTION
What's the wold ranking of the index by Transparency International?
### INPUT
CREATE TABLE table_19948664_1 (world_ranking__1_ VARCHAR, author___editor___source VARCHAR)
### OUTPUT
SELECT world_ranking__1_ FROM table_19948664_1 WHERE author___editor___source = "Transparency International" | {
"input": "CREATE TABLE table_19948664_1 (world_ranking__1_ VARCHAR, author___editor___source VARCHAR)",
"instruction": "What's the wold ranking of the index by Transparency International?",
"output": "SELECT world_ranking__1_ FROM table_19948664_1 WHERE author___editor___source = \"Transparency International\""
} |
### INSTRUCTION
What is the highest taijijian with a 9.87 taijiquan and a total less than 19.77?
### INPUT
CREATE TABLE table_name_20 (taijijian INTEGER, taijiquan VARCHAR, total VARCHAR)
### OUTPUT
SELECT MAX(taijijian) FROM table_name_20 WHERE taijiquan = 9.87 AND total < 19.77 | {
"input": "CREATE TABLE table_name_20 (taijijian INTEGER, taijiquan VARCHAR, total VARCHAR)",
"instruction": "What is the highest taijijian with a 9.87 taijiquan and a total less than 19.77?",
"output": "SELECT MAX(taijijian) FROM table_name_20 WHERE taijiquan = 9.87 AND total < 19.77"
} |
### INSTRUCTION
What date has Vancouver Canucks as the original team, Ryan Kesler as the player, and matched as the Result?
### INPUT
CREATE TABLE table_name_26 (date VARCHAR, player VARCHAR, original_team VARCHAR, result VARCHAR)
### OUTPUT
SELECT date FROM table_name_26 WHERE original_team = "vancouver canucks" AND result = "matched" AND player = "ryan kesler" | {
"input": "CREATE TABLE table_name_26 (date VARCHAR, player VARCHAR, original_team VARCHAR, result VARCHAR)",
"instruction": "What date has Vancouver Canucks as the original team, Ryan Kesler as the player, and matched as the Result?",
"output": "SELECT date FROM table_name_26 WHERE original_team = \"vancouver canucks\" AND result = \"matched\" AND player = \"ryan kesler\""
} |
### INSTRUCTION
Show the host names for parties with number of hosts greater than 20.
### INPUT
CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE party (Party_ID VARCHAR, Number_of_hosts INTEGER)
### OUTPUT
SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T3.Number_of_hosts > 20 | {
"input": "CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE party (Party_ID VARCHAR, Number_of_hosts INTEGER)",
"instruction": "Show the host names for parties with number of hosts greater than 20.",
"output": "SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T3.Number_of_hosts > 20"
} |
### INSTRUCTION
What is the feature type name of feature AirCon?
### INPUT
CREATE TABLE Other_Available_Features (feature_type_code VARCHAR, feature_name VARCHAR); CREATE TABLE Ref_Feature_Types (feature_type_name VARCHAR, feature_type_code VARCHAR)
### OUTPUT
SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = "AirCon" | {
"input": "CREATE TABLE Other_Available_Features (feature_type_code VARCHAR, feature_name VARCHAR); CREATE TABLE Ref_Feature_Types (feature_type_name VARCHAR, feature_type_code VARCHAR)",
"instruction": "What is the feature type name of feature AirCon?",
"output": "SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = \"AirCon\""
} |
### INSTRUCTION
What is the release date for Ben 10: Alien Force Volume 9 on DVD?
### INPUT
CREATE TABLE table_name_22 (release_date VARCHAR, dvd_title VARCHAR)
### OUTPUT
SELECT release_date FROM table_name_22 WHERE dvd_title = "ben 10: alien force volume 9" | {
"input": "CREATE TABLE table_name_22 (release_date VARCHAR, dvd_title VARCHAR)",
"instruction": "What is the release date for Ben 10: Alien Force Volume 9 on DVD?",
"output": "SELECT release_date FROM table_name_22 WHERE dvd_title = \"ben 10: alien force volume 9\""
} |
### INSTRUCTION
Who drove for Arciero Racing?
### INPUT
CREATE TABLE table_name_31 (drivers VARCHAR, team VARCHAR)
### OUTPUT
SELECT drivers FROM table_name_31 WHERE team = "arciero racing" | {
"input": "CREATE TABLE table_name_31 (drivers VARCHAR, team VARCHAR)",
"instruction": "Who drove for Arciero Racing?",
"output": "SELECT drivers FROM table_name_31 WHERE team = \"arciero racing\""
} |
### INSTRUCTION
what's the numer of jamaicans granted british citizenship with naturalisation by residence being 927
### INPUT
CREATE TABLE table_11214212_1 (numer_of_jamaicans_granted_british_citizenship VARCHAR, naturalisation_by_residence VARCHAR)
### OUTPUT
SELECT numer_of_jamaicans_granted_british_citizenship FROM table_11214212_1 WHERE naturalisation_by_residence = 927 | {
"input": "CREATE TABLE table_11214212_1 (numer_of_jamaicans_granted_british_citizenship VARCHAR, naturalisation_by_residence VARCHAR)",
"instruction": "what's the numer of jamaicans granted british citizenship with naturalisation by residence being 927",
"output": "SELECT numer_of_jamaicans_granted_british_citizenship FROM table_11214212_1 WHERE naturalisation_by_residence = 927"
} |
### INSTRUCTION
What is the total number of assists when Edmundo Rodriguez is playing the position of striker, less than 4 goals were scored, and the minutes were less than 473?
### INPUT
CREATE TABLE table_name_21 (assists VARCHAR, minutes VARCHAR, player VARCHAR, position VARCHAR, goals VARCHAR)
### OUTPUT
SELECT COUNT(assists) FROM table_name_21 WHERE position = "striker" AND goals < 4 AND player = "edmundo rodriguez" AND minutes < 473 | {
"input": "CREATE TABLE table_name_21 (assists VARCHAR, minutes VARCHAR, player VARCHAR, position VARCHAR, goals VARCHAR)",
"instruction": "What is the total number of assists when Edmundo Rodriguez is playing the position of striker, less than 4 goals were scored, and the minutes were less than 473?",
"output": "SELECT COUNT(assists) FROM table_name_21 WHERE position = \"striker\" AND goals < 4 AND player = \"edmundo rodriguez\" AND minutes < 473"
} |
### INSTRUCTION
List the name of all products along with the number of complaints that they have received.
### INPUT
CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE complaints (product_id VARCHAR)
### OUTPUT
SELECT t1.product_name, COUNT(*) FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_name | {
"input": "CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE complaints (product_id VARCHAR)",
"instruction": "List the name of all products along with the number of complaints that they have received.",
"output": "SELECT t1.product_name, COUNT(*) FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_name"
} |
### INSTRUCTION
What are the titles of papers published by "Jeremy Gibbons"?
### INPUT
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR)
### OUTPUT
SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Jeremy" AND t1.lname = "Gibbons" | {
"input": "CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR)",
"instruction": "What are the titles of papers published by \"Jeremy Gibbons\"?",
"output": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Jeremy\" AND t1.lname = \"Gibbons\""
} |
### INSTRUCTION
What is every value for approximate duration when event details is women's foil?
### INPUT
CREATE TABLE table_28003469_1 (approx_duration VARCHAR, event_details VARCHAR)
### OUTPUT
SELECT approx_duration FROM table_28003469_1 WHERE event_details = "Women's Foil" | {
"input": "CREATE TABLE table_28003469_1 (approx_duration VARCHAR, event_details VARCHAR)",
"instruction": "What is every value for approximate duration when event details is women's foil?",
"output": "SELECT approx_duration FROM table_28003469_1 WHERE event_details = \"Women's Foil\""
} |
### INSTRUCTION
What is the Founded year of the school located in Paul Smiths, New York?
### INPUT
CREATE TABLE table_name_99 (founded VARCHAR, location VARCHAR)
### OUTPUT
SELECT founded FROM table_name_99 WHERE location = "paul smiths, new york" | {
"input": "CREATE TABLE table_name_99 (founded VARCHAR, location VARCHAR)",
"instruction": "What is the Founded year of the school located in Paul Smiths, New York?",
"output": "SELECT founded FROM table_name_99 WHERE location = \"paul smiths, new york\""
} |
### INSTRUCTION
What is the No. 6 of the person with a No. 10 of Joshua and a No. 8 of Andrew?
### INPUT
CREATE TABLE table_name_56 (no_6 VARCHAR, no_10 VARCHAR, no_8 VARCHAR)
### OUTPUT
SELECT no_6 FROM table_name_56 WHERE no_10 = "joshua" AND no_8 = "andrew" | {
"input": "CREATE TABLE table_name_56 (no_6 VARCHAR, no_10 VARCHAR, no_8 VARCHAR)",
"instruction": "What is the No. 6 of the person with a No. 10 of Joshua and a No. 8 of Andrew?",
"output": "SELECT no_6 FROM table_name_56 WHERE no_10 = \"joshua\" AND no_8 = \"andrew\""
} |
### INSTRUCTION
What is the highest round that has a draftee from Washington State University?
### INPUT
CREATE TABLE table_name_60 (round INTEGER, school VARCHAR)
### OUTPUT
SELECT MAX(round) FROM table_name_60 WHERE school = "washington state university" | {
"input": "CREATE TABLE table_name_60 (round INTEGER, school VARCHAR)",
"instruction": "What is the highest round that has a draftee from Washington State University?",
"output": "SELECT MAX(round) FROM table_name_60 WHERE school = \"washington state university\""
} |
### INSTRUCTION
How many clubs are involved when there are 4 winners from the previous rounds and more than 4 clubs remaining?
### INPUT
CREATE TABLE table_name_59 (clubs_involved INTEGER, winners_from_previous_round VARCHAR, clubs_remaining VARCHAR)
### OUTPUT
SELECT MIN(clubs_involved) FROM table_name_59 WHERE winners_from_previous_round = "4" AND clubs_remaining > 4 | {
"input": "CREATE TABLE table_name_59 (clubs_involved INTEGER, winners_from_previous_round VARCHAR, clubs_remaining VARCHAR)",
"instruction": "How many clubs are involved when there are 4 winners from the previous rounds and more than 4 clubs remaining?",
"output": "SELECT MIN(clubs_involved) FROM table_name_59 WHERE winners_from_previous_round = \"4\" AND clubs_remaining > 4"
} |
### INSTRUCTION
What was the date of the match with a winning score of –7 (67-72-69-69=277)?
### INPUT
CREATE TABLE table_name_10 (date VARCHAR, winning_score VARCHAR)
### OUTPUT
SELECT date FROM table_name_10 WHERE winning_score = –7(67 - 72 - 69 - 69 = 277) | {
"input": "CREATE TABLE table_name_10 (date VARCHAR, winning_score VARCHAR)",
"instruction": "What was the date of the match with a winning score of –7 (67-72-69-69=277)?",
"output": "SELECT date FROM table_name_10 WHERE winning_score = –7(67 - 72 - 69 - 69 = 277)"
} |
### INSTRUCTION
Name the number of song for scoreboard being 3rd
### INPUT
CREATE TABLE table_21234111_6 (song VARCHAR, scoreboard VARCHAR)
### OUTPUT
SELECT COUNT(song) FROM table_21234111_6 WHERE scoreboard = "3rd" | {
"input": "CREATE TABLE table_21234111_6 (song VARCHAR, scoreboard VARCHAR)",
"instruction": "Name the number of song for scoreboard being 3rd",
"output": "SELECT COUNT(song) FROM table_21234111_6 WHERE scoreboard = \"3rd\""
} |
### INSTRUCTION
When roy richardson 476cc aermacchi is the rider what is the time for saturday august 9th?
### INPUT
CREATE TABLE table_23465864_3 (sat_29_aug VARCHAR, rider VARCHAR)
### OUTPUT
SELECT sat_29_aug FROM table_23465864_3 WHERE rider = "Roy Richardson 476cc Aermacchi" | {
"input": "CREATE TABLE table_23465864_3 (sat_29_aug VARCHAR, rider VARCHAR)",
"instruction": "When roy richardson 476cc aermacchi is the rider what is the time for saturday august 9th?",
"output": "SELECT sat_29_aug FROM table_23465864_3 WHERE rider = \"Roy Richardson 476cc Aermacchi\""
} |
### INSTRUCTION
Show names for all employees who do not have certificate of Boeing 737-800.
### INPUT
CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR); CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Employee (name VARCHAR); CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
### OUTPUT
SELECT name FROM Employee EXCEPT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = "Boeing 737-800" | {
"input": "CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR); CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Employee (name VARCHAR); CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)",
"instruction": "Show names for all employees who do not have certificate of Boeing 737-800.",
"output": "SELECT name FROM Employee EXCEPT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = \"Boeing 737-800\""
} |
### INSTRUCTION
Find the most popular room in the hotel. The most popular room is the room that had seen the largest number of reservations.
### INPUT
CREATE TABLE Reservations (Room VARCHAR); CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR)
### OUTPUT
SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Reservations (Room VARCHAR); CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR)",
"instruction": "Find the most popular room in the hotel. The most popular room is the room that had seen the largest number of reservations.",
"output": "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Which federal state has 6 representatives of national average?
### INPUT
CREATE TABLE table_name_3 (federal_state VARCHAR, representatives_of_national_average VARCHAR)
### OUTPUT
SELECT federal_state FROM table_name_3 WHERE representatives_of_national_average = "6" | {
"input": "CREATE TABLE table_name_3 (federal_state VARCHAR, representatives_of_national_average VARCHAR)",
"instruction": "Which federal state has 6 representatives of national average?",
"output": "SELECT federal_state FROM table_name_3 WHERE representatives_of_national_average = \"6\""
} |
### INSTRUCTION
Which Overall has a College of florida state, and a Round larger than 2?
### INPUT
CREATE TABLE table_name_76 (overall INTEGER, college VARCHAR, round VARCHAR)
### OUTPUT
SELECT SUM(overall) FROM table_name_76 WHERE college = "florida state" AND round > 2 | {
"input": "CREATE TABLE table_name_76 (overall INTEGER, college VARCHAR, round VARCHAR)",
"instruction": "Which Overall has a College of florida state, and a Round larger than 2?",
"output": "SELECT SUM(overall) FROM table_name_76 WHERE college = \"florida state\" AND round > 2"
} |
### INSTRUCTION
What are the date, mean temperature and mean humidity for the top 3 days with the largest max gust speeds?
### INPUT
CREATE TABLE weather (date VARCHAR, mean_temperature_f VARCHAR, mean_humidity VARCHAR, max_gust_speed_mph VARCHAR)
### OUTPUT
SELECT date, mean_temperature_f, mean_humidity FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3 | {
"input": "CREATE TABLE weather (date VARCHAR, mean_temperature_f VARCHAR, mean_humidity VARCHAR, max_gust_speed_mph VARCHAR)",
"instruction": "What are the date, mean temperature and mean humidity for the top 3 days with the largest max gust speeds?",
"output": "SELECT date, mean_temperature_f, mean_humidity FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3"
} |
### INSTRUCTION
What is the highest number of losses that the team incurred while scoring less than 79 points in 10 games with a point differential less than 34?
### INPUT
CREATE TABLE table_name_69 (losses INTEGER, point_differential VARCHAR, points_for VARCHAR, games_played VARCHAR)
### OUTPUT
SELECT MAX(losses) FROM table_name_69 WHERE points_for < 79 AND games_played = 10 AND point_differential < 34 | {
"input": "CREATE TABLE table_name_69 (losses INTEGER, point_differential VARCHAR, points_for VARCHAR, games_played VARCHAR)",
"instruction": "What is the highest number of losses that the team incurred while scoring less than 79 points in 10 games with a point differential less than 34?",
"output": "SELECT MAX(losses) FROM table_name_69 WHERE points_for < 79 AND games_played = 10 AND point_differential < 34"
} |
### INSTRUCTION
Show the date and id of the transcript with at least 2 course results.
### INPUT
CREATE TABLE Transcript_Contents (transcript_id VARCHAR); CREATE TABLE Transcripts (transcript_date VARCHAR, transcript_id VARCHAR)
### OUTPUT
SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING COUNT(*) >= 2 | {
"input": "CREATE TABLE Transcript_Contents (transcript_id VARCHAR); CREATE TABLE Transcripts (transcript_date VARCHAR, transcript_id VARCHAR)",
"instruction": "Show the date and id of the transcript with at least 2 course results.",
"output": "SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING COUNT(*) >= 2"
} |
### INSTRUCTION
What is the location of the Conquista Fight 1?
### INPUT
CREATE TABLE table_name_11 (location VARCHAR, event VARCHAR)
### OUTPUT
SELECT location FROM table_name_11 WHERE event = "conquista fight 1" | {
"input": "CREATE TABLE table_name_11 (location VARCHAR, event VARCHAR)",
"instruction": "What is the location of the Conquista Fight 1?",
"output": "SELECT location FROM table_name_11 WHERE event = \"conquista fight 1\""
} |
### INSTRUCTION
How many nations do the FMS international team represent?
### INPUT
CREATE TABLE table_19312274_3 (nation VARCHAR, name VARCHAR)
### OUTPUT
SELECT COUNT(nation) FROM table_19312274_3 WHERE name = "FMS International" | {
"input": "CREATE TABLE table_19312274_3 (nation VARCHAR, name VARCHAR)",
"instruction": "How many nations do the FMS international team represent?",
"output": "SELECT COUNT(nation) FROM table_19312274_3 WHERE name = \"FMS International\""
} |
### INSTRUCTION
What is the date for the game with an opponent of the Houston Oilers from before week 3?
### INPUT
CREATE TABLE table_name_11 (date VARCHAR, week VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT date FROM table_name_11 WHERE week < 3 AND opponent = "houston oilers" | {
"input": "CREATE TABLE table_name_11 (date VARCHAR, week VARCHAR, opponent VARCHAR)",
"instruction": "What is the date for the game with an opponent of the Houston Oilers from before week 3?",
"output": "SELECT date FROM table_name_11 WHERE week < 3 AND opponent = \"houston oilers\""
} |
### INSTRUCTION
Name the to par with money of 200,000 for australia
### INPUT
CREATE TABLE table_name_30 (to_par VARCHAR, money___£__ VARCHAR, country VARCHAR)
### OUTPUT
SELECT to_par FROM table_name_30 WHERE money___£__ = "200,000" AND country = "australia" | {
"input": "CREATE TABLE table_name_30 (to_par VARCHAR, money___£__ VARCHAR, country VARCHAR)",
"instruction": "Name the to par with money of 200,000 for australia",
"output": "SELECT to_par FROM table_name_30 WHERE money___£__ = \"200,000\" AND country = \"australia\""
} |
### INSTRUCTION
When Baltimore County, Howard are represented, what's the first elected when the committee is environmental matters (vice-chair)?
### INPUT
CREATE TABLE table_name_37 (first_elected INTEGER, counties_represented VARCHAR, committee VARCHAR)
### OUTPUT
SELECT MAX(first_elected) FROM table_name_37 WHERE counties_represented = "baltimore county, howard" AND committee = "environmental matters (vice-chair)" | {
"input": "CREATE TABLE table_name_37 (first_elected INTEGER, counties_represented VARCHAR, committee VARCHAR)",
"instruction": "When Baltimore County, Howard are represented, what's the first elected when the committee is environmental matters (vice-chair)?",
"output": "SELECT MAX(first_elected) FROM table_name_37 WHERE counties_represented = \"baltimore county, howard\" AND committee = \"environmental matters (vice-chair)\""
} |
### INSTRUCTION
When is the tournament of konica san jose classic?
### INPUT
CREATE TABLE table_name_41 (date VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT date FROM table_name_41 WHERE tournament = "konica san jose classic" | {
"input": "CREATE TABLE table_name_41 (date VARCHAR, tournament VARCHAR)",
"instruction": "When is the tournament of konica san jose classic?",
"output": "SELECT date FROM table_name_41 WHERE tournament = \"konica san jose classic\""
} |
### INSTRUCTION
how many times is the transfer fee £2,500,000?
### INPUT
CREATE TABLE table_name_62 (goals VARCHAR, transfer_fee VARCHAR)
### OUTPUT
SELECT COUNT(goals) FROM table_name_62 WHERE transfer_fee = "£2,500,000" | {
"input": "CREATE TABLE table_name_62 (goals VARCHAR, transfer_fee VARCHAR)",
"instruction": "how many times is the transfer fee £2,500,000?",
"output": "SELECT COUNT(goals) FROM table_name_62 WHERE transfer_fee = \"£2,500,000\""
} |
### INSTRUCTION
Find the names of customers who either have an deputy policy or uniformed policy.
### INPUT
CREATE TABLE policies (customer_id VARCHAR, policy_type_code VARCHAR); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR)
### OUTPUT
SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = "Deputy" OR t1.policy_type_code = "Uniform" | {
"input": "CREATE TABLE policies (customer_id VARCHAR, policy_type_code VARCHAR); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR)",
"instruction": "Find the names of customers who either have an deputy policy or uniformed policy.",
"output": "SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = \"Deputy\" OR t1.policy_type_code = \"Uniform\""
} |
### INSTRUCTION
what's the won with points for being 643
### INPUT
CREATE TABLE table_14058433_5 (won VARCHAR, points_for VARCHAR)
### OUTPUT
SELECT won FROM table_14058433_5 WHERE points_for = "643" | {
"input": "CREATE TABLE table_14058433_5 (won VARCHAR, points_for VARCHAR)",
"instruction": "what's the won with points for being 643",
"output": "SELECT won FROM table_14058433_5 WHERE points_for = \"643\""
} |
### INSTRUCTION
Name the date for s. valentino alla muta , italia
### INPUT
CREATE TABLE table_30073089_2 (date VARCHAR, location VARCHAR)
### OUTPUT
SELECT date FROM table_30073089_2 WHERE location = "S. Valentino Alla Muta , Italia" | {
"input": "CREATE TABLE table_30073089_2 (date VARCHAR, location VARCHAR)",
"instruction": "Name the date for s. valentino alla muta , italia",
"output": "SELECT date FROM table_30073089_2 WHERE location = \"S. Valentino Alla Muta , Italia\""
} |
### INSTRUCTION
What is the highest Bronze medal count when the Gold medals are larger than 1 and the silver are smaller than 0?
### INPUT
CREATE TABLE table_name_71 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
### OUTPUT
SELECT MAX(bronze) FROM table_name_71 WHERE gold > 1 AND silver < 0 | {
"input": "CREATE TABLE table_name_71 (bronze INTEGER, gold VARCHAR, silver VARCHAR)",
"instruction": "What is the highest Bronze medal count when the Gold medals are larger than 1 and the silver are smaller than 0?",
"output": "SELECT MAX(bronze) FROM table_name_71 WHERE gold > 1 AND silver < 0"
} |
### INSTRUCTION
Which Label has a Format of cd, a Country of Japan and a Catalog of vjcp-68403?
### INPUT
CREATE TABLE table_name_89 (label VARCHAR, catalog VARCHAR, format VARCHAR, country VARCHAR)
### OUTPUT
SELECT label FROM table_name_89 WHERE format = "cd" AND country = "japan" AND catalog = "vjcp-68403" | {
"input": "CREATE TABLE table_name_89 (label VARCHAR, catalog VARCHAR, format VARCHAR, country VARCHAR)",
"instruction": "Which Label has a Format of cd, a Country of Japan and a Catalog of vjcp-68403?",
"output": "SELECT label FROM table_name_89 WHERE format = \"cd\" AND country = \"japan\" AND catalog = \"vjcp-68403\""
} |
### INSTRUCTION
What is the result on Sunday that's सोमवार somavār on Monday and मंगलवार mangalavār on Tuesday?
### INPUT
CREATE TABLE table_name_29 (sunday_surya__the_sun_ VARCHAR, monday_soma__the_moon_ VARCHAR, tuesday_mangala__mars_ VARCHAR)
### OUTPUT
SELECT sunday_surya__the_sun_ FROM table_name_29 WHERE monday_soma__the_moon_ = "सोमवार somavār" AND tuesday_mangala__mars_ = "मंगलवार mangalavār" | {
"input": "CREATE TABLE table_name_29 (sunday_surya__the_sun_ VARCHAR, monday_soma__the_moon_ VARCHAR, tuesday_mangala__mars_ VARCHAR)",
"instruction": "What is the result on Sunday that's सोमवार somavār on Monday and मंगलवार mangalavār on Tuesday?",
"output": "SELECT sunday_surya__the_sun_ FROM table_name_29 WHERE monday_soma__the_moon_ = \"सोमवार somavār\" AND tuesday_mangala__mars_ = \"मंगलवार mangalavār\""
} |
### INSTRUCTION
what's the season with regionalliga nord being vfb oldenburg
### INPUT
CREATE TABLE table_14242137_11 (season VARCHAR, regionalliga_nord VARCHAR)
### OUTPUT
SELECT season FROM table_14242137_11 WHERE regionalliga_nord = "VfB Oldenburg" | {
"input": "CREATE TABLE table_14242137_11 (season VARCHAR, regionalliga_nord VARCHAR)",
"instruction": "what's the season with regionalliga nord being vfb oldenburg",
"output": "SELECT season FROM table_14242137_11 WHERE regionalliga_nord = \"VfB Oldenburg\""
} |
### INSTRUCTION
display those departments where more than ten employees work who got a commission percentage.
### INPUT
CREATE TABLE employees (department_id VARCHAR, commission_pct VARCHAR)
### OUTPUT
SELECT department_id FROM employees GROUP BY department_id HAVING COUNT(commission_pct) > 10 | {
"input": "CREATE TABLE employees (department_id VARCHAR, commission_pct VARCHAR)",
"instruction": "display those departments where more than ten employees work who got a commission percentage.",
"output": "SELECT department_id FROM employees GROUP BY department_id HAVING COUNT(commission_pct) > 10"
} |
### INSTRUCTION
What is the nationality of the player who played for the Peterborough Petes (OHL)?
### INPUT
CREATE TABLE table_name_6 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR)
### OUTPUT
SELECT nationality FROM table_name_6 WHERE college_junior_club_team__league_ = "peterborough petes (ohl)" | {
"input": "CREATE TABLE table_name_6 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR)",
"instruction": "What is the nationality of the player who played for the Peterborough Petes (OHL)?",
"output": "SELECT nationality FROM table_name_6 WHERE college_junior_club_team__league_ = \"peterborough petes (ohl)\""
} |
### INSTRUCTION
What is the total number of losses of the team with games less than 14, wins less than 3, in the Maac Conference at Fairfield School?
### INPUT
CREATE TABLE table_name_61 (losses VARCHAR, school VARCHAR, conference VARCHAR, games VARCHAR, wins VARCHAR)
### OUTPUT
SELECT COUNT(losses) FROM table_name_61 WHERE games < 14 AND wins < 3 AND conference = "maac" AND school = "fairfield" | {
"input": "CREATE TABLE table_name_61 (losses VARCHAR, school VARCHAR, conference VARCHAR, games VARCHAR, wins VARCHAR)",
"instruction": "What is the total number of losses of the team with games less than 14, wins less than 3, in the Maac Conference at Fairfield School?",
"output": "SELECT COUNT(losses) FROM table_name_61 WHERE games < 14 AND wins < 3 AND conference = \"maac\" AND school = \"fairfield\""
} |
### INSTRUCTION
What is the Score of the game against the boston celtics?
### INPUT
CREATE TABLE table_name_58 (score VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT score FROM table_name_58 WHERE opponent = "boston celtics" | {
"input": "CREATE TABLE table_name_58 (score VARCHAR, opponent VARCHAR)",
"instruction": "What is the Score of the game against the boston celtics?",
"output": "SELECT score FROM table_name_58 WHERE opponent = \"boston celtics\""
} |
### INSTRUCTION
Who is the Winning Driver that has a Winning team of Engstler Motorsport Engstler Motorsport and also the Date 22 July?
### INPUT
CREATE TABLE table_name_55 (winning_driver VARCHAR, winning_team VARCHAR, date VARCHAR)
### OUTPUT
SELECT winning_driver FROM table_name_55 WHERE winning_team = "engstler motorsport engstler motorsport" AND date = "22 july" | {
"input": "CREATE TABLE table_name_55 (winning_driver VARCHAR, winning_team VARCHAR, date VARCHAR)",
"instruction": "Who is the Winning Driver that has a Winning team of Engstler Motorsport Engstler Motorsport and also the Date 22 July?",
"output": "SELECT winning_driver FROM table_name_55 WHERE winning_team = \"engstler motorsport engstler motorsport\" AND date = \"22 july\""
} |
### INSTRUCTION
What is the website of the school affiliated with the Church of England?
### INPUT
CREATE TABLE table_28523_3 (school VARCHAR, religious_affiliation VARCHAR)
### OUTPUT
SELECT school AS website FROM table_28523_3 WHERE religious_affiliation = "Church of England" | {
"input": "CREATE TABLE table_28523_3 (school VARCHAR, religious_affiliation VARCHAR)",
"instruction": "What is the website of the school affiliated with the Church of England?",
"output": "SELECT school AS website FROM table_28523_3 WHERE religious_affiliation = \"Church of England\""
} |
### INSTRUCTION
What religious groups made up 0.72% of the Indian population in 2001?
### INPUT
CREATE TABLE table_10710364_1 (religious_group VARCHAR, population__percentage_2001 VARCHAR)
### OUTPUT
SELECT religious_group FROM table_10710364_1 WHERE population__percentage_2001 = "0.72%" | {
"input": "CREATE TABLE table_10710364_1 (religious_group VARCHAR, population__percentage_2001 VARCHAR)",
"instruction": "What religious groups made up 0.72% of the Indian population in 2001?",
"output": "SELECT religious_group FROM table_10710364_1 WHERE population__percentage_2001 = \"0.72%\""
} |
### INSTRUCTION
What is the grid total for alain prost with over 14 laps?
### INPUT
CREATE TABLE table_name_91 (grid INTEGER, laps VARCHAR, driver VARCHAR)
### OUTPUT
SELECT SUM(grid) FROM table_name_91 WHERE laps > 14 AND driver = "alain prost" | {
"input": "CREATE TABLE table_name_91 (grid INTEGER, laps VARCHAR, driver VARCHAR)",
"instruction": "What is the grid total for alain prost with over 14 laps?",
"output": "SELECT SUM(grid) FROM table_name_91 WHERE laps > 14 AND driver = \"alain prost\""
} |
### INSTRUCTION
What player has a college named san sebastian?
### INPUT
CREATE TABLE table_name_97 (player VARCHAR, college VARCHAR)
### OUTPUT
SELECT player FROM table_name_97 WHERE college = "san sebastian" | {
"input": "CREATE TABLE table_name_97 (player VARCHAR, college VARCHAR)",
"instruction": "What player has a college named san sebastian?",
"output": "SELECT player FROM table_name_97 WHERE college = \"san sebastian\""
} |
### INSTRUCTION
Which Years has a Type/code of cubic centimetres (cuin) v8 ( m273 )?
### INPUT
CREATE TABLE table_name_72 (years VARCHAR, type_code VARCHAR)
### OUTPUT
SELECT years FROM table_name_72 WHERE type_code = "cubic centimetres (cuin) v8 ( m273 )" | {
"input": "CREATE TABLE table_name_72 (years VARCHAR, type_code VARCHAR)",
"instruction": "Which Years has a Type/code of cubic centimetres (cuin) v8 ( m273 )?",
"output": "SELECT years FROM table_name_72 WHERE type_code = \"cubic centimetres (cuin) v8 ( m273 )\""
} |
### INSTRUCTION
What was Saskatoon Accelerators score on January 6, 2008?
### INPUT
CREATE TABLE table_name_66 (score VARCHAR, home_team VARCHAR, date VARCHAR)
### OUTPUT
SELECT score FROM table_name_66 WHERE home_team = "saskatoon accelerators" AND date = "january 6, 2008" | {
"input": "CREATE TABLE table_name_66 (score VARCHAR, home_team VARCHAR, date VARCHAR)",
"instruction": "What was Saskatoon Accelerators score on January 6, 2008?",
"output": "SELECT score FROM table_name_66 WHERE home_team = \"saskatoon accelerators\" AND date = \"january 6, 2008\""
} |
### INSTRUCTION
What is the lowest poles of team comtec racing, which has a nc position?
### INPUT
CREATE TABLE table_name_84 (poles INTEGER, position VARCHAR, team VARCHAR)
### OUTPUT
SELECT MIN(poles) FROM table_name_84 WHERE position = "nc" AND team = "comtec racing" | {
"input": "CREATE TABLE table_name_84 (poles INTEGER, position VARCHAR, team VARCHAR)",
"instruction": "What is the lowest poles of team comtec racing, which has a nc position?",
"output": "SELECT MIN(poles) FROM table_name_84 WHERE position = \"nc\" AND team = \"comtec racing\""
} |
### INSTRUCTION
What is the Pressure in hPa (mbar), when Vacuum Range is "medium vacuum"?
### INPUT
CREATE TABLE table_name_69 (pressure_in_hpa__mbar_ VARCHAR, vacuum_range VARCHAR)
### OUTPUT
SELECT pressure_in_hpa__mbar_ FROM table_name_69 WHERE vacuum_range = "medium vacuum" | {
"input": "CREATE TABLE table_name_69 (pressure_in_hpa__mbar_ VARCHAR, vacuum_range VARCHAR)",
"instruction": "What is the Pressure in hPa (mbar), when Vacuum Range is \"medium vacuum\"?",
"output": "SELECT pressure_in_hpa__mbar_ FROM table_name_69 WHERE vacuum_range = \"medium vacuum\""
} |
### INSTRUCTION
What begin has victoria as the state/territory and a ICA0 of ymml?
### INPUT
CREATE TABLE table_name_18 (begin VARCHAR, state_territory VARCHAR, icao VARCHAR)
### OUTPUT
SELECT begin FROM table_name_18 WHERE state_territory = "victoria" AND icao = "ymml" | {
"input": "CREATE TABLE table_name_18 (begin VARCHAR, state_territory VARCHAR, icao VARCHAR)",
"instruction": "What begin has victoria as the state/territory and a ICA0 of ymml?",
"output": "SELECT begin FROM table_name_18 WHERE state_territory = \"victoria\" AND icao = \"ymml\""
} |
### INSTRUCTION
How much Draw has a Televote larger than 18, and an Artist of elizabeth anastasiou, and a Jury larger than 4?
### INPUT
CREATE TABLE table_name_44 (draw VARCHAR, jury VARCHAR, televote VARCHAR, artist VARCHAR)
### OUTPUT
SELECT COUNT(draw) FROM table_name_44 WHERE televote > 18 AND artist = "elizabeth anastasiou" AND jury > 4 | {
"input": "CREATE TABLE table_name_44 (draw VARCHAR, jury VARCHAR, televote VARCHAR, artist VARCHAR)",
"instruction": "How much Draw has a Televote larger than 18, and an Artist of elizabeth anastasiou, and a Jury larger than 4?",
"output": "SELECT COUNT(draw) FROM table_name_44 WHERE televote > 18 AND artist = \"elizabeth anastasiou\" AND jury > 4"
} |
### INSTRUCTION
What is the average year of the most recent appearance of the Boston Crusaders, who had their first appearance after 1976?
### INPUT
CREATE TABLE table_name_27 (year_of_most_recent_appearance INTEGER, year_of_first_appearance VARCHAR, corps_name VARCHAR)
### OUTPUT
SELECT AVG(year_of_most_recent_appearance) FROM table_name_27 WHERE year_of_first_appearance > 1976 AND corps_name = "boston crusaders" | {
"input": "CREATE TABLE table_name_27 (year_of_most_recent_appearance INTEGER, year_of_first_appearance VARCHAR, corps_name VARCHAR)",
"instruction": "What is the average year of the most recent appearance of the Boston Crusaders, who had their first appearance after 1976?",
"output": "SELECT AVG(year_of_most_recent_appearance) FROM table_name_27 WHERE year_of_first_appearance > 1976 AND corps_name = \"boston crusaders\""
} |
### INSTRUCTION
For the race held at the Cleveland Burke Lakefront Airport circuit, with winning driver Emerson Fittipaldi and pole position Michael Andretti, what was the winning team?
### INPUT
CREATE TABLE table_name_15 (winning_team VARCHAR, circuit VARCHAR, winning_driver VARCHAR, pole_position VARCHAR)
### OUTPUT
SELECT winning_team FROM table_name_15 WHERE winning_driver = "emerson fittipaldi" AND pole_position = "michael andretti" AND circuit = "cleveland burke lakefront airport" | {
"input": "CREATE TABLE table_name_15 (winning_team VARCHAR, circuit VARCHAR, winning_driver VARCHAR, pole_position VARCHAR)",
"instruction": "For the race held at the Cleveland Burke Lakefront Airport circuit, with winning driver Emerson Fittipaldi and pole position Michael Andretti, what was the winning team?",
"output": "SELECT winning_team FROM table_name_15 WHERE winning_driver = \"emerson fittipaldi\" AND pole_position = \"michael andretti\" AND circuit = \"cleveland burke lakefront airport\""
} |
### INSTRUCTION
Name the city of license with resolution of sd 480i and official website of telemundo.com
### INPUT
CREATE TABLE table_name_34 (city_of_license VARCHAR, resolution VARCHAR, official_website VARCHAR)
### OUTPUT
SELECT city_of_license FROM table_name_34 WHERE resolution = "sd 480i" AND official_website = "telemundo.com" | {
"input": "CREATE TABLE table_name_34 (city_of_license VARCHAR, resolution VARCHAR, official_website VARCHAR)",
"instruction": "Name the city of license with resolution of sd 480i and official website of telemundo.com",
"output": "SELECT city_of_license FROM table_name_34 WHERE resolution = \"sd 480i\" AND official_website = \"telemundo.com\""
} |
### INSTRUCTION
What title had a remark of #21 us [riaa certified gold january 3, 1990]?
### INPUT
CREATE TABLE table_name_61 (title VARCHAR, remark VARCHAR)
### OUTPUT
SELECT title FROM table_name_61 WHERE remark = "#21 us [riaa certified gold january 3, 1990]" | {
"input": "CREATE TABLE table_name_61 (title VARCHAR, remark VARCHAR)",
"instruction": "What title had a remark of #21 us [riaa certified gold january 3, 1990]?",
"output": "SELECT title FROM table_name_61 WHERE remark = \"#21 us [riaa certified gold january 3, 1990]\""
} |
### INSTRUCTION
What is the highest Peroutka with 46 others, and less than 15 electors?
### INPUT
CREATE TABLE table_name_69 (peroutka INTEGER, others VARCHAR, electors VARCHAR)
### OUTPUT
SELECT MAX(peroutka) FROM table_name_69 WHERE others = 46 AND electors < 15 | {
"input": "CREATE TABLE table_name_69 (peroutka INTEGER, others VARCHAR, electors VARCHAR)",
"instruction": "What is the highest Peroutka with 46 others, and less than 15 electors?",
"output": "SELECT MAX(peroutka) FROM table_name_69 WHERE others = 46 AND electors < 15"
} |
### INSTRUCTION
How many grids had a Time/Retired of +4 laps?
### INPUT
CREATE TABLE table_name_72 (grid VARCHAR, time_retired VARCHAR)
### OUTPUT
SELECT COUNT(grid) FROM table_name_72 WHERE time_retired = "+4 laps" | {
"input": "CREATE TABLE table_name_72 (grid VARCHAR, time_retired VARCHAR)",
"instruction": "How many grids had a Time/Retired of +4 laps?",
"output": "SELECT COUNT(grid) FROM table_name_72 WHERE time_retired = \"+4 laps\""
} |
### INSTRUCTION
What are the notes for the athlete from Spain?
### INPUT
CREATE TABLE table_name_29 (notes VARCHAR, country VARCHAR)
### OUTPUT
SELECT notes FROM table_name_29 WHERE country = "spain" | {
"input": "CREATE TABLE table_name_29 (notes VARCHAR, country VARCHAR)",
"instruction": "What are the notes for the athlete from Spain?",
"output": "SELECT notes FROM table_name_29 WHERE country = \"spain\""
} |
### INSTRUCTION
Who was supporting in round 1 where the gt winning car was dodge viper?
### INPUT
CREATE TABLE table_28490105_1 (supporting VARCHAR, gt_winning_car VARCHAR, rnd VARCHAR)
### OUTPUT
SELECT supporting FROM table_28490105_1 WHERE gt_winning_car = "Dodge Viper" AND rnd = 1 | {
"input": "CREATE TABLE table_28490105_1 (supporting VARCHAR, gt_winning_car VARCHAR, rnd VARCHAR)",
"instruction": "Who was supporting in round 1 where the gt winning car was dodge viper?",
"output": "SELECT supporting FROM table_28490105_1 WHERE gt_winning_car = \"Dodge Viper\" AND rnd = 1"
} |
### INSTRUCTION
What is the Romanji Title of a show on TBS with less than 11 episodes?
### INPUT
CREATE TABLE table_name_43 (romaji_title VARCHAR, tv_station VARCHAR, episodes VARCHAR)
### OUTPUT
SELECT romaji_title FROM table_name_43 WHERE tv_station = "tbs" AND episodes < 11 | {
"input": "CREATE TABLE table_name_43 (romaji_title VARCHAR, tv_station VARCHAR, episodes VARCHAR)",
"instruction": "What is the Romanji Title of a show on TBS with less than 11 episodes?",
"output": "SELECT romaji_title FROM table_name_43 WHERE tv_station = \"tbs\" AND episodes < 11"
} |
### INSTRUCTION
What is the rank of Rmax Rpeak ( Pflops ) of 17.173 20.133?
### INPUT
CREATE TABLE table_name_7 (rank INTEGER, rmax_rpeak___pflops__ VARCHAR)
### OUTPUT
SELECT AVG(rank) FROM table_name_7 WHERE rmax_rpeak___pflops__ = "17.173 20.133" | {
"input": "CREATE TABLE table_name_7 (rank INTEGER, rmax_rpeak___pflops__ VARCHAR)",
"instruction": "What is the rank of Rmax Rpeak ( Pflops ) of 17.173 20.133?",
"output": "SELECT AVG(rank) FROM table_name_7 WHERE rmax_rpeak___pflops__ = \"17.173 20.133\""
} |
### INSTRUCTION
Find the names of the trains that do not pass any station located in London.
### INPUT
CREATE TABLE station (station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR); CREATE TABLE train_station (train_id VARCHAR, station_id VARCHAR); CREATE TABLE train (name VARCHAR, train_id VARCHAR)
### OUTPUT
SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id = T2.train_id WHERE NOT T1.station_id IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id = T4.station_id WHERE t4.location = "London") | {
"input": "CREATE TABLE station (station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR); CREATE TABLE train_station (train_id VARCHAR, station_id VARCHAR); CREATE TABLE train (name VARCHAR, train_id VARCHAR)",
"instruction": "Find the names of the trains that do not pass any station located in London.",
"output": "SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id = T2.train_id WHERE NOT T1.station_id IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id = T4.station_id WHERE t4.location = \"London\")"
} |
### INSTRUCTION
What is the engine configuration & notes 0-100km/h with an engine type with b5252 fs?
### INPUT
CREATE TABLE table_name_49 (engine_configuration_ VARCHAR, _notes_0_100km_h VARCHAR, engine_type VARCHAR)
### OUTPUT
SELECT engine_configuration_ & _notes_0_100km_h FROM table_name_49 WHERE engine_type = "b5252 fs" | {
"input": "CREATE TABLE table_name_49 (engine_configuration_ VARCHAR, _notes_0_100km_h VARCHAR, engine_type VARCHAR)",
"instruction": "What is the engine configuration & notes 0-100km/h with an engine type with b5252 fs?",
"output": "SELECT engine_configuration_ & _notes_0_100km_h FROM table_name_49 WHERE engine_type = \"b5252 fs\""
} |
### INSTRUCTION
What is the highest Total Foreign-born (1000) from a non EU state (1000) of 685 and a population (1000) smaller than 10,666?
### INPUT
CREATE TABLE table_name_53 (total_foreign_born__1000_ INTEGER, born_in_a_non_eu_state__1000_ VARCHAR, total_population__1000_ VARCHAR)
### OUTPUT
SELECT MAX(total_foreign_born__1000_) FROM table_name_53 WHERE born_in_a_non_eu_state__1000_ = 685 AND total_population__1000_ > 10 OFFSET 666 | {
"input": "CREATE TABLE table_name_53 (total_foreign_born__1000_ INTEGER, born_in_a_non_eu_state__1000_ VARCHAR, total_population__1000_ VARCHAR)",
"instruction": "What is the highest Total Foreign-born (1000) from a non EU state (1000) of 685 and a population (1000) smaller than 10,666?",
"output": "SELECT MAX(total_foreign_born__1000_) FROM table_name_53 WHERE born_in_a_non_eu_state__1000_ = 685 AND total_population__1000_ > 10 OFFSET 666"
} |
### INSTRUCTION
Before 2007, what was the avg start that had a pole of 0 and in 65th position?
### INPUT
CREATE TABLE table_name_81 (starts INTEGER, year VARCHAR, poles VARCHAR, position VARCHAR)
### OUTPUT
SELECT AVG(starts) FROM table_name_81 WHERE poles = 0 AND position = "65th" AND year < 2007 | {
"input": "CREATE TABLE table_name_81 (starts INTEGER, year VARCHAR, poles VARCHAR, position VARCHAR)",
"instruction": "Before 2007, what was the avg start that had a pole of 0 and in 65th position?",
"output": "SELECT AVG(starts) FROM table_name_81 WHERE poles = 0 AND position = \"65th\" AND year < 2007"
} |
### INSTRUCTION
Who is the Driver on Bob Keselowski's team?
### INPUT
CREATE TABLE table_name_57 (driver_s_ VARCHAR, owner_s_ VARCHAR)
### OUTPUT
SELECT driver_s_ FROM table_name_57 WHERE owner_s_ = "bob keselowski" | {
"input": "CREATE TABLE table_name_57 (driver_s_ VARCHAR, owner_s_ VARCHAR)",
"instruction": "Who is the Driver on Bob Keselowski's team?",
"output": "SELECT driver_s_ FROM table_name_57 WHERE owner_s_ = \"bob keselowski\""
} |
### INSTRUCTION
For the match played on 7 January 1956, with away team of Accrington Stanley, who was the home team?
### INPUT
CREATE TABLE table_name_47 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
### OUTPUT
SELECT home_team FROM table_name_47 WHERE date = "7 january 1956" AND away_team = "accrington stanley" | {
"input": "CREATE TABLE table_name_47 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)",
"instruction": "For the match played on 7 January 1956, with away team of Accrington Stanley, who was the home team?",
"output": "SELECT home_team FROM table_name_47 WHERE date = \"7 january 1956\" AND away_team = \"accrington stanley\""
} |
### INSTRUCTION
Find the first and last name of students who are not in the largest major.
### INPUT
CREATE TABLE student (fname VARCHAR, lname VARCHAR, major VARCHAR)
### OUTPUT
SELECT fname, lname FROM student WHERE major <> (SELECT major FROM student GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1) | {
"input": "CREATE TABLE student (fname VARCHAR, lname VARCHAR, major VARCHAR)",
"instruction": "Find the first and last name of students who are not in the largest major.",
"output": "SELECT fname, lname FROM student WHERE major <> (SELECT major FROM student GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1)"
} |
### INSTRUCTION
What is the special when the challenger is dominique bouchet?
### INPUT
CREATE TABLE table_23982399_12 (special VARCHAR, challenger VARCHAR)
### OUTPUT
SELECT special FROM table_23982399_12 WHERE challenger = "Dominique Bouchet" | {
"input": "CREATE TABLE table_23982399_12 (special VARCHAR, challenger VARCHAR)",
"instruction": "What is the special when the challenger is dominique bouchet?",
"output": "SELECT special FROM table_23982399_12 WHERE challenger = \"Dominique Bouchet\""
} |
### INSTRUCTION
What is the least amount of failures with 1 launch and 0 partial failures?
### INPUT
CREATE TABLE table_name_28 (failures INTEGER, launches VARCHAR, partial_failures VARCHAR)
### OUTPUT
SELECT MIN(failures) FROM table_name_28 WHERE launches = 1 AND partial_failures < 0 | {
"input": "CREATE TABLE table_name_28 (failures INTEGER, launches VARCHAR, partial_failures VARCHAR)",
"instruction": "What is the least amount of failures with 1 launch and 0 partial failures?",
"output": "SELECT MIN(failures) FROM table_name_28 WHERE launches = 1 AND partial_failures < 0"
} |
### INSTRUCTION
In 2012, which round in the Open Cup did Real Colorado Foxes make it to the conference semifinal?
### INPUT
CREATE TABLE table_name_61 (open_cup VARCHAR, playoffs VARCHAR, year VARCHAR)
### OUTPUT
SELECT open_cup FROM table_name_61 WHERE playoffs = "conference semifinal" AND year = 2012 | {
"input": "CREATE TABLE table_name_61 (open_cup VARCHAR, playoffs VARCHAR, year VARCHAR)",
"instruction": "In 2012, which round in the Open Cup did Real Colorado Foxes make it to the conference semifinal?",
"output": "SELECT open_cup FROM table_name_61 WHERE playoffs = \"conference semifinal\" AND year = 2012"
} |
### INSTRUCTION
What is the venue of the game with Man of the Match Vaclav Zavoral?
### INPUT
CREATE TABLE table_17120964_8 (venue VARCHAR, man_of_the_match VARCHAR)
### OUTPUT
SELECT venue FROM table_17120964_8 WHERE man_of_the_match = "Vaclav Zavoral" | {
"input": "CREATE TABLE table_17120964_8 (venue VARCHAR, man_of_the_match VARCHAR)",
"instruction": "What is the venue of the game with Man of the Match Vaclav Zavoral?",
"output": "SELECT venue FROM table_17120964_8 WHERE man_of_the_match = \"Vaclav Zavoral\""
} |
### INSTRUCTION
Show each school name, its budgeted amount, and invested amount in year 2002 or after.
### INPUT
CREATE TABLE budget (budgeted VARCHAR, invested VARCHAR, school_id VARCHAR, year VARCHAR); CREATE TABLE school (school_name VARCHAR, school_id VARCHAR)
### OUTPUT
SELECT T2.school_name, T1.budgeted, T1.invested FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.year >= 2002 | {
"input": "CREATE TABLE budget (budgeted VARCHAR, invested VARCHAR, school_id VARCHAR, year VARCHAR); CREATE TABLE school (school_name VARCHAR, school_id VARCHAR)",
"instruction": "Show each school name, its budgeted amount, and invested amount in year 2002 or after.",
"output": "SELECT T2.school_name, T1.budgeted, T1.invested FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.year >= 2002"
} |
### INSTRUCTION
Find the name of the ships that have more than one captain.
### INPUT
CREATE TABLE captain (ship_id VARCHAR); CREATE TABLE ship (name VARCHAR, ship_id VARCHAR)
### OUTPUT
SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING COUNT(*) > 1 | {
"input": "CREATE TABLE captain (ship_id VARCHAR); CREATE TABLE ship (name VARCHAR, ship_id VARCHAR)",
"instruction": "Find the name of the ships that have more than one captain.",
"output": "SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING COUNT(*) > 1"
} |
### INSTRUCTION
What is the highest number of wins with a goal difference less than 4 at the Villarreal CF and more than 38 played?
### INPUT
CREATE TABLE table_name_82 (wins INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR)
### OUTPUT
SELECT MAX(wins) FROM table_name_82 WHERE goal_difference < 4 AND club = "villarreal cf" AND played > 38 | {
"input": "CREATE TABLE table_name_82 (wins INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR)",
"instruction": "What is the highest number of wins with a goal difference less than 4 at the Villarreal CF and more than 38 played?",
"output": "SELECT MAX(wins) FROM table_name_82 WHERE goal_difference < 4 AND club = \"villarreal cf\" AND played > 38"
} |
### INSTRUCTION
What is the name of the First Class Team in which the player has a bowling style of left arm orthodox spin?
### INPUT
CREATE TABLE table_name_15 (first_class_team VARCHAR, bowling_style VARCHAR)
### OUTPUT
SELECT first_class_team FROM table_name_15 WHERE bowling_style = "left arm orthodox spin" | {
"input": "CREATE TABLE table_name_15 (first_class_team VARCHAR, bowling_style VARCHAR)",
"instruction": "What is the name of the First Class Team in which the player has a bowling style of left arm orthodox spin?",
"output": "SELECT first_class_team FROM table_name_15 WHERE bowling_style = \"left arm orthodox spin\""
} |
### INSTRUCTION
Occupational pensions of 7%, and a Working tax credit of 2%, and a Other social security benefits of 6% has what investment income?
### INPUT
CREATE TABLE table_name_39 (investment_income VARCHAR, other_social_security_benefits VARCHAR, occupational_pensions VARCHAR, working_tax_credit VARCHAR)
### OUTPUT
SELECT investment_income FROM table_name_39 WHERE occupational_pensions = "7%" AND working_tax_credit = "2%" AND other_social_security_benefits = "6%" | {
"input": "CREATE TABLE table_name_39 (investment_income VARCHAR, other_social_security_benefits VARCHAR, occupational_pensions VARCHAR, working_tax_credit VARCHAR)",
"instruction": "Occupational pensions of 7%, and a Working tax credit of 2%, and a Other social security benefits of 6% has what investment income?",
"output": "SELECT investment_income FROM table_name_39 WHERE occupational_pensions = \"7%\" AND working_tax_credit = \"2%\" AND other_social_security_benefits = \"6%\""
} |
### INSTRUCTION
What is the first name of each student enrolled in class ACCT-211?
### INPUT
CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR)
### OUTPUT
SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' | {
"input": "CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR)",
"instruction": "What is the first name of each student enrolled in class ACCT-211?",
"output": "SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211'"
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.