text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
What is the highest market value in billions of the company with profits of 20.96 billions and 166.99 billions in assets?
### INPUT
CREATE TABLE table_name_79 (market_value__billion_ INTEGER, profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR)
### OUTPUT
SELECT MAX(market_value__billion_) AS $_ FROM table_name_79 WHERE profits__billion_$_ = 20.96 AND assets__billion_$_ > 166.99 | {
"input": "CREATE TABLE table_name_79 (market_value__billion_ INTEGER, profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR)",
"instruction": "What is the highest market value in billions of the company with profits of 20.96 billions and 166.99 billions in assets?",
"output": "SELECT MAX(market_value__billion_) AS $_ FROM table_name_79 WHERE profits__billion_$_ = 20.96 AND assets__billion_$_ > 166.99"
} |
### INSTRUCTION
What are the school colors for the college whose main campus is overland park?
### INPUT
CREATE TABLE table_name_66 (school_colors VARCHAR, main_campus_location VARCHAR)
### OUTPUT
SELECT school_colors FROM table_name_66 WHERE main_campus_location = "overland park" | {
"input": "CREATE TABLE table_name_66 (school_colors VARCHAR, main_campus_location VARCHAR)",
"instruction": "What are the school colors for the college whose main campus is overland park?",
"output": "SELECT school_colors FROM table_name_66 WHERE main_campus_location = \"overland park\""
} |
### INSTRUCTION
What is the average Goals, when Playoffs is Lost in Round 2, and when Games is less than 81?
### INPUT
CREATE TABLE table_name_37 (goals_for INTEGER, playoffs VARCHAR, games VARCHAR)
### OUTPUT
SELECT AVG(goals_for) FROM table_name_37 WHERE playoffs = "lost in round 2" AND games < 81 | {
"input": "CREATE TABLE table_name_37 (goals_for INTEGER, playoffs VARCHAR, games VARCHAR)",
"instruction": "What is the average Goals, when Playoffs is Lost in Round 2, and when Games is less than 81?",
"output": "SELECT AVG(goals_for) FROM table_name_37 WHERE playoffs = \"lost in round 2\" AND games < 81"
} |
### INSTRUCTION
Tell me the name for men's featherweight and sport of weightlifting
### INPUT
CREATE TABLE table_name_71 (name VARCHAR, event VARCHAR, sport VARCHAR)
### OUTPUT
SELECT name FROM table_name_71 WHERE event = "men's featherweight" AND sport = "weightlifting" | {
"input": "CREATE TABLE table_name_71 (name VARCHAR, event VARCHAR, sport VARCHAR)",
"instruction": "Tell me the name for men's featherweight and sport of weightlifting",
"output": "SELECT name FROM table_name_71 WHERE event = \"men's featherweight\" AND sport = \"weightlifting\""
} |
### INSTRUCTION
Against which team does Missouri Tigers have a record of mu, 2-1 at a neutral site?
### INPUT
CREATE TABLE table_16201038_4 (missouri_vs VARCHAR, at_neutral_site VARCHAR)
### OUTPUT
SELECT missouri_vs FROM table_16201038_4 WHERE at_neutral_site = "MU, 2-1" | {
"input": "CREATE TABLE table_16201038_4 (missouri_vs VARCHAR, at_neutral_site VARCHAR)",
"instruction": "Against which team does Missouri Tigers have a record of mu, 2-1 at a neutral site?",
"output": "SELECT missouri_vs FROM table_16201038_4 WHERE at_neutral_site = \"MU, 2-1\""
} |
### INSTRUCTION
What is the average Episode Number, when Original Airdate is March 21, 2010, and when Season is less than 3?
### INPUT
CREATE TABLE table_name_96 (episode INTEGER, original_airdate VARCHAR, season VARCHAR)
### OUTPUT
SELECT AVG(episode) AS number FROM table_name_96 WHERE original_airdate = "march 21, 2010" AND season < 3 | {
"input": "CREATE TABLE table_name_96 (episode INTEGER, original_airdate VARCHAR, season VARCHAR)",
"instruction": "What is the average Episode Number, when Original Airdate is March 21, 2010, and when Season is less than 3?",
"output": "SELECT AVG(episode) AS number FROM table_name_96 WHERE original_airdate = \"march 21, 2010\" AND season < 3"
} |
### INSTRUCTION
What are the ids and details of events that have more than one participants?
### INPUT
CREATE TABLE EVENTS (event_id VARCHAR, event_details VARCHAR, Event_ID VARCHAR); CREATE TABLE Participants_in_Events (Event_ID VARCHAR)
### OUTPUT
SELECT T1.event_id, T1.event_details FROM EVENTS AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID = T2.Event_ID GROUP BY T1.Event_ID HAVING COUNT(*) > 1 | {
"input": "CREATE TABLE EVENTS (event_id VARCHAR, event_details VARCHAR, Event_ID VARCHAR); CREATE TABLE Participants_in_Events (Event_ID VARCHAR)",
"instruction": "What are the ids and details of events that have more than one participants?",
"output": "SELECT T1.event_id, T1.event_details FROM EVENTS AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID = T2.Event_ID GROUP BY T1.Event_ID HAVING COUNT(*) > 1"
} |
### INSTRUCTION
Who won that game on 24 July 2010?
### INPUT
CREATE TABLE table_name_26 (result VARCHAR, date VARCHAR)
### OUTPUT
SELECT result FROM table_name_26 WHERE date = "24 july 2010" | {
"input": "CREATE TABLE table_name_26 (result VARCHAR, date VARCHAR)",
"instruction": "Who won that game on 24 July 2010?",
"output": "SELECT result FROM table_name_26 WHERE date = \"24 july 2010\""
} |
### INSTRUCTION
What's the FCC info with a Frequency MHz thats smaller than 100.3 and a City of License as Lowville, NY?
### INPUT
CREATE TABLE table_name_85 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)
### OUTPUT
SELECT fcc_info FROM table_name_85 WHERE frequency_mhz < 100.3 AND city_of_license = "lowville, ny" | {
"input": "CREATE TABLE table_name_85 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)",
"instruction": "What's the FCC info with a Frequency MHz thats smaller than 100.3 and a City of License as Lowville, NY?",
"output": "SELECT fcc_info FROM table_name_85 WHERE frequency_mhz < 100.3 AND city_of_license = \"lowville, ny\""
} |
### INSTRUCTION
What is Date, when Opponents In The Final, is Maria-Fernanda Alves Stéphanie Dubois?
### INPUT
CREATE TABLE table_name_59 (date VARCHAR, opponents_in_the_final VARCHAR)
### OUTPUT
SELECT date FROM table_name_59 WHERE opponents_in_the_final = "maria-fernanda alves stéphanie dubois" | {
"input": "CREATE TABLE table_name_59 (date VARCHAR, opponents_in_the_final VARCHAR)",
"instruction": "What is Date, when Opponents In The Final, is Maria-Fernanda Alves Stéphanie Dubois?",
"output": "SELECT date FROM table_name_59 WHERE opponents_in_the_final = \"maria-fernanda alves stéphanie dubois\""
} |
### INSTRUCTION
How many schools named southern new hampshire university?
### INPUT
CREATE TABLE table_1969634_1 (enrollment VARCHAR, institution VARCHAR)
### OUTPUT
SELECT COUNT(enrollment) FROM table_1969634_1 WHERE institution = "Southern New Hampshire University" | {
"input": "CREATE TABLE table_1969634_1 (enrollment VARCHAR, institution VARCHAR)",
"instruction": "How many schools named southern new hampshire university?",
"output": "SELECT COUNT(enrollment) FROM table_1969634_1 WHERE institution = \"Southern New Hampshire University\""
} |
### INSTRUCTION
Name the leading scorer for 12 january 2008
### INPUT
CREATE TABLE table_name_40 (leading_scorer VARCHAR, date VARCHAR)
### OUTPUT
SELECT leading_scorer FROM table_name_40 WHERE date = "12 january 2008" | {
"input": "CREATE TABLE table_name_40 (leading_scorer VARCHAR, date VARCHAR)",
"instruction": "Name the leading scorer for 12 january 2008",
"output": "SELECT leading_scorer FROM table_name_40 WHERE date = \"12 january 2008\""
} |
### INSTRUCTION
How many different college/junior/club teams provided a player to the Washington Capitals NHL Team?
### INPUT
CREATE TABLE table_1013129_2 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
### OUTPUT
SELECT COUNT(college_junior_club_team) FROM table_1013129_2 WHERE nhl_team = "Washington Capitals" | {
"input": "CREATE TABLE table_1013129_2 (college_junior_club_team VARCHAR, nhl_team VARCHAR)",
"instruction": "How many different college/junior/club teams provided a player to the Washington Capitals NHL Team?",
"output": "SELECT COUNT(college_junior_club_team) FROM table_1013129_2 WHERE nhl_team = \"Washington Capitals\""
} |
### INSTRUCTION
Show the document name and the document date for all documents on project with details 'Graph Database project'.
### INPUT
CREATE TABLE Documents (project_id VARCHAR); CREATE TABLE projects (project_id VARCHAR, project_details VARCHAR)
### OUTPUT
SELECT document_name, document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'Graph Database project' | {
"input": "CREATE TABLE Documents (project_id VARCHAR); CREATE TABLE projects (project_id VARCHAR, project_details VARCHAR)",
"instruction": "Show the document name and the document date for all documents on project with details 'Graph Database project'.",
"output": "SELECT document_name, document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'Graph Database project'"
} |
### INSTRUCTION
what is the amount of profits in billions for companies with a market value of 204.9 billion?
### INPUT
CREATE TABLE table_1682026_6 (profits__billion_$_ VARCHAR, market_value__billion_$_ VARCHAR)
### OUTPUT
SELECT profits__billion_$_ FROM table_1682026_6 WHERE market_value__billion_$_ = "204.9" | {
"input": "CREATE TABLE table_1682026_6 (profits__billion_$_ VARCHAR, market_value__billion_$_ VARCHAR)",
"instruction": "what is the amount of profits in billions for companies with a market value of 204.9 billion? ",
"output": "SELECT profits__billion_$_ FROM table_1682026_6 WHERE market_value__billion_$_ = \"204.9\""
} |
### INSTRUCTION
Who is the chef at Lakes Bar and Grill?
### INPUT
CREATE TABLE table_name_21 (chef VARCHAR, restaurant_name VARCHAR)
### OUTPUT
SELECT chef FROM table_name_21 WHERE restaurant_name = "lakes bar and grill" | {
"input": "CREATE TABLE table_name_21 (chef VARCHAR, restaurant_name VARCHAR)",
"instruction": "Who is the chef at Lakes Bar and Grill?",
"output": "SELECT chef FROM table_name_21 WHERE restaurant_name = \"lakes bar and grill\""
} |
### INSTRUCTION
What general classification has david de la fuente as mountains classification, and thor hushovd as points classification?
### INPUT
CREATE TABLE table_name_45 (general_classification VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR)
### OUTPUT
SELECT general_classification FROM table_name_45 WHERE mountains_classification = "david de la fuente" AND points_classification = "thor hushovd" | {
"input": "CREATE TABLE table_name_45 (general_classification VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR)",
"instruction": "What general classification has david de la fuente as mountains classification, and thor hushovd as points classification?",
"output": "SELECT general_classification FROM table_name_45 WHERE mountains_classification = \"david de la fuente\" AND points_classification = \"thor hushovd\""
} |
### INSTRUCTION
List the director and producer when Nick Hewer and Saira Khan were starring.
### INPUT
CREATE TABLE table_24725951_1 (directed_and_produced_by VARCHAR, celebrities VARCHAR)
### OUTPUT
SELECT directed_and_produced_by FROM table_24725951_1 WHERE celebrities = "Nick Hewer and Saira Khan" | {
"input": "CREATE TABLE table_24725951_1 (directed_and_produced_by VARCHAR, celebrities VARCHAR)",
"instruction": "List the director and producer when Nick Hewer and Saira Khan were starring.",
"output": "SELECT directed_and_produced_by FROM table_24725951_1 WHERE celebrities = \"Nick Hewer and Saira Khan\""
} |
### INSTRUCTION
WHAT IS THE SIXTH WITH A SECOND OF WHITE LIES?
### INPUT
CREATE TABLE table_name_66 (sixth VARCHAR, second VARCHAR)
### OUTPUT
SELECT sixth FROM table_name_66 WHERE second = "white lies" | {
"input": "CREATE TABLE table_name_66 (sixth VARCHAR, second VARCHAR)",
"instruction": "WHAT IS THE SIXTH WITH A SECOND OF WHITE LIES?",
"output": "SELECT sixth FROM table_name_66 WHERE second = \"white lies\""
} |
### INSTRUCTION
What is Number of Contestants, when International Destinations is London Lisbon?
### INPUT
CREATE TABLE table_name_55 (number_of_contestants VARCHAR, international_destinations VARCHAR)
### OUTPUT
SELECT number_of_contestants FROM table_name_55 WHERE international_destinations = "london lisbon" | {
"input": "CREATE TABLE table_name_55 (number_of_contestants VARCHAR, international_destinations VARCHAR)",
"instruction": "What is Number of Contestants, when International Destinations is London Lisbon?",
"output": "SELECT number_of_contestants FROM table_name_55 WHERE international_destinations = \"london lisbon\""
} |
### INSTRUCTION
Find the states of the colleges that have students in the tryout who played in striker position.
### INPUT
CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR)
### OUTPUT
SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'striker' | {
"input": "CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR)",
"instruction": "Find the states of the colleges that have students in the tryout who played in striker position.",
"output": "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'striker'"
} |
### INSTRUCTION
What date was the Competition of europe/africa zone, group i, round robin, with a result of loss, in Antalya, and a Score of 1–2?
### INPUT
CREATE TABLE table_name_19 (date VARCHAR, score VARCHAR, location VARCHAR, competition VARCHAR, result VARCHAR)
### OUTPUT
SELECT date FROM table_name_19 WHERE competition = "europe/africa zone, group i, round robin" AND result = "loss" AND location = "antalya" AND score = "1–2" | {
"input": "CREATE TABLE table_name_19 (date VARCHAR, score VARCHAR, location VARCHAR, competition VARCHAR, result VARCHAR)",
"instruction": "What date was the Competition of europe/africa zone, group i, round robin, with a result of loss, in Antalya, and a Score of 1–2?",
"output": "SELECT date FROM table_name_19 WHERE competition = \"europe/africa zone, group i, round robin\" AND result = \"loss\" AND location = \"antalya\" AND score = \"1–2\""
} |
### INSTRUCTION
How many product # have episode 1?
### INPUT
CREATE TABLE table_2289806_1 (prod__number INTEGER, episode__number VARCHAR)
### OUTPUT
SELECT MAX(prod__number) FROM table_2289806_1 WHERE episode__number = 1 | {
"input": "CREATE TABLE table_2289806_1 (prod__number INTEGER, episode__number VARCHAR)",
"instruction": "How many product # have episode 1?",
"output": "SELECT MAX(prod__number) FROM table_2289806_1 WHERE episode__number = 1"
} |
### INSTRUCTION
Where did robert nkemdiche ‡ go to college
### INPUT
CREATE TABLE table_11677691_8 (college VARCHAR, player VARCHAR)
### OUTPUT
SELECT college FROM table_11677691_8 WHERE player = "Robert Nkemdiche ‡" | {
"input": "CREATE TABLE table_11677691_8 (college VARCHAR, player VARCHAR)",
"instruction": "Where did robert nkemdiche ‡ go to college",
"output": "SELECT college FROM table_11677691_8 WHERE player = \"Robert Nkemdiche ‡\""
} |
### INSTRUCTION
How many external (cm 2 ) are there for the .338 lapua magnum chambering?
### INPUT
CREATE TABLE table_26967904_2 (a_external__cm_2__ VARCHAR, chambering VARCHAR)
### OUTPUT
SELECT COUNT(a_external__cm_2__) FROM table_26967904_2 WHERE chambering = ".338 Lapua Magnum" | {
"input": "CREATE TABLE table_26967904_2 (a_external__cm_2__ VARCHAR, chambering VARCHAR)",
"instruction": "How many external (cm 2 ) are there for the .338 lapua magnum chambering?",
"output": "SELECT COUNT(a_external__cm_2__) FROM table_26967904_2 WHERE chambering = \".338 Lapua Magnum\""
} |
### INSTRUCTION
What was the Match Report for the Euro2008q at the Athens Olympic Stadium and a score of 1-2?
### INPUT
CREATE TABLE table_name_44 (match_report VARCHAR, score VARCHAR, competition VARCHAR, venue VARCHAR)
### OUTPUT
SELECT match_report FROM table_name_44 WHERE competition = "euro2008q" AND venue = "athens olympic stadium" AND score = "1-2" | {
"input": "CREATE TABLE table_name_44 (match_report VARCHAR, score VARCHAR, competition VARCHAR, venue VARCHAR)",
"instruction": "What was the Match Report for the Euro2008q at the Athens Olympic Stadium and a score of 1-2?",
"output": "SELECT match_report FROM table_name_44 WHERE competition = \"euro2008q\" AND venue = \"athens olympic stadium\" AND score = \"1-2\""
} |
### INSTRUCTION
Name the opponent for 3–6, 4–6, 6–1, 6–7 (7–9)
### INPUT
CREATE TABLE table_22853654_9 (opponent VARCHAR, result VARCHAR)
### OUTPUT
SELECT opponent FROM table_22853654_9 WHERE result = "3–6, 4–6, 6–1, 6–7 (7–9)" | {
"input": "CREATE TABLE table_22853654_9 (opponent VARCHAR, result VARCHAR)",
"instruction": "Name the opponent for 3–6, 4–6, 6–1, 6–7 (7–9)",
"output": "SELECT opponent FROM table_22853654_9 WHERE result = \"3–6, 4–6, 6–1, 6–7 (7–9)\""
} |
### INSTRUCTION
Which Type has an Incorporated in of netherlands, a Principal activities of airline, and a Company of transavia.com?
### INPUT
CREATE TABLE table_name_54 (type VARCHAR, company VARCHAR, incorporated_in VARCHAR, principal_activities VARCHAR)
### OUTPUT
SELECT type FROM table_name_54 WHERE incorporated_in = "netherlands" AND principal_activities = "airline" AND company = "transavia.com" | {
"input": "CREATE TABLE table_name_54 (type VARCHAR, company VARCHAR, incorporated_in VARCHAR, principal_activities VARCHAR)",
"instruction": "Which Type has an Incorporated in of netherlands, a Principal activities of airline, and a Company of transavia.com?",
"output": "SELECT type FROM table_name_54 WHERE incorporated_in = \"netherlands\" AND principal_activities = \"airline\" AND company = \"transavia.com\""
} |
### INSTRUCTION
When the driver is Juan Manuel Fangio and laps is less than 39, what is the highest grid?
### INPUT
CREATE TABLE table_name_44 (grid INTEGER, laps VARCHAR, driver VARCHAR)
### OUTPUT
SELECT MAX(grid) FROM table_name_44 WHERE laps < 39 AND driver = "juan manuel fangio" | {
"input": "CREATE TABLE table_name_44 (grid INTEGER, laps VARCHAR, driver VARCHAR)",
"instruction": "When the driver is Juan Manuel Fangio and laps is less than 39, what is the highest grid?",
"output": "SELECT MAX(grid) FROM table_name_44 WHERE laps < 39 AND driver = \"juan manuel fangio\""
} |
### INSTRUCTION
What is the Judaism percentage associated with Buddhism at 0.01% and Other at 0.13%?
### INPUT
CREATE TABLE table_name_15 (judaism VARCHAR, other VARCHAR, buddhism VARCHAR)
### OUTPUT
SELECT judaism FROM table_name_15 WHERE other = "0.13%" AND buddhism = "0.01%" | {
"input": "CREATE TABLE table_name_15 (judaism VARCHAR, other VARCHAR, buddhism VARCHAR)",
"instruction": "What is the Judaism percentage associated with Buddhism at 0.01% and Other at 0.13%?",
"output": "SELECT judaism FROM table_name_15 WHERE other = \"0.13%\" AND buddhism = \"0.01%\""
} |
### INSTRUCTION
List the email, cell phone and home phone of all the professionals.
### INPUT
CREATE TABLE professionals (email_address VARCHAR, cell_number VARCHAR, home_phone VARCHAR)
### OUTPUT
SELECT email_address, cell_number, home_phone FROM professionals | {
"input": "CREATE TABLE professionals (email_address VARCHAR, cell_number VARCHAR, home_phone VARCHAR)",
"instruction": "List the email, cell phone and home phone of all the professionals.",
"output": "SELECT email_address, cell_number, home_phone FROM professionals"
} |
### INSTRUCTION
What is the lowest Against, when Venue is "Twickenham , London", when Status is "Six Nations", and when Opposing Teams is "France"?
### INPUT
CREATE TABLE table_name_78 (against INTEGER, opposing_teams VARCHAR, venue VARCHAR, status VARCHAR)
### OUTPUT
SELECT MIN(against) FROM table_name_78 WHERE venue = "twickenham , london" AND status = "six nations" AND opposing_teams = "france" | {
"input": "CREATE TABLE table_name_78 (against INTEGER, opposing_teams VARCHAR, venue VARCHAR, status VARCHAR)",
"instruction": "What is the lowest Against, when Venue is \"Twickenham , London\", when Status is \"Six Nations\", and when Opposing Teams is \"France\"?",
"output": "SELECT MIN(against) FROM table_name_78 WHERE venue = \"twickenham , london\" AND status = \"six nations\" AND opposing_teams = \"france\""
} |
### INSTRUCTION
How many entries for start of stage occur in the year 2006?
### INPUT
CREATE TABLE table_275506_1 (start_of_stage VARCHAR, year VARCHAR)
### OUTPUT
SELECT COUNT(start_of_stage) FROM table_275506_1 WHERE year = "2006" | {
"input": "CREATE TABLE table_275506_1 (start_of_stage VARCHAR, year VARCHAR)",
"instruction": "How many entries for start of stage occur in the year 2006?",
"output": "SELECT COUNT(start_of_stage) FROM table_275506_1 WHERE year = \"2006\""
} |
### INSTRUCTION
What height has a floor count less than 25?
### INPUT
CREATE TABLE table_name_2 (height VARCHAR, floor_count INTEGER)
### OUTPUT
SELECT height FROM table_name_2 WHERE floor_count < 25 | {
"input": "CREATE TABLE table_name_2 (height VARCHAR, floor_count INTEGER)",
"instruction": "What height has a floor count less than 25?",
"output": "SELECT height FROM table_name_2 WHERE floor_count < 25"
} |
### INSTRUCTION
Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.
### INPUT
CREATE TABLE ship (lost_in_battle VARCHAR, location VARCHAR); CREATE TABLE battle (name VARCHAR, RESULT VARCHAR, bulgarian_commander VARCHAR); CREATE TABLE battle (name VARCHAR, result VARCHAR, bulgarian_commander VARCHAR, id VARCHAR)
### OUTPUT
SELECT name, RESULT, bulgarian_commander FROM battle EXCEPT SELECT T1.name, T1.result, T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = 'English Channel' | {
"input": "CREATE TABLE ship (lost_in_battle VARCHAR, location VARCHAR); CREATE TABLE battle (name VARCHAR, RESULT VARCHAR, bulgarian_commander VARCHAR); CREATE TABLE battle (name VARCHAR, result VARCHAR, bulgarian_commander VARCHAR, id VARCHAR)",
"instruction": "Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.",
"output": "SELECT name, RESULT, bulgarian_commander FROM battle EXCEPT SELECT T1.name, T1.result, T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = 'English Channel'"
} |
### INSTRUCTION
Which Constructor has the goodwood circuit?
### INPUT
CREATE TABLE table_name_53 (constructor VARCHAR, circuit VARCHAR)
### OUTPUT
SELECT constructor FROM table_name_53 WHERE circuit = "goodwood" | {
"input": "CREATE TABLE table_name_53 (constructor VARCHAR, circuit VARCHAR)",
"instruction": "Which Constructor has the goodwood circuit?",
"output": "SELECT constructor FROM table_name_53 WHERE circuit = \"goodwood\""
} |
### INSTRUCTION
What is the decision when the opponents are atlanta thrashers?
### INPUT
CREATE TABLE table_27501030_7 (decision VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT decision FROM table_27501030_7 WHERE opponent = "Atlanta Thrashers" | {
"input": "CREATE TABLE table_27501030_7 (decision VARCHAR, opponent VARCHAR)",
"instruction": "What is the decision when the opponents are atlanta thrashers?",
"output": "SELECT decision FROM table_27501030_7 WHERE opponent = \"Atlanta Thrashers\""
} |
### INSTRUCTION
The cylinder layout v8 is produced in what years?
### INPUT
CREATE TABLE table_26352332_4 (years_produced VARCHAR, cylinder_layout VARCHAR)
### OUTPUT
SELECT years_produced FROM table_26352332_4 WHERE cylinder_layout = "V8" | {
"input": "CREATE TABLE table_26352332_4 (years_produced VARCHAR, cylinder_layout VARCHAR)",
"instruction": "The cylinder layout v8 is produced in what years?",
"output": "SELECT years_produced FROM table_26352332_4 WHERE cylinder_layout = \"V8\""
} |
### INSTRUCTION
What is Name, when Status is Valid, when Authors is Maisch, when Location is Tanzania, and when Novelty is Gen Et Sp Nov?
### INPUT
CREATE TABLE table_name_24 (name VARCHAR, novelty VARCHAR, location VARCHAR, status VARCHAR, authors VARCHAR)
### OUTPUT
SELECT name FROM table_name_24 WHERE status = "valid" AND authors = "maisch" AND location = "tanzania" AND novelty = "gen et sp nov" | {
"input": "CREATE TABLE table_name_24 (name VARCHAR, novelty VARCHAR, location VARCHAR, status VARCHAR, authors VARCHAR)",
"instruction": "What is Name, when Status is Valid, when Authors is Maisch, when Location is Tanzania, and when Novelty is Gen Et Sp Nov?",
"output": "SELECT name FROM table_name_24 WHERE status = \"valid\" AND authors = \"maisch\" AND location = \"tanzania\" AND novelty = \"gen et sp nov\""
} |
### INSTRUCTION
What was the aggregate for Ricky Groves?
### INPUT
CREATE TABLE table_25931938_1 (aggregate INTEGER, celebrity VARCHAR)
### OUTPUT
SELECT MAX(aggregate) FROM table_25931938_1 WHERE celebrity = "Ricky Groves" | {
"input": "CREATE TABLE table_25931938_1 (aggregate INTEGER, celebrity VARCHAR)",
"instruction": "What was the aggregate for Ricky Groves?",
"output": "SELECT MAX(aggregate) FROM table_25931938_1 WHERE celebrity = \"Ricky Groves\""
} |
### INSTRUCTION
What is the ioc code when the country is listed as Singapore?
### INPUT
CREATE TABLE table_2879165_1 (ioc_code VARCHAR, country VARCHAR)
### OUTPUT
SELECT ioc_code FROM table_2879165_1 WHERE country = "Singapore" | {
"input": "CREATE TABLE table_2879165_1 (ioc_code VARCHAR, country VARCHAR)",
"instruction": "What is the ioc code when the country is listed as Singapore?",
"output": "SELECT ioc_code FROM table_2879165_1 WHERE country = \"Singapore\""
} |
### INSTRUCTION
Who was the home team when the record was 27–14–6?
### INPUT
CREATE TABLE table_name_15 (home VARCHAR, record VARCHAR)
### OUTPUT
SELECT home FROM table_name_15 WHERE record = "27–14–6" | {
"input": "CREATE TABLE table_name_15 (home VARCHAR, record VARCHAR)",
"instruction": "Who was the home team when the record was 27–14–6?",
"output": "SELECT home FROM table_name_15 WHERE record = \"27–14–6\""
} |
### INSTRUCTION
What was the score when Sheffield United was the home team?
### INPUT
CREATE TABLE table_name_37 (score VARCHAR, home_team VARCHAR)
### OUTPUT
SELECT score FROM table_name_37 WHERE home_team = "sheffield united" | {
"input": "CREATE TABLE table_name_37 (score VARCHAR, home_team VARCHAR)",
"instruction": "What was the score when Sheffield United was the home team?",
"output": "SELECT score FROM table_name_37 WHERE home_team = \"sheffield united\""
} |
### INSTRUCTION
How many members of club "Bootup Baltimore" are younger than 18?
### INPUT
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (stuid VARCHAR, age VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" AND t3.age < 18 | {
"input": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (stuid VARCHAR, age VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)",
"instruction": "How many members of club \"Bootup Baltimore\" are younger than 18?",
"output": "SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.age < 18"
} |
### INSTRUCTION
What is the total number of Years that has the Group, Method Fest Independent Film Festival?
### INPUT
CREATE TABLE table_name_45 (year VARCHAR, group VARCHAR)
### OUTPUT
SELECT COUNT(year) FROM table_name_45 WHERE group = "method fest independent film festival" | {
"input": "CREATE TABLE table_name_45 (year VARCHAR, group VARCHAR)",
"instruction": "What is the total number of Years that has the Group, Method Fest Independent Film Festival?",
"output": "SELECT COUNT(year) FROM table_name_45 WHERE group = \"method fest independent film festival\""
} |
### INSTRUCTION
Who had the high assist total on january 2?
### INPUT
CREATE TABLE table_17340355_7 (high_assists VARCHAR, date VARCHAR)
### OUTPUT
SELECT high_assists FROM table_17340355_7 WHERE date = "January 2" | {
"input": "CREATE TABLE table_17340355_7 (high_assists VARCHAR, date VARCHAR)",
"instruction": "Who had the high assist total on january 2?",
"output": "SELECT high_assists FROM table_17340355_7 WHERE date = \"January 2\""
} |
### INSTRUCTION
what's the country with es mulatto being 3.5%
### INPUT
CREATE TABLE table_1333612_1 (country VARCHAR, es_mulatto VARCHAR)
### OUTPUT
SELECT country FROM table_1333612_1 WHERE es_mulatto = "3.5%" | {
"input": "CREATE TABLE table_1333612_1 (country VARCHAR, es_mulatto VARCHAR)",
"instruction": "what's the country with es mulatto being 3.5%",
"output": "SELECT country FROM table_1333612_1 WHERE es_mulatto = \"3.5%\""
} |
### INSTRUCTION
What is every song title for the rock genre and Guitar Hero as original game and the artist is Queens of the Stone Age?
### INPUT
CREATE TABLE table_21500850_1 (song_title VARCHAR, artist VARCHAR, genre VARCHAR, original_game VARCHAR)
### OUTPUT
SELECT song_title FROM table_21500850_1 WHERE genre = "Rock" AND original_game = "Guitar Hero" AND artist = "Queens of the Stone Age" | {
"input": "CREATE TABLE table_21500850_1 (song_title VARCHAR, artist VARCHAR, genre VARCHAR, original_game VARCHAR)",
"instruction": "What is every song title for the rock genre and Guitar Hero as original game and the artist is Queens of the Stone Age?",
"output": "SELECT song_title FROM table_21500850_1 WHERE genre = \"Rock\" AND original_game = \"Guitar Hero\" AND artist = \"Queens of the Stone Age\""
} |
### INSTRUCTION
If the runner-up is [[|]] 151/8 (50.0 overs), what were the results?
### INPUT
CREATE TABLE table_22577693_1 (result VARCHAR, runner_up VARCHAR)
### OUTPUT
SELECT result FROM table_22577693_1 WHERE runner_up = "[[|]] 151/8 (50.0 overs)" | {
"input": "CREATE TABLE table_22577693_1 (result VARCHAR, runner_up VARCHAR)",
"instruction": "If the runner-up is [[|]] 151/8 (50.0 overs), what were the results?",
"output": "SELECT result FROM table_22577693_1 WHERE runner_up = \"[[|]] 151/8 (50.0 overs)\""
} |
### INSTRUCTION
What is the Music for Team anna guzik & rafał kamiński that has a Points Jury of 24 (7,5,6,6)?
### INPUT
CREATE TABLE table_name_35 (music VARCHAR, team VARCHAR, points_jury VARCHAR)
### OUTPUT
SELECT music FROM table_name_35 WHERE team = "anna guzik & rafał kamiński" AND points_jury = "24 (7,5,6,6)" | {
"input": "CREATE TABLE table_name_35 (music VARCHAR, team VARCHAR, points_jury VARCHAR)",
"instruction": "What is the Music for Team anna guzik & rafał kamiński that has a Points Jury of 24 (7,5,6,6)?",
"output": "SELECT music FROM table_name_35 WHERE team = \"anna guzik & rafał kamiński\" AND points_jury = \"24 (7,5,6,6)\""
} |
### INSTRUCTION
If the time on Tues Aug 24 is 20' 49.46 108.709mph, what is the time on Fri Aug 27?
### INPUT
CREATE TABLE table_26986076_1 (fri_27_aug VARCHAR, tues_24_aug VARCHAR)
### OUTPUT
SELECT fri_27_aug FROM table_26986076_1 WHERE tues_24_aug = "20' 49.46 108.709mph" | {
"input": "CREATE TABLE table_26986076_1 (fri_27_aug VARCHAR, tues_24_aug VARCHAR)",
"instruction": "If the time on Tues Aug 24 is 20' 49.46 108.709mph, what is the time on Fri Aug 27?",
"output": "SELECT fri_27_aug FROM table_26986076_1 WHERE tues_24_aug = \"20' 49.46 108.709mph\""
} |
### INSTRUCTION
Which DOB has Throws of r, and a Position of c, and a First of torey?
### INPUT
CREATE TABLE table_name_25 (dob VARCHAR, first VARCHAR, throws VARCHAR, position VARCHAR)
### OUTPUT
SELECT dob FROM table_name_25 WHERE throws = "r" AND position = "c" AND first = "torey" | {
"input": "CREATE TABLE table_name_25 (dob VARCHAR, first VARCHAR, throws VARCHAR, position VARCHAR)",
"instruction": "Which DOB has Throws of r, and a Position of c, and a First of torey?",
"output": "SELECT dob FROM table_name_25 WHERE throws = \"r\" AND position = \"c\" AND first = \"torey\""
} |
### INSTRUCTION
Which overall pick was traded to the Cleveland Browns?
### INPUT
CREATE TABLE table_10360823_1 (overall VARCHAR, college VARCHAR)
### OUTPUT
SELECT overall FROM table_10360823_1 WHERE college = "Traded to the Cleveland Browns" | {
"input": "CREATE TABLE table_10360823_1 (overall VARCHAR, college VARCHAR)",
"instruction": "Which overall pick was traded to the Cleveland Browns?",
"output": "SELECT overall FROM table_10360823_1 WHERE college = \"Traded to the Cleveland Browns\""
} |
### INSTRUCTION
How many different finales had the English title "Beyond the Realm of Conscience"?
### INPUT
CREATE TABLE table_19210674_1 (finale VARCHAR, english_title VARCHAR)
### OUTPUT
SELECT COUNT(finale) FROM table_19210674_1 WHERE english_title = "Beyond the Realm of Conscience" | {
"input": "CREATE TABLE table_19210674_1 (finale VARCHAR, english_title VARCHAR)",
"instruction": "How many different finales had the English title \"Beyond the Realm of Conscience\"?",
"output": "SELECT COUNT(finale) FROM table_19210674_1 WHERE english_title = \"Beyond the Realm of Conscience\""
} |
### INSTRUCTION
What team does Oliver Dobbins play for?
### INPUT
CREATE TABLE table_name_39 (team VARCHAR, player VARCHAR)
### OUTPUT
SELECT team FROM table_name_39 WHERE player = "oliver dobbins" | {
"input": "CREATE TABLE table_name_39 (team VARCHAR, player VARCHAR)",
"instruction": "What team does Oliver Dobbins play for?",
"output": "SELECT team FROM table_name_39 WHERE player = \"oliver dobbins\""
} |
### INSTRUCTION
What is the total enrollment for an affiliation of public, and was founded before 1866?
### INPUT
CREATE TABLE table_name_43 (enrollment VARCHAR, affiliation VARCHAR, founded VARCHAR)
### OUTPUT
SELECT COUNT(enrollment) FROM table_name_43 WHERE affiliation = "public" AND founded < 1866 | {
"input": "CREATE TABLE table_name_43 (enrollment VARCHAR, affiliation VARCHAR, founded VARCHAR)",
"instruction": "What is the total enrollment for an affiliation of public, and was founded before 1866?",
"output": "SELECT COUNT(enrollment) FROM table_name_43 WHERE affiliation = \"public\" AND founded < 1866"
} |
### INSTRUCTION
Tell me the right ascension for open cluster and NGC number more than 2547
### INPUT
CREATE TABLE table_name_59 (right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR)
### OUTPUT
SELECT right_ascension___j2000__ FROM table_name_59 WHERE object_type = "open cluster" AND ngc_number > 2547 | {
"input": "CREATE TABLE table_name_59 (right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR)",
"instruction": "Tell me the right ascension for open cluster and NGC number more than 2547",
"output": "SELECT right_ascension___j2000__ FROM table_name_59 WHERE object_type = \"open cluster\" AND ngc_number > 2547"
} |
### INSTRUCTION
How many matches did Carlos Kameni play in, who had an average larger than 1.27?
### INPUT
CREATE TABLE table_name_58 (matches INTEGER, goalkeeper VARCHAR, average VARCHAR)
### OUTPUT
SELECT SUM(matches) FROM table_name_58 WHERE goalkeeper = "carlos kameni" AND average > 1.27 | {
"input": "CREATE TABLE table_name_58 (matches INTEGER, goalkeeper VARCHAR, average VARCHAR)",
"instruction": "How many matches did Carlos Kameni play in, who had an average larger than 1.27?",
"output": "SELECT SUM(matches) FROM table_name_58 WHERE goalkeeper = \"carlos kameni\" AND average > 1.27"
} |
### INSTRUCTION
Where the fastest lap is Mike Rockenfeller, who is the winning driver?
### INPUT
CREATE TABLE table_26267607_2 (winning_driver VARCHAR, fastest_lap VARCHAR)
### OUTPUT
SELECT winning_driver FROM table_26267607_2 WHERE fastest_lap = "Mike Rockenfeller" | {
"input": "CREATE TABLE table_26267607_2 (winning_driver VARCHAR, fastest_lap VARCHAR)",
"instruction": "Where the fastest lap is Mike Rockenfeller, who is the winning driver?",
"output": "SELECT winning_driver FROM table_26267607_2 WHERE fastest_lap = \"Mike Rockenfeller\""
} |
### INSTRUCTION
What kind of IATA has an Airport of hamburg airport?
### INPUT
CREATE TABLE table_name_5 (iata VARCHAR, airport VARCHAR)
### OUTPUT
SELECT iata FROM table_name_5 WHERE airport = "hamburg airport" | {
"input": "CREATE TABLE table_name_5 (iata VARCHAR, airport VARCHAR)",
"instruction": "What kind of IATA has an Airport of hamburg airport?",
"output": "SELECT iata FROM table_name_5 WHERE airport = \"hamburg airport\""
} |
### INSTRUCTION
What is 18-49, when Weekly Winner is "Youth Counselor Justin Meece"?
### INPUT
CREATE TABLE table_name_45 (weekly_winner VARCHAR)
### OUTPUT
SELECT 18 AS _49 FROM table_name_45 WHERE weekly_winner = "youth counselor justin meece" | {
"input": "CREATE TABLE table_name_45 (weekly_winner VARCHAR)",
"instruction": "What is 18-49, when Weekly Winner is \"Youth Counselor Justin Meece\"?",
"output": "SELECT 18 AS _49 FROM table_name_45 WHERE weekly_winner = \"youth counselor justin meece\""
} |
### INSTRUCTION
What is the total amount of points for a position less than 7, 68 goals for, and less than 30 played?
### INPUT
CREATE TABLE table_name_59 (points VARCHAR, played VARCHAR, position VARCHAR, goals_for VARCHAR)
### OUTPUT
SELECT COUNT(points) FROM table_name_59 WHERE position < 7 AND goals_for = 68 AND played < 30 | {
"input": "CREATE TABLE table_name_59 (points VARCHAR, played VARCHAR, position VARCHAR, goals_for VARCHAR)",
"instruction": "What is the total amount of points for a position less than 7, 68 goals for, and less than 30 played?",
"output": "SELECT COUNT(points) FROM table_name_59 WHERE position < 7 AND goals_for = 68 AND played < 30"
} |
### INSTRUCTION
Who published Weird War Tales?
### INPUT
CREATE TABLE table_name_13 (publisher VARCHAR, title VARCHAR)
### OUTPUT
SELECT publisher FROM table_name_13 WHERE title = "weird war tales" | {
"input": "CREATE TABLE table_name_13 (publisher VARCHAR, title VARCHAR)",
"instruction": "Who published Weird War Tales?",
"output": "SELECT publisher FROM table_name_13 WHERE title = \"weird war tales\""
} |
### INSTRUCTION
How many bronzes had a rank of 10 and 0 gold?
### INPUT
CREATE TABLE table_name_9 (bronze INTEGER, rank VARCHAR, gold VARCHAR)
### OUTPUT
SELECT SUM(bronze) FROM table_name_9 WHERE rank = "10" AND gold < 0 | {
"input": "CREATE TABLE table_name_9 (bronze INTEGER, rank VARCHAR, gold VARCHAR)",
"instruction": "How many bronzes had a rank of 10 and 0 gold?",
"output": "SELECT SUM(bronze) FROM table_name_9 WHERE rank = \"10\" AND gold < 0"
} |
### INSTRUCTION
Find the market shares and names of furnitures which no any company is producing in our records.
### INPUT
CREATE TABLE furniture (Market_Rate VARCHAR, name VARCHAR, Furniture_ID VARCHAR); CREATE TABLE furniture_manufacte (Market_Rate VARCHAR, name VARCHAR, Furniture_ID VARCHAR)
### OUTPUT
SELECT Market_Rate, name FROM furniture WHERE NOT Furniture_ID IN (SELECT Furniture_ID FROM furniture_manufacte) | {
"input": "CREATE TABLE furniture (Market_Rate VARCHAR, name VARCHAR, Furniture_ID VARCHAR); CREATE TABLE furniture_manufacte (Market_Rate VARCHAR, name VARCHAR, Furniture_ID VARCHAR)",
"instruction": "Find the market shares and names of furnitures which no any company is producing in our records.",
"output": "SELECT Market_Rate, name FROM furniture WHERE NOT Furniture_ID IN (SELECT Furniture_ID FROM furniture_manufacte)"
} |
### INSTRUCTION
What is part 1 of the verb in class 4
### INPUT
CREATE TABLE table_1745843_10 (part_3 VARCHAR, class VARCHAR)
### OUTPUT
SELECT part_3 FROM table_1745843_10 WHERE class = "4" | {
"input": "CREATE TABLE table_1745843_10 (part_3 VARCHAR, class VARCHAR)",
"instruction": "What is part 1 of the verb in class 4",
"output": "SELECT part_3 FROM table_1745843_10 WHERE class = \"4\""
} |
### INSTRUCTION
Show names of actors in descending order of the year their musical is awarded.
### INPUT
CREATE TABLE musical (Musical_ID VARCHAR, Year VARCHAR); CREATE TABLE actor (Name VARCHAR, Musical_ID VARCHAR)
### OUTPUT
SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID ORDER BY T2.Year DESC | {
"input": "CREATE TABLE musical (Musical_ID VARCHAR, Year VARCHAR); CREATE TABLE actor (Name VARCHAR, Musical_ID VARCHAR)",
"instruction": "Show names of actors in descending order of the year their musical is awarded.",
"output": "SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID ORDER BY T2.Year DESC"
} |
### INSTRUCTION
What is the sum of the weeks during which the Redskins played against the Houston Oilers and had more than 54,582 fans in attendance?
### INPUT
CREATE TABLE table_name_97 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
### OUTPUT
SELECT SUM(week) FROM table_name_97 WHERE opponent = "houston oilers" AND attendance > 54 OFFSET 582 | {
"input": "CREATE TABLE table_name_97 (week INTEGER, opponent VARCHAR, attendance VARCHAR)",
"instruction": "What is the sum of the weeks during which the Redskins played against the Houston Oilers and had more than 54,582 fans in attendance?",
"output": "SELECT SUM(week) FROM table_name_97 WHERE opponent = \"houston oilers\" AND attendance > 54 OFFSET 582"
} |
### INSTRUCTION
What Class to 1928 has the Quantity smaller than 440 and Seats of 29/29?
### INPUT
CREATE TABLE table_name_16 (class_to_1928 VARCHAR, quantity VARCHAR, seats VARCHAR)
### OUTPUT
SELECT class_to_1928 FROM table_name_16 WHERE quantity < 440 AND seats = "29/29" | {
"input": "CREATE TABLE table_name_16 (class_to_1928 VARCHAR, quantity VARCHAR, seats VARCHAR)",
"instruction": "What Class to 1928 has the Quantity smaller than 440 and Seats of 29/29?",
"output": "SELECT class_to_1928 FROM table_name_16 WHERE quantity < 440 AND seats = \"29/29\""
} |
### INSTRUCTION
what's the grand finalist where winners is collingwood
### INPUT
CREATE TABLE table_1139835_3 (grand_finalist VARCHAR, winners VARCHAR)
### OUTPUT
SELECT grand_finalist FROM table_1139835_3 WHERE winners = "Collingwood" | {
"input": "CREATE TABLE table_1139835_3 (grand_finalist VARCHAR, winners VARCHAR)",
"instruction": " what's the grand finalist where winners is collingwood",
"output": "SELECT grand_finalist FROM table_1139835_3 WHERE winners = \"Collingwood\""
} |
### INSTRUCTION
Which Country has a To par smaller than 7, and a Total of 148?
### INPUT
CREATE TABLE table_name_38 (country VARCHAR, to_par VARCHAR, total VARCHAR)
### OUTPUT
SELECT country FROM table_name_38 WHERE to_par < 7 AND total = 148 | {
"input": "CREATE TABLE table_name_38 (country VARCHAR, to_par VARCHAR, total VARCHAR)",
"instruction": "Which Country has a To par smaller than 7, and a Total of 148?",
"output": "SELECT country FROM table_name_38 WHERE to_par < 7 AND total = 148"
} |
### INSTRUCTION
Who wrote season 10
### INPUT
CREATE TABLE table_17355743_1 (written_by VARCHAR, season__number VARCHAR)
### OUTPUT
SELECT written_by FROM table_17355743_1 WHERE season__number = 10 | {
"input": "CREATE TABLE table_17355743_1 (written_by VARCHAR, season__number VARCHAR)",
"instruction": "Who wrote season 10",
"output": "SELECT written_by FROM table_17355743_1 WHERE season__number = 10"
} |
### INSTRUCTION
What is the score of the Home team of geelong?
### INPUT
CREATE TABLE table_name_74 (home_team VARCHAR)
### OUTPUT
SELECT home_team AS score FROM table_name_74 WHERE home_team = "geelong" | {
"input": "CREATE TABLE table_name_74 (home_team VARCHAR)",
"instruction": "What is the score of the Home team of geelong?",
"output": "SELECT home_team AS score FROM table_name_74 WHERE home_team = \"geelong\""
} |
### INSTRUCTION
What is the average Against, when Status is "Five Nations", and when Date is "16/03/1996"?
### INPUT
CREATE TABLE table_name_28 (against INTEGER, status VARCHAR, date VARCHAR)
### OUTPUT
SELECT AVG(against) FROM table_name_28 WHERE status = "five nations" AND date = "16/03/1996" | {
"input": "CREATE TABLE table_name_28 (against INTEGER, status VARCHAR, date VARCHAR)",
"instruction": "What is the average Against, when Status is \"Five Nations\", and when Date is \"16/03/1996\"?",
"output": "SELECT AVG(against) FROM table_name_28 WHERE status = \"five nations\" AND date = \"16/03/1996\""
} |
### INSTRUCTION
What is the p max (bar) in the pistol where the chambering is .45 ACP?
### INPUT
CREATE TABLE table_26967904_1 (p_max___bar__ INTEGER, chambering VARCHAR)
### OUTPUT
SELECT MAX(p_max___bar__) FROM table_26967904_1 WHERE chambering = ".45 ACP" | {
"input": "CREATE TABLE table_26967904_1 (p_max___bar__ INTEGER, chambering VARCHAR)",
"instruction": "What is the p max (bar) in the pistol where the chambering is .45 ACP?",
"output": "SELECT MAX(p_max___bar__) FROM table_26967904_1 WHERE chambering = \".45 ACP\""
} |
### INSTRUCTION
What country had a paste publication in 2009?
### INPUT
CREATE TABLE table_name_9 (country VARCHAR, year VARCHAR, publication VARCHAR)
### OUTPUT
SELECT country FROM table_name_9 WHERE year = 2009 AND publication = "paste" | {
"input": "CREATE TABLE table_name_9 (country VARCHAR, year VARCHAR, publication VARCHAR)",
"instruction": "What country had a paste publication in 2009?",
"output": "SELECT country FROM table_name_9 WHERE year = 2009 AND publication = \"paste\""
} |
### INSTRUCTION
What is the least amount of points when there were less than 4 losses and less than 16 against?
### INPUT
CREATE TABLE table_name_43 (points INTEGER, lost VARCHAR, against VARCHAR)
### OUTPUT
SELECT MIN(points) FROM table_name_43 WHERE lost < 4 AND against < 16 | {
"input": "CREATE TABLE table_name_43 (points INTEGER, lost VARCHAR, against VARCHAR)",
"instruction": "What is the least amount of points when there were less than 4 losses and less than 16 against?",
"output": "SELECT MIN(points) FROM table_name_43 WHERE lost < 4 AND against < 16"
} |
### INSTRUCTION
What position for the western michigan product picked ahead of 312?
### INPUT
CREATE TABLE table_name_16 (position VARCHAR, pick VARCHAR, school_club_team VARCHAR)
### OUTPUT
SELECT position FROM table_name_16 WHERE pick < 312 AND school_club_team = "western michigan" | {
"input": "CREATE TABLE table_name_16 (position VARCHAR, pick VARCHAR, school_club_team VARCHAR)",
"instruction": "What position for the western michigan product picked ahead of 312?",
"output": "SELECT position FROM table_name_16 WHERE pick < 312 AND school_club_team = \"western michigan\""
} |
### INSTRUCTION
What was the tier versus Annalisa bona?
### INPUT
CREATE TABLE table_name_59 (tier VARCHAR, opponent_in_the_final VARCHAR)
### OUTPUT
SELECT tier FROM table_name_59 WHERE opponent_in_the_final = "annalisa bona" | {
"input": "CREATE TABLE table_name_59 (tier VARCHAR, opponent_in_the_final VARCHAR)",
"instruction": "What was the tier versus Annalisa bona?",
"output": "SELECT tier FROM table_name_59 WHERE opponent_in_the_final = \"annalisa bona\""
} |
### INSTRUCTION
What are the start date and end date of the booking that has booked the product named 'Book collection A'?
### INPUT
CREATE TABLE bookings (booking_start_date VARCHAR, booking_end_date VARCHAR, booking_id VARCHAR); CREATE TABLE products_booked (product_id VARCHAR, booking_id VARCHAR); CREATE TABLE Products_for_hire (product_id VARCHAR, product_name VARCHAR)
### OUTPUT
SELECT T3.booking_start_date, T3.booking_end_date FROM Products_for_hire AS T1 JOIN products_booked AS T2 ON T1.product_id = T2.product_id JOIN bookings AS T3 ON T2.booking_id = T3.booking_id WHERE T1.product_name = 'Book collection A' | {
"input": "CREATE TABLE bookings (booking_start_date VARCHAR, booking_end_date VARCHAR, booking_id VARCHAR); CREATE TABLE products_booked (product_id VARCHAR, booking_id VARCHAR); CREATE TABLE Products_for_hire (product_id VARCHAR, product_name VARCHAR)",
"instruction": "What are the start date and end date of the booking that has booked the product named 'Book collection A'?",
"output": "SELECT T3.booking_start_date, T3.booking_end_date FROM Products_for_hire AS T1 JOIN products_booked AS T2 ON T1.product_id = T2.product_id JOIN bookings AS T3 ON T2.booking_id = T3.booking_id WHERE T1.product_name = 'Book collection A'"
} |
### INSTRUCTION
What are the maximum and minimum resolution of songs whose duration is 3 minutes?
### INPUT
CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (resolution INTEGER, f_id VARCHAR)
### OUTPUT
SELECT MAX(T2.resolution), MIN(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE "3:%" | {
"input": "CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (resolution INTEGER, f_id VARCHAR)",
"instruction": "What are the maximum and minimum resolution of songs whose duration is 3 minutes?",
"output": "SELECT MAX(T2.resolution), MIN(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE \"3:%\""
} |
### INSTRUCTION
What Episode has a Rating of 1.8, and Viewers (m) smaller than 2.73?
### INPUT
CREATE TABLE table_name_35 (episode VARCHAR, rating VARCHAR, viewers__m_ VARCHAR)
### OUTPUT
SELECT episode FROM table_name_35 WHERE rating = "1.8" AND viewers__m_ < 2.73 | {
"input": "CREATE TABLE table_name_35 (episode VARCHAR, rating VARCHAR, viewers__m_ VARCHAR)",
"instruction": "What Episode has a Rating of 1.8, and Viewers (m) smaller than 2.73?",
"output": "SELECT episode FROM table_name_35 WHERE rating = \"1.8\" AND viewers__m_ < 2.73"
} |
### INSTRUCTION
Which title has tracks smaller than 7 with translation of an island?
### INPUT
CREATE TABLE table_name_67 (title VARCHAR, track VARCHAR, translation VARCHAR)
### OUTPUT
SELECT title FROM table_name_67 WHERE track < 7 AND translation = "an island" | {
"input": "CREATE TABLE table_name_67 (title VARCHAR, track VARCHAR, translation VARCHAR)",
"instruction": "Which title has tracks smaller than 7 with translation of an island?",
"output": "SELECT title FROM table_name_67 WHERE track < 7 AND translation = \"an island\""
} |
### INSTRUCTION
What is the minimum D (max) when the Morse Taper number is less than 0?
### INPUT
CREATE TABLE table_name_47 (d__max_ INTEGER, morse_taper_number INTEGER)
### OUTPUT
SELECT MIN(d__max_) FROM table_name_47 WHERE morse_taper_number < 0 | {
"input": "CREATE TABLE table_name_47 (d__max_ INTEGER, morse_taper_number INTEGER)",
"instruction": "What is the minimum D (max) when the Morse Taper number is less than 0?",
"output": "SELECT MIN(d__max_) FROM table_name_47 WHERE morse_taper_number < 0"
} |
### INSTRUCTION
Who is the second member with first member Sir Rowland Hill, BT, and a conservative second party?
### INPUT
CREATE TABLE table_name_3 (second_member VARCHAR, first_member VARCHAR, second_party VARCHAR)
### OUTPUT
SELECT second_member FROM table_name_3 WHERE first_member = "sir rowland hill, bt" AND second_party = "conservative" | {
"input": "CREATE TABLE table_name_3 (second_member VARCHAR, first_member VARCHAR, second_party VARCHAR)",
"instruction": "Who is the second member with first member Sir Rowland Hill, BT, and a conservative second party?",
"output": "SELECT second_member FROM table_name_3 WHERE first_member = \"sir rowland hill, bt\" AND second_party = \"conservative\""
} |
### INSTRUCTION
What is Status, when Newspaper/Magazine is Al-Thawra?
### INPUT
CREATE TABLE table_name_24 (status VARCHAR, newspaper_magazine VARCHAR)
### OUTPUT
SELECT status FROM table_name_24 WHERE newspaper_magazine = "al-thawra" | {
"input": "CREATE TABLE table_name_24 (status VARCHAR, newspaper_magazine VARCHAR)",
"instruction": "What is Status, when Newspaper/Magazine is Al-Thawra?",
"output": "SELECT status FROM table_name_24 WHERE newspaper_magazine = \"al-thawra\""
} |
### INSTRUCTION
Who is the lowest ranked player from the United States that has less than 3 Wins?
### INPUT
CREATE TABLE table_name_59 (rank INTEGER, country VARCHAR, wins VARCHAR)
### OUTPUT
SELECT MIN(rank) FROM table_name_59 WHERE country = "united states" AND wins < 3 | {
"input": "CREATE TABLE table_name_59 (rank INTEGER, country VARCHAR, wins VARCHAR)",
"instruction": "Who is the lowest ranked player from the United States that has less than 3 Wins?",
"output": "SELECT MIN(rank) FROM table_name_59 WHERE country = \"united states\" AND wins < 3"
} |
### INSTRUCTION
Find the number of routes operated by American Airlines.
### INPUT
CREATE TABLE routes (alid VARCHAR); CREATE TABLE airlines (alid VARCHAR, name VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines' | {
"input": "CREATE TABLE routes (alid VARCHAR); CREATE TABLE airlines (alid VARCHAR, name VARCHAR)",
"instruction": "Find the number of routes operated by American Airlines.",
"output": "SELECT COUNT(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines'"
} |
### INSTRUCTION
What is the lowest population density of Strakonice (st) with more than 112 settlements?
### INPUT
CREATE TABLE table_name_66 (pop_dens INTEGER, district VARCHAR, noof_settlements VARCHAR)
### OUTPUT
SELECT MIN(pop_dens) FROM table_name_66 WHERE district = "strakonice (st)" AND noof_settlements > 112 | {
"input": "CREATE TABLE table_name_66 (pop_dens INTEGER, district VARCHAR, noof_settlements VARCHAR)",
"instruction": "What is the lowest population density of Strakonice (st) with more than 112 settlements?",
"output": "SELECT MIN(pop_dens) FROM table_name_66 WHERE district = \"strakonice (st)\" AND noof_settlements > 112"
} |
### INSTRUCTION
Name the mountains classification for rabobank and damiano cunego
### INPUT
CREATE TABLE table_29077342_19 (mountains_classification VARCHAR, team_classification VARCHAR, general_classification VARCHAR)
### OUTPUT
SELECT mountains_classification FROM table_29077342_19 WHERE team_classification = "Rabobank" AND general_classification = "Damiano Cunego" | {
"input": "CREATE TABLE table_29077342_19 (mountains_classification VARCHAR, team_classification VARCHAR, general_classification VARCHAR)",
"instruction": "Name the mountains classification for rabobank and damiano cunego",
"output": "SELECT mountains_classification FROM table_29077342_19 WHERE team_classification = \"Rabobank\" AND general_classification = \"Damiano Cunego\""
} |
### INSTRUCTION
What is the score of the away team who played home team Hawthorn?
### INPUT
CREATE TABLE table_name_21 (away_team VARCHAR, home_team VARCHAR)
### OUTPUT
SELECT away_team AS score FROM table_name_21 WHERE home_team = "hawthorn" | {
"input": "CREATE TABLE table_name_21 (away_team VARCHAR, home_team VARCHAR)",
"instruction": "What is the score of the away team who played home team Hawthorn?",
"output": "SELECT away_team AS score FROM table_name_21 WHERE home_team = \"hawthorn\""
} |
### INSTRUCTION
Which Population has an Altitude (mslm) larger than 98, and a Density (inhabitants/km 2) larger than 5869, and a Rank of 1st?
### INPUT
CREATE TABLE table_name_22 (population INTEGER, rank VARCHAR, altitude__mslm_ VARCHAR, density__inhabitants_km_2__ VARCHAR)
### OUTPUT
SELECT SUM(population) FROM table_name_22 WHERE altitude__mslm_ > 98 AND density__inhabitants_km_2__ > 5869 AND rank = "1st" | {
"input": "CREATE TABLE table_name_22 (population INTEGER, rank VARCHAR, altitude__mslm_ VARCHAR, density__inhabitants_km_2__ VARCHAR)",
"instruction": "Which Population has an Altitude (mslm) larger than 98, and a Density (inhabitants/km 2) larger than 5869, and a Rank of 1st?",
"output": "SELECT SUM(population) FROM table_name_22 WHERE altitude__mslm_ > 98 AND density__inhabitants_km_2__ > 5869 AND rank = \"1st\""
} |
### INSTRUCTION
Which surface has a Date of 22 august 2006?
### INPUT
CREATE TABLE table_name_57 (surface VARCHAR, date VARCHAR)
### OUTPUT
SELECT surface FROM table_name_57 WHERE date = "22 august 2006" | {
"input": "CREATE TABLE table_name_57 (surface VARCHAR, date VARCHAR)",
"instruction": "Which surface has a Date of 22 august 2006?",
"output": "SELECT surface FROM table_name_57 WHERE date = \"22 august 2006\""
} |
### INSTRUCTION
What is the namesake of Ayashe at a longitude less than 270.7, latitude more than -47.1, and a diameter less than 7.2?
### INPUT
CREATE TABLE table_name_87 (named VARCHAR, name VARCHAR, diameter__km_ VARCHAR, longitude VARCHAR, latitude VARCHAR)
### OUTPUT
SELECT named AS after FROM table_name_87 WHERE longitude < 270.7 AND latitude > -47.1 AND diameter__km_ < 7.2 AND name = "ayashe" | {
"input": "CREATE TABLE table_name_87 (named VARCHAR, name VARCHAR, diameter__km_ VARCHAR, longitude VARCHAR, latitude VARCHAR)",
"instruction": "What is the namesake of Ayashe at a longitude less than 270.7, latitude more than -47.1, and a diameter less than 7.2?",
"output": "SELECT named AS after FROM table_name_87 WHERE longitude < 270.7 AND latitude > -47.1 AND diameter__km_ < 7.2 AND name = \"ayashe\""
} |
### INSTRUCTION
give the location of subtrate coproporphyrinogen iii
### INPUT
CREATE TABLE table_182499_1 (location VARCHAR, substrate VARCHAR)
### OUTPUT
SELECT location FROM table_182499_1 WHERE substrate = "Coproporphyrinogen III" | {
"input": "CREATE TABLE table_182499_1 (location VARCHAR, substrate VARCHAR)",
"instruction": "give the location of subtrate coproporphyrinogen iii",
"output": "SELECT location FROM table_182499_1 WHERE substrate = \"Coproporphyrinogen III\""
} |
### INSTRUCTION
What is the earliest year the new york jets won at harvard stadium?
### INPUT
CREATE TABLE table_name_35 (year INTEGER, winner VARCHAR, location VARCHAR)
### OUTPUT
SELECT MIN(year) FROM table_name_35 WHERE winner = "new york jets" AND location = "harvard stadium" | {
"input": "CREATE TABLE table_name_35 (year INTEGER, winner VARCHAR, location VARCHAR)",
"instruction": "What is the earliest year the new york jets won at harvard stadium?",
"output": "SELECT MIN(year) FROM table_name_35 WHERE winner = \"new york jets\" AND location = \"harvard stadium\""
} |
### INSTRUCTION
How many opponents were there at the game with 64,087 people in attendance?
### INPUT
CREATE TABLE table_11465521_2 (opponent VARCHAR, attendance VARCHAR)
### OUTPUT
SELECT COUNT(opponent) FROM table_11465521_2 WHERE attendance = "64,087" | {
"input": "CREATE TABLE table_11465521_2 (opponent VARCHAR, attendance VARCHAR)",
"instruction": "How many opponents were there at the game with 64,087 people in attendance?",
"output": "SELECT COUNT(opponent) FROM table_11465521_2 WHERE attendance = \"64,087\""
} |
### INSTRUCTION
How many Seats 2005 has a Percentage in/de-crease of 50.0%, and a Governorate of dhi qar governorate, and a In/de-creased by larger than 6?
### INPUT
CREATE TABLE table_name_14 (seats_2005 INTEGER, in_de_creased_by VARCHAR, percentage_in_de_crease VARCHAR, governorate VARCHAR)
### OUTPUT
SELECT SUM(seats_2005) FROM table_name_14 WHERE percentage_in_de_crease = "50.0%" AND governorate = "dhi qar governorate" AND in_de_creased_by > 6 | {
"input": "CREATE TABLE table_name_14 (seats_2005 INTEGER, in_de_creased_by VARCHAR, percentage_in_de_crease VARCHAR, governorate VARCHAR)",
"instruction": "How many Seats 2005 has a Percentage in/de-crease of 50.0%, and a Governorate of dhi qar governorate, and a In/de-creased by larger than 6?",
"output": "SELECT SUM(seats_2005) FROM table_name_14 WHERE percentage_in_de_crease = \"50.0%\" AND governorate = \"dhi qar governorate\" AND in_de_creased_by > 6"
} |
### INSTRUCTION
When 21 is the number of assists how many sets of blocks are there?
### INPUT
CREATE TABLE table_25016555_5 (blocks VARCHAR, assists VARCHAR)
### OUTPUT
SELECT COUNT(blocks) FROM table_25016555_5 WHERE assists = 21 | {
"input": "CREATE TABLE table_25016555_5 (blocks VARCHAR, assists VARCHAR)",
"instruction": "When 21 is the number of assists how many sets of blocks are there?",
"output": "SELECT COUNT(blocks) FROM table_25016555_5 WHERE assists = 21"
} |
### INSTRUCTION
What was the margin of victory when the winning score was −14 (63-67-73-67=270)?
### INPUT
CREATE TABLE table_name_2 (margin_of_victory VARCHAR, winning_score VARCHAR)
### OUTPUT
SELECT margin_of_victory FROM table_name_2 WHERE winning_score = −14(63 - 67 - 73 - 67 = 270) | {
"input": "CREATE TABLE table_name_2 (margin_of_victory VARCHAR, winning_score VARCHAR)",
"instruction": "What was the margin of victory when the winning score was −14 (63-67-73-67=270)?",
"output": "SELECT margin_of_victory FROM table_name_2 WHERE winning_score = −14(63 - 67 - 73 - 67 = 270)"
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.