text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
Which of the R. Epp, has J Thiessen of Tjoatj?
### INPUT
CREATE TABLE table_name_90 (r_epp VARCHAR, j_thiessen VARCHAR)
### OUTPUT
SELECT r_epp FROM table_name_90 WHERE j_thiessen = "tjoatj" | {
"input": "CREATE TABLE table_name_90 (r_epp VARCHAR, j_thiessen VARCHAR)",
"instruction": "Which of the R. Epp, has J Thiessen of Tjoatj?",
"output": "SELECT r_epp FROM table_name_90 WHERE j_thiessen = \"tjoatj\""
} |
### INSTRUCTION
Which Tonnage has a Fate of sunk, and Deaths smaller than 17, and a Date of 16 november 1940?
### INPUT
CREATE TABLE table_name_11 (tonnage___grt__ VARCHAR, date VARCHAR, fate VARCHAR, deaths VARCHAR)
### OUTPUT
SELECT tonnage___grt__ FROM table_name_11 WHERE fate = "sunk" AND deaths < 17 AND date = "16 november 1940" | {
"input": "CREATE TABLE table_name_11 (tonnage___grt__ VARCHAR, date VARCHAR, fate VARCHAR, deaths VARCHAR)",
"instruction": "Which Tonnage has a Fate of sunk, and Deaths smaller than 17, and a Date of 16 november 1940?",
"output": "SELECT tonnage___grt__ FROM table_name_11 WHERE fate = \"sunk\" AND deaths < 17 AND date = \"16 november 1940\""
} |
### INSTRUCTION
What is the name of the stone found in Andhra Pradesh, India?
### INPUT
CREATE TABLE table_name_13 (name_of_the_stone__sila_ VARCHAR, name_of_the_state_where_found_in_india VARCHAR)
### OUTPUT
SELECT name_of_the_stone__sila_ FROM table_name_13 WHERE name_of_the_state_where_found_in_india = "andhra pradesh" | {
"input": "CREATE TABLE table_name_13 (name_of_the_stone__sila_ VARCHAR, name_of_the_state_where_found_in_india VARCHAR)",
"instruction": "What is the name of the stone found in Andhra Pradesh, India?",
"output": "SELECT name_of_the_stone__sila_ FROM table_name_13 WHERE name_of_the_state_where_found_in_india = \"andhra pradesh\""
} |
### INSTRUCTION
What location did david mccann receive a siver and morgan fox win the gold?
### INPUT
CREATE TABLE table_name_38 (location VARCHAR, silver VARCHAR, gold VARCHAR)
### OUTPUT
SELECT location FROM table_name_38 WHERE silver = "david mccann" AND gold = "morgan fox" | {
"input": "CREATE TABLE table_name_38 (location VARCHAR, silver VARCHAR, gold VARCHAR)",
"instruction": "What location did david mccann receive a siver and morgan fox win the gold?",
"output": "SELECT location FROM table_name_38 WHERE silver = \"david mccann\" AND gold = \"morgan fox\""
} |
### INSTRUCTION
What is the maximum download speed for the Internet premium 3G plan?
### INPUT
CREATE TABLE table_name_5 (maximum_download_speed__kbps VARCHAR, technology VARCHAR, plan_name VARCHAR)
### OUTPUT
SELECT maximum_download_speed__kbps FROM table_name_5 WHERE technology = "3g" AND plan_name = "internet premium" | {
"input": "CREATE TABLE table_name_5 (maximum_download_speed__kbps VARCHAR, technology VARCHAR, plan_name VARCHAR)",
"instruction": "What is the maximum download speed for the Internet premium 3G plan?",
"output": "SELECT maximum_download_speed__kbps FROM table_name_5 WHERE technology = \"3g\" AND plan_name = \"internet premium\""
} |
### INSTRUCTION
Find names of all students who took some course and got A or C.
### INPUT
CREATE TABLE enroll (stu_num VARCHAR, enroll_grade VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_lname VARCHAR, stu_num VARCHAR)
### OUTPUT
SELECT T1.stu_fname, T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'C' OR T2.enroll_grade = 'A' | {
"input": "CREATE TABLE enroll (stu_num VARCHAR, enroll_grade VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_lname VARCHAR, stu_num VARCHAR)",
"instruction": "Find names of all students who took some course and got A or C.",
"output": "SELECT T1.stu_fname, T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'C' OR T2.enroll_grade = 'A'"
} |
### INSTRUCTION
What is the largest number of races when there are less than 6 podiums, the series is the formula renault 2.0 eurocup, and there are more than 0 wins?
### INPUT
CREATE TABLE table_name_5 (races INTEGER, wins VARCHAR, podiums VARCHAR, series VARCHAR)
### OUTPUT
SELECT MAX(races) FROM table_name_5 WHERE podiums < 6 AND series = "formula renault 2.0 eurocup" AND wins > 0 | {
"input": "CREATE TABLE table_name_5 (races INTEGER, wins VARCHAR, podiums VARCHAR, series VARCHAR)",
"instruction": "What is the largest number of races when there are less than 6 podiums, the series is the formula renault 2.0 eurocup, and there are more than 0 wins?",
"output": "SELECT MAX(races) FROM table_name_5 WHERE podiums < 6 AND series = \"formula renault 2.0 eurocup\" AND wins > 0"
} |
### INSTRUCTION
Find the name and city of the airport which is the source for the most number of flight routes.
### INPUT
CREATE TABLE airports (name VARCHAR, city VARCHAR, apid VARCHAR); CREATE TABLE routes (src_apid VARCHAR)
### OUTPUT
SELECT T1.name, T1.city, T2.src_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T2.src_apid ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE airports (name VARCHAR, city VARCHAR, apid VARCHAR); CREATE TABLE routes (src_apid VARCHAR)",
"instruction": "Find the name and city of the airport which is the source for the most number of flight routes.",
"output": "SELECT T1.name, T1.city, T2.src_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T2.src_apid ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What is the frequency of the processor released at $383, with a sSpec of sr15f(c0)?
### INPUT
CREATE TABLE table_name_14 (frequency VARCHAR, release_price___usd__ VARCHAR, sspec_number VARCHAR)
### OUTPUT
SELECT frequency FROM table_name_14 WHERE release_price___usd__ = "$383" AND sspec_number = "sr15f(c0)" | {
"input": "CREATE TABLE table_name_14 (frequency VARCHAR, release_price___usd__ VARCHAR, sspec_number VARCHAR)",
"instruction": "What is the frequency of the processor released at $383, with a sSpec of sr15f(c0)?",
"output": "SELECT frequency FROM table_name_14 WHERE release_price___usd__ = \"$383\" AND sspec_number = \"sr15f(c0)\""
} |
### INSTRUCTION
What was the Match Report for the Euro2008q at the Athens Olympic Stadium on November 17, 2007?
### INPUT
CREATE TABLE table_name_89 (match_report VARCHAR, date VARCHAR, competition VARCHAR, venue VARCHAR)
### OUTPUT
SELECT match_report FROM table_name_89 WHERE competition = "euro2008q" AND venue = "athens olympic stadium" AND date = "november 17, 2007" | {
"input": "CREATE TABLE table_name_89 (match_report VARCHAR, date VARCHAR, competition VARCHAR, venue VARCHAR)",
"instruction": "What was the Match Report for the Euro2008q at the Athens Olympic Stadium on November 17, 2007?",
"output": "SELECT match_report FROM table_name_89 WHERE competition = \"euro2008q\" AND venue = \"athens olympic stadium\" AND date = \"november 17, 2007\""
} |
### INSTRUCTION
Tell me the capacity for city park stadium
### INPUT
CREATE TABLE table_name_15 (capacity VARCHAR, stadium VARCHAR)
### OUTPUT
SELECT capacity FROM table_name_15 WHERE stadium = "city park stadium" | {
"input": "CREATE TABLE table_name_15 (capacity VARCHAR, stadium VARCHAR)",
"instruction": "Tell me the capacity for city park stadium",
"output": "SELECT capacity FROM table_name_15 WHERE stadium = \"city park stadium\""
} |
### INSTRUCTION
What is the highest Population, when Per Capita Income is "$17,168", and when Number of Households is greater than 3,287?
### INPUT
CREATE TABLE table_name_86 (population INTEGER, per_capita_income VARCHAR, number_of_households VARCHAR)
### OUTPUT
SELECT MAX(population) FROM table_name_86 WHERE per_capita_income = "$17,168" AND number_of_households > 3 OFFSET 287 | {
"input": "CREATE TABLE table_name_86 (population INTEGER, per_capita_income VARCHAR, number_of_households VARCHAR)",
"instruction": "What is the highest Population, when Per Capita Income is \"$17,168\", and when Number of Households is greater than 3,287?",
"output": "SELECT MAX(population) FROM table_name_86 WHERE per_capita_income = \"$17,168\" AND number_of_households > 3 OFFSET 287"
} |
### INSTRUCTION
Which 2008 has an Airport of julius nyerere international airport?
### INPUT
CREATE TABLE table_name_74 (airport VARCHAR)
### OUTPUT
SELECT AVG(2008) FROM table_name_74 WHERE airport = "julius nyerere international airport" | {
"input": "CREATE TABLE table_name_74 (airport VARCHAR)",
"instruction": "Which 2008 has an Airport of julius nyerere international airport?",
"output": "SELECT AVG(2008) FROM table_name_74 WHERE airport = \"julius nyerere international airport\""
} |
### INSTRUCTION
For the game played at the Boston Garden with a score of 118-110, what is the opposing team's record?
### INPUT
CREATE TABLE table_name_68 (record VARCHAR, location VARCHAR, score VARCHAR)
### OUTPUT
SELECT record FROM table_name_68 WHERE location = "boston garden" AND score = "118-110" | {
"input": "CREATE TABLE table_name_68 (record VARCHAR, location VARCHAR, score VARCHAR)",
"instruction": "For the game played at the Boston Garden with a score of 118-110, what is the opposing team's record?",
"output": "SELECT record FROM table_name_68 WHERE location = \"boston garden\" AND score = \"118-110\""
} |
### INSTRUCTION
What is the customer id with most number of cards, and how many does he have?
### INPUT
CREATE TABLE Customers_cards (customer_id VARCHAR)
### OUTPUT
SELECT customer_id, COUNT(*) FROM Customers_cards GROUP BY customer_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Customers_cards (customer_id VARCHAR)",
"instruction": "What is the customer id with most number of cards, and how many does he have?",
"output": "SELECT customer_id, COUNT(*) FROM Customers_cards GROUP BY customer_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Which ANSI code has a GEO ID larger than 3809927140, and a Water (sqmi) smaller than 0.492, and a Pop (2010) of 37, and a Latitude larger than 48.245979?
### INPUT
CREATE TABLE table_name_48 (ansi_code INTEGER, latitude VARCHAR, pop__2010_ VARCHAR, geo_id VARCHAR, water__sqmi_ VARCHAR)
### OUTPUT
SELECT MIN(ansi_code) FROM table_name_48 WHERE geo_id > 3809927140 AND water__sqmi_ < 0.492 AND pop__2010_ = 37 AND latitude > 48.245979 | {
"input": "CREATE TABLE table_name_48 (ansi_code INTEGER, latitude VARCHAR, pop__2010_ VARCHAR, geo_id VARCHAR, water__sqmi_ VARCHAR)",
"instruction": "Which ANSI code has a GEO ID larger than 3809927140, and a Water (sqmi) smaller than 0.492, and a Pop (2010) of 37, and a Latitude larger than 48.245979?",
"output": "SELECT MIN(ansi_code) FROM table_name_48 WHERE geo_id > 3809927140 AND water__sqmi_ < 0.492 AND pop__2010_ = 37 AND latitude > 48.245979"
} |
### INSTRUCTION
Which Pick has a Position of offensive guard, a Player of reggie mckenzie, and a Round larger than 2?
### INPUT
CREATE TABLE table_name_96 (pick VARCHAR, round VARCHAR, position VARCHAR, player VARCHAR)
### OUTPUT
SELECT COUNT(pick) FROM table_name_96 WHERE position = "offensive guard" AND player = "reggie mckenzie" AND round > 2 | {
"input": "CREATE TABLE table_name_96 (pick VARCHAR, round VARCHAR, position VARCHAR, player VARCHAR)",
"instruction": "Which Pick has a Position of offensive guard, a Player of reggie mckenzie, and a Round larger than 2?",
"output": "SELECT COUNT(pick) FROM table_name_96 WHERE position = \"offensive guard\" AND player = \"reggie mckenzie\" AND round > 2"
} |
### INSTRUCTION
What was the overall draft number of Tom Fleming, a wide receiver?
### INPUT
CREATE TABLE table_name_28 (overall VARCHAR, position VARCHAR, player VARCHAR)
### OUTPUT
SELECT COUNT(overall) FROM table_name_28 WHERE position = "wide receiver" AND player = "tom fleming" | {
"input": "CREATE TABLE table_name_28 (overall VARCHAR, position VARCHAR, player VARCHAR)",
"instruction": "What was the overall draft number of Tom Fleming, a wide receiver?",
"output": "SELECT COUNT(overall) FROM table_name_28 WHERE position = \"wide receiver\" AND player = \"tom fleming\""
} |
### INSTRUCTION
Find the name of the project for which a scientist whose name contains ‘Smith’ is assigned to.
### INPUT
CREATE TABLE scientists (SSN VARCHAR, name VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR); CREATE TABLE projects (name VARCHAR, code VARCHAR)
### OUTPUT
SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name LIKE '%Smith%' | {
"input": "CREATE TABLE scientists (SSN VARCHAR, name VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR); CREATE TABLE projects (name VARCHAR, code VARCHAR)",
"instruction": "Find the name of the project for which a scientist whose name contains ‘Smith’ is assigned to.",
"output": "SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name LIKE '%Smith%'"
} |
### INSTRUCTION
Which To par has a Country of australia, and a Year(s) won of 1990?
### INPUT
CREATE TABLE table_name_42 (to_par INTEGER, country VARCHAR, year_s__won VARCHAR)
### OUTPUT
SELECT MIN(to_par) FROM table_name_42 WHERE country = "australia" AND year_s__won = "1990" | {
"input": "CREATE TABLE table_name_42 (to_par INTEGER, country VARCHAR, year_s__won VARCHAR)",
"instruction": "Which To par has a Country of australia, and a Year(s) won of 1990?",
"output": "SELECT MIN(to_par) FROM table_name_42 WHERE country = \"australia\" AND year_s__won = \"1990\""
} |
### INSTRUCTION
Name the 2009 for wta premier mandatory tournaments
### INPUT
CREATE TABLE table_name_99 (tournament VARCHAR)
### OUTPUT
SELECT 2009 FROM table_name_99 WHERE tournament = "wta premier mandatory tournaments" | {
"input": "CREATE TABLE table_name_99 (tournament VARCHAR)",
"instruction": "Name the 2009 for wta premier mandatory tournaments",
"output": "SELECT 2009 FROM table_name_99 WHERE tournament = \"wta premier mandatory tournaments\""
} |
### INSTRUCTION
Which part fault requires the most number of skills to fix? List part id and name.
### INPUT
CREATE TABLE Part_Faults (part_id VARCHAR, part_fault_id VARCHAR); CREATE TABLE Skills_Required_To_Fix (part_fault_id VARCHAR); CREATE TABLE Parts (part_id VARCHAR, part_name VARCHAR)
### OUTPUT
SELECT T1.part_id, T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id = T3.part_fault_id GROUP BY T1.part_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Part_Faults (part_id VARCHAR, part_fault_id VARCHAR); CREATE TABLE Skills_Required_To_Fix (part_fault_id VARCHAR); CREATE TABLE Parts (part_id VARCHAR, part_name VARCHAR)",
"instruction": "Which part fault requires the most number of skills to fix? List part id and name.",
"output": "SELECT T1.part_id, T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id = T3.part_fault_id GROUP BY T1.part_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Who was the LMP2 winner when the LMP1 winning team was No. 20 Oryx Dyson Racing?
### INPUT
CREATE TABLE table_27743641_2 (lmp2_winning_driver VARCHAR, lmp1_winning_team VARCHAR)
### OUTPUT
SELECT lmp2_winning_driver FROM table_27743641_2 WHERE lmp1_winning_team = "No. 20 Oryx Dyson Racing" | {
"input": "CREATE TABLE table_27743641_2 (lmp2_winning_driver VARCHAR, lmp1_winning_team VARCHAR)",
"instruction": "Who was the LMP2 winner when the LMP1 winning team was No. 20 Oryx Dyson Racing?",
"output": "SELECT lmp2_winning_driver FROM table_27743641_2 WHERE lmp1_winning_team = \"No. 20 Oryx Dyson Racing\""
} |
### INSTRUCTION
What is the margin for the Masters Tournament (2) championship?
### INPUT
CREATE TABLE table_name_34 (margin VARCHAR, championship VARCHAR)
### OUTPUT
SELECT margin FROM table_name_34 WHERE championship = "masters tournament (2)" | {
"input": "CREATE TABLE table_name_34 (margin VARCHAR, championship VARCHAR)",
"instruction": "What is the margin for the Masters Tournament (2) championship?",
"output": "SELECT margin FROM table_name_34 WHERE championship = \"masters tournament (2)\""
} |
### INSTRUCTION
What is the nationality of the elector withe the Cardinalatial order and title of Cardinal-Priest of Ss. XII Apostoli?
### INPUT
CREATE TABLE table_name_49 (nationality VARCHAR, cardinalatial_order_and_title VARCHAR)
### OUTPUT
SELECT nationality FROM table_name_49 WHERE cardinalatial_order_and_title = "cardinal-priest of ss. xii apostoli" | {
"input": "CREATE TABLE table_name_49 (nationality VARCHAR, cardinalatial_order_and_title VARCHAR)",
"instruction": "What is the nationality of the elector withe the Cardinalatial order and title of Cardinal-Priest of Ss. XII Apostoli?",
"output": "SELECT nationality FROM table_name_49 WHERE cardinalatial_order_and_title = \"cardinal-priest of ss. xii apostoli\""
} |
### INSTRUCTION
How many years did lin gaoyuan wu jiaji play mens doubles?
### INPUT
CREATE TABLE table_28138035_20 (year_location VARCHAR, mens_doubles VARCHAR)
### OUTPUT
SELECT COUNT(year_location) FROM table_28138035_20 WHERE mens_doubles = "Lin Gaoyuan Wu Jiaji" | {
"input": "CREATE TABLE table_28138035_20 (year_location VARCHAR, mens_doubles VARCHAR)",
"instruction": "How many years did lin gaoyuan wu jiaji play mens doubles?",
"output": "SELECT COUNT(year_location) FROM table_28138035_20 WHERE mens_doubles = \"Lin Gaoyuan Wu Jiaji\""
} |
### INSTRUCTION
How many touchdowns were made where field goals were less than 0?
### INPUT
CREATE TABLE table_name_81 (touchdowns INTEGER, field_goals INTEGER)
### OUTPUT
SELECT SUM(touchdowns) FROM table_name_81 WHERE field_goals < 0 | {
"input": "CREATE TABLE table_name_81 (touchdowns INTEGER, field_goals INTEGER)",
"instruction": "How many touchdowns were made where field goals were less than 0?",
"output": "SELECT SUM(touchdowns) FROM table_name_81 WHERE field_goals < 0"
} |
### INSTRUCTION
Who are the customers that had more than 1 policy? List the customer details and id.
### INPUT
CREATE TABLE Customers (customer_details VARCHAR, customer_id VARCHAR, Customer_id VARCHAR); CREATE TABLE Customer_Policies (Customer_id VARCHAR)
### OUTPUT
SELECT T1.customer_details, T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.Customer_id GROUP BY T1.customer_id HAVING COUNT(*) > 1 | {
"input": "CREATE TABLE Customers (customer_details VARCHAR, customer_id VARCHAR, Customer_id VARCHAR); CREATE TABLE Customer_Policies (Customer_id VARCHAR)",
"instruction": "Who are the customers that had more than 1 policy? List the customer details and id.",
"output": "SELECT T1.customer_details, T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.Customer_id GROUP BY T1.customer_id HAVING COUNT(*) > 1"
} |
### INSTRUCTION
Which 2005 has a Tournament of grand slam tournaments?
### INPUT
CREATE TABLE table_name_52 (tournament VARCHAR)
### OUTPUT
SELECT 2005 FROM table_name_52 WHERE tournament = "grand slam tournaments" | {
"input": "CREATE TABLE table_name_52 (tournament VARCHAR)",
"instruction": "Which 2005 has a Tournament of grand slam tournaments?",
"output": "SELECT 2005 FROM table_name_52 WHERE tournament = \"grand slam tournaments\""
} |
### INSTRUCTION
What is the Record of the game with an Attendance of 70,604?
### INPUT
CREATE TABLE table_name_92 (record VARCHAR, attendance VARCHAR)
### OUTPUT
SELECT record FROM table_name_92 WHERE attendance = "70,604" | {
"input": "CREATE TABLE table_name_92 (record VARCHAR, attendance VARCHAR)",
"instruction": "What is the Record of the game with an Attendance of 70,604?",
"output": "SELECT record FROM table_name_92 WHERE attendance = \"70,604\""
} |
### INSTRUCTION
What is the number of points for the Entrant of wolfgang seidel and a Cooper t45 chassis later than 1960?
### INPUT
CREATE TABLE table_name_74 (points VARCHAR, year VARCHAR, entrant VARCHAR, chassis VARCHAR)
### OUTPUT
SELECT COUNT(points) FROM table_name_74 WHERE entrant = "wolfgang seidel" AND chassis = "cooper t45" AND year > 1960 | {
"input": "CREATE TABLE table_name_74 (points VARCHAR, year VARCHAR, entrant VARCHAR, chassis VARCHAR)",
"instruction": "What is the number of points for the Entrant of wolfgang seidel and a Cooper t45 chassis later than 1960?",
"output": "SELECT COUNT(points) FROM table_name_74 WHERE entrant = \"wolfgang seidel\" AND chassis = \"cooper t45\" AND year > 1960"
} |
### INSTRUCTION
How many directors of episode 55?
### INPUT
CREATE TABLE table_25716397_1 (directed_by VARCHAR, series_no VARCHAR)
### OUTPUT
SELECT COUNT(directed_by) FROM table_25716397_1 WHERE series_no = 55 | {
"input": "CREATE TABLE table_25716397_1 (directed_by VARCHAR, series_no VARCHAR)",
"instruction": "How many directors of episode 55?",
"output": "SELECT COUNT(directed_by) FROM table_25716397_1 WHERE series_no = 55"
} |
### INSTRUCTION
List each language and the number of TV Channels using it.
### INPUT
CREATE TABLE TV_Channel (LANGUAGE VARCHAR)
### OUTPUT
SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE | {
"input": "CREATE TABLE TV_Channel (LANGUAGE VARCHAR)",
"instruction": "List each language and the number of TV Channels using it.",
"output": "SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE"
} |
### INSTRUCTION
Where is the kap shui mun bridge?
### INPUT
CREATE TABLE table_name_35 (location VARCHAR, name VARCHAR)
### OUTPUT
SELECT location FROM table_name_35 WHERE name = "kap shui mun bridge" | {
"input": "CREATE TABLE table_name_35 (location VARCHAR, name VARCHAR)",
"instruction": "Where is the kap shui mun bridge?",
"output": "SELECT location FROM table_name_35 WHERE name = \"kap shui mun bridge\""
} |
### INSTRUCTION
What is the area of the village with a census ranking of 1,442 of 5,008 and a population less than 1,778?
### INPUT
CREATE TABLE table_name_92 (area_km_2 INTEGER, population VARCHAR, status VARCHAR, census_ranking VARCHAR)
### OUTPUT
SELECT MAX(area_km_2) FROM table_name_92 WHERE status = "village" AND census_ranking = "1,442 of 5,008" AND population < 1 OFFSET 778 | {
"input": "CREATE TABLE table_name_92 (area_km_2 INTEGER, population VARCHAR, status VARCHAR, census_ranking VARCHAR)",
"instruction": "What is the area of the village with a census ranking of 1,442 of 5,008 and a population less than 1,778?",
"output": "SELECT MAX(area_km_2) FROM table_name_92 WHERE status = \"village\" AND census_ranking = \"1,442 of 5,008\" AND population < 1 OFFSET 778"
} |
### INSTRUCTION
Show the number of buildings with a height above the average or a number of floors above the average.
### INPUT
CREATE TABLE building (height_feet INTEGER, floors INTEGER)
### OUTPUT
SELECT COUNT(*) FROM building WHERE height_feet > (SELECT AVG(height_feet) FROM building) OR floors > (SELECT AVG(floors) FROM building) | {
"input": "CREATE TABLE building (height_feet INTEGER, floors INTEGER)",
"instruction": "Show the number of buildings with a height above the average or a number of floors above the average.",
"output": "SELECT COUNT(*) FROM building WHERE height_feet > (SELECT AVG(height_feet) FROM building) OR floors > (SELECT AVG(floors) FROM building)"
} |
### INSTRUCTION
At Time Warner Cable Arena 12,096, what was the high points?
### INPUT
CREATE TABLE table_name_85 (high_points VARCHAR, location_attendance VARCHAR)
### OUTPUT
SELECT high_points FROM table_name_85 WHERE location_attendance = "time warner cable arena 12,096" | {
"input": "CREATE TABLE table_name_85 (high_points VARCHAR, location_attendance VARCHAR)",
"instruction": "At Time Warner Cable Arena 12,096, what was the high points?",
"output": "SELECT high_points FROM table_name_85 WHERE location_attendance = \"time warner cable arena 12,096\""
} |
### INSTRUCTION
On how many locations is there a church named Askrova Bedehuskapell, built in 1957?
### INPUT
CREATE TABLE table_178381_1 (location_of_the_church VARCHAR, year_built VARCHAR, church_name VARCHAR)
### OUTPUT
SELECT COUNT(location_of_the_church) FROM table_178381_1 WHERE year_built = "1957" AND church_name = "Askrova bedehuskapell" | {
"input": "CREATE TABLE table_178381_1 (location_of_the_church VARCHAR, year_built VARCHAR, church_name VARCHAR)",
"instruction": "On how many locations is there a church named Askrova Bedehuskapell, built in 1957?",
"output": "SELECT COUNT(location_of_the_church) FROM table_178381_1 WHERE year_built = \"1957\" AND church_name = \"Askrova bedehuskapell\""
} |
### INSTRUCTION
Which team drafted the player from the HC Lada Togliatti (Russia)?
### INPUT
CREATE TABLE table_2840500_5 (nhl_team VARCHAR, college_junior_club_team VARCHAR)
### OUTPUT
SELECT nhl_team FROM table_2840500_5 WHERE college_junior_club_team = "HC Lada Togliatti (Russia)" | {
"input": "CREATE TABLE table_2840500_5 (nhl_team VARCHAR, college_junior_club_team VARCHAR)",
"instruction": "Which team drafted the player from the HC Lada Togliatti (Russia)?",
"output": "SELECT nhl_team FROM table_2840500_5 WHERE college_junior_club_team = \"HC Lada Togliatti (Russia)\""
} |
### INSTRUCTION
Which # of Episodes has a Mole of craig slike?
### INPUT
CREATE TABLE table_name_55 (_number_of_episodes INTEGER, mole VARCHAR)
### OUTPUT
SELECT MIN(_number_of_episodes) FROM table_name_55 WHERE mole = "craig slike" | {
"input": "CREATE TABLE table_name_55 (_number_of_episodes INTEGER, mole VARCHAR)",
"instruction": "Which # of Episodes has a Mole of craig slike?",
"output": "SELECT MIN(_number_of_episodes) FROM table_name_55 WHERE mole = \"craig slike\""
} |
### INSTRUCTION
What are the most goals listed when Jack Trehey was the player, with the listed debut year of 1902, games less than 1?
### INPUT
CREATE TABLE table_name_29 (goals INTEGER, games VARCHAR, debut_year VARCHAR, player VARCHAR)
### OUTPUT
SELECT MAX(goals) FROM table_name_29 WHERE debut_year = 1902 AND player = "jack trehey" AND games < 1 | {
"input": "CREATE TABLE table_name_29 (goals INTEGER, games VARCHAR, debut_year VARCHAR, player VARCHAR)",
"instruction": "What are the most goals listed when Jack Trehey was the player, with the listed debut year of 1902, games less than 1?",
"output": "SELECT MAX(goals) FROM table_name_29 WHERE debut_year = 1902 AND player = \"jack trehey\" AND games < 1"
} |
### INSTRUCTION
What was the high assists from a high points of dorell wright (20)?
### INPUT
CREATE TABLE table_name_98 (high_assists VARCHAR, high_points VARCHAR)
### OUTPUT
SELECT high_assists FROM table_name_98 WHERE high_points = "dorell wright (20)" | {
"input": "CREATE TABLE table_name_98 (high_assists VARCHAR, high_points VARCHAR)",
"instruction": "What was the high assists from a high points of dorell wright (20)?",
"output": "SELECT high_assists FROM table_name_98 WHERE high_points = \"dorell wright (20)\""
} |
### INSTRUCTION
What is the date of the match against John McEnroe with a Score of 3–6, 6–3, 2–6?
### INPUT
CREATE TABLE table_name_73 (date VARCHAR, opponent VARCHAR, score VARCHAR)
### OUTPUT
SELECT date FROM table_name_73 WHERE opponent = "john mcenroe" AND score = "3–6, 6–3, 2–6" | {
"input": "CREATE TABLE table_name_73 (date VARCHAR, opponent VARCHAR, score VARCHAR)",
"instruction": "What is the date of the match against John McEnroe with a Score of 3–6, 6–3, 2–6?",
"output": "SELECT date FROM table_name_73 WHERE opponent = \"john mcenroe\" AND score = \"3–6, 6–3, 2–6\""
} |
### INSTRUCTION
What is the col (m) of the Barurumea Ridge peak?
### INPUT
CREATE TABLE table_18946749_2 (col__m_ INTEGER, peak VARCHAR)
### OUTPUT
SELECT MAX(col__m_) FROM table_18946749_2 WHERE peak = "Barurumea Ridge" | {
"input": "CREATE TABLE table_18946749_2 (col__m_ INTEGER, peak VARCHAR)",
"instruction": "What is the col (m) of the Barurumea Ridge peak? ",
"output": "SELECT MAX(col__m_) FROM table_18946749_2 WHERE peak = \"Barurumea Ridge\""
} |
### INSTRUCTION
How many women doubles teams competed in the same year as when Jamie van Hooijdonk competed in men singles?
### INPUT
CREATE TABLE table_12232843_1 (womens_doubles VARCHAR, mens_singles VARCHAR)
### OUTPUT
SELECT COUNT(womens_doubles) FROM table_12232843_1 WHERE mens_singles = "Jamie van Hooijdonk" | {
"input": "CREATE TABLE table_12232843_1 (womens_doubles VARCHAR, mens_singles VARCHAR)",
"instruction": "How many women doubles teams competed in the same year as when Jamie van Hooijdonk competed in men singles?",
"output": "SELECT COUNT(womens_doubles) FROM table_12232843_1 WHERE mens_singles = \"Jamie van Hooijdonk\""
} |
### INSTRUCTION
What is the Set 2 with a Total with 45–12?
### INPUT
CREATE TABLE table_name_42 (set_2 VARCHAR, total VARCHAR)
### OUTPUT
SELECT set_2 FROM table_name_42 WHERE total = "45–12" | {
"input": "CREATE TABLE table_name_42 (set_2 VARCHAR, total VARCHAR)",
"instruction": "What is the Set 2 with a Total with 45–12?",
"output": "SELECT set_2 FROM table_name_42 WHERE total = \"45–12\""
} |
### INSTRUCTION
What team had less than 291 total points whole having 76 bronze and over 21 gold?
### INPUT
CREATE TABLE table_name_67 (silver INTEGER, total VARCHAR, gold VARCHAR, bronze VARCHAR)
### OUTPUT
SELECT SUM(silver) FROM table_name_67 WHERE gold > 21 AND bronze = 76 AND total < 291 | {
"input": "CREATE TABLE table_name_67 (silver INTEGER, total VARCHAR, gold VARCHAR, bronze VARCHAR)",
"instruction": "What team had less than 291 total points whole having 76 bronze and over 21 gold?",
"output": "SELECT SUM(silver) FROM table_name_67 WHERE gold > 21 AND bronze = 76 AND total < 291"
} |
### INSTRUCTION
For the game on 13 December 1975 with Halifax Town as the away team what was the score?
### INPUT
CREATE TABLE table_name_4 (score VARCHAR, date VARCHAR, away_team VARCHAR)
### OUTPUT
SELECT score FROM table_name_4 WHERE date = "13 december 1975" AND away_team = "halifax town" | {
"input": "CREATE TABLE table_name_4 (score VARCHAR, date VARCHAR, away_team VARCHAR)",
"instruction": "For the game on 13 December 1975 with Halifax Town as the away team what was the score?",
"output": "SELECT score FROM table_name_4 WHERE date = \"13 december 1975\" AND away_team = \"halifax town\""
} |
### INSTRUCTION
What event was Sun Yue the alternate and wang bingyu(3rd) the skip?
### INPUT
CREATE TABLE table_name_75 (event VARCHAR, alternate VARCHAR, skip VARCHAR)
### OUTPUT
SELECT event FROM table_name_75 WHERE alternate = "sun yue" AND skip = "wang bingyu(3rd)" | {
"input": "CREATE TABLE table_name_75 (event VARCHAR, alternate VARCHAR, skip VARCHAR)",
"instruction": "What event was Sun Yue the alternate and wang bingyu(3rd) the skip?",
"output": "SELECT event FROM table_name_75 WHERE alternate = \"sun yue\" AND skip = \"wang bingyu(3rd)\""
} |
### INSTRUCTION
Who was the developer of Resident Evil 4?
### INPUT
CREATE TABLE table_name_4 (developer_s_ VARCHAR, game VARCHAR)
### OUTPUT
SELECT developer_s_ FROM table_name_4 WHERE game = "resident evil 4" | {
"input": "CREATE TABLE table_name_4 (developer_s_ VARCHAR, game VARCHAR)",
"instruction": "Who was the developer of Resident Evil 4?",
"output": "SELECT developer_s_ FROM table_name_4 WHERE game = \"resident evil 4\""
} |
### INSTRUCTION
What packages offer the Cartello Promozionale Sky HD service?
### INPUT
CREATE TABLE table_15887683_3 (package_option VARCHAR, television_service VARCHAR)
### OUTPUT
SELECT package_option FROM table_15887683_3 WHERE television_service = "Cartello promozionale Sky HD" | {
"input": "CREATE TABLE table_15887683_3 (package_option VARCHAR, television_service VARCHAR)",
"instruction": "What packages offer the Cartello Promozionale Sky HD service?",
"output": "SELECT package_option FROM table_15887683_3 WHERE television_service = \"Cartello promozionale Sky HD\""
} |
### INSTRUCTION
Show the nations that have both hosts older than 45 and hosts younger than 35.
### INPUT
CREATE TABLE HOST (Nationality VARCHAR, Age INTEGER)
### OUTPUT
SELECT Nationality FROM HOST WHERE Age > 45 INTERSECT SELECT Nationality FROM HOST WHERE Age < 35 | {
"input": "CREATE TABLE HOST (Nationality VARCHAR, Age INTEGER)",
"instruction": "Show the nations that have both hosts older than 45 and hosts younger than 35.",
"output": "SELECT Nationality FROM HOST WHERE Age > 45 INTERSECT SELECT Nationality FROM HOST WHERE Age < 35"
} |
### INSTRUCTION
What is the highest total with a t12 finish?
### INPUT
CREATE TABLE table_name_61 (total INTEGER, finish VARCHAR)
### OUTPUT
SELECT MAX(total) FROM table_name_61 WHERE finish = "t12" | {
"input": "CREATE TABLE table_name_61 (total INTEGER, finish VARCHAR)",
"instruction": "What is the highest total with a t12 finish?",
"output": "SELECT MAX(total) FROM table_name_61 WHERE finish = \"t12\""
} |
### INSTRUCTION
What was the Result of the game on December 14, 1986 after Week 11?
### INPUT
CREATE TABLE table_name_10 (result VARCHAR, week VARCHAR, date VARCHAR)
### OUTPUT
SELECT result FROM table_name_10 WHERE week > 11 AND date = "december 14, 1986" | {
"input": "CREATE TABLE table_name_10 (result VARCHAR, week VARCHAR, date VARCHAR)",
"instruction": "What was the Result of the game on December 14, 1986 after Week 11?",
"output": "SELECT result FROM table_name_10 WHERE week > 11 AND date = \"december 14, 1986\""
} |
### INSTRUCTION
What is the course title of the prerequisite of course Mobile Computing?
### INPUT
CREATE TABLE course (title VARCHAR, course_id VARCHAR); CREATE TABLE prereq (prereq_id VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR)
### OUTPUT
SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'Mobile Computing') | {
"input": "CREATE TABLE course (title VARCHAR, course_id VARCHAR); CREATE TABLE prereq (prereq_id VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR)",
"instruction": "What is the course title of the prerequisite of course Mobile Computing?",
"output": "SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'Mobile Computing')"
} |
### INSTRUCTION
What is the home team score when the away team is Essendon?
### INPUT
CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR)
### OUTPUT
SELECT home_team AS score FROM table_name_77 WHERE away_team = "essendon" | {
"input": "CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR)",
"instruction": "What is the home team score when the away team is Essendon?",
"output": "SELECT home_team AS score FROM table_name_77 WHERE away_team = \"essendon\""
} |
### INSTRUCTION
What is the largest pick by the Baltimore Colts in a round later than 10?
### INPUT
CREATE TABLE table_name_27 (pick INTEGER, nfl_club VARCHAR, round VARCHAR)
### OUTPUT
SELECT MAX(pick) FROM table_name_27 WHERE nfl_club = "baltimore colts" AND round > 10 | {
"input": "CREATE TABLE table_name_27 (pick INTEGER, nfl_club VARCHAR, round VARCHAR)",
"instruction": "What is the largest pick by the Baltimore Colts in a round later than 10?",
"output": "SELECT MAX(pick) FROM table_name_27 WHERE nfl_club = \"baltimore colts\" AND round > 10"
} |
### INSTRUCTION
Find the first names of all instructors who have taught some course and the course description.
### INPUT
CREATE TABLE course (crs_description VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR, crs_code VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)
### OUTPUT
SELECT T2.emp_fname, T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code | {
"input": "CREATE TABLE course (crs_description VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR, crs_code VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)",
"instruction": "Find the first names of all instructors who have taught some course and the course description.",
"output": "SELECT T2.emp_fname, T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code"
} |
### INSTRUCTION
what is the old English name of Saturday?
### INPUT
CREATE TABLE table_2624098_1 (old_english_day_name VARCHAR, modern_english_day_name VARCHAR)
### OUTPUT
SELECT old_english_day_name FROM table_2624098_1 WHERE modern_english_day_name = "Saturday" | {
"input": "CREATE TABLE table_2624098_1 (old_english_day_name VARCHAR, modern_english_day_name VARCHAR)",
"instruction": "what is the old English name of Saturday? ",
"output": "SELECT old_english_day_name FROM table_2624098_1 WHERE modern_english_day_name = \"Saturday\""
} |
### INSTRUCTION
What is Hometown, when Sport is "Basketball", and when Winner is "Dwight Howard"?
### INPUT
CREATE TABLE table_name_83 (hometown VARCHAR, sport VARCHAR, winner VARCHAR)
### OUTPUT
SELECT hometown FROM table_name_83 WHERE sport = "basketball" AND winner = "dwight howard" | {
"input": "CREATE TABLE table_name_83 (hometown VARCHAR, sport VARCHAR, winner VARCHAR)",
"instruction": "What is Hometown, when Sport is \"Basketball\", and when Winner is \"Dwight Howard\"?",
"output": "SELECT hometown FROM table_name_83 WHERE sport = \"basketball\" AND winner = \"dwight howard\""
} |
### INSTRUCTION
How many ranks by average for the couple Tana and Stuart?
### INPUT
CREATE TABLE table_26375386_28 (rank_by_average VARCHAR, couple VARCHAR)
### OUTPUT
SELECT COUNT(rank_by_average) FROM table_26375386_28 WHERE couple = "Tana and Stuart" | {
"input": "CREATE TABLE table_26375386_28 (rank_by_average VARCHAR, couple VARCHAR)",
"instruction": "How many ranks by average for the couple Tana and Stuart?",
"output": "SELECT COUNT(rank_by_average) FROM table_26375386_28 WHERE couple = \"Tana and Stuart\""
} |
### INSTRUCTION
What is the Name with a Year of junior, and a High School with wheatley?
### INPUT
CREATE TABLE table_name_54 (name VARCHAR, year VARCHAR, high_school VARCHAR)
### OUTPUT
SELECT name FROM table_name_54 WHERE year = "junior" AND high_school = "wheatley" | {
"input": "CREATE TABLE table_name_54 (name VARCHAR, year VARCHAR, high_school VARCHAR)",
"instruction": "What is the Name with a Year of junior, and a High School with wheatley?",
"output": "SELECT name FROM table_name_54 WHERE year = \"junior\" AND high_school = \"wheatley\""
} |
### INSTRUCTION
Find the personal name, family name, and author ID of the course author that teaches the most courses.
### INPUT
CREATE TABLE Courses (author_id VARCHAR); CREATE TABLE Course_Authors_and_Tutors (personal_name VARCHAR, family_name VARCHAR, author_id VARCHAR)
### OUTPUT
SELECT T1.personal_name, T1.family_name, T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Courses (author_id VARCHAR); CREATE TABLE Course_Authors_and_Tutors (personal_name VARCHAR, family_name VARCHAR, author_id VARCHAR)",
"instruction": "Find the personal name, family name, and author ID of the course author that teaches the most courses.",
"output": "SELECT T1.personal_name, T1.family_name, T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What kind of brakes for the model type rb 4at with 16x8.0jj (front) 16x8.0jj (rear) wheels and 225/50r16 92v(front) 225/50r16 92v(rear) tyres?
### INPUT
CREATE TABLE table_250230_2 (brakes VARCHAR, model VARCHAR, wheels VARCHAR, tyres VARCHAR)
### OUTPUT
SELECT brakes FROM table_250230_2 WHERE wheels = "16x8.0JJ (front) 16x8.0JJ (rear)" AND tyres = "225/50R16 92V(front) 225/50R16 92V(rear)" AND model = "Type RB 4AT" | {
"input": "CREATE TABLE table_250230_2 (brakes VARCHAR, model VARCHAR, wheels VARCHAR, tyres VARCHAR)",
"instruction": "What kind of brakes for the model type rb 4at with 16x8.0jj (front) 16x8.0jj (rear) wheels and 225/50r16 92v(front) 225/50r16 92v(rear) tyres?",
"output": "SELECT brakes FROM table_250230_2 WHERE wheels = \"16x8.0JJ (front) 16x8.0JJ (rear)\" AND tyres = \"225/50R16 92V(front) 225/50R16 92V(rear)\" AND model = \"Type RB 4AT\""
} |
### INSTRUCTION
What batting partners played in sydney?
### INPUT
CREATE TABLE table_1670921_2 (batting_partners VARCHAR, venue VARCHAR)
### OUTPUT
SELECT batting_partners FROM table_1670921_2 WHERE venue = "Sydney" | {
"input": "CREATE TABLE table_1670921_2 (batting_partners VARCHAR, venue VARCHAR)",
"instruction": "What batting partners played in sydney?",
"output": "SELECT batting_partners FROM table_1670921_2 WHERE venue = \"Sydney\""
} |
### INSTRUCTION
What are the details of the markets that can be accessed by walk or bus?
### INPUT
CREATE TABLE Street_Markets (Market_Details VARCHAR, Market_ID VARCHAR); CREATE TABLE TOURIST_ATTRACTIONS (Tourist_Attraction_ID VARCHAR, How_to_Get_There VARCHAR)
### OUTPUT
SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = "walk" OR T2.How_to_Get_There = "bus" | {
"input": "CREATE TABLE Street_Markets (Market_Details VARCHAR, Market_ID VARCHAR); CREATE TABLE TOURIST_ATTRACTIONS (Tourist_Attraction_ID VARCHAR, How_to_Get_There VARCHAR)",
"instruction": "What are the details of the markets that can be accessed by walk or bus?",
"output": "SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = \"walk\" OR T2.How_to_Get_There = \"bus\""
} |
### INSTRUCTION
What were the bleeding times when both the platelet count was unaffected and the partial thromboplastin time was unaffected
### INPUT
CREATE TABLE table_1099080_1 (bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR, platelet_count VARCHAR)
### OUTPUT
SELECT bleeding_time FROM table_1099080_1 WHERE partial_thromboplastin_time = "Unaffected" AND platelet_count = "Unaffected" | {
"input": "CREATE TABLE table_1099080_1 (bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR, platelet_count VARCHAR)",
"instruction": "What were the bleeding times when both the platelet count was unaffected and the partial thromboplastin time was unaffected",
"output": "SELECT bleeding_time FROM table_1099080_1 WHERE partial_thromboplastin_time = \"Unaffected\" AND platelet_count = \"Unaffected\""
} |
### INSTRUCTION
Who was the leading scorer in Game #26?
### INPUT
CREATE TABLE table_11964047_6 (leading_scorer VARCHAR, _number VARCHAR)
### OUTPUT
SELECT leading_scorer FROM table_11964047_6 WHERE _number = 26 | {
"input": "CREATE TABLE table_11964047_6 (leading_scorer VARCHAR, _number VARCHAR)",
"instruction": "Who was the leading scorer in Game #26?",
"output": "SELECT leading_scorer FROM table_11964047_6 WHERE _number = 26"
} |
### INSTRUCTION
How many years had a 100 m hurdles event at the world championships in Osaka, Japan?
### INPUT
CREATE TABLE table_name_96 (year INTEGER, venue VARCHAR, event VARCHAR, competition VARCHAR)
### OUTPUT
SELECT SUM(year) FROM table_name_96 WHERE event = "100 m hurdles" AND competition = "world championships" AND venue = "osaka, japan" | {
"input": "CREATE TABLE table_name_96 (year INTEGER, venue VARCHAR, event VARCHAR, competition VARCHAR)",
"instruction": "How many years had a 100 m hurdles event at the world championships in Osaka, Japan?",
"output": "SELECT SUM(year) FROM table_name_96 WHERE event = \"100 m hurdles\" AND competition = \"world championships\" AND venue = \"osaka, japan\""
} |
### INSTRUCTION
What is the IHSAA class in Batesville?
### INPUT
CREATE TABLE table_name_97 (ihsaa_class VARCHAR, city VARCHAR)
### OUTPUT
SELECT ihsaa_class FROM table_name_97 WHERE city = "batesville" | {
"input": "CREATE TABLE table_name_97 (ihsaa_class VARCHAR, city VARCHAR)",
"instruction": "What is the IHSAA class in Batesville?",
"output": "SELECT ihsaa_class FROM table_name_97 WHERE city = \"batesville\""
} |
### INSTRUCTION
find the name of all departments that do actually have one or more employees assigned to them.
### INPUT
CREATE TABLE departments (department_name VARCHAR, department_id VARCHAR); CREATE TABLE employees (department_id VARCHAR)
### OUTPUT
SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id | {
"input": "CREATE TABLE departments (department_name VARCHAR, department_id VARCHAR); CREATE TABLE employees (department_id VARCHAR)",
"instruction": "find the name of all departments that do actually have one or more employees assigned to them.",
"output": "SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id"
} |
### INSTRUCTION
What is the highest Pick number that had a road number that was less than 6, featured Bob Dailey as a player, and which had a Reg GP bigger than 257?
### INPUT
CREATE TABLE table_name_43 (pick__number INTEGER, reg_gp VARCHAR, rd__number VARCHAR, player VARCHAR)
### OUTPUT
SELECT MAX(pick__number) FROM table_name_43 WHERE rd__number < 6 AND player = "bob dailey" AND reg_gp > 257 | {
"input": "CREATE TABLE table_name_43 (pick__number INTEGER, reg_gp VARCHAR, rd__number VARCHAR, player VARCHAR)",
"instruction": "What is the highest Pick number that had a road number that was less than 6, featured Bob Dailey as a player, and which had a Reg GP bigger than 257?",
"output": "SELECT MAX(pick__number) FROM table_name_43 WHERE rd__number < 6 AND player = \"bob dailey\" AND reg_gp > 257"
} |
### INSTRUCTION
Which 2007–08 season has a Club of genoa c.f.c.?
### INPUT
CREATE TABLE table_name_49 (club VARCHAR)
### OUTPUT
SELECT 2007 AS _08_season FROM table_name_49 WHERE club = "genoa c.f.c." | {
"input": "CREATE TABLE table_name_49 (club VARCHAR)",
"instruction": "Which 2007–08 season has a Club of genoa c.f.c.?",
"output": "SELECT 2007 AS _08_season FROM table_name_49 WHERE club = \"genoa c.f.c.\""
} |
### INSTRUCTION
What year was the Grand Prix Passing Shot Bordeaux that had Runners-up of Diego Nargiso?
### INPUT
CREATE TABLE table_name_96 (year VARCHAR, tournament_name VARCHAR, runners_up VARCHAR)
### OUTPUT
SELECT year FROM table_name_96 WHERE tournament_name = "grand prix passing shot bordeaux" AND runners_up = "diego nargiso" | {
"input": "CREATE TABLE table_name_96 (year VARCHAR, tournament_name VARCHAR, runners_up VARCHAR)",
"instruction": "What year was the Grand Prix Passing Shot Bordeaux that had Runners-up of Diego Nargiso?",
"output": "SELECT year FROM table_name_96 WHERE tournament_name = \"grand prix passing shot bordeaux\" AND runners_up = \"diego nargiso\""
} |
### INSTRUCTION
how many overall championships does concordia university have
### INPUT
CREATE TABLE table_14115168_4 (national_titles INTEGER, school VARCHAR)
### OUTPUT
SELECT MIN(national_titles) FROM table_14115168_4 WHERE school = "Concordia University" | {
"input": "CREATE TABLE table_14115168_4 (national_titles INTEGER, school VARCHAR)",
"instruction": "how many overall championships does concordia university have",
"output": "SELECT MIN(national_titles) FROM table_14115168_4 WHERE school = \"Concordia University\""
} |
### INSTRUCTION
In the 2005 season, how many races did the 15th place team complete?
### INPUT
CREATE TABLE table_name_98 (races INTEGER, final_placing VARCHAR, season VARCHAR)
### OUTPUT
SELECT AVG(races) FROM table_name_98 WHERE final_placing = "15th" AND season = "2005" | {
"input": "CREATE TABLE table_name_98 (races INTEGER, final_placing VARCHAR, season VARCHAR)",
"instruction": "In the 2005 season, how many races did the 15th place team complete?",
"output": "SELECT AVG(races) FROM table_name_98 WHERE final_placing = \"15th\" AND season = \"2005\""
} |
### INSTRUCTION
What are the ids, names and genders of the architects who built two bridges or one mill?
### INPUT
CREATE TABLE mill (architect_id VARCHAR); CREATE TABLE architect (id VARCHAR, name VARCHAR, gender VARCHAR); CREATE TABLE bridge (architect_id VARCHAR)
### OUTPUT
SELECT T1.id, T1.name, T1.gender FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING COUNT(*) = 2 UNION SELECT T1.id, T1.name, T1.gender FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING COUNT(*) = 1 | {
"input": "CREATE TABLE mill (architect_id VARCHAR); CREATE TABLE architect (id VARCHAR, name VARCHAR, gender VARCHAR); CREATE TABLE bridge (architect_id VARCHAR)",
"instruction": "What are the ids, names and genders of the architects who built two bridges or one mill?",
"output": "SELECT T1.id, T1.name, T1.gender FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING COUNT(*) = 2 UNION SELECT T1.id, T1.name, T1.gender FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING COUNT(*) = 1"
} |
### INSTRUCTION
What was the record for a week below 13 on July 12?
### INPUT
CREATE TABLE table_name_82 (record VARCHAR, week VARCHAR, date VARCHAR)
### OUTPUT
SELECT record FROM table_name_82 WHERE week < 13 AND date = "july 12" | {
"input": "CREATE TABLE table_name_82 (record VARCHAR, week VARCHAR, date VARCHAR)",
"instruction": "What was the record for a week below 13 on July 12?",
"output": "SELECT record FROM table_name_82 WHERE week < 13 AND date = \"july 12\""
} |
### INSTRUCTION
Who scored 74-70-67=211 and placed t5?
### INPUT
CREATE TABLE table_name_6 (player VARCHAR, place VARCHAR, score VARCHAR)
### OUTPUT
SELECT player FROM table_name_6 WHERE place = "t5" AND score = 74 - 70 - 67 = 211 | {
"input": "CREATE TABLE table_name_6 (player VARCHAR, place VARCHAR, score VARCHAR)",
"instruction": "Who scored 74-70-67=211 and placed t5?",
"output": "SELECT player FROM table_name_6 WHERE place = \"t5\" AND score = 74 - 70 - 67 = 211"
} |
### INSTRUCTION
Name the mountains classification which has a young rider classification of francesco casagrande and integiro classification of not awarded with stage of 2
### INPUT
CREATE TABLE table_name_82 (mountains_classification VARCHAR, stage VARCHAR, young_rider_classification VARCHAR, intergiro_classification VARCHAR)
### OUTPUT
SELECT mountains_classification FROM table_name_82 WHERE young_rider_classification = "francesco casagrande" AND intergiro_classification = "not awarded" AND stage = "2" | {
"input": "CREATE TABLE table_name_82 (mountains_classification VARCHAR, stage VARCHAR, young_rider_classification VARCHAR, intergiro_classification VARCHAR)",
"instruction": "Name the mountains classification which has a young rider classification of francesco casagrande and integiro classification of not awarded with stage of 2",
"output": "SELECT mountains_classification FROM table_name_82 WHERE young_rider_classification = \"francesco casagrande\" AND intergiro_classification = \"not awarded\" AND stage = \"2\""
} |
### INSTRUCTION
Can you tell me the highest Cargo traffic that has the Airport of barcelona airport, and the Aircraft movements smaller than 290,004?
### INPUT
CREATE TABLE table_name_82 (cargo_traffic INTEGER, airport VARCHAR, aircraft_movements VARCHAR)
### OUTPUT
SELECT MAX(cargo_traffic) FROM table_name_82 WHERE airport = "barcelona airport" AND aircraft_movements < 290 OFFSET 004 | {
"input": "CREATE TABLE table_name_82 (cargo_traffic INTEGER, airport VARCHAR, aircraft_movements VARCHAR)",
"instruction": "Can you tell me the highest Cargo traffic that has the Airport of barcelona airport, and the Aircraft movements smaller than 290,004?",
"output": "SELECT MAX(cargo_traffic) FROM table_name_82 WHERE airport = \"barcelona airport\" AND aircraft_movements < 290 OFFSET 004"
} |
### INSTRUCTION
The episode titled "Epiphany" received what scripted show ranking?
### INPUT
CREATE TABLE table_22170495_7 (scripted_show_ranking INTEGER, title VARCHAR)
### OUTPUT
SELECT MIN(scripted_show_ranking) FROM table_22170495_7 WHERE title = "Epiphany" | {
"input": "CREATE TABLE table_22170495_7 (scripted_show_ranking INTEGER, title VARCHAR)",
"instruction": "The episode titled \"Epiphany\" received what scripted show ranking?",
"output": "SELECT MIN(scripted_show_ranking) FROM table_22170495_7 WHERE title = \"Epiphany\""
} |
### INSTRUCTION
What is the maximum elevation in netherlands?
### INPUT
CREATE TABLE table_24285393_1 (maximum_elevation VARCHAR, country_or_region VARCHAR)
### OUTPUT
SELECT maximum_elevation FROM table_24285393_1 WHERE country_or_region = "Netherlands" | {
"input": "CREATE TABLE table_24285393_1 (maximum_elevation VARCHAR, country_or_region VARCHAR)",
"instruction": "What is the maximum elevation in netherlands?",
"output": "SELECT maximum_elevation FROM table_24285393_1 WHERE country_or_region = \"Netherlands\""
} |
### INSTRUCTION
What is the temperature rating of the intermediate temperature classification?
### INPUT
CREATE TABLE table_name_1 (temperature_rating VARCHAR, temperature_classification VARCHAR)
### OUTPUT
SELECT temperature_rating FROM table_name_1 WHERE temperature_classification = "intermediate" | {
"input": "CREATE TABLE table_name_1 (temperature_rating VARCHAR, temperature_classification VARCHAR)",
"instruction": "What is the temperature rating of the intermediate temperature classification?",
"output": "SELECT temperature_rating FROM table_name_1 WHERE temperature_classification = \"intermediate\""
} |
### INSTRUCTION
What's the average annual interchange for a rank over 26 in liverpool with an annual entry/exit less than 14.209 and more than 10 platforms?
### INPUT
CREATE TABLE table_name_28 (annual_interchanges__millions__2011_12 INTEGER, number_of_platforms VARCHAR, annual_entry_exit__millions__2011_12 VARCHAR, rank VARCHAR, location VARCHAR)
### OUTPUT
SELECT AVG(annual_interchanges__millions__2011_12) FROM table_name_28 WHERE rank > 26 AND location = "liverpool" AND annual_entry_exit__millions__2011_12 < 14.209 AND number_of_platforms > 10 | {
"input": "CREATE TABLE table_name_28 (annual_interchanges__millions__2011_12 INTEGER, number_of_platforms VARCHAR, annual_entry_exit__millions__2011_12 VARCHAR, rank VARCHAR, location VARCHAR)",
"instruction": "What's the average annual interchange for a rank over 26 in liverpool with an annual entry/exit less than 14.209 and more than 10 platforms?",
"output": "SELECT AVG(annual_interchanges__millions__2011_12) FROM table_name_28 WHERE rank > 26 AND location = \"liverpool\" AND annual_entry_exit__millions__2011_12 < 14.209 AND number_of_platforms > 10"
} |
### INSTRUCTION
Who was featured in the election of charles edward bennett redistricted from 2nd?
### INPUT
CREATE TABLE table_1341843_10 (candidates VARCHAR, incumbent VARCHAR)
### OUTPUT
SELECT candidates FROM table_1341843_10 WHERE incumbent = "Charles Edward Bennett Redistricted from 2nd" | {
"input": "CREATE TABLE table_1341843_10 (candidates VARCHAR, incumbent VARCHAR)",
"instruction": "Who was featured in the election of charles edward bennett redistricted from 2nd?",
"output": "SELECT candidates FROM table_1341843_10 WHERE incumbent = \"Charles Edward Bennett Redistricted from 2nd\""
} |
### INSTRUCTION
what is the minimum population canada 2011 census with seat of rcm being cowansville
### INPUT
CREATE TABLE table_1011906_1 (population_canada_2011_census INTEGER, seat_of_rcm VARCHAR)
### OUTPUT
SELECT MIN(population_canada_2011_census) FROM table_1011906_1 WHERE seat_of_rcm = "Cowansville" | {
"input": "CREATE TABLE table_1011906_1 (population_canada_2011_census INTEGER, seat_of_rcm VARCHAR)",
"instruction": "what is the minimum population canada 2011 census with seat of rcm being cowansville",
"output": "SELECT MIN(population_canada_2011_census) FROM table_1011906_1 WHERE seat_of_rcm = \"Cowansville\""
} |
### INSTRUCTION
What is the smallest rate of burglary when forcible rape is 39.1 and motor vehicle theft is less than 568.8?
### INPUT
CREATE TABLE table_name_90 (burglary INTEGER, forcible_rape VARCHAR, motor_vehicle_theft VARCHAR)
### OUTPUT
SELECT MIN(burglary) FROM table_name_90 WHERE forcible_rape = "39.1" AND motor_vehicle_theft < 568.8 | {
"input": "CREATE TABLE table_name_90 (burglary INTEGER, forcible_rape VARCHAR, motor_vehicle_theft VARCHAR)",
"instruction": "What is the smallest rate of burglary when forcible rape is 39.1 and motor vehicle theft is less than 568.8?",
"output": "SELECT MIN(burglary) FROM table_name_90 WHERE forcible_rape = \"39.1\" AND motor_vehicle_theft < 568.8"
} |
### INSTRUCTION
Name the total number of total with silver of 6, bronze more than 5 and gold less than 4
### INPUT
CREATE TABLE table_name_57 (total VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR)
### OUTPUT
SELECT COUNT(total) FROM table_name_57 WHERE silver = 6 AND bronze > 5 AND gold < 4 | {
"input": "CREATE TABLE table_name_57 (total VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR)",
"instruction": "Name the total number of total with silver of 6, bronze more than 5 and gold less than 4",
"output": "SELECT COUNT(total) FROM table_name_57 WHERE silver = 6 AND bronze > 5 AND gold < 4"
} |
### INSTRUCTION
Find the names of states that have some college students playing in the mid position but not in the goalie 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 = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' | {
"input": "CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR)",
"instruction": "Find the names of states that have some college students playing in the mid position but not in the goalie position.",
"output": "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie'"
} |
### INSTRUCTION
What was the away team score at western oval?
### INPUT
CREATE TABLE table_name_46 (away_team VARCHAR, venue VARCHAR)
### OUTPUT
SELECT away_team AS score FROM table_name_46 WHERE venue = "western oval" | {
"input": "CREATE TABLE table_name_46 (away_team VARCHAR, venue VARCHAR)",
"instruction": "What was the away team score at western oval?",
"output": "SELECT away_team AS score FROM table_name_46 WHERE venue = \"western oval\""
} |
### INSTRUCTION
Name the average number of seasons for Prva HNL of 17
### INPUT
CREATE TABLE table_name_65 (number_of_seasons_in_top_division INTEGER, number_of_seasons_in_prva_hnl VARCHAR)
### OUTPUT
SELECT AVG(number_of_seasons_in_top_division) FROM table_name_65 WHERE number_of_seasons_in_prva_hnl = 17 | {
"input": "CREATE TABLE table_name_65 (number_of_seasons_in_top_division INTEGER, number_of_seasons_in_prva_hnl VARCHAR)",
"instruction": "Name the average number of seasons for Prva HNL of 17",
"output": "SELECT AVG(number_of_seasons_in_top_division) FROM table_name_65 WHERE number_of_seasons_in_prva_hnl = 17"
} |
### INSTRUCTION
List the clubs that have at least a member with advisor "1121".
### INPUT
CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, advisor VARCHAR)
### OUTPUT
SELECT DISTINCT t1.clubname 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 t3.advisor = 1121 | {
"input": "CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, advisor VARCHAR)",
"instruction": "List the clubs that have at least a member with advisor \"1121\".",
"output": "SELECT DISTINCT t1.clubname 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 t3.advisor = 1121"
} |
### INSTRUCTION
Who was the winner when the General classification was held by Miguel Indurain, the Points classification held by Mario Cipollini, the Mountains classification held by Claudio Chiappucci, and the Young RIder classification held by Pavel Tonkov?
### INPUT
CREATE TABLE table_name_10 (winner VARCHAR, young_rider_classification VARCHAR, mountains_classification VARCHAR, general_classification VARCHAR, points_classification VARCHAR)
### OUTPUT
SELECT winner FROM table_name_10 WHERE general_classification = "miguel indurain" AND points_classification = "mario cipollini" AND mountains_classification = "claudio chiappucci" AND young_rider_classification = "pavel tonkov" | {
"input": "CREATE TABLE table_name_10 (winner VARCHAR, young_rider_classification VARCHAR, mountains_classification VARCHAR, general_classification VARCHAR, points_classification VARCHAR)",
"instruction": "Who was the winner when the General classification was held by Miguel Indurain, the Points classification held by Mario Cipollini, the Mountains classification held by Claudio Chiappucci, and the Young RIder classification held by Pavel Tonkov?",
"output": "SELECT winner FROM table_name_10 WHERE general_classification = \"miguel indurain\" AND points_classification = \"mario cipollini\" AND mountains_classification = \"claudio chiappucci\" AND young_rider_classification = \"pavel tonkov\""
} |
### INSTRUCTION
What's the time of Britta Steffen in a lane less than 4?
### INPUT
CREATE TABLE table_name_50 (time INTEGER, lane VARCHAR, name VARCHAR)
### OUTPUT
SELECT SUM(time) FROM table_name_50 WHERE lane < 4 AND name = "britta steffen" | {
"input": "CREATE TABLE table_name_50 (time INTEGER, lane VARCHAR, name VARCHAR)",
"instruction": "What's the time of Britta Steffen in a lane less than 4?",
"output": "SELECT SUM(time) FROM table_name_50 WHERE lane < 4 AND name = \"britta steffen\""
} |
### INSTRUCTION
What is the highest Against where they lost less than 20 games, tied more than 2 of them, and they had Favour less than 11?
### INPUT
CREATE TABLE table_name_85 (against INTEGER, favour VARCHAR, lost VARCHAR, draw VARCHAR)
### OUTPUT
SELECT MAX(against) FROM table_name_85 WHERE lost < 20 AND draw > 2 AND favour < 11 | {
"input": "CREATE TABLE table_name_85 (against INTEGER, favour VARCHAR, lost VARCHAR, draw VARCHAR)",
"instruction": "What is the highest Against where they lost less than 20 games, tied more than 2 of them, and they had Favour less than 11?",
"output": "SELECT MAX(against) FROM table_name_85 WHERE lost < 20 AND draw > 2 AND favour < 11"
} |
### INSTRUCTION
Birth Date of 8 November 1980, and a Weight smaller than 93 has what sum of a shirt number?
### INPUT
CREATE TABLE table_name_6 (shirt_no INTEGER, birth_date VARCHAR, weight VARCHAR)
### OUTPUT
SELECT SUM(shirt_no) FROM table_name_6 WHERE birth_date = "8 november 1980" AND weight < 93 | {
"input": "CREATE TABLE table_name_6 (shirt_no INTEGER, birth_date VARCHAR, weight VARCHAR)",
"instruction": "Birth Date of 8 November 1980, and a Weight smaller than 93 has what sum of a shirt number?",
"output": "SELECT SUM(shirt_no) FROM table_name_6 WHERE birth_date = \"8 november 1980\" AND weight < 93"
} |
### INSTRUCTION
How many points did Nigel Connell have?
### INPUT
CREATE TABLE table_name_44 (points VARCHAR, performer VARCHAR)
### OUTPUT
SELECT points FROM table_name_44 WHERE performer = "nigel connell" | {
"input": "CREATE TABLE table_name_44 (points VARCHAR, performer VARCHAR)",
"instruction": "How many points did Nigel Connell have?",
"output": "SELECT points FROM table_name_44 WHERE performer = \"nigel connell\""
} |
### INSTRUCTION
Which Total population (2005 estimate) has a Province of west kalimantan (kalimantan barat), and an Area (km 2) smaller than 147,307.00?
### INPUT
CREATE TABLE table_name_78 (total_population__2005_estimate_ INTEGER, province VARCHAR, area__km_2__ VARCHAR)
### OUTPUT
SELECT AVG(total_population__2005_estimate_) FROM table_name_78 WHERE province = "west kalimantan (kalimantan barat)" AND area__km_2__ < 147 OFFSET 307.00 | {
"input": "CREATE TABLE table_name_78 (total_population__2005_estimate_ INTEGER, province VARCHAR, area__km_2__ VARCHAR)",
"instruction": "Which Total population (2005 estimate) has a Province of west kalimantan (kalimantan barat), and an Area (km 2) smaller than 147,307.00?",
"output": "SELECT AVG(total_population__2005_estimate_) FROM table_name_78 WHERE province = \"west kalimantan (kalimantan barat)\" AND area__km_2__ < 147 OFFSET 307.00"
} |
### INSTRUCTION
When france had a rank larger than 2, what was their time?
### INPUT
CREATE TABLE table_name_94 (time VARCHAR, rank VARCHAR, country VARCHAR)
### OUTPUT
SELECT time FROM table_name_94 WHERE rank > 2 AND country = "france" | {
"input": "CREATE TABLE table_name_94 (time VARCHAR, rank VARCHAR, country VARCHAR)",
"instruction": "When france had a rank larger than 2, what was their time?",
"output": "SELECT time FROM table_name_94 WHERE rank > 2 AND country = \"france\""
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.