text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
What is the Loan Club from Eng that ended on 22 February?
### INPUT
CREATE TABLE table_name_57 (loan_club VARCHAR, country VARCHAR, ended VARCHAR)
### OUTPUT
SELECT loan_club FROM table_name_57 WHERE country = "eng" AND ended = "22 february" | {
"input": "CREATE TABLE table_name_57 (loan_club VARCHAR, country VARCHAR, ended VARCHAR)",
"instruction": "What is the Loan Club from Eng that ended on 22 February?",
"output": "SELECT loan_club FROM table_name_57 WHERE country = \"eng\" AND ended = \"22 february\""
} |
### INSTRUCTION
How many pages does the ISBN 1-40122-328-1 have?
### INPUT
CREATE TABLE table_name_47 (pages INTEGER, isbn VARCHAR)
### OUTPUT
SELECT SUM(pages) FROM table_name_47 WHERE isbn = "1-40122-328-1" | {
"input": "CREATE TABLE table_name_47 (pages INTEGER, isbn VARCHAR)",
"instruction": "How many pages does the ISBN 1-40122-328-1 have?",
"output": "SELECT SUM(pages) FROM table_name_47 WHERE isbn = \"1-40122-328-1\""
} |
### INSTRUCTION
What is the home teamscore for Richmond?
### INPUT
CREATE TABLE table_name_11 (home_team VARCHAR)
### OUTPUT
SELECT home_team AS score FROM table_name_11 WHERE home_team = "richmond" | {
"input": "CREATE TABLE table_name_11 (home_team VARCHAR)",
"instruction": "What is the home teamscore for Richmond?",
"output": "SELECT home_team AS score FROM table_name_11 WHERE home_team = \"richmond\""
} |
### INSTRUCTION
what is the event when gold is darren kenny great britain (gbr)?
### INPUT
CREATE TABLE table_name_1 (event VARCHAR, gold VARCHAR)
### OUTPUT
SELECT event FROM table_name_1 WHERE gold = "darren kenny great britain (gbr)" | {
"input": "CREATE TABLE table_name_1 (event VARCHAR, gold VARCHAR)",
"instruction": "what is the event when gold is darren kenny great britain (gbr)?",
"output": "SELECT event FROM table_name_1 WHERE gold = \"darren kenny great britain (gbr)\""
} |
### INSTRUCTION
What is Sum of Round, when College/Junior/Club Team is Brandon Wheat Kings ( WHL ), when Player is Mike Perovich (D), and when Pick is less than 23?
### INPUT
CREATE TABLE table_name_40 (round INTEGER, pick VARCHAR, college_junior_club_team VARCHAR, player VARCHAR)
### OUTPUT
SELECT SUM(round) FROM table_name_40 WHERE college_junior_club_team = "brandon wheat kings ( whl )" AND player = "mike perovich (d)" AND pick < 23 | {
"input": "CREATE TABLE table_name_40 (round INTEGER, pick VARCHAR, college_junior_club_team VARCHAR, player VARCHAR)",
"instruction": "What is Sum of Round, when College/Junior/Club Team is Brandon Wheat Kings ( WHL ), when Player is Mike Perovich (D), and when Pick is less than 23?",
"output": "SELECT SUM(round) FROM table_name_40 WHERE college_junior_club_team = \"brandon wheat kings ( whl )\" AND player = \"mike perovich (d)\" AND pick < 23"
} |
### INSTRUCTION
Tell me the rank for bronze less than 17 and gold less than 1
### INPUT
CREATE TABLE table_name_28 (rank VARCHAR, gold VARCHAR, bronze VARCHAR, silver VARCHAR)
### OUTPUT
SELECT rank FROM table_name_28 WHERE bronze < 17 AND silver > 1 AND gold < 1 | {
"input": "CREATE TABLE table_name_28 (rank VARCHAR, gold VARCHAR, bronze VARCHAR, silver VARCHAR)",
"instruction": "Tell me the rank for bronze less than 17 and gold less than 1",
"output": "SELECT rank FROM table_name_28 WHERE bronze < 17 AND silver > 1 AND gold < 1"
} |
### INSTRUCTION
What is the percentage of Glendale when Pasadena is 14%?
### INPUT
CREATE TABLE table_name_87 (glendale VARCHAR, pasadena VARCHAR)
### OUTPUT
SELECT glendale FROM table_name_87 WHERE pasadena = "14%" | {
"input": "CREATE TABLE table_name_87 (glendale VARCHAR, pasadena VARCHAR)",
"instruction": "What is the percentage of Glendale when Pasadena is 14%?",
"output": "SELECT glendale FROM table_name_87 WHERE pasadena = \"14%\""
} |
### INSTRUCTION
List all artists with choreographer Marcos Aguirre and a simple rating.
### INPUT
CREATE TABLE table_27711947_1 (artist VARCHAR, choreographer VARCHAR, rating VARCHAR)
### OUTPUT
SELECT artist FROM table_27711947_1 WHERE choreographer = "Marcos Aguirre" AND rating = "Simple" | {
"input": "CREATE TABLE table_27711947_1 (artist VARCHAR, choreographer VARCHAR, rating VARCHAR)",
"instruction": "List all artists with choreographer Marcos Aguirre and a simple rating.",
"output": "SELECT artist FROM table_27711947_1 WHERE choreographer = \"Marcos Aguirre\" AND rating = \"Simple\""
} |
### INSTRUCTION
How many seats were forfeited in the revolutionary socialist party?
### INPUT
CREATE TABLE table_20728138_1 (seats_forfeited VARCHAR, party VARCHAR)
### OUTPUT
SELECT COUNT(seats_forfeited) FROM table_20728138_1 WHERE party = "Revolutionary Socialist party" | {
"input": "CREATE TABLE table_20728138_1 (seats_forfeited VARCHAR, party VARCHAR)",
"instruction": "How many seats were forfeited in the revolutionary socialist party?",
"output": "SELECT COUNT(seats_forfeited) FROM table_20728138_1 WHERE party = \"Revolutionary Socialist party\""
} |
### INSTRUCTION
What is the Airport with the ICAO fo KSEA?
### INPUT
CREATE TABLE table_name_10 (airport VARCHAR, icao VARCHAR)
### OUTPUT
SELECT airport FROM table_name_10 WHERE icao = "ksea" | {
"input": "CREATE TABLE table_name_10 (airport VARCHAR, icao VARCHAR)",
"instruction": "What is the Airport with the ICAO fo KSEA?",
"output": "SELECT airport FROM table_name_10 WHERE icao = \"ksea\""
} |
### INSTRUCTION
Who was the winner of Stage 12 with a Points Classification of Francesco Moser?
### INPUT
CREATE TABLE table_name_85 (winner VARCHAR, points_classification VARCHAR, stage VARCHAR)
### OUTPUT
SELECT winner FROM table_name_85 WHERE points_classification = "francesco moser" AND stage = "12" | {
"input": "CREATE TABLE table_name_85 (winner VARCHAR, points_classification VARCHAR, stage VARCHAR)",
"instruction": "Who was the winner of Stage 12 with a Points Classification of Francesco Moser?",
"output": "SELECT winner FROM table_name_85 WHERE points_classification = \"francesco moser\" AND stage = \"12\""
} |
### INSTRUCTION
On what year did Newcombe first face Clark Graebner in a final match?
### INPUT
CREATE TABLE table_23259077_1 (year INTEGER, opponent_in_the_final VARCHAR)
### OUTPUT
SELECT MIN(year) FROM table_23259077_1 WHERE opponent_in_the_final = "Clark Graebner" | {
"input": "CREATE TABLE table_23259077_1 (year INTEGER, opponent_in_the_final VARCHAR)",
"instruction": "On what year did Newcombe first face Clark Graebner in a final match?",
"output": "SELECT MIN(year) FROM table_23259077_1 WHERE opponent_in_the_final = \"Clark Graebner\""
} |
### INSTRUCTION
What Social AO has an External CO of simonas savickas, and an Internal CO of pieter kuijsten?
### INPUT
CREATE TABLE table_name_83 (social_ao VARCHAR, external_co VARCHAR, internal_co VARCHAR)
### OUTPUT
SELECT social_ao FROM table_name_83 WHERE external_co = "simonas savickas" AND internal_co = "pieter kuijsten" | {
"input": "CREATE TABLE table_name_83 (social_ao VARCHAR, external_co VARCHAR, internal_co VARCHAR)",
"instruction": "What Social AO has an External CO of simonas savickas, and an Internal CO of pieter kuijsten?",
"output": "SELECT social_ao FROM table_name_83 WHERE external_co = \"simonas savickas\" AND internal_co = \"pieter kuijsten\""
} |
### INSTRUCTION
Select the names of manufacturer whose products have an average price higher than or equal to $150.
### INPUT
CREATE TABLE Manufacturers (name VARCHAR, code VARCHAR); CREATE TABLE products (Price INTEGER, manufacturer VARCHAR, price INTEGER)
### OUTPUT
SELECT AVG(T1.Price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name HAVING AVG(T1.price) >= 150 | {
"input": "CREATE TABLE Manufacturers (name VARCHAR, code VARCHAR); CREATE TABLE products (Price INTEGER, manufacturer VARCHAR, price INTEGER)",
"instruction": "Select the names of manufacturer whose products have an average price higher than or equal to $150.",
"output": "SELECT AVG(T1.Price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name HAVING AVG(T1.price) >= 150"
} |
### INSTRUCTION
Which person whose friends have the oldest average age?
### INPUT
CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (age INTEGER, name VARCHAR)
### OUTPUT
SELECT T2.name, AVG(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY AVG(T1.age) DESC LIMIT 1 | {
"input": "CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (age INTEGER, name VARCHAR)",
"instruction": "Which person whose friends have the oldest average age?",
"output": "SELECT T2.name, AVG(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY AVG(T1.age) DESC LIMIT 1"
} |
### INSTRUCTION
How many transaction does account with name 337 have?
### INPUT
CREATE TABLE Accounts (account_id VARCHAR, account_name VARCHAR); CREATE TABLE Financial_transactions (account_id VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id WHERE T2.account_name = "337" | {
"input": "CREATE TABLE Accounts (account_id VARCHAR, account_name VARCHAR); CREATE TABLE Financial_transactions (account_id VARCHAR)",
"instruction": "How many transaction does account with name 337 have?",
"output": "SELECT COUNT(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id WHERE T2.account_name = \"337\""
} |
### INSTRUCTION
List the number of takeaways with 1 rejection.
### INPUT
CREATE TABLE table_24906653_5 (steals VARCHAR, blocks VARCHAR)
### OUTPUT
SELECT COUNT(steals) FROM table_24906653_5 WHERE blocks = 1 | {
"input": "CREATE TABLE table_24906653_5 (steals VARCHAR, blocks VARCHAR)",
"instruction": "List the number of takeaways with 1 rejection.",
"output": "SELECT COUNT(steals) FROM table_24906653_5 WHERE blocks = 1"
} |
### INSTRUCTION
Which Game has an Opponent of detroit red wings, and a March smaller than 12?
### INPUT
CREATE TABLE table_name_13 (game VARCHAR, opponent VARCHAR, march VARCHAR)
### OUTPUT
SELECT COUNT(game) FROM table_name_13 WHERE opponent = "detroit red wings" AND march < 12 | {
"input": "CREATE TABLE table_name_13 (game VARCHAR, opponent VARCHAR, march VARCHAR)",
"instruction": "Which Game has an Opponent of detroit red wings, and a March smaller than 12?",
"output": "SELECT COUNT(game) FROM table_name_13 WHERE opponent = \"detroit red wings\" AND march < 12"
} |
### INSTRUCTION
Which Score has a Opponent of Boston red sox and a Save of sager?
### INPUT
CREATE TABLE table_name_8 (score VARCHAR, opponent VARCHAR, save VARCHAR)
### OUTPUT
SELECT score FROM table_name_8 WHERE opponent = "boston red sox" AND save = "sager" | {
"input": "CREATE TABLE table_name_8 (score VARCHAR, opponent VARCHAR, save VARCHAR)",
"instruction": "Which Score has a Opponent of Boston red sox and a Save of sager?",
"output": "SELECT score FROM table_name_8 WHERE opponent = \"boston red sox\" AND save = \"sager\""
} |
### INSTRUCTION
Find the average age and experience working length of journalists working on different role type.
### INPUT
CREATE TABLE news_report (work_type VARCHAR, journalist_id VARCHAR); CREATE TABLE journalist (age INTEGER, journalist_id VARCHAR)
### OUTPUT
SELECT AVG(t1.age), AVG(Years_working), t2.work_type FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_id = t2.journalist_id GROUP BY t2.work_type | {
"input": "CREATE TABLE news_report (work_type VARCHAR, journalist_id VARCHAR); CREATE TABLE journalist (age INTEGER, journalist_id VARCHAR)",
"instruction": "Find the average age and experience working length of journalists working on different role type.",
"output": "SELECT AVG(t1.age), AVG(Years_working), t2.work_type FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_id = t2.journalist_id GROUP BY t2.work_type"
} |
### INSTRUCTION
Which season was there a game with the score of 1:3 played at the venue of national stadium, maldives?
### INPUT
CREATE TABLE table_name_40 (season INTEGER, score VARCHAR, venue VARCHAR)
### OUTPUT
SELECT SUM(season) FROM table_name_40 WHERE score = "1:3" AND venue = "national stadium, maldives" | {
"input": "CREATE TABLE table_name_40 (season INTEGER, score VARCHAR, venue VARCHAR)",
"instruction": "Which season was there a game with the score of 1:3 played at the venue of national stadium, maldives?",
"output": "SELECT SUM(season) FROM table_name_40 WHERE score = \"1:3\" AND venue = \"national stadium, maldives\""
} |
### INSTRUCTION
What is the lowest place with more than 26 goals scored, 18 goals conceded, and a draw entry of 6?
### INPUT
CREATE TABLE table_name_10 (place INTEGER, goals_scored VARCHAR, draw VARCHAR, goals_conceded VARCHAR)
### OUTPUT
SELECT MIN(place) FROM table_name_10 WHERE draw = 6 AND goals_conceded = 18 AND goals_scored > 26 | {
"input": "CREATE TABLE table_name_10 (place INTEGER, goals_scored VARCHAR, draw VARCHAR, goals_conceded VARCHAR)",
"instruction": "What is the lowest place with more than 26 goals scored, 18 goals conceded, and a draw entry of 6?",
"output": "SELECT MIN(place) FROM table_name_10 WHERE draw = 6 AND goals_conceded = 18 AND goals_scored > 26"
} |
### INSTRUCTION
What district has counties represented by Baltimore county, a committee of health and government operations, and a first elected smaller than 2002?
### INPUT
CREATE TABLE table_name_86 (district VARCHAR, first_elected VARCHAR, counties_represented VARCHAR, committee VARCHAR)
### OUTPUT
SELECT district FROM table_name_86 WHERE counties_represented = "baltimore county" AND committee = "health and government operations" AND first_elected < 2002 | {
"input": "CREATE TABLE table_name_86 (district VARCHAR, first_elected VARCHAR, counties_represented VARCHAR, committee VARCHAR)",
"instruction": "What district has counties represented by Baltimore county, a committee of health and government operations, and a first elected smaller than 2002?",
"output": "SELECT district FROM table_name_86 WHERE counties_represented = \"baltimore county\" AND committee = \"health and government operations\" AND first_elected < 2002"
} |
### INSTRUCTION
Which Team has a round 1 CONMEBOL 1995?
### INPUT
CREATE TABLE table_name_28 (team VARCHAR, conmebol_1995 VARCHAR)
### OUTPUT
SELECT team FROM table_name_28 WHERE conmebol_1995 = "round 1" | {
"input": "CREATE TABLE table_name_28 (team VARCHAR, conmebol_1995 VARCHAR)",
"instruction": "Which Team has a round 1 CONMEBOL 1995?",
"output": "SELECT team FROM table_name_28 WHERE conmebol_1995 = \"round 1\""
} |
### INSTRUCTION
At which track was Frank Kimmel the Pole Winner of the Pennsylvania 200?
### INPUT
CREATE TABLE table_name_80 (track VARCHAR, pole_winner VARCHAR, event_name VARCHAR)
### OUTPUT
SELECT track FROM table_name_80 WHERE pole_winner = "frank kimmel" AND event_name = "pennsylvania 200" | {
"input": "CREATE TABLE table_name_80 (track VARCHAR, pole_winner VARCHAR, event_name VARCHAR)",
"instruction": "At which track was Frank Kimmel the Pole Winner of the Pennsylvania 200?",
"output": "SELECT track FROM table_name_80 WHERE pole_winner = \"frank kimmel\" AND event_name = \"pennsylvania 200\""
} |
### INSTRUCTION
What is the home team with the ny rangers as the visitor team?
### INPUT
CREATE TABLE table_name_16 (home VARCHAR, visitor VARCHAR)
### OUTPUT
SELECT home FROM table_name_16 WHERE visitor = "ny rangers" | {
"input": "CREATE TABLE table_name_16 (home VARCHAR, visitor VARCHAR)",
"instruction": "What is the home team with the ny rangers as the visitor team?",
"output": "SELECT home FROM table_name_16 WHERE visitor = \"ny rangers\""
} |
### INSTRUCTION
What are the result description of the project whose detail is 'sint'?
### INPUT
CREATE TABLE Project_outcomes (outcome_code VARCHAR, project_id VARCHAR); CREATE TABLE Research_outcomes (outcome_description VARCHAR, outcome_code VARCHAR); CREATE TABLE Projects (project_id VARCHAR, project_details VARCHAR)
### OUTPUT
SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code JOIN Projects AS T3 ON T2.project_id = T3.project_id WHERE T3.project_details = 'sint' | {
"input": "CREATE TABLE Project_outcomes (outcome_code VARCHAR, project_id VARCHAR); CREATE TABLE Research_outcomes (outcome_description VARCHAR, outcome_code VARCHAR); CREATE TABLE Projects (project_id VARCHAR, project_details VARCHAR)",
"instruction": "What are the result description of the project whose detail is 'sint'?",
"output": "SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code JOIN Projects AS T3 ON T2.project_id = T3.project_id WHERE T3.project_details = 'sint'"
} |
### INSTRUCTION
Which Perth has Auckland yes and Gold Coast yes?
### INPUT
CREATE TABLE table_name_50 (perth VARCHAR, auckland VARCHAR, gold_coast VARCHAR)
### OUTPUT
SELECT perth FROM table_name_50 WHERE auckland = "yes" AND gold_coast = "yes" | {
"input": "CREATE TABLE table_name_50 (perth VARCHAR, auckland VARCHAR, gold_coast VARCHAR)",
"instruction": "Which Perth has Auckland yes and Gold Coast yes?",
"output": "SELECT perth FROM table_name_50 WHERE auckland = \"yes\" AND gold_coast = \"yes\""
} |
### INSTRUCTION
In what year has a Post of designer?
### INPUT
CREATE TABLE table_name_91 (year INTEGER, post VARCHAR)
### OUTPUT
SELECT SUM(year) FROM table_name_91 WHERE post = "designer" | {
"input": "CREATE TABLE table_name_91 (year INTEGER, post VARCHAR)",
"instruction": "In what year has a Post of designer?",
"output": "SELECT SUM(year) FROM table_name_91 WHERE post = \"designer\""
} |
### INSTRUCTION
What game has 28 points, and tampa bay lightning as the opponent?
### INPUT
CREATE TABLE table_name_50 (game VARCHAR, points VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT game FROM table_name_50 WHERE points = 28 AND opponent = "tampa bay lightning" | {
"input": "CREATE TABLE table_name_50 (game VARCHAR, points VARCHAR, opponent VARCHAR)",
"instruction": "What game has 28 points, and tampa bay lightning as the opponent?",
"output": "SELECT game FROM table_name_50 WHERE points = 28 AND opponent = \"tampa bay lightning\""
} |
### INSTRUCTION
Who had all the high rebounds when kevin love (20) scored the highest points?
### INPUT
CREATE TABLE table_17058226_5 (high_rebounds VARCHAR, high_points VARCHAR)
### OUTPUT
SELECT high_rebounds FROM table_17058226_5 WHERE high_points = "Kevin Love (20)" | {
"input": "CREATE TABLE table_17058226_5 (high_rebounds VARCHAR, high_points VARCHAR)",
"instruction": "Who had all the high rebounds when kevin love (20) scored the highest points?",
"output": "SELECT high_rebounds FROM table_17058226_5 WHERE high_points = \"Kevin Love (20)\""
} |
### INSTRUCTION
What was arrows racing team's highest points after 1982?
### INPUT
CREATE TABLE table_name_51 (points INTEGER, entrant VARCHAR, year VARCHAR)
### OUTPUT
SELECT MAX(points) FROM table_name_51 WHERE entrant = "arrows racing team" AND year > 1982 | {
"input": "CREATE TABLE table_name_51 (points INTEGER, entrant VARCHAR, year VARCHAR)",
"instruction": "What was arrows racing team's highest points after 1982?",
"output": "SELECT MAX(points) FROM table_name_51 WHERE entrant = \"arrows racing team\" AND year > 1982"
} |
### INSTRUCTION
Which Label has a Country of canada, and a Format of cd/digital download?
### INPUT
CREATE TABLE table_name_53 (label VARCHAR, country VARCHAR, format VARCHAR)
### OUTPUT
SELECT label FROM table_name_53 WHERE country = "canada" AND format = "cd/digital download" | {
"input": "CREATE TABLE table_name_53 (label VARCHAR, country VARCHAR, format VARCHAR)",
"instruction": "Which Label has a Country of canada, and a Format of cd/digital download?",
"output": "SELECT label FROM table_name_53 WHERE country = \"canada\" AND format = \"cd/digital download\""
} |
### INSTRUCTION
What was the score of the away team when the game was played at vfl park?
### INPUT
CREATE TABLE table_name_83 (away_team VARCHAR, venue VARCHAR)
### OUTPUT
SELECT away_team AS score FROM table_name_83 WHERE venue = "vfl park" | {
"input": "CREATE TABLE table_name_83 (away_team VARCHAR, venue VARCHAR)",
"instruction": "What was the score of the away team when the game was played at vfl park?",
"output": "SELECT away_team AS score FROM table_name_83 WHERE venue = \"vfl park\""
} |
### INSTRUCTION
What was the average speed over 18.00km for winning driver Jean-Claude Andruet?
### INPUT
CREATE TABLE table_name_23 (avg_speed VARCHAR, distance VARCHAR, winning_driver VARCHAR)
### OUTPUT
SELECT avg_speed FROM table_name_23 WHERE distance = "18.00km" AND winning_driver = "jean-claude andruet" | {
"input": "CREATE TABLE table_name_23 (avg_speed VARCHAR, distance VARCHAR, winning_driver VARCHAR)",
"instruction": "What was the average speed over 18.00km for winning driver Jean-Claude Andruet?",
"output": "SELECT avg_speed FROM table_name_23 WHERE distance = \"18.00km\" AND winning_driver = \"jean-claude andruet\""
} |
### INSTRUCTION
Whose attendance was the highest when the team played Arsenal?
### INPUT
CREATE TABLE table_name_95 (attendance INTEGER, opponent VARCHAR)
### OUTPUT
SELECT MAX(attendance) FROM table_name_95 WHERE opponent = "arsenal" | {
"input": "CREATE TABLE table_name_95 (attendance INTEGER, opponent VARCHAR)",
"instruction": "Whose attendance was the highest when the team played Arsenal?",
"output": "SELECT MAX(attendance) FROM table_name_95 WHERE opponent = \"arsenal\""
} |
### INSTRUCTION
When was the average attendance 789?
### INPUT
CREATE TABLE table_2380212_1 (year INTEGER, avg_attendance VARCHAR)
### OUTPUT
SELECT MIN(year) FROM table_2380212_1 WHERE avg_attendance = 789 | {
"input": "CREATE TABLE table_2380212_1 (year INTEGER, avg_attendance VARCHAR)",
"instruction": "When was the average attendance 789?",
"output": "SELECT MIN(year) FROM table_2380212_1 WHERE avg_attendance = 789"
} |
### INSTRUCTION
What album was the song It's going so badly on?
### INPUT
CREATE TABLE table_23667534_1 (album_s_ VARCHAR, song_s__title VARCHAR)
### OUTPUT
SELECT album_s_ FROM table_23667534_1 WHERE song_s__title = "It's Going So Badly" | {
"input": "CREATE TABLE table_23667534_1 (album_s_ VARCHAR, song_s__title VARCHAR)",
"instruction": "What album was the song It's going so badly on?",
"output": "SELECT album_s_ FROM table_23667534_1 WHERE song_s__title = \"It's Going So Badly\""
} |
### INSTRUCTION
What is Score, when Country is "United States", and when To Par is "+4"?
### INPUT
CREATE TABLE table_name_56 (score VARCHAR, country VARCHAR, to_par VARCHAR)
### OUTPUT
SELECT score FROM table_name_56 WHERE country = "united states" AND to_par = "+4" | {
"input": "CREATE TABLE table_name_56 (score VARCHAR, country VARCHAR, to_par VARCHAR)",
"instruction": "What is Score, when Country is \"United States\", and when To Par is \"+4\"?",
"output": "SELECT score FROM table_name_56 WHERE country = \"united states\" AND to_par = \"+4\""
} |
### INSTRUCTION
How many caps did the player Mile Sterjovski have?
### INPUT
CREATE TABLE table_name_22 (caps VARCHAR, player VARCHAR)
### OUTPUT
SELECT caps FROM table_name_22 WHERE player = "mile sterjovski" | {
"input": "CREATE TABLE table_name_22 (caps VARCHAR, player VARCHAR)",
"instruction": "How many caps did the player Mile Sterjovski have?",
"output": "SELECT caps FROM table_name_22 WHERE player = \"mile sterjovski\""
} |
### INSTRUCTION
How many production codes were in series 39?
### INPUT
CREATE TABLE table_2409041_3 (production_code VARCHAR, no_in_series VARCHAR)
### OUTPUT
SELECT COUNT(production_code) FROM table_2409041_3 WHERE no_in_series = 39 | {
"input": "CREATE TABLE table_2409041_3 (production_code VARCHAR, no_in_series VARCHAR)",
"instruction": "How many production codes were in series 39?",
"output": "SELECT COUNT(production_code) FROM table_2409041_3 WHERE no_in_series = 39"
} |
### INSTRUCTION
How many players had high points in the location/attendance FedexForum 11,498 respectively?
### INPUT
CREATE TABLE table_17323092_7 (high_points VARCHAR, location_attendance VARCHAR)
### OUTPUT
SELECT COUNT(high_points) FROM table_17323092_7 WHERE location_attendance = "FedExForum 11,498" | {
"input": "CREATE TABLE table_17323092_7 (high_points VARCHAR, location_attendance VARCHAR)",
"instruction": "How many players had high points in the location/attendance FedexForum 11,498 respectively?",
"output": "SELECT COUNT(high_points) FROM table_17323092_7 WHERE location_attendance = \"FedExForum 11,498\""
} |
### INSTRUCTION
what is the score when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012?
### INPUT
CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR)
### OUTPUT
SELECT score FROM table_name_32 WHERE venue = "stade général seyni kountché, niamey" AND competition = "friendly" AND date = "9 october 2012" | {
"input": "CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR)",
"instruction": "what is the score when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012?",
"output": "SELECT score FROM table_name_32 WHERE venue = \"stade général seyni kountché, niamey\" AND competition = \"friendly\" AND date = \"9 october 2012\""
} |
### INSTRUCTION
Who is the player from the United States with a 4 to par and a 74-73-72-69=288 score?
### INPUT
CREATE TABLE table_name_20 (player VARCHAR, country VARCHAR, to_par VARCHAR, score VARCHAR)
### OUTPUT
SELECT player FROM table_name_20 WHERE country = "united states" AND to_par = 4 AND score = 74 - 73 - 72 - 69 = 288 | {
"input": "CREATE TABLE table_name_20 (player VARCHAR, country VARCHAR, to_par VARCHAR, score VARCHAR)",
"instruction": "Who is the player from the United States with a 4 to par and a 74-73-72-69=288 score?",
"output": "SELECT player FROM table_name_20 WHERE country = \"united states\" AND to_par = 4 AND score = 74 - 73 - 72 - 69 = 288"
} |
### INSTRUCTION
What are the alternative names of those satellites where the notes are: mission failed. guidance system failed. no orbit.
### INPUT
CREATE TABLE table_191323_2 (alt_name VARCHAR, notes VARCHAR)
### OUTPUT
SELECT alt_name FROM table_191323_2 WHERE notes = "Mission failed. Guidance system failed. No orbit." | {
"input": "CREATE TABLE table_191323_2 (alt_name VARCHAR, notes VARCHAR)",
"instruction": "What are the alternative names of those satellites where the notes are: mission failed. guidance system failed. no orbit.",
"output": "SELECT alt_name FROM table_191323_2 WHERE notes = \"Mission failed. Guidance system failed. No orbit.\""
} |
### INSTRUCTION
What album has the title I Need A Life with the label of warp records / paper bag records?
### INPUT
CREATE TABLE table_name_18 (album VARCHAR, label VARCHAR, title VARCHAR)
### OUTPUT
SELECT album FROM table_name_18 WHERE label = "warp records / paper bag records" AND title = "i need a life" | {
"input": "CREATE TABLE table_name_18 (album VARCHAR, label VARCHAR, title VARCHAR)",
"instruction": "What album has the title I Need A Life with the label of warp records / paper bag records?",
"output": "SELECT album FROM table_name_18 WHERE label = \"warp records / paper bag records\" AND title = \"i need a life\""
} |
### INSTRUCTION
What is the Best score if the Maidens is 547 and Overs is 2755.1?
### INPUT
CREATE TABLE table_18914438_1 (best VARCHAR, maidens VARCHAR, overs VARCHAR)
### OUTPUT
SELECT best FROM table_18914438_1 WHERE maidens = 547 AND overs = "2755.1" | {
"input": "CREATE TABLE table_18914438_1 (best VARCHAR, maidens VARCHAR, overs VARCHAR)",
"instruction": "What is the Best score if the Maidens is 547 and Overs is 2755.1?",
"output": "SELECT best FROM table_18914438_1 WHERE maidens = 547 AND overs = \"2755.1\""
} |
### INSTRUCTION
WHAT IS THE DRAW FOR u ritmu ljubavi, POINTS LARGER THAN 87?
### INPUT
CREATE TABLE table_name_73 (draw INTEGER, song VARCHAR, points VARCHAR)
### OUTPUT
SELECT MAX(draw) FROM table_name_73 WHERE song = "u ritmu ljubavi" AND points > 87 | {
"input": "CREATE TABLE table_name_73 (draw INTEGER, song VARCHAR, points VARCHAR)",
"instruction": "WHAT IS THE DRAW FOR u ritmu ljubavi, POINTS LARGER THAN 87?",
"output": "SELECT MAX(draw) FROM table_name_73 WHERE song = \"u ritmu ljubavi\" AND points > 87"
} |
### INSTRUCTION
How many chart runs had a debut position of more than 7 when peak position was 11?
### INPUT
CREATE TABLE table_name_18 (chart VARCHAR, debut_position VARCHAR, peak_position VARCHAR)
### OUTPUT
SELECT COUNT(chart) AS run FROM table_name_18 WHERE debut_position > 7 AND peak_position = 11 | {
"input": "CREATE TABLE table_name_18 (chart VARCHAR, debut_position VARCHAR, peak_position VARCHAR)",
"instruction": "How many chart runs had a debut position of more than 7 when peak position was 11?",
"output": "SELECT COUNT(chart) AS run FROM table_name_18 WHERE debut_position > 7 AND peak_position = 11"
} |
### INSTRUCTION
Which policy type has the most records in the database?
### INPUT
CREATE TABLE available_policies (policy_type_code VARCHAR)
### OUTPUT
SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE available_policies (policy_type_code VARCHAR)",
"instruction": "Which policy type has the most records in the database?",
"output": "SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
During the period in which gross sales totals for "The Show Girl Must Go On" reached $2,628,457, what did the numbers show for tickets sold/ available at the box office?
### INPUT
CREATE TABLE table_22123920_4 (tickets_sold___available VARCHAR, gross_sales VARCHAR)
### OUTPUT
SELECT tickets_sold___available FROM table_22123920_4 WHERE gross_sales = "$2,628,457" | {
"input": "CREATE TABLE table_22123920_4 (tickets_sold___available VARCHAR, gross_sales VARCHAR)",
"instruction": "During the period in which gross sales totals for \"The Show Girl Must Go On\" reached $2,628,457, what did the numbers show for tickets sold/ available at the box office? ",
"output": "SELECT tickets_sold___available FROM table_22123920_4 WHERE gross_sales = \"$2,628,457\""
} |
### INSTRUCTION
What was the school/club team whose season was in 2012 and were acquired via trade?
### INPUT
CREATE TABLE table_15463188_17 (school_club_team VARCHAR, season VARCHAR, acquisition_via VARCHAR)
### OUTPUT
SELECT school_club_team FROM table_15463188_17 WHERE season = "2012" AND acquisition_via = "Trade" | {
"input": "CREATE TABLE table_15463188_17 (school_club_team VARCHAR, season VARCHAR, acquisition_via VARCHAR)",
"instruction": "What was the school/club team whose season was in 2012 and were acquired via trade? ",
"output": "SELECT school_club_team FROM table_15463188_17 WHERE season = \"2012\" AND acquisition_via = \"Trade\""
} |
### INSTRUCTION
What are the largest Cars Entered with a Winning Driver of rodger ward, and a Season smaller than 1959?
### INPUT
CREATE TABLE table_name_33 (cars_entered INTEGER, winning_driver VARCHAR, season VARCHAR)
### OUTPUT
SELECT MAX(cars_entered) FROM table_name_33 WHERE winning_driver = "rodger ward" AND season < 1959 | {
"input": "CREATE TABLE table_name_33 (cars_entered INTEGER, winning_driver VARCHAR, season VARCHAR)",
"instruction": "What are the largest Cars Entered with a Winning Driver of rodger ward, and a Season smaller than 1959?",
"output": "SELECT MAX(cars_entered) FROM table_name_33 WHERE winning_driver = \"rodger ward\" AND season < 1959"
} |
### INSTRUCTION
What kind of Replaced has a Team of gimnasia y esgrima (lp)?
### INPUT
CREATE TABLE table_name_71 (replaced_by VARCHAR, team VARCHAR)
### OUTPUT
SELECT replaced_by FROM table_name_71 WHERE team = "gimnasia y esgrima (lp)" | {
"input": "CREATE TABLE table_name_71 (replaced_by VARCHAR, team VARCHAR)",
"instruction": "What kind of Replaced has a Team of gimnasia y esgrima (lp)?",
"output": "SELECT replaced_by FROM table_name_71 WHERE team = \"gimnasia y esgrima (lp)\""
} |
### INSTRUCTION
What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix but not the races named Chinese Grand Prix?
### INPUT
CREATE TABLE races (raceid VARCHAR, name VARCHAR); CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, driverid VARCHAR); CREATE TABLE results (raceid VARCHAR, driverid VARCHAR)
### OUTPUT
SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = "Australian Grand Prix" EXCEPT SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = "Chinese Grand Prix" | {
"input": "CREATE TABLE races (raceid VARCHAR, name VARCHAR); CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, driverid VARCHAR); CREATE TABLE results (raceid VARCHAR, driverid VARCHAR)",
"instruction": "What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix but not the races named Chinese Grand Prix?",
"output": "SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Australian Grand Prix\" EXCEPT SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Chinese Grand Prix\""
} |
### INSTRUCTION
What is the lowest Year with an Album that is live love in London?
### INPUT
CREATE TABLE table_name_34 (year INTEGER, album VARCHAR)
### OUTPUT
SELECT MIN(year) FROM table_name_34 WHERE album = "live love in london" | {
"input": "CREATE TABLE table_name_34 (year INTEGER, album VARCHAR)",
"instruction": "What is the lowest Year with an Album that is live love in London?",
"output": "SELECT MIN(year) FROM table_name_34 WHERE album = \"live love in london\""
} |
### INSTRUCTION
Name the most goals for 1972 – 1975, 1976 – 1982
### INPUT
CREATE TABLE table_24565004_19 (goals¹ INTEGER, period VARCHAR)
### OUTPUT
SELECT MAX(goals¹) FROM table_24565004_19 WHERE period = "1972 – 1975, 1976 – 1982" | {
"input": "CREATE TABLE table_24565004_19 (goals¹ INTEGER, period VARCHAR)",
"instruction": "Name the most goals for 1972 – 1975, 1976 – 1982",
"output": "SELECT MAX(goals¹) FROM table_24565004_19 WHERE period = \"1972 – 1975, 1976 – 1982\""
} |
### INSTRUCTION
What is the highest number a guard from brophy college prep wore?
### INPUT
CREATE TABLE table_29050051_3 (_number INTEGER, position VARCHAR, previous_school VARCHAR)
### OUTPUT
SELECT MAX(_number) FROM table_29050051_3 WHERE position = "Guard" AND previous_school = "Brophy College Prep" | {
"input": "CREATE TABLE table_29050051_3 (_number INTEGER, position VARCHAR, previous_school VARCHAR)",
"instruction": "What is the highest number a guard from brophy college prep wore?",
"output": "SELECT MAX(_number) FROM table_29050051_3 WHERE position = \"Guard\" AND previous_school = \"Brophy College Prep\""
} |
### INSTRUCTION
Name the runner-up for janice yan (閻奕格)
### INPUT
CREATE TABLE table_name_35 (runner_up VARCHAR, winner VARCHAR)
### OUTPUT
SELECT runner_up FROM table_name_35 WHERE winner = "janice yan (閻奕格)" | {
"input": "CREATE TABLE table_name_35 (runner_up VARCHAR, winner VARCHAR)",
"instruction": "Name the runner-up for janice yan (閻奕格)",
"output": "SELECT runner_up FROM table_name_35 WHERE winner = \"janice yan (閻奕格)\""
} |
### INSTRUCTION
Please list the countries and years of film market estimations.
### INPUT
CREATE TABLE film_market_estimation (Year VARCHAR, Market_ID VARCHAR); CREATE TABLE market (Country VARCHAR, Market_ID VARCHAR)
### OUTPUT
SELECT T2.Country, T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID | {
"input": "CREATE TABLE film_market_estimation (Year VARCHAR, Market_ID VARCHAR); CREATE TABLE market (Country VARCHAR, Market_ID VARCHAR)",
"instruction": "Please list the countries and years of film market estimations.",
"output": "SELECT T2.Country, T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID"
} |
### INSTRUCTION
Which Points is the lowest one that has Touchdowns smaller than 2, and an Extra points of 7, and a Field goals smaller than 0?
### INPUT
CREATE TABLE table_name_85 (points INTEGER, field_goals VARCHAR, touchdowns VARCHAR, extra_points VARCHAR)
### OUTPUT
SELECT MIN(points) FROM table_name_85 WHERE touchdowns < 2 AND extra_points = 7 AND field_goals < 0 | {
"input": "CREATE TABLE table_name_85 (points INTEGER, field_goals VARCHAR, touchdowns VARCHAR, extra_points VARCHAR)",
"instruction": "Which Points is the lowest one that has Touchdowns smaller than 2, and an Extra points of 7, and a Field goals smaller than 0?",
"output": "SELECT MIN(points) FROM table_name_85 WHERE touchdowns < 2 AND extra_points = 7 AND field_goals < 0"
} |
### INSTRUCTION
how many original air date where family/families is the ryder family and the schwartz family
### INPUT
CREATE TABLE table_19897294_9 (original_air_date VARCHAR, family_families VARCHAR)
### OUTPUT
SELECT COUNT(original_air_date) FROM table_19897294_9 WHERE family_families = "The Ryder Family and The Schwartz Family" | {
"input": "CREATE TABLE table_19897294_9 (original_air_date VARCHAR, family_families VARCHAR)",
"instruction": "how many original air date where family/families is the ryder family and the schwartz family",
"output": "SELECT COUNT(original_air_date) FROM table_19897294_9 WHERE family_families = \"The Ryder Family and The Schwartz Family\""
} |
### INSTRUCTION
What is the content of the television service ewtn in the United Kingdom?
### INPUT
CREATE TABLE table_name_94 (content VARCHAR, country VARCHAR, television_service VARCHAR)
### OUTPUT
SELECT content FROM table_name_94 WHERE country = "united kingdom" AND television_service = "ewtn" | {
"input": "CREATE TABLE table_name_94 (content VARCHAR, country VARCHAR, television_service VARCHAR)",
"instruction": "What is the content of the television service ewtn in the United Kingdom?",
"output": "SELECT content FROM table_name_94 WHERE country = \"united kingdom\" AND television_service = \"ewtn\""
} |
### INSTRUCTION
What's the least losses for Horsham Saints with more than 13 wins and less than 1211 against?
### INPUT
CREATE TABLE table_name_24 (losses INTEGER, wins VARCHAR, against VARCHAR, wimmera_fl VARCHAR)
### OUTPUT
SELECT MIN(losses) FROM table_name_24 WHERE against < 1211 AND wimmera_fl = "horsham saints" AND wins > 13 | {
"input": "CREATE TABLE table_name_24 (losses INTEGER, wins VARCHAR, against VARCHAR, wimmera_fl VARCHAR)",
"instruction": "What's the least losses for Horsham Saints with more than 13 wins and less than 1211 against?",
"output": "SELECT MIN(losses) FROM table_name_24 WHERE against < 1211 AND wimmera_fl = \"horsham saints\" AND wins > 13"
} |
### INSTRUCTION
Name the minimum enrollment for montana tech of the university of montana
### INPUT
CREATE TABLE table_15851155_1 (enrollment INTEGER, school VARCHAR)
### OUTPUT
SELECT MIN(enrollment) FROM table_15851155_1 WHERE school = "Montana Tech of the University of Montana" | {
"input": "CREATE TABLE table_15851155_1 (enrollment INTEGER, school VARCHAR)",
"instruction": "Name the minimum enrollment for montana tech of the university of montana",
"output": "SELECT MIN(enrollment) FROM table_15851155_1 WHERE school = \"Montana Tech of the University of Montana\""
} |
### INSTRUCTION
What was the result on 8 October 1961?
### INPUT
CREATE TABLE table_name_26 (result VARCHAR, date VARCHAR)
### OUTPUT
SELECT result FROM table_name_26 WHERE date = "8 october 1961" | {
"input": "CREATE TABLE table_name_26 (result VARCHAR, date VARCHAR)",
"instruction": "What was the result on 8 October 1961?",
"output": "SELECT result FROM table_name_26 WHERE date = \"8 october 1961\""
} |
### INSTRUCTION
What is the total number of Participants that has Silver that's smaller than 0?
### INPUT
CREATE TABLE table_name_38 (participants INTEGER, silver INTEGER)
### OUTPUT
SELECT SUM(participants) FROM table_name_38 WHERE silver < 0 | {
"input": "CREATE TABLE table_name_38 (participants INTEGER, silver INTEGER)",
"instruction": "What is the total number of Participants that has Silver that's smaller than 0?",
"output": "SELECT SUM(participants) FROM table_name_38 WHERE silver < 0"
} |
### INSTRUCTION
What years runner-up is Birmingham city, with over 1 runners-up?
### INPUT
CREATE TABLE table_name_91 (years_runner_up VARCHAR, runners_up VARCHAR, club VARCHAR)
### OUTPUT
SELECT years_runner_up FROM table_name_91 WHERE runners_up > 1 AND club = "birmingham city" | {
"input": "CREATE TABLE table_name_91 (years_runner_up VARCHAR, runners_up VARCHAR, club VARCHAR)",
"instruction": "What years runner-up is Birmingham city, with over 1 runners-up?",
"output": "SELECT years_runner_up FROM table_name_91 WHERE runners_up > 1 AND club = \"birmingham city\""
} |
### INSTRUCTION
Who wrote the episodes watched by 1.816 million people in Canada?
### INPUT
CREATE TABLE table_18424435_3 (written_by VARCHAR, canadian_viewers__million_ VARCHAR)
### OUTPUT
SELECT written_by FROM table_18424435_3 WHERE canadian_viewers__million_ = "1.816" | {
"input": "CREATE TABLE table_18424435_3 (written_by VARCHAR, canadian_viewers__million_ VARCHAR)",
"instruction": "Who wrote the episodes watched by 1.816 million people in Canada?",
"output": "SELECT written_by FROM table_18424435_3 WHERE canadian_viewers__million_ = \"1.816\""
} |
### INSTRUCTION
Find the name of the company that produces both furnitures with less than 6 components and furnitures with more than 10 components.
### INPUT
CREATE TABLE furniture_manufacte (Furniture_ID VARCHAR, manufacturer_id VARCHAR); CREATE TABLE manufacturer (name VARCHAR, manufacturer_id VARCHAR); CREATE TABLE furniture (Furniture_ID VARCHAR, num_of_component INTEGER)
### OUTPUT
SELECT t3.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID JOIN manufacturer AS t3 ON t2.manufacturer_id = t3.manufacturer_id WHERE t1.num_of_component < 6 INTERSECT SELECT t3.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID JOIN manufacturer AS t3 ON t2.manufacturer_id = t3.manufacturer_id WHERE t1.num_of_component > 10 | {
"input": "CREATE TABLE furniture_manufacte (Furniture_ID VARCHAR, manufacturer_id VARCHAR); CREATE TABLE manufacturer (name VARCHAR, manufacturer_id VARCHAR); CREATE TABLE furniture (Furniture_ID VARCHAR, num_of_component INTEGER)",
"instruction": "Find the name of the company that produces both furnitures with less than 6 components and furnitures with more than 10 components.",
"output": "SELECT t3.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID JOIN manufacturer AS t3 ON t2.manufacturer_id = t3.manufacturer_id WHERE t1.num_of_component < 6 INTERSECT SELECT t3.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID JOIN manufacturer AS t3 ON t2.manufacturer_id = t3.manufacturer_id WHERE t1.num_of_component > 10"
} |
### INSTRUCTION
What was the net power, when the type was wwer-440/230, and when construction was finished on 24.10.1977?
### INPUT
CREATE TABLE table_name_74 (net_power VARCHAR, type VARCHAR, finish_construction VARCHAR)
### OUTPUT
SELECT net_power FROM table_name_74 WHERE type = "wwer-440/230" AND finish_construction = "24.10.1977" | {
"input": "CREATE TABLE table_name_74 (net_power VARCHAR, type VARCHAR, finish_construction VARCHAR)",
"instruction": "What was the net power, when the type was wwer-440/230, and when construction was finished on 24.10.1977?",
"output": "SELECT net_power FROM table_name_74 WHERE type = \"wwer-440/230\" AND finish_construction = \"24.10.1977\""
} |
### INSTRUCTION
What is the operator for peak 90, in startup year 2010 for the project named Aosp expansion 1 (jackpine ph 1a)?
### INPUT
CREATE TABLE table_name_89 (operator VARCHAR, project_name VARCHAR, peak VARCHAR, year_startup VARCHAR)
### OUTPUT
SELECT operator FROM table_name_89 WHERE peak = "90" AND year_startup = "2010" AND project_name = "aosp expansion 1 (jackpine ph 1a)" | {
"input": "CREATE TABLE table_name_89 (operator VARCHAR, project_name VARCHAR, peak VARCHAR, year_startup VARCHAR)",
"instruction": "What is the operator for peak 90, in startup year 2010 for the project named Aosp expansion 1 (jackpine ph 1a)?",
"output": "SELECT operator FROM table_name_89 WHERE peak = \"90\" AND year_startup = \"2010\" AND project_name = \"aosp expansion 1 (jackpine ph 1a)\""
} |
### INSTRUCTION
What is the team located at philips arena 18,227?
### INPUT
CREATE TABLE table_11961582_6 (team VARCHAR, location_attendance VARCHAR)
### OUTPUT
SELECT team FROM table_11961582_6 WHERE location_attendance = "Philips Arena 18,227" | {
"input": "CREATE TABLE table_11961582_6 (team VARCHAR, location_attendance VARCHAR)",
"instruction": "What is the team located at philips arena 18,227?",
"output": "SELECT team FROM table_11961582_6 WHERE location_attendance = \"Philips Arena 18,227\""
} |
### INSTRUCTION
What is the full amount of averages when the sellouts are less than 14, the season is 2011-12, and attendance is less than 162,474?
### INPUT
CREATE TABLE table_name_73 (average VARCHAR, attendance VARCHAR, sellouts VARCHAR, season VARCHAR)
### OUTPUT
SELECT COUNT(average) FROM table_name_73 WHERE sellouts < 14 AND season = "2011-12" AND attendance < 162 OFFSET 474 | {
"input": "CREATE TABLE table_name_73 (average VARCHAR, attendance VARCHAR, sellouts VARCHAR, season VARCHAR)",
"instruction": "What is the full amount of averages when the sellouts are less than 14, the season is 2011-12, and attendance is less than 162,474?",
"output": "SELECT COUNT(average) FROM table_name_73 WHERE sellouts < 14 AND season = \"2011-12\" AND attendance < 162 OFFSET 474"
} |
### INSTRUCTION
On September 10 during Strikeforce: Heavyweight Grand Prix Semifinals, what was the PPV buyrate?
### INPUT
CREATE TABLE table_name_77 (ppv_buyrate VARCHAR, date VARCHAR, event VARCHAR)
### OUTPUT
SELECT ppv_buyrate FROM table_name_77 WHERE date = "september 10" AND event = "strikeforce: heavyweight grand prix semifinals" | {
"input": "CREATE TABLE table_name_77 (ppv_buyrate VARCHAR, date VARCHAR, event VARCHAR)",
"instruction": "On September 10 during Strikeforce: Heavyweight Grand Prix Semifinals, what was the PPV buyrate?",
"output": "SELECT ppv_buyrate FROM table_name_77 WHERE date = \"september 10\" AND event = \"strikeforce: heavyweight grand prix semifinals\""
} |
### INSTRUCTION
What is the rank when there is 0 gold, the total is more than 1, and silver is more than 0?
### INPUT
CREATE TABLE table_name_58 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)
### OUTPUT
SELECT MAX(rank) FROM table_name_58 WHERE gold = 0 AND total > 1 AND silver > 0 | {
"input": "CREATE TABLE table_name_58 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)",
"instruction": "What is the rank when there is 0 gold, the total is more than 1, and silver is more than 0?",
"output": "SELECT MAX(rank) FROM table_name_58 WHERE gold = 0 AND total > 1 AND silver > 0"
} |
### INSTRUCTION
Which region has a regional page # of 1-3, 5-7, 9-11, 13-15?
### INPUT
CREATE TABLE table_287659_2 (region_name VARCHAR, regional_page__number VARCHAR)
### OUTPUT
SELECT region_name FROM table_287659_2 WHERE regional_page__number = "1-3, 5-7, 9-11, 13-15" | {
"input": "CREATE TABLE table_287659_2 (region_name VARCHAR, regional_page__number VARCHAR)",
"instruction": "Which region has a regional page # of 1-3, 5-7, 9-11, 13-15?",
"output": "SELECT region_name FROM table_287659_2 WHERE regional_page__number = \"1-3, 5-7, 9-11, 13-15\""
} |
### INSTRUCTION
what name has a Rank of lieutenant colonel, and a Begin Date of 1904-02-22 22 february 1904?
### INPUT
CREATE TABLE table_name_87 (name VARCHAR, rank VARCHAR, begin_date VARCHAR)
### OUTPUT
SELECT name FROM table_name_87 WHERE rank = "lieutenant colonel" AND begin_date = "1904-02-22 22 february 1904" | {
"input": "CREATE TABLE table_name_87 (name VARCHAR, rank VARCHAR, begin_date VARCHAR)",
"instruction": "what name has a Rank of lieutenant colonel, and a Begin Date of 1904-02-22 22 february 1904?",
"output": "SELECT name FROM table_name_87 WHERE rank = \"lieutenant colonel\" AND begin_date = \"1904-02-22 22 february 1904\""
} |
### INSTRUCTION
What title was used in the nomination of the Spanish language film Traffic?
### INPUT
CREATE TABLE table_name_43 (film_title_used_in_nomination VARCHAR, language VARCHAR, original_title VARCHAR)
### OUTPUT
SELECT film_title_used_in_nomination FROM table_name_43 WHERE language = "spanish" AND original_title = "traffic" | {
"input": "CREATE TABLE table_name_43 (film_title_used_in_nomination VARCHAR, language VARCHAR, original_title VARCHAR)",
"instruction": "What title was used in the nomination of the Spanish language film Traffic?",
"output": "SELECT film_title_used_in_nomination FROM table_name_43 WHERE language = \"spanish\" AND original_title = \"traffic\""
} |
### INSTRUCTION
What is the home ground for the team whose home city is Trondheim with 27 seasons?
### INPUT
CREATE TABLE table_2522473_1 (home_ground VARCHAR, seasons VARCHAR, home_city VARCHAR)
### OUTPUT
SELECT home_ground FROM table_2522473_1 WHERE seasons = 27 AND home_city = "Trondheim" | {
"input": "CREATE TABLE table_2522473_1 (home_ground VARCHAR, seasons VARCHAR, home_city VARCHAR)",
"instruction": "What is the home ground for the team whose home city is Trondheim with 27 seasons? ",
"output": "SELECT home_ground FROM table_2522473_1 WHERE seasons = 27 AND home_city = \"Trondheim\""
} |
### INSTRUCTION
Name the champion for london hunt and country club ( london , on )
### INPUT
CREATE TABLE table_1628792_1 (champion VARCHAR, tournament_location VARCHAR)
### OUTPUT
SELECT champion FROM table_1628792_1 WHERE tournament_location = "London Hunt and country Club ( London , ON )" | {
"input": "CREATE TABLE table_1628792_1 (champion VARCHAR, tournament_location VARCHAR)",
"instruction": "Name the champion for london hunt and country club ( london , on )",
"output": "SELECT champion FROM table_1628792_1 WHERE tournament_location = \"London Hunt and country Club ( London , ON )\""
} |
### INSTRUCTION
Name the january 15-16 where march 27-29 where march 29, 2006
### INPUT
CREATE TABLE table_1708610_3 (january_15_16 VARCHAR, march_27_29 VARCHAR)
### OUTPUT
SELECT january_15_16 FROM table_1708610_3 WHERE march_27_29 = "March 29, 2006" | {
"input": "CREATE TABLE table_1708610_3 (january_15_16 VARCHAR, march_27_29 VARCHAR)",
"instruction": "Name the january 15-16 where march 27-29 where march 29, 2006",
"output": "SELECT january_15_16 FROM table_1708610_3 WHERE march_27_29 = \"March 29, 2006\""
} |
### INSTRUCTION
Who are all the stage winners where the team classification is Caisse D'epargne?
### INPUT
CREATE TABLE table_17672500_19 (stage__winner_ VARCHAR, team_classification VARCHAR)
### OUTPUT
SELECT stage__winner_ FROM table_17672500_19 WHERE team_classification = "Caisse d'Epargne" | {
"input": "CREATE TABLE table_17672500_19 (stage__winner_ VARCHAR, team_classification VARCHAR)",
"instruction": "Who are all the stage winners where the team classification is Caisse D'epargne?",
"output": "SELECT stage__winner_ FROM table_17672500_19 WHERE team_classification = \"Caisse d'Epargne\""
} |
### INSTRUCTION
Show the nations that have both journalists with more than 10 years of working and journalists with less than 3 years of working.
### INPUT
CREATE TABLE journalist (Nationality VARCHAR, Years_working INTEGER)
### OUTPUT
SELECT Nationality FROM journalist WHERE Years_working > 10 INTERSECT SELECT Nationality FROM journalist WHERE Years_working < 3 | {
"input": "CREATE TABLE journalist (Nationality VARCHAR, Years_working INTEGER)",
"instruction": "Show the nations that have both journalists with more than 10 years of working and journalists with less than 3 years of working.",
"output": "SELECT Nationality FROM journalist WHERE Years_working > 10 INTERSECT SELECT Nationality FROM journalist WHERE Years_working < 3"
} |
### INSTRUCTION
What was the final record for the game in which Dirk Nowitzki (19) had the high points?
### INPUT
CREATE TABLE table_17288869_7 (record VARCHAR, high_points VARCHAR)
### OUTPUT
SELECT record FROM table_17288869_7 WHERE high_points = "Dirk Nowitzki (19)" | {
"input": "CREATE TABLE table_17288869_7 (record VARCHAR, high_points VARCHAR)",
"instruction": "What was the final record for the game in which Dirk Nowitzki (19) had the high points?",
"output": "SELECT record FROM table_17288869_7 WHERE high_points = \"Dirk Nowitzki (19)\""
} |
### INSTRUCTION
Which province has the partido Socialista del Pueblo Extremeño party?
### INPUT
CREATE TABLE table_name_31 (province VARCHAR, party VARCHAR)
### OUTPUT
SELECT province FROM table_name_31 WHERE party = "partido socialista del pueblo extremeño" | {
"input": "CREATE TABLE table_name_31 (province VARCHAR, party VARCHAR)",
"instruction": "Which province has the partido Socialista del Pueblo Extremeño party?",
"output": "SELECT province FROM table_name_31 WHERE party = \"partido socialista del pueblo extremeño\""
} |
### INSTRUCTION
Which Intra-molecular structure has a Comparative of no, and a Name of mitarget?
### INPUT
CREATE TABLE table_name_76 (intra_molecular_structure VARCHAR, comparative VARCHAR, name VARCHAR)
### OUTPUT
SELECT intra_molecular_structure FROM table_name_76 WHERE comparative = "no" AND name = "mitarget" | {
"input": "CREATE TABLE table_name_76 (intra_molecular_structure VARCHAR, comparative VARCHAR, name VARCHAR)",
"instruction": "Which Intra-molecular structure has a Comparative of no, and a Name of mitarget?",
"output": "SELECT intra_molecular_structure FROM table_name_76 WHERE comparative = \"no\" AND name = \"mitarget\""
} |
### INSTRUCTION
what is the highest attendance for a total attendance-regular season record
### INPUT
CREATE TABLE table_21436373_12 (attendance INTEGER, type_of_record VARCHAR)
### OUTPUT
SELECT MAX(attendance) FROM table_21436373_12 WHERE type_of_record = "Total attendance-Regular season" | {
"input": "CREATE TABLE table_21436373_12 (attendance INTEGER, type_of_record VARCHAR)",
"instruction": "what is the highest attendance for a total attendance-regular season record",
"output": "SELECT MAX(attendance) FROM table_21436373_12 WHERE type_of_record = \"Total attendance-Regular season\""
} |
### INSTRUCTION
What is the checking balance of the account whose owner’s name contains the substring ‘ee’?
### INPUT
CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (custid VARCHAR, name VARCHAR)
### OUTPUT
SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name LIKE '%ee%' | {
"input": "CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (custid VARCHAR, name VARCHAR)",
"instruction": "What is the checking balance of the account whose owner’s name contains the substring ‘ee’?",
"output": "SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name LIKE '%ee%'"
} |
### INSTRUCTION
Find the names of furnitures whose prices are lower than the highest price.
### INPUT
CREATE TABLE furniture_manufacte (Furniture_ID VARCHAR, Price_in_Dollar INTEGER); CREATE TABLE furniture (name VARCHAR, Furniture_ID VARCHAR); CREATE TABLE furniture_manufacte (Price_in_Dollar INTEGER)
### OUTPUT
SELECT t1.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID WHERE t2.Price_in_Dollar < (SELECT MAX(Price_in_Dollar) FROM furniture_manufacte) | {
"input": "CREATE TABLE furniture_manufacte (Furniture_ID VARCHAR, Price_in_Dollar INTEGER); CREATE TABLE furniture (name VARCHAR, Furniture_ID VARCHAR); CREATE TABLE furniture_manufacte (Price_in_Dollar INTEGER)",
"instruction": "Find the names of furnitures whose prices are lower than the highest price.",
"output": "SELECT t1.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID WHERE t2.Price_in_Dollar < (SELECT MAX(Price_in_Dollar) FROM furniture_manufacte)"
} |
### INSTRUCTION
With a type of mass suicide located in France and a low estimate greater than 16, the sum of the high estimate numbers listed is what number?
### INPUT
CREATE TABLE table_name_51 (high_estimate INTEGER, low_estimate VARCHAR, type VARCHAR, location VARCHAR)
### OUTPUT
SELECT SUM(high_estimate) FROM table_name_51 WHERE type = "mass suicide" AND location = "france" AND low_estimate > 16 | {
"input": "CREATE TABLE table_name_51 (high_estimate INTEGER, low_estimate VARCHAR, type VARCHAR, location VARCHAR)",
"instruction": "With a type of mass suicide located in France and a low estimate greater than 16, the sum of the high estimate numbers listed is what number?",
"output": "SELECT SUM(high_estimate) FROM table_name_51 WHERE type = \"mass suicide\" AND location = \"france\" AND low_estimate > 16"
} |
### INSTRUCTION
Which Year completed has a Dam type of earthfill embankment, and a Dam constructed of khancoban dam?
### INPUT
CREATE TABLE table_name_25 (year_completed INTEGER, dam_type VARCHAR, dam_constructed VARCHAR)
### OUTPUT
SELECT MAX(year_completed) FROM table_name_25 WHERE dam_type = "earthfill embankment" AND dam_constructed = "khancoban dam" | {
"input": "CREATE TABLE table_name_25 (year_completed INTEGER, dam_type VARCHAR, dam_constructed VARCHAR)",
"instruction": "Which Year completed has a Dam type of earthfill embankment, and a Dam constructed of khancoban dam?",
"output": "SELECT MAX(year_completed) FROM table_name_25 WHERE dam_type = \"earthfill embankment\" AND dam_constructed = \"khancoban dam\""
} |
### INSTRUCTION
What is the national change where crude birth rate is less than 11.4, crude death rate is more than 12.1 and deaths are 4 376?
### INPUT
CREATE TABLE table_name_96 (natural_change VARCHAR, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR, crude_death_rate__per_1000_ VARCHAR)
### OUTPUT
SELECT natural_change FROM table_name_96 WHERE crude_birth_rate__per_1000_ < 11.4 AND crude_death_rate__per_1000_ > 12.1 AND deaths = "4 376" | {
"input": "CREATE TABLE table_name_96 (natural_change VARCHAR, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR, crude_death_rate__per_1000_ VARCHAR)",
"instruction": "What is the national change where crude birth rate is less than 11.4, crude death rate is more than 12.1 and deaths are 4 376?",
"output": "SELECT natural_change FROM table_name_96 WHERE crude_birth_rate__per_1000_ < 11.4 AND crude_death_rate__per_1000_ > 12.1 AND deaths = \"4 376\""
} |
### INSTRUCTION
How many types of work is хромая судьба?
### INPUT
CREATE TABLE table_207795_1 (type_of_work VARCHAR, russian_title VARCHAR)
### OUTPUT
SELECT COUNT(type_of_work) FROM table_207795_1 WHERE russian_title = "Хромая судьба" | {
"input": "CREATE TABLE table_207795_1 (type_of_work VARCHAR, russian_title VARCHAR)",
"instruction": "How many types of work is хромая судьба?",
"output": "SELECT COUNT(type_of_work) FROM table_207795_1 WHERE russian_title = \"Хромая судьба\""
} |
### INSTRUCTION
Which Height (m) has a Name of plessur alps, and a AVE-No larger than 63?
### INPUT
CREATE TABLE table_name_97 (height__m_ INTEGER, name VARCHAR, ave__no VARCHAR)
### OUTPUT
SELECT MIN(height__m_) FROM table_name_97 WHERE name = "plessur alps" AND ave__no > 63 | {
"input": "CREATE TABLE table_name_97 (height__m_ INTEGER, name VARCHAR, ave__no VARCHAR)",
"instruction": "Which Height (m) has a Name of plessur alps, and a AVE-No larger than 63?",
"output": "SELECT MIN(height__m_) FROM table_name_97 WHERE name = \"plessur alps\" AND ave__no > 63"
} |
### INSTRUCTION
what is the normal environment of occurrence that has a Proto-Germanic origin /ai/
### INPUT
CREATE TABLE table_name_86 (normal_environment_of_occurrence__in_native_words_ VARCHAR, proto_germanic_origin VARCHAR)
### OUTPUT
SELECT normal_environment_of_occurrence__in_native_words_ FROM table_name_86 WHERE proto_germanic_origin = "/ai/" | {
"input": "CREATE TABLE table_name_86 (normal_environment_of_occurrence__in_native_words_ VARCHAR, proto_germanic_origin VARCHAR)",
"instruction": "what is the normal environment of occurrence that has a Proto-Germanic origin /ai/",
"output": "SELECT normal_environment_of_occurrence__in_native_words_ FROM table_name_86 WHERE proto_germanic_origin = \"/ai/\""
} |
### INSTRUCTION
What is the most number of cuts made that had more than 7 events played and more than 2 top-25s?
### INPUT
CREATE TABLE table_name_18 (cuts_made INTEGER, events VARCHAR, top_25 VARCHAR)
### OUTPUT
SELECT MAX(cuts_made) FROM table_name_18 WHERE events = 7 AND top_25 > 2 | {
"input": "CREATE TABLE table_name_18 (cuts_made INTEGER, events VARCHAR, top_25 VARCHAR)",
"instruction": "What is the most number of cuts made that had more than 7 events played and more than 2 top-25s?",
"output": "SELECT MAX(cuts_made) FROM table_name_18 WHERE events = 7 AND top_25 > 2"
} |
### INSTRUCTION
Which Venue has an Away team of south melbourne?
### INPUT
CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR)
### OUTPUT
SELECT venue FROM table_name_89 WHERE away_team = "south melbourne" | {
"input": "CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR)",
"instruction": "Which Venue has an Away team of south melbourne?",
"output": "SELECT venue FROM table_name_89 WHERE away_team = \"south melbourne\""
} |
### INSTRUCTION
What is the average grid for johnny dumfries with less than 8 laps?
### INPUT
CREATE TABLE table_name_26 (grid INTEGER, driver VARCHAR, laps VARCHAR)
### OUTPUT
SELECT AVG(grid) FROM table_name_26 WHERE driver = "johnny dumfries" AND laps < 8 | {
"input": "CREATE TABLE table_name_26 (grid INTEGER, driver VARCHAR, laps VARCHAR)",
"instruction": "What is the average grid for johnny dumfries with less than 8 laps?",
"output": "SELECT AVG(grid) FROM table_name_26 WHERE driver = \"johnny dumfries\" AND laps < 8"
} |
### INSTRUCTION
What rider is on an aprilia that went under 18 laps with a grid total of 17?
### INPUT
CREATE TABLE table_name_14 (rider VARCHAR, grid VARCHAR, manufacturer VARCHAR, laps VARCHAR)
### OUTPUT
SELECT rider FROM table_name_14 WHERE manufacturer = "aprilia" AND laps < 18 AND grid = 17 | {
"input": "CREATE TABLE table_name_14 (rider VARCHAR, grid VARCHAR, manufacturer VARCHAR, laps VARCHAR)",
"instruction": "What rider is on an aprilia that went under 18 laps with a grid total of 17?",
"output": "SELECT rider FROM table_name_14 WHERE manufacturer = \"aprilia\" AND laps < 18 AND grid = 17"
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.