text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
What was the violent crime rate in the city where the robbery rate was 201.4?
### INPUT
CREATE TABLE table_1818254_1 (violent_crime VARCHAR, robbery VARCHAR)
### OUTPUT
SELECT violent_crime FROM table_1818254_1 WHERE robbery = "201.4" | {
"input": "CREATE TABLE table_1818254_1 (violent_crime VARCHAR, robbery VARCHAR)",
"instruction": "What was the violent crime rate in the city where the robbery rate was 201.4?",
"output": "SELECT violent_crime FROM table_1818254_1 WHERE robbery = \"201.4\""
} |
### INSTRUCTION
What is the game number where josh smith (4) had the high assists?
### INPUT
CREATE TABLE table_27734577_13 (game INTEGER, high_assists VARCHAR)
### OUTPUT
SELECT MIN(game) FROM table_27734577_13 WHERE high_assists = "Josh Smith (4)" | {
"input": "CREATE TABLE table_27734577_13 (game INTEGER, high_assists VARCHAR)",
"instruction": "What is the game number where josh smith (4) had the high assists?",
"output": "SELECT MIN(game) FROM table_27734577_13 WHERE high_assists = \"Josh Smith (4)\""
} |
### INSTRUCTION
Name the opponent when the result is w 16-15 and has home/away of home
### INPUT
CREATE TABLE table_name_37 (opponent VARCHAR, home_away VARCHAR, result VARCHAR)
### OUTPUT
SELECT opponent FROM table_name_37 WHERE home_away = "home" AND result = "w 16-15" | {
"input": "CREATE TABLE table_name_37 (opponent VARCHAR, home_away VARCHAR, result VARCHAR)",
"instruction": "Name the opponent when the result is w 16-15 and has home/away of home",
"output": "SELECT opponent FROM table_name_37 WHERE home_away = \"home\" AND result = \"w 16-15\""
} |
### INSTRUCTION
Which organizations were founded in 1972, but became WOSM members until 1977?
### INPUT
CREATE TABLE table_104858_1 (name_of_member_organization VARCHAR, year_member_organization_was_founded VARCHAR, year_current_scouting_organization_joined_wosm VARCHAR)
### OUTPUT
SELECT name_of_member_organization FROM table_104858_1 WHERE year_member_organization_was_founded = "1972" AND year_current_scouting_organization_joined_wosm = "1977" | {
"input": "CREATE TABLE table_104858_1 (name_of_member_organization VARCHAR, year_member_organization_was_founded VARCHAR, year_current_scouting_organization_joined_wosm VARCHAR)",
"instruction": "Which organizations were founded in 1972, but became WOSM members until 1977?",
"output": "SELECT name_of_member_organization FROM table_104858_1 WHERE year_member_organization_was_founded = \"1972\" AND year_current_scouting_organization_joined_wosm = \"1977\""
} |
### INSTRUCTION
What is the area of the nation with GDP per capita (US$) of 11,929?
### INPUT
CREATE TABLE table_name_11 (area__km²_ VARCHAR, gdp_per_capita__us$_ VARCHAR)
### OUTPUT
SELECT area__km²_ FROM table_name_11 WHERE gdp_per_capita__us$_ = "11,929" | {
"input": "CREATE TABLE table_name_11 (area__km²_ VARCHAR, gdp_per_capita__us$_ VARCHAR)",
"instruction": "What is the area of the nation with GDP per capita (US$) of 11,929?",
"output": "SELECT area__km²_ FROM table_name_11 WHERE gdp_per_capita__us$_ = \"11,929\""
} |
### INSTRUCTION
Who was played against in the final on November 14, 1994?
### INPUT
CREATE TABLE table_name_17 (opponent_in_the_final VARCHAR, date VARCHAR)
### OUTPUT
SELECT opponent_in_the_final FROM table_name_17 WHERE date = "november 14, 1994" | {
"input": "CREATE TABLE table_name_17 (opponent_in_the_final VARCHAR, date VARCHAR)",
"instruction": "Who was played against in the final on November 14, 1994?",
"output": "SELECT opponent_in_the_final FROM table_name_17 WHERE date = \"november 14, 1994\""
} |
### INSTRUCTION
How man cuts were there of players who had 0 wins but had 1 player in the top 25 with more than 4 events?
### INPUT
CREATE TABLE table_name_76 (cuts_made INTEGER, events VARCHAR, wins VARCHAR, top_25 VARCHAR)
### OUTPUT
SELECT SUM(cuts_made) FROM table_name_76 WHERE wins = 0 AND top_25 = 1 AND events > 4 | {
"input": "CREATE TABLE table_name_76 (cuts_made INTEGER, events VARCHAR, wins VARCHAR, top_25 VARCHAR)",
"instruction": "How man cuts were there of players who had 0 wins but had 1 player in the top 25 with more than 4 events?",
"output": "SELECT SUM(cuts_made) FROM table_name_76 WHERE wins = 0 AND top_25 = 1 AND events > 4"
} |
### INSTRUCTION
Name what was published in july 1934 with a setting of mars
### INPUT
CREATE TABLE table_name_22 (published_in VARCHAR, setting VARCHAR, publication_date VARCHAR)
### OUTPUT
SELECT published_in FROM table_name_22 WHERE setting = "mars" AND publication_date = "july 1934" | {
"input": "CREATE TABLE table_name_22 (published_in VARCHAR, setting VARCHAR, publication_date VARCHAR)",
"instruction": "Name what was published in july 1934 with a setting of mars",
"output": "SELECT published_in FROM table_name_22 WHERE setting = \"mars\" AND publication_date = \"july 1934\""
} |
### INSTRUCTION
What is the Tournament with a Date larger than 1973, with Opponents in the final with hank pfister sherwood stewart?
### INPUT
CREATE TABLE table_name_66 (tournament VARCHAR, date VARCHAR, opponents_in_the_final VARCHAR)
### OUTPUT
SELECT tournament FROM table_name_66 WHERE date > 1973 AND opponents_in_the_final = "hank pfister sherwood stewart" | {
"input": "CREATE TABLE table_name_66 (tournament VARCHAR, date VARCHAR, opponents_in_the_final VARCHAR)",
"instruction": "What is the Tournament with a Date larger than 1973, with Opponents in the final with hank pfister sherwood stewart?",
"output": "SELECT tournament FROM table_name_66 WHERE date > 1973 AND opponents_in_the_final = \"hank pfister sherwood stewart\""
} |
### INSTRUCTION
How many titles have directors of matthew Penn and number in series of 143?
### INPUT
CREATE TABLE table_2618119_1 (title VARCHAR, directed_by VARCHAR, no_in_series VARCHAR)
### OUTPUT
SELECT COUNT(title) FROM table_2618119_1 WHERE directed_by = "Matthew Penn" AND no_in_series = 143 | {
"input": "CREATE TABLE table_2618119_1 (title VARCHAR, directed_by VARCHAR, no_in_series VARCHAR)",
"instruction": "How many titles have directors of matthew Penn and number in series of 143?",
"output": "SELECT COUNT(title) FROM table_2618119_1 WHERE directed_by = \"Matthew Penn\" AND no_in_series = 143"
} |
### INSTRUCTION
What is the sum of Overall, when Name is "Tim Smiley", and when Round is less than 5?
### INPUT
CREATE TABLE table_name_22 (overall INTEGER, name VARCHAR, round VARCHAR)
### OUTPUT
SELECT SUM(overall) FROM table_name_22 WHERE name = "tim smiley" AND round < 5 | {
"input": "CREATE TABLE table_name_22 (overall INTEGER, name VARCHAR, round VARCHAR)",
"instruction": "What is the sum of Overall, when Name is \"Tim Smiley\", and when Round is less than 5?",
"output": "SELECT SUM(overall) FROM table_name_22 WHERE name = \"tim smiley\" AND round < 5"
} |
### INSTRUCTION
Show the description of the transaction type that occurs most frequently.
### INPUT
CREATE TABLE TRANSACTIONS (transaction_type_code VARCHAR); CREATE TABLE Ref_Transaction_Types (transaction_type_description VARCHAR, transaction_type_code VARCHAR)
### OUTPUT
SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code GROUP BY T1.transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE TRANSACTIONS (transaction_type_code VARCHAR); CREATE TABLE Ref_Transaction_Types (transaction_type_description VARCHAR, transaction_type_code VARCHAR)",
"instruction": "Show the description of the transaction type that occurs most frequently.",
"output": "SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code GROUP BY T1.transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Find all procedures which cost more than 1000 or which physician John Wen was trained in.
### INPUT
CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (name VARCHAR, cost INTEGER); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR)
### OUTPUT
SELECT name FROM procedures WHERE cost > 1000 UNION SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen" | {
"input": "CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (name VARCHAR, cost INTEGER); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR)",
"instruction": "Find all procedures which cost more than 1000 or which physician John Wen was trained in.",
"output": "SELECT name FROM procedures WHERE cost > 1000 UNION SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = \"John Wen\""
} |
### INSTRUCTION
What is School Year, when Cross Country is Lexington, when Soccer is Ashland, and when Volleyball is Wooster?
### INPUT
CREATE TABLE table_name_9 (school_year VARCHAR, volleyball VARCHAR, cross_country VARCHAR, soccer VARCHAR)
### OUTPUT
SELECT school_year FROM table_name_9 WHERE cross_country = "lexington" AND soccer = "ashland" AND volleyball = "wooster" | {
"input": "CREATE TABLE table_name_9 (school_year VARCHAR, volleyball VARCHAR, cross_country VARCHAR, soccer VARCHAR)",
"instruction": "What is School Year, when Cross Country is Lexington, when Soccer is Ashland, and when Volleyball is Wooster?",
"output": "SELECT school_year FROM table_name_9 WHERE cross_country = \"lexington\" AND soccer = \"ashland\" AND volleyball = \"wooster\""
} |
### INSTRUCTION
What is the result of the game on May 14 with Philadelphia as the road team?
### INPUT
CREATE TABLE table_name_48 (result VARCHAR, road_team VARCHAR, date VARCHAR)
### OUTPUT
SELECT result FROM table_name_48 WHERE road_team = "philadelphia" AND date = "may 14" | {
"input": "CREATE TABLE table_name_48 (result VARCHAR, road_team VARCHAR, date VARCHAR)",
"instruction": "What is the result of the game on May 14 with Philadelphia as the road team?",
"output": "SELECT result FROM table_name_48 WHERE road_team = \"philadelphia\" AND date = \"may 14\""
} |
### INSTRUCTION
Which Time/Retired entry has greater than 51 laps and driver Cristiano da Matta?
### INPUT
CREATE TABLE table_name_79 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR)
### OUTPUT
SELECT time_retired FROM table_name_79 WHERE laps > 51 AND driver = "cristiano da matta" | {
"input": "CREATE TABLE table_name_79 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR)",
"instruction": "Which Time/Retired entry has greater than 51 laps and driver Cristiano da Matta?",
"output": "SELECT time_retired FROM table_name_79 WHERE laps > 51 AND driver = \"cristiano da matta\""
} |
### INSTRUCTION
what is the number of teams where conmebol 1996 did not qualify?
### INPUT
CREATE TABLE table_14310205_1 (team VARCHAR, conmebol_1996 VARCHAR)
### OUTPUT
SELECT COUNT(team) FROM table_14310205_1 WHERE conmebol_1996 = "did not qualify" | {
"input": "CREATE TABLE table_14310205_1 (team VARCHAR, conmebol_1996 VARCHAR)",
"instruction": "what is the number of teams where conmebol 1996 did not qualify?",
"output": "SELECT COUNT(team) FROM table_14310205_1 WHERE conmebol_1996 = \"did not qualify\""
} |
### INSTRUCTION
Which color is the background of the mandatory instructions?
### INPUT
CREATE TABLE table_name_43 (background_colour VARCHAR, type_of_sign VARCHAR)
### OUTPUT
SELECT background_colour FROM table_name_43 WHERE type_of_sign = "mandatory instructions" | {
"input": "CREATE TABLE table_name_43 (background_colour VARCHAR, type_of_sign VARCHAR)",
"instruction": "Which color is the background of the mandatory instructions?",
"output": "SELECT background_colour FROM table_name_43 WHERE type_of_sign = \"mandatory instructions\""
} |
### INSTRUCTION
How many lesson does customer with first name Ray took?
### INPUT
CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR); CREATE TABLE Lessons (customer_id VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Ray" | {
"input": "CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR); CREATE TABLE Lessons (customer_id VARCHAR)",
"instruction": "How many lesson does customer with first name Ray took?",
"output": "SELECT COUNT(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Ray\""
} |
### INSTRUCTION
List the names and origins of people who are not body builders.
### INPUT
CREATE TABLE people (Name VARCHAR, birth_place VARCHAR, people_id VARCHAR); CREATE TABLE body_builder (people_id VARCHAR); CREATE TABLE people (Name VARCHAR, birth_place VARCHAR)
### OUTPUT
SELECT Name, birth_place FROM people EXCEPT SELECT T1.Name, T1.birth_place FROM people AS T1 JOIN body_builder AS T2 ON T1.people_id = T2.people_id | {
"input": "CREATE TABLE people (Name VARCHAR, birth_place VARCHAR, people_id VARCHAR); CREATE TABLE body_builder (people_id VARCHAR); CREATE TABLE people (Name VARCHAR, birth_place VARCHAR)",
"instruction": "List the names and origins of people who are not body builders.",
"output": "SELECT Name, birth_place FROM people EXCEPT SELECT T1.Name, T1.birth_place FROM people AS T1 JOIN body_builder AS T2 ON T1.people_id = T2.people_id"
} |
### INSTRUCTION
What is the total number of Goals with a nationality of England, and position of DF, and a Crewe Alexandra career is 1958–1962, and less than 170 appearances?
### INPUT
CREATE TABLE table_name_98 (goals VARCHAR, appearances VARCHAR, crewe_alexandra_career VARCHAR, nationality VARCHAR, position VARCHAR)
### OUTPUT
SELECT COUNT(goals) FROM table_name_98 WHERE nationality = "england" AND position = "df" AND crewe_alexandra_career = "1958–1962" AND appearances < 170 | {
"input": "CREATE TABLE table_name_98 (goals VARCHAR, appearances VARCHAR, crewe_alexandra_career VARCHAR, nationality VARCHAR, position VARCHAR)",
"instruction": "What is the total number of Goals with a nationality of England, and position of DF, and a Crewe Alexandra career is 1958–1962, and less than 170 appearances?",
"output": "SELECT COUNT(goals) FROM table_name_98 WHERE nationality = \"england\" AND position = \"df\" AND crewe_alexandra_career = \"1958–1962\" AND appearances < 170"
} |
### INSTRUCTION
What is the lowest score in the Highest score column when Master P was the Worst dancer(s), Drew Lachey was the Best dancer(s), and the Lowest score was under 8?
### INPUT
CREATE TABLE table_name_92 (highest_score INTEGER, lowest_score VARCHAR, worst_dancer_s_ VARCHAR, best_dancer_s_ VARCHAR)
### OUTPUT
SELECT MIN(highest_score) FROM table_name_92 WHERE worst_dancer_s_ = "master p" AND best_dancer_s_ = "drew lachey" AND lowest_score < 8 | {
"input": "CREATE TABLE table_name_92 (highest_score INTEGER, lowest_score VARCHAR, worst_dancer_s_ VARCHAR, best_dancer_s_ VARCHAR)",
"instruction": "What is the lowest score in the Highest score column when Master P was the Worst dancer(s), Drew Lachey was the Best dancer(s), and the Lowest score was under 8?",
"output": "SELECT MIN(highest_score) FROM table_name_92 WHERE worst_dancer_s_ = \"master p\" AND best_dancer_s_ = \"drew lachey\" AND lowest_score < 8"
} |
### INSTRUCTION
What language has NO, as the HDTV, sky famiglia as the package/option, and national geographic channel as the television service?
### INPUT
CREATE TABLE table_name_23 (language VARCHAR, television_service VARCHAR, hdtv VARCHAR, package_option VARCHAR)
### OUTPUT
SELECT language FROM table_name_23 WHERE hdtv = "no" AND package_option = "sky famiglia" AND television_service = "national geographic channel" | {
"input": "CREATE TABLE table_name_23 (language VARCHAR, television_service VARCHAR, hdtv VARCHAR, package_option VARCHAR)",
"instruction": "What language has NO, as the HDTV, sky famiglia as the package/option, and national geographic channel as the television service?",
"output": "SELECT language FROM table_name_23 WHERE hdtv = \"no\" AND package_option = \"sky famiglia\" AND television_service = \"national geographic channel\""
} |
### INSTRUCTION
How many barony's appear when Ballyvadona is the townland.
### INPUT
CREATE TABLE table_30120556_1 (barony VARCHAR, townland VARCHAR)
### OUTPUT
SELECT COUNT(barony) FROM table_30120556_1 WHERE townland = "Ballyvadona" | {
"input": "CREATE TABLE table_30120556_1 (barony VARCHAR, townland VARCHAR)",
"instruction": "How many barony's appear when Ballyvadona is the townland.",
"output": "SELECT COUNT(barony) FROM table_30120556_1 WHERE townland = \"Ballyvadona\""
} |
### INSTRUCTION
Find all airlines that have flights from airport 'CVO' but not from 'APG'.
### INPUT
CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR); CREATE TABLE FLIGHTS (Airline VARCHAR, SourceAirport VARCHAR)
### OUTPUT
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "CVO" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "APG" | {
"input": "CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR); CREATE TABLE FLIGHTS (Airline VARCHAR, SourceAirport VARCHAR)",
"instruction": "Find all airlines that have flights from airport 'CVO' but not from 'APG'.",
"output": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\""
} |
### INSTRUCTION
What was the score when a save of ||25,354||63–43 occurred?
### INPUT
CREATE TABLE table_name_49 (score VARCHAR, save VARCHAR)
### OUTPUT
SELECT score FROM table_name_49 WHERE save = "||25,354||63–43" | {
"input": "CREATE TABLE table_name_49 (score VARCHAR, save VARCHAR)",
"instruction": "What was the score when a save of ||25,354||63–43 occurred?",
"output": "SELECT score FROM table_name_49 WHERE save = \"||25,354||63–43\""
} |
### INSTRUCTION
What is the card type code with most number of cards?
### INPUT
CREATE TABLE Customers_cards (card_type_code VARCHAR)
### OUTPUT
SELECT card_type_code FROM Customers_cards GROUP BY card_type_code ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Customers_cards (card_type_code VARCHAR)",
"instruction": "What is the card type code with most number of cards?",
"output": "SELECT card_type_code FROM Customers_cards GROUP BY card_type_code ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Which Decision has a Visitor of vancouver, and a Score of 5 – 4?
### INPUT
CREATE TABLE table_name_4 (decision VARCHAR, visitor VARCHAR, score VARCHAR)
### OUTPUT
SELECT decision FROM table_name_4 WHERE visitor = "vancouver" AND score = "5 – 4" | {
"input": "CREATE TABLE table_name_4 (decision VARCHAR, visitor VARCHAR, score VARCHAR)",
"instruction": "Which Decision has a Visitor of vancouver, and a Score of 5 – 4?",
"output": "SELECT decision FROM table_name_4 WHERE visitor = \"vancouver\" AND score = \"5 – 4\""
} |
### INSTRUCTION
what is the attendance in 2011 records
### INPUT
CREATE TABLE table_21436373_12 (attendance VARCHAR, date_year VARCHAR)
### OUTPUT
SELECT attendance FROM table_21436373_12 WHERE date_year = "2011" | {
"input": "CREATE TABLE table_21436373_12 (attendance VARCHAR, date_year VARCHAR)",
"instruction": "what is the attendance in 2011 records",
"output": "SELECT attendance FROM table_21436373_12 WHERE date_year = \"2011\""
} |
### INSTRUCTION
what is the total number of rank where viewers is 9.38?
### INPUT
CREATE TABLE table_15681686_4 (rank__timeslot_ VARCHAR, viewers__millions_ VARCHAR)
### OUTPUT
SELECT COUNT(rank__timeslot_) FROM table_15681686_4 WHERE viewers__millions_ = "9.38" | {
"input": "CREATE TABLE table_15681686_4 (rank__timeslot_ VARCHAR, viewers__millions_ VARCHAR)",
"instruction": "what is the total number of rank where viewers is 9.38?",
"output": "SELECT COUNT(rank__timeslot_) FROM table_15681686_4 WHERE viewers__millions_ = \"9.38\""
} |
### INSTRUCTION
What are the average points for the Project Indy team that has the Ford xb engine?
### INPUT
CREATE TABLE table_name_42 (points INTEGER, engine VARCHAR, team VARCHAR)
### OUTPUT
SELECT AVG(points) FROM table_name_42 WHERE engine = "ford xb" AND team = "project indy" | {
"input": "CREATE TABLE table_name_42 (points INTEGER, engine VARCHAR, team VARCHAR)",
"instruction": "What are the average points for the Project Indy team that has the Ford xb engine?",
"output": "SELECT AVG(points) FROM table_name_42 WHERE engine = \"ford xb\" AND team = \"project indy\""
} |
### INSTRUCTION
Who is the opponent in the final on 24 November 2008?
### INPUT
CREATE TABLE table_name_43 (opponent_in_the_final VARCHAR, date VARCHAR)
### OUTPUT
SELECT opponent_in_the_final FROM table_name_43 WHERE date = "24 november 2008" | {
"input": "CREATE TABLE table_name_43 (opponent_in_the_final VARCHAR, date VARCHAR)",
"instruction": "Who is the opponent in the final on 24 November 2008?",
"output": "SELECT opponent_in_the_final FROM table_name_43 WHERE date = \"24 november 2008\""
} |
### INSTRUCTION
what is the rank when the heat is more than 4?
### INPUT
CREATE TABLE table_name_66 (rank INTEGER, heat INTEGER)
### OUTPUT
SELECT SUM(rank) FROM table_name_66 WHERE heat > 4 | {
"input": "CREATE TABLE table_name_66 (rank INTEGER, heat INTEGER)",
"instruction": "what is the rank when the heat is more than 4?",
"output": "SELECT SUM(rank) FROM table_name_66 WHERE heat > 4"
} |
### INSTRUCTION
Who was the winner after 2011?
### INPUT
CREATE TABLE table_name_81 (winner VARCHAR, year INTEGER)
### OUTPUT
SELECT winner FROM table_name_81 WHERE year > 2011 | {
"input": "CREATE TABLE table_name_81 (winner VARCHAR, year INTEGER)",
"instruction": "Who was the winner after 2011?",
"output": "SELECT winner FROM table_name_81 WHERE year > 2011"
} |
### INSTRUCTION
What is the number of 1991 populations named Bečej?
### INPUT
CREATE TABLE table_2562572_2 (population__1991_ VARCHAR, city___municipality VARCHAR)
### OUTPUT
SELECT COUNT(population__1991_) FROM table_2562572_2 WHERE city___municipality = "Bečej" | {
"input": "CREATE TABLE table_2562572_2 (population__1991_ VARCHAR, city___municipality VARCHAR)",
"instruction": "What is the number of 1991 populations named Bečej?",
"output": "SELECT COUNT(population__1991_) FROM table_2562572_2 WHERE city___municipality = \"Bečej\""
} |
### INSTRUCTION
What is the lowest area km2 of the member state of the Czech Republic and has a population in millions lesss than 10.3?
### INPUT
CREATE TABLE table_name_61 (area_km_2 INTEGER, member_state VARCHAR, population_in_millions VARCHAR)
### OUTPUT
SELECT MIN(area_km_2) FROM table_name_61 WHERE member_state = "czech republic" AND population_in_millions < 10.3 | {
"input": "CREATE TABLE table_name_61 (area_km_2 INTEGER, member_state VARCHAR, population_in_millions VARCHAR)",
"instruction": "What is the lowest area km2 of the member state of the Czech Republic and has a population in millions lesss than 10.3?",
"output": "SELECT MIN(area_km_2) FROM table_name_61 WHERE member_state = \"czech republic\" AND population_in_millions < 10.3"
} |
### INSTRUCTION
What is the largest total for a team with 1 bronze, 0 gold medals and ranking of 7?
### INPUT
CREATE TABLE table_name_87 (total INTEGER, gold VARCHAR, bronze VARCHAR, rank VARCHAR)
### OUTPUT
SELECT MAX(total) FROM table_name_87 WHERE bronze = 1 AND rank = "7" AND gold > 0 | {
"input": "CREATE TABLE table_name_87 (total INTEGER, gold VARCHAR, bronze VARCHAR, rank VARCHAR)",
"instruction": "What is the largest total for a team with 1 bronze, 0 gold medals and ranking of 7?",
"output": "SELECT MAX(total) FROM table_name_87 WHERE bronze = 1 AND rank = \"7\" AND gold > 0"
} |
### INSTRUCTION
If the salary range is 4,000-9,000, what is the Indians %?
### INPUT
CREATE TABLE table_27257896_2 (indians VARCHAR, salary_range VARCHAR)
### OUTPUT
SELECT indians FROM table_27257896_2 WHERE salary_range = "4,000-9,000" | {
"input": "CREATE TABLE table_27257896_2 (indians VARCHAR, salary_range VARCHAR)",
"instruction": "If the salary range is 4,000-9,000, what is the Indians %?",
"output": "SELECT indians FROM table_27257896_2 WHERE salary_range = \"4,000-9,000\""
} |
### INSTRUCTION
How many winners have a runner-up of A. Karthikeyan?
### INPUT
CREATE TABLE table_22753439_1 (winner VARCHAR, runner_up_a VARCHAR)
### OUTPUT
SELECT COUNT(winner) FROM table_22753439_1 WHERE runner_up_a = "A. Karthikeyan" | {
"input": "CREATE TABLE table_22753439_1 (winner VARCHAR, runner_up_a VARCHAR)",
"instruction": "How many winners have a runner-up of A. Karthikeyan?",
"output": "SELECT COUNT(winner) FROM table_22753439_1 WHERE runner_up_a = \"A. Karthikeyan\""
} |
### INSTRUCTION
What is the attendance number later than week 9 on November 20, 1983?
### INPUT
CREATE TABLE table_name_45 (attendance VARCHAR, week VARCHAR, date VARCHAR)
### OUTPUT
SELECT COUNT(attendance) FROM table_name_45 WHERE week > 9 AND date = "november 20, 1983" | {
"input": "CREATE TABLE table_name_45 (attendance VARCHAR, week VARCHAR, date VARCHAR)",
"instruction": "What is the attendance number later than week 9 on November 20, 1983?",
"output": "SELECT COUNT(attendance) FROM table_name_45 WHERE week > 9 AND date = \"november 20, 1983\""
} |
### INSTRUCTION
What is the Theme Song of the Yukan Club?
### INPUT
CREATE TABLE table_name_64 (theme_song_s_ VARCHAR, romaji_title VARCHAR)
### OUTPUT
SELECT theme_song_s_ FROM table_name_64 WHERE romaji_title = "yukan club" | {
"input": "CREATE TABLE table_name_64 (theme_song_s_ VARCHAR, romaji_title VARCHAR)",
"instruction": "What is the Theme Song of the Yukan Club?",
"output": "SELECT theme_song_s_ FROM table_name_64 WHERE romaji_title = \"yukan club\""
} |
### INSTRUCTION
Which game is named tsegay kebede category:articles with hcards?
### INPUT
CREATE TABLE table_name_70 (games VARCHAR, name VARCHAR)
### OUTPUT
SELECT games FROM table_name_70 WHERE name = "tsegay kebede category:articles with hcards" | {
"input": "CREATE TABLE table_name_70 (games VARCHAR, name VARCHAR)",
"instruction": "Which game is named tsegay kebede category:articles with hcards?",
"output": "SELECT games FROM table_name_70 WHERE name = \"tsegay kebede category:articles with hcards\""
} |
### INSTRUCTION
Where is the location of the friendly match larger than 1 where the Super Reds were the opponent?
### INPUT
CREATE TABLE table_name_87 (location VARCHAR, opponent_team VARCHAR, match VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT location FROM table_name_87 WHERE match > 1 AND tournament = "friendly" AND opponent_team = "super reds" | {
"input": "CREATE TABLE table_name_87 (location VARCHAR, opponent_team VARCHAR, match VARCHAR, tournament VARCHAR)",
"instruction": "Where is the location of the friendly match larger than 1 where the Super Reds were the opponent?",
"output": "SELECT location FROM table_name_87 WHERE match > 1 AND tournament = \"friendly\" AND opponent_team = \"super reds\""
} |
### INSTRUCTION
Name the slope length for 1966 groundstation
### INPUT
CREATE TABLE table_17814458_1 (slope_length VARCHAR, elevation_groundstation VARCHAR)
### OUTPUT
SELECT COUNT(slope_length) FROM table_17814458_1 WHERE elevation_groundstation = 1966 | {
"input": "CREATE TABLE table_17814458_1 (slope_length VARCHAR, elevation_groundstation VARCHAR)",
"instruction": "Name the slope length for 1966 groundstation",
"output": "SELECT COUNT(slope_length) FROM table_17814458_1 WHERE elevation_groundstation = 1966"
} |
### INSTRUCTION
Who is the Elector with a Cardinalatial title of Priest of S. Sabina and Archbishop of Reims?
### INPUT
CREATE TABLE table_name_91 (elector VARCHAR, cardinalatial_title VARCHAR)
### OUTPUT
SELECT elector FROM table_name_91 WHERE cardinalatial_title = "priest of s. sabina and archbishop of reims" | {
"input": "CREATE TABLE table_name_91 (elector VARCHAR, cardinalatial_title VARCHAR)",
"instruction": "Who is the Elector with a Cardinalatial title of Priest of S. Sabina and Archbishop of Reims?",
"output": "SELECT elector FROM table_name_91 WHERE cardinalatial_title = \"priest of s. sabina and archbishop of reims\""
} |
### INSTRUCTION
What year was Aaron Tveit nominated in the Favorite Male Replacement category?
### INPUT
CREATE TABLE table_name_87 (year INTEGER, nominee VARCHAR, result VARCHAR, category VARCHAR)
### OUTPUT
SELECT AVG(year) FROM table_name_87 WHERE result = "nominated" AND category = "favorite male replacement" AND nominee = "aaron tveit" | {
"input": "CREATE TABLE table_name_87 (year INTEGER, nominee VARCHAR, result VARCHAR, category VARCHAR)",
"instruction": "What year was Aaron Tveit nominated in the Favorite Male Replacement category?",
"output": "SELECT AVG(year) FROM table_name_87 WHERE result = \"nominated\" AND category = \"favorite male replacement\" AND nominee = \"aaron tveit\""
} |
### INSTRUCTION
When the grid is under 5 and justin wilson is driving for the team mi-jack conquest racing, what's the highest number of laps driven?
### INPUT
CREATE TABLE table_name_65 (laps INTEGER, grid VARCHAR, team VARCHAR, driver VARCHAR)
### OUTPUT
SELECT MAX(laps) FROM table_name_65 WHERE team = "mi-jack conquest racing" AND driver = "justin wilson" AND grid < 5 | {
"input": "CREATE TABLE table_name_65 (laps INTEGER, grid VARCHAR, team VARCHAR, driver VARCHAR)",
"instruction": "When the grid is under 5 and justin wilson is driving for the team mi-jack conquest racing, what's the highest number of laps driven?",
"output": "SELECT MAX(laps) FROM table_name_65 WHERE team = \"mi-jack conquest racing\" AND driver = \"justin wilson\" AND grid < 5"
} |
### INSTRUCTION
Where is the first season that Anthony Hemingway appears?
### INPUT
CREATE TABLE table_11664625_2 (no_in_season INTEGER, directed_by VARCHAR)
### OUTPUT
SELECT MIN(no_in_season) FROM table_11664625_2 WHERE directed_by = "Anthony Hemingway" | {
"input": "CREATE TABLE table_11664625_2 (no_in_season INTEGER, directed_by VARCHAR)",
"instruction": "Where is the first season that Anthony Hemingway appears?",
"output": "SELECT MIN(no_in_season) FROM table_11664625_2 WHERE directed_by = \"Anthony Hemingway\""
} |
### INSTRUCTION
Which streak before game 12 had a team points larger than 113 on November 16?
### INPUT
CREATE TABLE table_name_88 (streak VARCHAR, date VARCHAR, team_points VARCHAR, game VARCHAR)
### OUTPUT
SELECT streak FROM table_name_88 WHERE team_points > 113 AND game < 12 AND date = "november 16" | {
"input": "CREATE TABLE table_name_88 (streak VARCHAR, date VARCHAR, team_points VARCHAR, game VARCHAR)",
"instruction": "Which streak before game 12 had a team points larger than 113 on November 16?",
"output": "SELECT streak FROM table_name_88 WHERE team_points > 113 AND game < 12 AND date = \"november 16\""
} |
### INSTRUCTION
What is the black caribbean population when the other black population is 2243?
### INPUT
CREATE TABLE table_19149550_7 (black_caribbean_population INTEGER, other_black_population VARCHAR)
### OUTPUT
SELECT MAX(black_caribbean_population) FROM table_19149550_7 WHERE other_black_population = 2243 | {
"input": "CREATE TABLE table_19149550_7 (black_caribbean_population INTEGER, other_black_population VARCHAR)",
"instruction": "What is the black caribbean population when the other black population is 2243?",
"output": "SELECT MAX(black_caribbean_population) FROM table_19149550_7 WHERE other_black_population = 2243"
} |
### INSTRUCTION
What's the ACL qualification when the minor ladder position is 5th and the finals qualifications were DNQ?
### INPUT
CREATE TABLE table_name_11 (acl_qualification VARCHAR, finals_qualification VARCHAR, minor_ladder_position VARCHAR)
### OUTPUT
SELECT acl_qualification FROM table_name_11 WHERE finals_qualification = "dnq" AND minor_ladder_position = "5th" | {
"input": "CREATE TABLE table_name_11 (acl_qualification VARCHAR, finals_qualification VARCHAR, minor_ladder_position VARCHAR)",
"instruction": "What's the ACL qualification when the minor ladder position is 5th and the finals qualifications were DNQ?",
"output": "SELECT acl_qualification FROM table_name_11 WHERE finals_qualification = \"dnq\" AND minor_ladder_position = \"5th\""
} |
### INSTRUCTION
Played on Clay Surface, what was the Score of the Dortmund Tournament?
### INPUT
CREATE TABLE table_name_70 (score_in_the_final VARCHAR, surface VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT score_in_the_final FROM table_name_70 WHERE surface = "clay" AND tournament = "dortmund" | {
"input": "CREATE TABLE table_name_70 (score_in_the_final VARCHAR, surface VARCHAR, tournament VARCHAR)",
"instruction": "Played on Clay Surface, what was the Score of the Dortmund Tournament?",
"output": "SELECT score_in_the_final FROM table_name_70 WHERE surface = \"clay\" AND tournament = \"dortmund\""
} |
### INSTRUCTION
What Representative has a Presentation of Credentails of April 10, 1855?
### INPUT
CREATE TABLE table_name_42 (representative VARCHAR, presentation_of_credentials VARCHAR)
### OUTPUT
SELECT representative FROM table_name_42 WHERE presentation_of_credentials = "april 10, 1855" | {
"input": "CREATE TABLE table_name_42 (representative VARCHAR, presentation_of_credentials VARCHAR)",
"instruction": "What Representative has a Presentation of Credentails of April 10, 1855?",
"output": "SELECT representative FROM table_name_42 WHERE presentation_of_credentials = \"april 10, 1855\""
} |
### INSTRUCTION
How many were won when there were 49 points?
### INPUT
CREATE TABLE table_17369472_2 (won VARCHAR, points VARCHAR)
### OUTPUT
SELECT won FROM table_17369472_2 WHERE points = "49" | {
"input": "CREATE TABLE table_17369472_2 (won VARCHAR, points VARCHAR)",
"instruction": "How many were won when there were 49 points? ",
"output": "SELECT won FROM table_17369472_2 WHERE points = \"49\""
} |
### INSTRUCTION
Which Goals is the lowest one that has Matches of 16, and a Scorer of park sang-in?
### INPUT
CREATE TABLE table_name_92 (goals INTEGER, matches VARCHAR, scorer VARCHAR)
### OUTPUT
SELECT MIN(goals) FROM table_name_92 WHERE matches = "16" AND scorer = "park sang-in" | {
"input": "CREATE TABLE table_name_92 (goals INTEGER, matches VARCHAR, scorer VARCHAR)",
"instruction": "Which Goals is the lowest one that has Matches of 16, and a Scorer of park sang-in?",
"output": "SELECT MIN(goals) FROM table_name_92 WHERE matches = \"16\" AND scorer = \"park sang-in\""
} |
### INSTRUCTION
Who is the academic & University affairs when the Human resources & operations is N. Charles Hamilton?
### INPUT
CREATE TABLE table_12113818_1 (academic_ VARCHAR, _university_affairs VARCHAR, human_resources_ VARCHAR, _operations VARCHAR)
### OUTPUT
SELECT academic_ & _university_affairs FROM table_12113818_1 WHERE human_resources_ & _operations = "N. Charles Hamilton" | {
"input": "CREATE TABLE table_12113818_1 (academic_ VARCHAR, _university_affairs VARCHAR, human_resources_ VARCHAR, _operations VARCHAR)",
"instruction": "Who is the academic & University affairs when the Human resources & operations is N. Charles Hamilton?",
"output": "SELECT academic_ & _university_affairs FROM table_12113818_1 WHERE human_resources_ & _operations = \"N. Charles Hamilton\""
} |
### INSTRUCTION
Where was the race where Cole Morgan had the fastest lap and Daniel Erickson had pole position?
### INPUT
CREATE TABLE table_25773116_2 (location VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)
### OUTPUT
SELECT location FROM table_25773116_2 WHERE pole_position = "Daniel Erickson" AND fastest_lap = "Cole Morgan" | {
"input": "CREATE TABLE table_25773116_2 (location VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)",
"instruction": "Where was the race where Cole Morgan had the fastest lap and Daniel Erickson had pole position?",
"output": "SELECT location FROM table_25773116_2 WHERE pole_position = \"Daniel Erickson\" AND fastest_lap = \"Cole Morgan\""
} |
### INSTRUCTION
What is the date with geelong as Away team?
### INPUT
CREATE TABLE table_name_63 (date VARCHAR, away_team VARCHAR)
### OUTPUT
SELECT date FROM table_name_63 WHERE away_team = "geelong" | {
"input": "CREATE TABLE table_name_63 (date VARCHAR, away_team VARCHAR)",
"instruction": "What is the date with geelong as Away team?",
"output": "SELECT date FROM table_name_63 WHERE away_team = \"geelong\""
} |
### INSTRUCTION
On songs with track numbers smaller than number 17 and catalogues of LSP 2231, who are the writer(s)?
### INPUT
CREATE TABLE table_name_27 (writer_s_ VARCHAR, catalogue VARCHAR, track VARCHAR)
### OUTPUT
SELECT writer_s_ FROM table_name_27 WHERE catalogue = "lsp 2231" AND track < 17 | {
"input": "CREATE TABLE table_name_27 (writer_s_ VARCHAR, catalogue VARCHAR, track VARCHAR)",
"instruction": "On songs with track numbers smaller than number 17 and catalogues of LSP 2231, who are the writer(s)?",
"output": "SELECT writer_s_ FROM table_name_27 WHERE catalogue = \"lsp 2231\" AND track < 17"
} |
### INSTRUCTION
What is the Opponent in the final of the game on february 2, 2004?
### INPUT
CREATE TABLE table_name_68 (opponent_in_the_final VARCHAR, date VARCHAR)
### OUTPUT
SELECT opponent_in_the_final FROM table_name_68 WHERE date = "february 2, 2004" | {
"input": "CREATE TABLE table_name_68 (opponent_in_the_final VARCHAR, date VARCHAR)",
"instruction": "What is the Opponent in the final of the game on february 2, 2004?",
"output": "SELECT opponent_in_the_final FROM table_name_68 WHERE date = \"february 2, 2004\""
} |
### INSTRUCTION
Tell me the club with a replacement of alberto malesani
### INPUT
CREATE TABLE table_name_8 (club VARCHAR, replacement VARCHAR)
### OUTPUT
SELECT club FROM table_name_8 WHERE replacement = "alberto malesani" | {
"input": "CREATE TABLE table_name_8 (club VARCHAR, replacement VARCHAR)",
"instruction": "Tell me the club with a replacement of alberto malesani",
"output": "SELECT club FROM table_name_8 WHERE replacement = \"alberto malesani\""
} |
### INSTRUCTION
What is Score, when High Assists is "Rajon Rondo (12)", and when High Points is "Paul Pierce (27)"?
### INPUT
CREATE TABLE table_name_64 (score VARCHAR, high_assists VARCHAR, high_points VARCHAR)
### OUTPUT
SELECT score FROM table_name_64 WHERE high_assists = "rajon rondo (12)" AND high_points = "paul pierce (27)" | {
"input": "CREATE TABLE table_name_64 (score VARCHAR, high_assists VARCHAR, high_points VARCHAR)",
"instruction": "What is Score, when High Assists is \"Rajon Rondo (12)\", and when High Points is \"Paul Pierce (27)\"?",
"output": "SELECT score FROM table_name_64 WHERE high_assists = \"rajon rondo (12)\" AND high_points = \"paul pierce (27)\""
} |
### INSTRUCTION
What is the catalog number of Venus Demilo's A-side?
### INPUT
CREATE TABLE table_name_30 (catalog_number VARCHAR, a_side VARCHAR)
### OUTPUT
SELECT catalog_number FROM table_name_30 WHERE a_side = "venus demilo" | {
"input": "CREATE TABLE table_name_30 (catalog_number VARCHAR, a_side VARCHAR)",
"instruction": "What is the catalog number of Venus Demilo's A-side?",
"output": "SELECT catalog_number FROM table_name_30 WHERE a_side = \"venus demilo\""
} |
### INSTRUCTION
What is the Date when christophe rochus was partner, and the score was 2–6, 7–6 (7–5) , 0–6?
### INPUT
CREATE TABLE table_name_97 (date VARCHAR, partner VARCHAR, score VARCHAR)
### OUTPUT
SELECT date FROM table_name_97 WHERE partner = "christophe rochus" AND score = "2–6, 7–6 (7–5) , 0–6" | {
"input": "CREATE TABLE table_name_97 (date VARCHAR, partner VARCHAR, score VARCHAR)",
"instruction": "What is the Date when christophe rochus was partner, and the score was 2–6, 7–6 (7–5) , 0–6?",
"output": "SELECT date FROM table_name_97 WHERE partner = \"christophe rochus\" AND score = \"2–6, 7–6 (7–5) , 0–6\""
} |
### INSTRUCTION
What is the highest pick of the back player from round 28?
### INPUT
CREATE TABLE table_name_42 (pick INTEGER, position VARCHAR, round VARCHAR)
### OUTPUT
SELECT MAX(pick) FROM table_name_42 WHERE position = "back" AND round = 28 | {
"input": "CREATE TABLE table_name_42 (pick INTEGER, position VARCHAR, round VARCHAR)",
"instruction": "What is the highest pick of the back player from round 28?",
"output": "SELECT MAX(pick) FROM table_name_42 WHERE position = \"back\" AND round = 28"
} |
### INSTRUCTION
What award was Denis Lawson nominated for in the Best Actor in a Musical category?
### INPUT
CREATE TABLE table_name_95 (award VARCHAR, category VARCHAR, nominee VARCHAR)
### OUTPUT
SELECT award FROM table_name_95 WHERE category = "best actor in a musical" AND nominee = "denis lawson" | {
"input": "CREATE TABLE table_name_95 (award VARCHAR, category VARCHAR, nominee VARCHAR)",
"instruction": "What award was Denis Lawson nominated for in the Best Actor in a Musical category?",
"output": "SELECT award FROM table_name_95 WHERE category = \"best actor in a musical\" AND nominee = \"denis lawson\""
} |
### INSTRUCTION
When did Avex Entertainment release a CD?
### INPUT
CREATE TABLE table_name_22 (date VARCHAR, format VARCHAR, label VARCHAR)
### OUTPUT
SELECT date FROM table_name_22 WHERE format = "cd" AND label = "avex entertainment" | {
"input": "CREATE TABLE table_name_22 (date VARCHAR, format VARCHAR, label VARCHAR)",
"instruction": "When did Avex Entertainment release a CD?",
"output": "SELECT date FROM table_name_22 WHERE format = \"cd\" AND label = \"avex entertainment\""
} |
### INSTRUCTION
What is the total Frequency MHz Port Charlotte, Florida, which has an ERP W larger than 10, has?
### INPUT
CREATE TABLE table_name_41 (frequency_mhz VARCHAR, city_of_license VARCHAR, erp_w VARCHAR)
### OUTPUT
SELECT COUNT(frequency_mhz) FROM table_name_41 WHERE city_of_license = "port charlotte, florida" AND erp_w > 10 | {
"input": "CREATE TABLE table_name_41 (frequency_mhz VARCHAR, city_of_license VARCHAR, erp_w VARCHAR)",
"instruction": "What is the total Frequency MHz Port Charlotte, Florida, which has an ERP W larger than 10, has?",
"output": "SELECT COUNT(frequency_mhz) FROM table_name_41 WHERE city_of_license = \"port charlotte, florida\" AND erp_w > 10"
} |
### INSTRUCTION
What year did a short course have a time of 7:51.80?
### INPUT
CREATE TABLE table_name_24 (year_set VARCHAR, long_course_short_course VARCHAR, time VARCHAR)
### OUTPUT
SELECT COUNT(year_set) FROM table_name_24 WHERE long_course_short_course = "short course" AND time = "7:51.80" | {
"input": "CREATE TABLE table_name_24 (year_set VARCHAR, long_course_short_course VARCHAR, time VARCHAR)",
"instruction": "What year did a short course have a time of 7:51.80?",
"output": "SELECT COUNT(year_set) FROM table_name_24 WHERE long_course_short_course = \"short course\" AND time = \"7:51.80\""
} |
### INSTRUCTION
What is Runner(s)-Up, when Margin of Victory is 1 Stroke, and when Tournament is Joburg Open 1?
### INPUT
CREATE TABLE table_name_51 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT runner_s__up FROM table_name_51 WHERE margin_of_victory = "1 stroke" AND tournament = "joburg open 1" | {
"input": "CREATE TABLE table_name_51 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)",
"instruction": "What is Runner(s)-Up, when Margin of Victory is 1 Stroke, and when Tournament is Joburg Open 1?",
"output": "SELECT runner_s__up FROM table_name_51 WHERE margin_of_victory = \"1 stroke\" AND tournament = \"joburg open 1\""
} |
### INSTRUCTION
What is the largest inflation % annual in 2012 of the country with a public debt % of GDP in 2013 Q1 greater than 88.2 and a GDP % of EU in 2012 of 2.9%?
### INPUT
CREATE TABLE table_name_74 (inflation__percentage_annual__2012_ INTEGER, public_debt__percentage_of_gdp__2013_q1_ VARCHAR, gdp__percentage_of_eu__2012_ VARCHAR)
### OUTPUT
SELECT MAX(inflation__percentage_annual__2012_) FROM table_name_74 WHERE public_debt__percentage_of_gdp__2013_q1_ > 88.2 AND gdp__percentage_of_eu__2012_ = "2.9%" | {
"input": "CREATE TABLE table_name_74 (inflation__percentage_annual__2012_ INTEGER, public_debt__percentage_of_gdp__2013_q1_ VARCHAR, gdp__percentage_of_eu__2012_ VARCHAR)",
"instruction": "What is the largest inflation % annual in 2012 of the country with a public debt % of GDP in 2013 Q1 greater than 88.2 and a GDP % of EU in 2012 of 2.9%?",
"output": "SELECT MAX(inflation__percentage_annual__2012_) FROM table_name_74 WHERE public_debt__percentage_of_gdp__2013_q1_ > 88.2 AND gdp__percentage_of_eu__2012_ = \"2.9%\""
} |
### INSTRUCTION
Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.
### INPUT
CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course VARCHAR, Course_ID VARCHAR)
### OUTPUT
SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name | {
"input": "CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course VARCHAR, Course_ID VARCHAR)",
"instruction": "Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.",
"output": "SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name"
} |
### INSTRUCTION
what's the original air date where written by is iain morris & damon beesley
### INPUT
CREATE TABLE table_11589522_3 (original_air_date VARCHAR, written_by VARCHAR)
### OUTPUT
SELECT original_air_date FROM table_11589522_3 WHERE written_by = "Iain Morris & Damon Beesley" | {
"input": "CREATE TABLE table_11589522_3 (original_air_date VARCHAR, written_by VARCHAR)",
"instruction": " what's the original air date where written by is iain morris & damon beesley",
"output": "SELECT original_air_date FROM table_11589522_3 WHERE written_by = \"Iain Morris & Damon Beesley\""
} |
### INSTRUCTION
What was the away team score at Hawthorn's home game?
### INPUT
CREATE TABLE table_name_28 (away_team VARCHAR, home_team VARCHAR)
### OUTPUT
SELECT away_team AS score FROM table_name_28 WHERE home_team = "hawthorn" | {
"input": "CREATE TABLE table_name_28 (away_team VARCHAR, home_team VARCHAR)",
"instruction": "What was the away team score at Hawthorn's home game?",
"output": "SELECT away_team AS score FROM table_name_28 WHERE home_team = \"hawthorn\""
} |
### INSTRUCTION
What are the distinct cross reference source system codes which are related to the master customer details 'Gottlieb, Becker and Wyman'?
### INPUT
CREATE TABLE customer_master_index (master_customer_id VARCHAR, cmi_details VARCHAR); CREATE TABLE cmi_cross_references (source_system_code VARCHAR, master_customer_id VARCHAR)
### OUTPUT
SELECT DISTINCT T2.source_system_code FROM customer_master_index AS T1 JOIN cmi_cross_references AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T1.cmi_details = 'Gottlieb , Becker and Wyman' | {
"input": "CREATE TABLE customer_master_index (master_customer_id VARCHAR, cmi_details VARCHAR); CREATE TABLE cmi_cross_references (source_system_code VARCHAR, master_customer_id VARCHAR)",
"instruction": "What are the distinct cross reference source system codes which are related to the master customer details 'Gottlieb, Becker and Wyman'?",
"output": "SELECT DISTINCT T2.source_system_code FROM customer_master_index AS T1 JOIN cmi_cross_references AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T1.cmi_details = 'Gottlieb , Becker and Wyman'"
} |
### INSTRUCTION
What's the previous conference of Fountain City with a size more than 287?
### INPUT
CREATE TABLE table_name_88 (previous_conference VARCHAR, size VARCHAR, location VARCHAR)
### OUTPUT
SELECT previous_conference FROM table_name_88 WHERE size > 287 AND location = "fountain city" | {
"input": "CREATE TABLE table_name_88 (previous_conference VARCHAR, size VARCHAR, location VARCHAR)",
"instruction": "What's the previous conference of Fountain City with a size more than 287?",
"output": "SELECT previous_conference FROM table_name_88 WHERE size > 287 AND location = \"fountain city\""
} |
### INSTRUCTION
Who was the constitutional ticket when william karlin was the socialist ticket?
### INPUT
CREATE TABLE table_name_95 (constitutional_ticket VARCHAR, socialist_ticket VARCHAR)
### OUTPUT
SELECT constitutional_ticket FROM table_name_95 WHERE socialist_ticket = "william karlin" | {
"input": "CREATE TABLE table_name_95 (constitutional_ticket VARCHAR, socialist_ticket VARCHAR)",
"instruction": "Who was the constitutional ticket when william karlin was the socialist ticket?",
"output": "SELECT constitutional_ticket FROM table_name_95 WHERE socialist_ticket = \"william karlin\""
} |
### INSTRUCTION
List the names of all players who have a crossing score higher than 90 and prefer their right foot.
### INPUT
CREATE TABLE Player (player_name VARCHAR, player_api_id VARCHAR); CREATE TABLE Player_Attributes (player_api_id VARCHAR, crossing VARCHAR, preferred_foot VARCHAR)
### OUTPUT
SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing > 90 AND T2.preferred_foot = "right" | {
"input": "CREATE TABLE Player (player_name VARCHAR, player_api_id VARCHAR); CREATE TABLE Player_Attributes (player_api_id VARCHAR, crossing VARCHAR, preferred_foot VARCHAR)",
"instruction": "List the names of all players who have a crossing score higher than 90 and prefer their right foot.",
"output": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing > 90 AND T2.preferred_foot = \"right\""
} |
### INSTRUCTION
Who's the principal of Edgewood High School?/
### INPUT
CREATE TABLE table_1984697_53 (principal VARCHAR, school VARCHAR)
### OUTPUT
SELECT principal FROM table_1984697_53 WHERE school = "Edgewood High school" | {
"input": "CREATE TABLE table_1984697_53 (principal VARCHAR, school VARCHAR)",
"instruction": "Who's the principal of Edgewood High School?/",
"output": "SELECT principal FROM table_1984697_53 WHERE school = \"Edgewood High school\""
} |
### INSTRUCTION
Which document has the most draft copies? List its document id and number of draft copies.
### INPUT
CREATE TABLE Draft_Copies (document_id VARCHAR, copy_number VARCHAR)
### OUTPUT
SELECT document_id, COUNT(copy_number) FROM Draft_Copies GROUP BY document_id ORDER BY COUNT(copy_number) DESC LIMIT 1 | {
"input": "CREATE TABLE Draft_Copies (document_id VARCHAR, copy_number VARCHAR)",
"instruction": "Which document has the most draft copies? List its document id and number of draft copies.",
"output": "SELECT document_id, COUNT(copy_number) FROM Draft_Copies GROUP BY document_id ORDER BY COUNT(copy_number) DESC LIMIT 1"
} |
### INSTRUCTION
Which NHL team has a Player of steve durbano?
### INPUT
CREATE TABLE table_name_97 (nhl_team VARCHAR, player VARCHAR)
### OUTPUT
SELECT nhl_team FROM table_name_97 WHERE player = "steve durbano" | {
"input": "CREATE TABLE table_name_97 (nhl_team VARCHAR, player VARCHAR)",
"instruction": "Which NHL team has a Player of steve durbano?",
"output": "SELECT nhl_team FROM table_name_97 WHERE player = \"steve durbano\""
} |
### INSTRUCTION
Which Total matches is the lowest one that has a Total W-L-H of 1-2-0?
### INPUT
CREATE TABLE table_name_33 (total_matches INTEGER, total_w_l_h VARCHAR)
### OUTPUT
SELECT MIN(total_matches) FROM table_name_33 WHERE total_w_l_h = "1-2-0" | {
"input": "CREATE TABLE table_name_33 (total_matches INTEGER, total_w_l_h VARCHAR)",
"instruction": "Which Total matches is the lowest one that has a Total W-L-H of 1-2-0?",
"output": "SELECT MIN(total_matches) FROM table_name_33 WHERE total_w_l_h = \"1-2-0\""
} |
### INSTRUCTION
What is the location attendance of the game on February 25?
### INPUT
CREATE TABLE table_name_52 (location_attendance VARCHAR, date VARCHAR)
### OUTPUT
SELECT location_attendance FROM table_name_52 WHERE date = "february 25" | {
"input": "CREATE TABLE table_name_52 (location_attendance VARCHAR, date VARCHAR)",
"instruction": "What is the location attendance of the game on February 25?",
"output": "SELECT location_attendance FROM table_name_52 WHERE date = \"february 25\""
} |
### INSTRUCTION
How many different percentages of immigrants are there for the year of 2007 in the countries with 1.2% of the immigrants in the year of 2005?
### INPUT
CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2007 VARCHAR, _percentage_of_all_immigrants_2005 VARCHAR)
### OUTPUT
SELECT COUNT(_percentage_of_all_immigrants_2007) FROM table_23619212_1 WHERE _percentage_of_all_immigrants_2005 = "1.2%" | {
"input": "CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2007 VARCHAR, _percentage_of_all_immigrants_2005 VARCHAR)",
"instruction": "How many different percentages of immigrants are there for the year of 2007 in the countries with 1.2% of the immigrants in the year of 2005?",
"output": "SELECT COUNT(_percentage_of_all_immigrants_2007) FROM table_23619212_1 WHERE _percentage_of_all_immigrants_2005 = \"1.2%\""
} |
### INSTRUCTION
List the top 5 genres by number of tracks. List genres name and total tracks.
### INPUT
CREATE TABLE tracks (genre_id VARCHAR); CREATE TABLE genres (name VARCHAR, id VARCHAR)
### OUTPUT
SELECT T1.name, COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 5 | {
"input": "CREATE TABLE tracks (genre_id VARCHAR); CREATE TABLE genres (name VARCHAR, id VARCHAR)",
"instruction": "List the top 5 genres by number of tracks. List genres name and total tracks.",
"output": "SELECT T1.name, COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 5"
} |
### INSTRUCTION
How many years have toyota team tom's as the team, with Laps greater than 64?
### INPUT
CREATE TABLE table_name_60 (year VARCHAR, team VARCHAR, laps VARCHAR)
### OUTPUT
SELECT COUNT(year) FROM table_name_60 WHERE team = "toyota team tom's" AND laps > 64 | {
"input": "CREATE TABLE table_name_60 (year VARCHAR, team VARCHAR, laps VARCHAR)",
"instruction": "How many years have toyota team tom's as the team, with Laps greater than 64?",
"output": "SELECT COUNT(year) FROM table_name_60 WHERE team = \"toyota team tom's\" AND laps > 64"
} |
### INSTRUCTION
What is the score of the game with 22 points and the capitals as the opponent?
### INPUT
CREATE TABLE table_name_37 (score VARCHAR, points VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT score FROM table_name_37 WHERE points = 22 AND opponent = "capitals" | {
"input": "CREATE TABLE table_name_37 (score VARCHAR, points VARCHAR, opponent VARCHAR)",
"instruction": "What is the score of the game with 22 points and the capitals as the opponent?",
"output": "SELECT score FROM table_name_37 WHERE points = 22 AND opponent = \"capitals\""
} |
### INSTRUCTION
What is the power output for class 5?
### INPUT
CREATE TABLE table_name_29 (power_output__kw_ VARCHAR, number_in_class VARCHAR)
### OUTPUT
SELECT power_output__kw_ FROM table_name_29 WHERE number_in_class = 5 | {
"input": "CREATE TABLE table_name_29 (power_output__kw_ VARCHAR, number_in_class VARCHAR)",
"instruction": "What is the power output for class 5?",
"output": "SELECT power_output__kw_ FROM table_name_29 WHERE number_in_class = 5"
} |
### INSTRUCTION
what is the constellation when the Right ascension ( J2000 ) is 10h18m58.4s?
### INPUT
CREATE TABLE table_name_10 (constellation VARCHAR, right_ascension___j2000__ VARCHAR)
### OUTPUT
SELECT constellation FROM table_name_10 WHERE right_ascension___j2000__ = "10h18m58.4s" | {
"input": "CREATE TABLE table_name_10 (constellation VARCHAR, right_ascension___j2000__ VARCHAR)",
"instruction": "what is the constellation when the Right ascension ( J2000 ) is 10h18m58.4s?",
"output": "SELECT constellation FROM table_name_10 WHERE right_ascension___j2000__ = \"10h18m58.4s\""
} |
### INSTRUCTION
What was the outcome of the match opponents in the final of Marius Călugăru Ciprian Petre Porumb?
### INPUT
CREATE TABLE table_name_38 (outcome VARCHAR, opponents_in_the_final VARCHAR)
### OUTPUT
SELECT outcome FROM table_name_38 WHERE opponents_in_the_final = "marius călugăru ciprian petre porumb" | {
"input": "CREATE TABLE table_name_38 (outcome VARCHAR, opponents_in_the_final VARCHAR)",
"instruction": "What was the outcome of the match opponents in the final of Marius Călugăru Ciprian Petre Porumb?",
"output": "SELECT outcome FROM table_name_38 WHERE opponents_in_the_final = \"marius călugăru ciprian petre porumb\""
} |
### INSTRUCTION
Which Attendance has an Arena of arrowhead pond of anaheim, and a Loss of giguere (3–3)?
### INPUT
CREATE TABLE table_name_74 (attendance INTEGER, arena VARCHAR, loss VARCHAR)
### OUTPUT
SELECT MAX(attendance) FROM table_name_74 WHERE arena = "arrowhead pond of anaheim" AND loss = "giguere (3–3)" | {
"input": "CREATE TABLE table_name_74 (attendance INTEGER, arena VARCHAR, loss VARCHAR)",
"instruction": "Which Attendance has an Arena of arrowhead pond of anaheim, and a Loss of giguere (3–3)?",
"output": "SELECT MAX(attendance) FROM table_name_74 WHERE arena = \"arrowhead pond of anaheim\" AND loss = \"giguere (3–3)\""
} |
### INSTRUCTION
Name the points classification for mark renshaw and team csc
### INPUT
CREATE TABLE table_14856023_18 (points_classification VARCHAR, general_classification VARCHAR, team_classification VARCHAR)
### OUTPUT
SELECT points_classification FROM table_14856023_18 WHERE general_classification = "Mark Renshaw" AND team_classification = "Team CSC" | {
"input": "CREATE TABLE table_14856023_18 (points_classification VARCHAR, general_classification VARCHAR, team_classification VARCHAR)",
"instruction": "Name the points classification for mark renshaw and team csc",
"output": "SELECT points_classification FROM table_14856023_18 WHERE general_classification = \"Mark Renshaw\" AND team_classification = \"Team CSC\""
} |
### INSTRUCTION
What is the Catalog with a Format of lp, a Country of us, a Label of sundazed, and a Date of 2006?
### INPUT
CREATE TABLE table_name_46 (catalog VARCHAR, date VARCHAR, label VARCHAR, format VARCHAR, country VARCHAR)
### OUTPUT
SELECT catalog FROM table_name_46 WHERE format = "lp" AND country = "us" AND label = "sundazed" AND date = "2006" | {
"input": "CREATE TABLE table_name_46 (catalog VARCHAR, date VARCHAR, label VARCHAR, format VARCHAR, country VARCHAR)",
"instruction": "What is the Catalog with a Format of lp, a Country of us, a Label of sundazed, and a Date of 2006?",
"output": "SELECT catalog FROM table_name_46 WHERE format = \"lp\" AND country = \"us\" AND label = \"sundazed\" AND date = \"2006\""
} |
### INSTRUCTION
What is the license award date for North East England?
### INPUT
CREATE TABLE table_10712301_5 (licence_award_date VARCHAR, region VARCHAR)
### OUTPUT
SELECT licence_award_date FROM table_10712301_5 WHERE region = "North East England" | {
"input": "CREATE TABLE table_10712301_5 (licence_award_date VARCHAR, region VARCHAR)",
"instruction": "What is the license award date for North East England?",
"output": "SELECT licence_award_date FROM table_10712301_5 WHERE region = \"North East England\""
} |
### INSTRUCTION
Which start station had the most trips starting from August? Give me the name and id of the station.
### INPUT
CREATE TABLE trip (start_station_name VARCHAR, start_station_id VARCHAR, start_date VARCHAR)
### OUTPUT
SELECT start_station_name, start_station_id FROM trip WHERE start_date LIKE "8/%" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE trip (start_station_name VARCHAR, start_station_id VARCHAR, start_date VARCHAR)",
"instruction": "Which start station had the most trips starting from August? Give me the name and id of the station.",
"output": "SELECT start_station_name, start_station_id FROM trip WHERE start_date LIKE \"8/%\" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What is the production code for episode 6 in the season?
### INPUT
CREATE TABLE table_1876825_3 (production_code VARCHAR, no_in_season VARCHAR)
### OUTPUT
SELECT production_code FROM table_1876825_3 WHERE no_in_season = 6 | {
"input": "CREATE TABLE table_1876825_3 (production_code VARCHAR, no_in_season VARCHAR)",
"instruction": "What is the production code for episode 6 in the season?",
"output": "SELECT production_code FROM table_1876825_3 WHERE no_in_season = 6"
} |
### INSTRUCTION
what is the highest electricity production (kw/h, billion) when the % other renewable is 0.4, % coal is 0 and % hydropower is more than 99?
### INPUT
CREATE TABLE table_name_19 (_billion_ VARCHAR, electricity_production__kw_h INTEGER, _percentage_hydropower VARCHAR, _percentage_other_renewable VARCHAR, _percentage_coal VARCHAR)
### OUTPUT
SELECT MAX(electricity_production__kw_h), _billion_ FROM table_name_19 WHERE _percentage_other_renewable = 0.4 AND _percentage_coal = 0 AND _percentage_hydropower > 99 | {
"input": "CREATE TABLE table_name_19 (_billion_ VARCHAR, electricity_production__kw_h INTEGER, _percentage_hydropower VARCHAR, _percentage_other_renewable VARCHAR, _percentage_coal VARCHAR)",
"instruction": "what is the highest electricity production (kw/h, billion) when the % other renewable is 0.4, % coal is 0 and % hydropower is more than 99?",
"output": "SELECT MAX(electricity_production__kw_h), _billion_ FROM table_name_19 WHERE _percentage_other_renewable = 0.4 AND _percentage_coal = 0 AND _percentage_hydropower > 99"
} |
### INSTRUCTION
When was the locomotive named fighter command built?
### INPUT
CREATE TABLE table_name_28 (whenbuilt VARCHAR, name VARCHAR)
### OUTPUT
SELECT whenbuilt FROM table_name_28 WHERE name = "fighter command" | {
"input": "CREATE TABLE table_name_28 (whenbuilt VARCHAR, name VARCHAR)",
"instruction": "When was the locomotive named fighter command built?",
"output": "SELECT whenbuilt FROM table_name_28 WHERE name = \"fighter command\""
} |
### INSTRUCTION
What state had November 30, 1962 as the date of the successors formal installation?
### INPUT
CREATE TABLE table_1802522_3 (state__class_ VARCHAR, date_of_successors_formal_installation VARCHAR)
### OUTPUT
SELECT state__class_ FROM table_1802522_3 WHERE date_of_successors_formal_installation = "November 30, 1962" | {
"input": "CREATE TABLE table_1802522_3 (state__class_ VARCHAR, date_of_successors_formal_installation VARCHAR)",
"instruction": "What state had November 30, 1962 as the date of the successors formal installation?",
"output": "SELECT state__class_ FROM table_1802522_3 WHERE date_of_successors_formal_installation = \"November 30, 1962\""
} |
### INSTRUCTION
What is the Date when the label was alfa records, and a Catalog of alca-487?
### INPUT
CREATE TABLE table_name_61 (date VARCHAR, label VARCHAR, catalog VARCHAR)
### OUTPUT
SELECT date FROM table_name_61 WHERE label = "alfa records" AND catalog = "alca-487" | {
"input": "CREATE TABLE table_name_61 (date VARCHAR, label VARCHAR, catalog VARCHAR)",
"instruction": "What is the Date when the label was alfa records, and a Catalog of alca-487?",
"output": "SELECT date FROM table_name_61 WHERE label = \"alfa records\" AND catalog = \"alca-487\""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.