text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
What is the smallest crowd with fitzroy as the home team?
### INPUT
CREATE TABLE table_name_8 (crowd INTEGER, away_team VARCHAR)
### OUTPUT
SELECT MIN(crowd) FROM table_name_8 WHERE away_team = "fitzroy" | {
"input": "CREATE TABLE table_name_8 (crowd INTEGER, away_team VARCHAR)",
"instruction": "What is the smallest crowd with fitzroy as the home team?",
"output": "SELECT MIN(crowd) FROM table_name_8 WHERE away_team = \"fitzroy\""
} |
### INSTRUCTION
Which department offers the most number of degrees? List department name and id.
### INPUT
CREATE TABLE Degree_Programs (department_id VARCHAR); CREATE TABLE Departments (department_name VARCHAR, department_id VARCHAR)
### OUTPUT
SELECT T2.department_name, T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Degree_Programs (department_id VARCHAR); CREATE TABLE Departments (department_name VARCHAR, department_id VARCHAR)",
"instruction": "Which department offers the most number of degrees? List department name and id.",
"output": "SELECT T2.department_name, T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
How many restaurant is the Sandwich type restaurant?
### INPUT
CREATE TABLE Type_Of_Restaurant (Id VARCHAR); CREATE TABLE Restaurant (Id VARCHAR); CREATE TABLE Restaurant_Type (Id VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID = Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich' | {
"input": "CREATE TABLE Type_Of_Restaurant (Id VARCHAR); CREATE TABLE Restaurant (Id VARCHAR); CREATE TABLE Restaurant_Type (Id VARCHAR)",
"instruction": "How many restaurant is the Sandwich type restaurant?",
"output": "SELECT COUNT(*) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID = Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich'"
} |
### INSTRUCTION
What is the number of staterooms when guests was larger than 210?
### INPUT
CREATE TABLE table_name_28 (staterooms INTEGER, guests INTEGER)
### OUTPUT
SELECT AVG(staterooms) FROM table_name_28 WHERE guests > 210 | {
"input": "CREATE TABLE table_name_28 (staterooms INTEGER, guests INTEGER)",
"instruction": "What is the number of staterooms when guests was larger than 210?",
"output": "SELECT AVG(staterooms) FROM table_name_28 WHERE guests > 210"
} |
### INSTRUCTION
How many San Jose wins have an LA goals larger than 6, and an LA wins smaller than 21?
### INPUT
CREATE TABLE table_name_43 (san_jose_wins VARCHAR, la_goals VARCHAR, la_wins VARCHAR)
### OUTPUT
SELECT COUNT(san_jose_wins) FROM table_name_43 WHERE la_goals > 6 AND la_wins < 21 | {
"input": "CREATE TABLE table_name_43 (san_jose_wins VARCHAR, la_goals VARCHAR, la_wins VARCHAR)",
"instruction": "How many San Jose wins have an LA goals larger than 6, and an LA wins smaller than 21?",
"output": "SELECT COUNT(san_jose_wins) FROM table_name_43 WHERE la_goals > 6 AND la_wins < 21"
} |
### INSTRUCTION
which player played on Team Hamilton?
### INPUT
CREATE TABLE table_name_33 (player VARCHAR, cfl_team VARCHAR)
### OUTPUT
SELECT player FROM table_name_33 WHERE cfl_team = "hamilton" | {
"input": "CREATE TABLE table_name_33 (player VARCHAR, cfl_team VARCHAR)",
"instruction": "which player played on Team Hamilton?",
"output": "SELECT player FROM table_name_33 WHERE cfl_team = \"hamilton\""
} |
### INSTRUCTION
If the area is 34.73, what is the census ranking?
### INPUT
CREATE TABLE table_171236_1 (census_ranking VARCHAR, area_km_2 VARCHAR)
### OUTPUT
SELECT census_ranking FROM table_171236_1 WHERE area_km_2 = "34.73" | {
"input": "CREATE TABLE table_171236_1 (census_ranking VARCHAR, area_km_2 VARCHAR)",
"instruction": "If the area is 34.73, what is the census ranking?",
"output": "SELECT census_ranking FROM table_171236_1 WHERE area_km_2 = \"34.73\""
} |
### INSTRUCTION
What's the official website of Burning Flame 烈火雄心 with 22 episodes?
### INPUT
CREATE TABLE table_name_33 (official_website VARCHAR, number_of_episodes VARCHAR, english_title__chinese_title_ VARCHAR)
### OUTPUT
SELECT official_website FROM table_name_33 WHERE number_of_episodes > 22 AND english_title__chinese_title_ = "burning flame 烈火雄心" | {
"input": "CREATE TABLE table_name_33 (official_website VARCHAR, number_of_episodes VARCHAR, english_title__chinese_title_ VARCHAR)",
"instruction": "What's the official website of Burning Flame 烈火雄心 with 22 episodes?",
"output": "SELECT official_website FROM table_name_33 WHERE number_of_episodes > 22 AND english_title__chinese_title_ = \"burning flame 烈火雄心\""
} |
### INSTRUCTION
Show all the faculty ranks and the number of students advised by each rank.
### INPUT
CREATE TABLE Student (advisor VARCHAR); CREATE TABLE Faculty (rank VARCHAR, FacID VARCHAR)
### OUTPUT
SELECT T1.rank, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank | {
"input": "CREATE TABLE Student (advisor VARCHAR); CREATE TABLE Faculty (rank VARCHAR, FacID VARCHAR)",
"instruction": "Show all the faculty ranks and the number of students advised by each rank.",
"output": "SELECT T1.rank, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank"
} |
### INSTRUCTION
What is the sum of Asian or Amerindian (%), when State is Sergipe, and when Brown (%) is greater than 61,3?
### INPUT
CREATE TABLE table_name_44 (asian_or_amerindian___percentage_ INTEGER, state VARCHAR, brown___percentage_ VARCHAR)
### OUTPUT
SELECT SUM(asian_or_amerindian___percentage_) FROM table_name_44 WHERE state = "sergipe" AND brown___percentage_ > 61 OFFSET 3 | {
"input": "CREATE TABLE table_name_44 (asian_or_amerindian___percentage_ INTEGER, state VARCHAR, brown___percentage_ VARCHAR)",
"instruction": "What is the sum of Asian or Amerindian (%), when State is Sergipe, and when Brown (%) is greater than 61,3?",
"output": "SELECT SUM(asian_or_amerindian___percentage_) FROM table_name_44 WHERE state = \"sergipe\" AND brown___percentage_ > 61 OFFSET 3"
} |
### INSTRUCTION
Return reviewer name, movie title, stars, and ratingDate. And sort the data first by reviewer name, then by movie title, and lastly by number of stars.
### INPUT
CREATE TABLE Rating (stars VARCHAR, ratingDate VARCHAR, mID VARCHAR, rID VARCHAR); CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)
### OUTPUT
SELECT T3.name, T2.title, T1.stars, T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID ORDER BY T3.name, T2.title, T1.stars | {
"input": "CREATE TABLE Rating (stars VARCHAR, ratingDate VARCHAR, mID VARCHAR, rID VARCHAR); CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)",
"instruction": "Return reviewer name, movie title, stars, and ratingDate. And sort the data first by reviewer name, then by movie title, and lastly by number of stars.",
"output": "SELECT T3.name, T2.title, T1.stars, T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID ORDER BY T3.name, T2.title, T1.stars"
} |
### INSTRUCTION
what's the record where location attendance is keyarena 13,627
### INPUT
CREATE TABLE table_11964154_9 (record VARCHAR, location_attendance VARCHAR)
### OUTPUT
SELECT record FROM table_11964154_9 WHERE location_attendance = "KeyArena 13,627" | {
"input": "CREATE TABLE table_11964154_9 (record VARCHAR, location_attendance VARCHAR)",
"instruction": " what's the record where location attendance is keyarena 13,627",
"output": "SELECT record FROM table_11964154_9 WHERE location_attendance = \"KeyArena 13,627\""
} |
### INSTRUCTION
How many entries are there for class when the prior experience is shasta h.s.
### INPUT
CREATE TABLE table_14342210_13 (class VARCHAR, prior_experience VARCHAR)
### OUTPUT
SELECT COUNT(class) FROM table_14342210_13 WHERE prior_experience = "Shasta H.S." | {
"input": "CREATE TABLE table_14342210_13 (class VARCHAR, prior_experience VARCHAR)",
"instruction": "How many entries are there for class when the prior experience is shasta h.s.",
"output": "SELECT COUNT(class) FROM table_14342210_13 WHERE prior_experience = \"Shasta H.S.\""
} |
### INSTRUCTION
What is the total number of To Par, when Score is "70-75-76=221"?
### INPUT
CREATE TABLE table_name_16 (to_par VARCHAR, score VARCHAR)
### OUTPUT
SELECT COUNT(to_par) FROM table_name_16 WHERE score = 70 - 75 - 76 = 221 | {
"input": "CREATE TABLE table_name_16 (to_par VARCHAR, score VARCHAR)",
"instruction": "What is the total number of To Par, when Score is \"70-75-76=221\"?",
"output": "SELECT COUNT(to_par) FROM table_name_16 WHERE score = 70 - 75 - 76 = 221"
} |
### INSTRUCTION
What is Qual 2, when Best is 1:27.642?
### INPUT
CREATE TABLE table_name_27 (qual_2 VARCHAR, best VARCHAR)
### OUTPUT
SELECT qual_2 FROM table_name_27 WHERE best = "1:27.642" | {
"input": "CREATE TABLE table_name_27 (qual_2 VARCHAR, best VARCHAR)",
"instruction": "What is Qual 2, when Best is 1:27.642?",
"output": "SELECT qual_2 FROM table_name_27 WHERE best = \"1:27.642\""
} |
### INSTRUCTION
List the name of playlist which has number of tracks greater than 100.
### INPUT
CREATE TABLE playlist_tracks (playlist_id VARCHAR, track_id VARCHAR); CREATE TABLE playlists (name VARCHAR, id VARCHAR)
### OUTPUT
SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING COUNT(T1.track_id) > 100 | {
"input": "CREATE TABLE playlist_tracks (playlist_id VARCHAR, track_id VARCHAR); CREATE TABLE playlists (name VARCHAR, id VARCHAR)",
"instruction": "List the name of playlist which has number of tracks greater than 100.",
"output": "SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING COUNT(T1.track_id) > 100"
} |
### INSTRUCTION
What's the theme for a series of season 3 with smaller than 148 days?
### INPUT
CREATE TABLE table_name_6 (theme VARCHAR, days VARCHAR, series VARCHAR)
### OUTPUT
SELECT theme FROM table_name_6 WHERE days < 148 AND series = "season 3" | {
"input": "CREATE TABLE table_name_6 (theme VARCHAR, days VARCHAR, series VARCHAR)",
"instruction": "What's the theme for a series of season 3 with smaller than 148 days?",
"output": "SELECT theme FROM table_name_6 WHERE days < 148 AND series = \"season 3\""
} |
### INSTRUCTION
How many games tied for the air force with over 57 years participating?
### INPUT
CREATE TABLE table_name_69 (tied VARCHAR, mountain_west VARCHAR, years VARCHAR)
### OUTPUT
SELECT COUNT(tied) FROM table_name_69 WHERE mountain_west = "air force" AND years > 57 | {
"input": "CREATE TABLE table_name_69 (tied VARCHAR, mountain_west VARCHAR, years VARCHAR)",
"instruction": "How many games tied for the air force with over 57 years participating?",
"output": "SELECT COUNT(tied) FROM table_name_69 WHERE mountain_west = \"air force\" AND years > 57"
} |
### INSTRUCTION
What is the zip code of staff with first name as Janessa and last name as Sawayn lived?
### INPUT
CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
### OUTPUT
SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn" | {
"input": "CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)",
"instruction": "What is the zip code of staff with first name as Janessa and last name as Sawayn lived?",
"output": "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\""
} |
### INSTRUCTION
Ken Wright of the National Party was from which province?
### INPUT
CREATE TABLE table_name_79 (province VARCHAR, party VARCHAR, name VARCHAR)
### OUTPUT
SELECT province FROM table_name_79 WHERE party = "national" AND name = "ken wright" | {
"input": "CREATE TABLE table_name_79 (province VARCHAR, party VARCHAR, name VARCHAR)",
"instruction": "Ken Wright of the National Party was from which province?",
"output": "SELECT province FROM table_name_79 WHERE party = \"national\" AND name = \"ken wright\""
} |
### INSTRUCTION
What is the total capacity (MW) of the farm that is noted as being under construction?
### INPUT
CREATE TABLE table_name_17 (capacity__mw_ VARCHAR, notes VARCHAR)
### OUTPUT
SELECT COUNT(capacity__mw_) FROM table_name_17 WHERE notes = "under construction" | {
"input": "CREATE TABLE table_name_17 (capacity__mw_ VARCHAR, notes VARCHAR)",
"instruction": "What is the total capacity (MW) of the farm that is noted as being under construction?",
"output": "SELECT COUNT(capacity__mw_) FROM table_name_17 WHERE notes = \"under construction\""
} |
### INSTRUCTION
WHAT WAS THE AMOUNT OF CARBON DIOXIDE EMISSIONS IN 2006 IN THE COUNTRY WHOSE CO2 EMISSIONS (TONS PER PERSON) REACHED 1.4 IN 2OO7?
### INPUT
CREATE TABLE table_11251601_2 (carbon_dioxide_emissions_per_year__10_6_tons___2006_ VARCHAR, carbon_dioxide_emissions_per_year__tons_per_person___2007_ VARCHAR)
### OUTPUT
SELECT carbon_dioxide_emissions_per_year__10_6_tons___2006_ FROM table_11251601_2 WHERE carbon_dioxide_emissions_per_year__tons_per_person___2007_ = "1.4" | {
"input": "CREATE TABLE table_11251601_2 (carbon_dioxide_emissions_per_year__10_6_tons___2006_ VARCHAR, carbon_dioxide_emissions_per_year__tons_per_person___2007_ VARCHAR)",
"instruction": "WHAT WAS THE AMOUNT OF CARBON DIOXIDE EMISSIONS IN 2006 IN THE COUNTRY WHOSE CO2 EMISSIONS (TONS PER PERSON) REACHED 1.4 IN 2OO7?",
"output": "SELECT carbon_dioxide_emissions_per_year__10_6_tons___2006_ FROM table_11251601_2 WHERE carbon_dioxide_emissions_per_year__tons_per_person___2007_ = \"1.4\""
} |
### INSTRUCTION
What is the lowest Round with the Location, Las Vegas, Nevada, the Method, Decision (unanimous), and the Event, K-1 World Grand Prix 2003 in Las Vegas II?
### INPUT
CREATE TABLE table_name_87 (round INTEGER, event VARCHAR, location VARCHAR, method VARCHAR)
### OUTPUT
SELECT MIN(round) FROM table_name_87 WHERE location = "las vegas, nevada" AND method = "decision (unanimous)" AND event = "k-1 world grand prix 2003 in las vegas ii" | {
"input": "CREATE TABLE table_name_87 (round INTEGER, event VARCHAR, location VARCHAR, method VARCHAR)",
"instruction": "What is the lowest Round with the Location, Las Vegas, Nevada, the Method, Decision (unanimous), and the Event, K-1 World Grand Prix 2003 in Las Vegas II?",
"output": "SELECT MIN(round) FROM table_name_87 WHERE location = \"las vegas, nevada\" AND method = \"decision (unanimous)\" AND event = \"k-1 world grand prix 2003 in las vegas ii\""
} |
### INSTRUCTION
Find name of the project that needs the least amount of time to finish and the name of scientists who worked on it.
### INPUT
CREATE TABLE scientists (name VARCHAR, SSN VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR); CREATE TABLE projects (name VARCHAR, code VARCHAR, hours INTEGER); CREATE TABLE projects (hours INTEGER)
### OUTPUT
SELECT T2.name, T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT MIN(hours) FROM projects) | {
"input": "CREATE TABLE scientists (name VARCHAR, SSN VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR); CREATE TABLE projects (name VARCHAR, code VARCHAR, hours INTEGER); CREATE TABLE projects (hours INTEGER)",
"instruction": "Find name of the project that needs the least amount of time to finish and the name of scientists who worked on it.",
"output": "SELECT T2.name, T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT MIN(hours) FROM projects)"
} |
### INSTRUCTION
A competition of test taking place on 23 Apr 1988 had what as a score?
### INPUT
CREATE TABLE table_name_51 (score VARCHAR, competition VARCHAR, date VARCHAR)
### OUTPUT
SELECT score FROM table_name_51 WHERE competition = "test" AND date = "23 apr 1988" | {
"input": "CREATE TABLE table_name_51 (score VARCHAR, competition VARCHAR, date VARCHAR)",
"instruction": "A competition of test taking place on 23 Apr 1988 had what as a score?",
"output": "SELECT score FROM table_name_51 WHERE competition = \"test\" AND date = \"23 apr 1988\""
} |
### INSTRUCTION
Which Attendance has a Score of 0:2?
### INPUT
CREATE TABLE table_name_29 (attendance INTEGER, score VARCHAR)
### OUTPUT
SELECT MAX(attendance) FROM table_name_29 WHERE score = "0:2" | {
"input": "CREATE TABLE table_name_29 (attendance INTEGER, score VARCHAR)",
"instruction": "Which Attendance has a Score of 0:2?",
"output": "SELECT MAX(attendance) FROM table_name_29 WHERE score = \"0:2\""
} |
### INSTRUCTION
Which 2008 has a 2009 of A, and a Tournament of cincinnati masters?
### INPUT
CREATE TABLE table_name_39 (tournament VARCHAR)
### OUTPUT
SELECT 2008 FROM table_name_39 WHERE 2009 = "a" AND tournament = "cincinnati masters" | {
"input": "CREATE TABLE table_name_39 (tournament VARCHAR)",
"instruction": "Which 2008 has a 2009 of A, and a Tournament of cincinnati masters?",
"output": "SELECT 2008 FROM table_name_39 WHERE 2009 = \"a\" AND tournament = \"cincinnati masters\""
} |
### INSTRUCTION
What Constructor has a +1.027 Time/Retired?
### INPUT
CREATE TABLE table_name_21 (constructor VARCHAR, time_retired VARCHAR)
### OUTPUT
SELECT constructor FROM table_name_21 WHERE time_retired = "+1.027" | {
"input": "CREATE TABLE table_name_21 (constructor VARCHAR, time_retired VARCHAR)",
"instruction": "What Constructor has a +1.027 Time/Retired?",
"output": "SELECT constructor FROM table_name_21 WHERE time_retired = \"+1.027\""
} |
### INSTRUCTION
What is the maximum fps HDRx with a height larger than 1080 with a compression at 24 fps of 6:1 with a compression at maximum fps of at least 7:1?
### INPUT
CREATE TABLE table_name_47 (maximum_fps VARCHAR, least_compression_at_maximum_fps VARCHAR, height VARCHAR, least_compression_at_24_fps VARCHAR)
### OUTPUT
SELECT maximum_fps AS HDRx FROM table_name_47 WHERE height > 1080 AND least_compression_at_24_fps = "6:1" AND least_compression_at_maximum_fps = "7:1" | {
"input": "CREATE TABLE table_name_47 (maximum_fps VARCHAR, least_compression_at_maximum_fps VARCHAR, height VARCHAR, least_compression_at_24_fps VARCHAR)",
"instruction": "What is the maximum fps HDRx with a height larger than 1080 with a compression at 24 fps of 6:1 with a compression at maximum fps of at least 7:1?",
"output": "SELECT maximum_fps AS HDRx FROM table_name_47 WHERE height > 1080 AND least_compression_at_24_fps = \"6:1\" AND least_compression_at_maximum_fps = \"7:1\""
} |
### INSTRUCTION
What is Result, when Venue is Götzis , Austria?
### INPUT
CREATE TABLE table_name_77 (result VARCHAR, venue VARCHAR)
### OUTPUT
SELECT result FROM table_name_77 WHERE venue = "götzis , austria" | {
"input": "CREATE TABLE table_name_77 (result VARCHAR, venue VARCHAR)",
"instruction": "What is Result, when Venue is Götzis , Austria?",
"output": "SELECT result FROM table_name_77 WHERE venue = \"götzis , austria\""
} |
### INSTRUCTION
What is listed as the highest Rank that has a Gold that's larger than 0, and Participants that's smaller than 10?
### INPUT
CREATE TABLE table_name_6 (rank INTEGER, gold VARCHAR, participants VARCHAR)
### OUTPUT
SELECT MAX(rank) FROM table_name_6 WHERE gold > 0 AND participants < 10 | {
"input": "CREATE TABLE table_name_6 (rank INTEGER, gold VARCHAR, participants VARCHAR)",
"instruction": "What is listed as the highest Rank that has a Gold that's larger than 0, and Participants that's smaller than 10?",
"output": "SELECT MAX(rank) FROM table_name_6 WHERE gold > 0 AND participants < 10"
} |
### INSTRUCTION
What are the average spectators from the Group H Round?
### INPUT
CREATE TABLE table_name_60 (spectators INTEGER, round VARCHAR)
### OUTPUT
SELECT AVG(spectators) FROM table_name_60 WHERE round = "group h" | {
"input": "CREATE TABLE table_name_60 (spectators INTEGER, round VARCHAR)",
"instruction": "What are the average spectators from the Group H Round?",
"output": "SELECT AVG(spectators) FROM table_name_60 WHERE round = \"group h\""
} |
### INSTRUCTION
What is the total budget amount for school "Glenn" in all years?
### INPUT
CREATE TABLE budget (budgeted INTEGER, school_id VARCHAR); CREATE TABLE school (school_id VARCHAR, school_name VARCHAR)
### OUTPUT
SELECT SUM(T1.budgeted) FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = 'Glenn' | {
"input": "CREATE TABLE budget (budgeted INTEGER, school_id VARCHAR); CREATE TABLE school (school_id VARCHAR, school_name VARCHAR)",
"instruction": "What is the total budget amount for school \"Glenn\" in all years?",
"output": "SELECT SUM(T1.budgeted) FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = 'Glenn'"
} |
### INSTRUCTION
Find the country of origin for the artist who made the least number of songs?
### INPUT
CREATE TABLE song (artist_name VARCHAR); CREATE TABLE artist (country VARCHAR, artist_name VARCHAR)
### OUTPUT
SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) LIMIT 1 | {
"input": "CREATE TABLE song (artist_name VARCHAR); CREATE TABLE artist (country VARCHAR, artist_name VARCHAR)",
"instruction": "Find the country of origin for the artist who made the least number of songs?",
"output": "SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) LIMIT 1"
} |
### INSTRUCTION
When was the loan started when the coutry is eng, the loan club is sunderland and the end source is south wales echo?
### INPUT
CREATE TABLE table_name_23 (started VARCHAR, end_source VARCHAR, country VARCHAR, loan_club VARCHAR)
### OUTPUT
SELECT started FROM table_name_23 WHERE country = "eng" AND loan_club = "sunderland" AND end_source = "south wales echo" | {
"input": "CREATE TABLE table_name_23 (started VARCHAR, end_source VARCHAR, country VARCHAR, loan_club VARCHAR)",
"instruction": "When was the loan started when the coutry is eng, the loan club is sunderland and the end source is south wales echo?",
"output": "SELECT started FROM table_name_23 WHERE country = \"eng\" AND loan_club = \"sunderland\" AND end_source = \"south wales echo\""
} |
### INSTRUCTION
How many Laps have a Grid smaller than 5, and a Time/Retired of retirement?
### INPUT
CREATE TABLE table_name_97 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
### OUTPUT
SELECT SUM(laps) FROM table_name_97 WHERE grid < 5 AND time_retired = "retirement" | {
"input": "CREATE TABLE table_name_97 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)",
"instruction": "How many Laps have a Grid smaller than 5, and a Time/Retired of retirement?",
"output": "SELECT SUM(laps) FROM table_name_97 WHERE grid < 5 AND time_retired = \"retirement\""
} |
### INSTRUCTION
Name the class aaaaa for 2005-06
### INPUT
CREATE TABLE table_14601528_2 (class_aAAAA VARCHAR, school_year VARCHAR)
### OUTPUT
SELECT class_aAAAA FROM table_14601528_2 WHERE school_year = "2005-06" | {
"input": "CREATE TABLE table_14601528_2 (class_aAAAA VARCHAR, school_year VARCHAR)",
"instruction": "Name the class aaaaa for 2005-06",
"output": "SELECT class_aAAAA FROM table_14601528_2 WHERE school_year = \"2005-06\""
} |
### INSTRUCTION
What is the score of the Devil Rays on April 24?
### INPUT
CREATE TABLE table_name_28 (score VARCHAR, opponent VARCHAR, date VARCHAR)
### OUTPUT
SELECT score FROM table_name_28 WHERE opponent = "devil rays" AND date = "april 24" | {
"input": "CREATE TABLE table_name_28 (score VARCHAR, opponent VARCHAR, date VARCHAR)",
"instruction": "What is the score of the Devil Rays on April 24?",
"output": "SELECT score FROM table_name_28 WHERE opponent = \"devil rays\" AND date = \"april 24\""
} |
### INSTRUCTION
Who was the color commentator for Eric Dickerson and Melissa Stark in 2001?
### INPUT
CREATE TABLE table_name_42 (color_commentator_s_ VARCHAR, sideline_reporter_s_ VARCHAR, year VARCHAR)
### OUTPUT
SELECT color_commentator_s_ FROM table_name_42 WHERE sideline_reporter_s_ = "eric dickerson and melissa stark" AND year = 2001 | {
"input": "CREATE TABLE table_name_42 (color_commentator_s_ VARCHAR, sideline_reporter_s_ VARCHAR, year VARCHAR)",
"instruction": "Who was the color commentator for Eric Dickerson and Melissa Stark in 2001?",
"output": "SELECT color_commentator_s_ FROM table_name_42 WHERE sideline_reporter_s_ = \"eric dickerson and melissa stark\" AND year = 2001"
} |
### INSTRUCTION
What is the area for a population of 0.58 km?
### INPUT
CREATE TABLE table_name_8 (area__km²_ VARCHAR, pop__km² VARCHAR)
### OUTPUT
SELECT area__km²_ FROM table_name_8 WHERE pop__km² = 0.58 | {
"input": "CREATE TABLE table_name_8 (area__km²_ VARCHAR, pop__km² VARCHAR)",
"instruction": "What is the area for a population of 0.58 km?",
"output": "SELECT area__km²_ FROM table_name_8 WHERE pop__km² = 0.58"
} |
### INSTRUCTION
What are the dates for the documents with both 'GV' type and 'SF' type expenses?
### INPUT
CREATE TABLE Documents_with_Expenses (document_id VARCHAR, budget_type_code VARCHAR); CREATE TABLE Documents (document_date VARCHAR, document_id VARCHAR)
### OUTPUT
SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'GV' INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'SF' | {
"input": "CREATE TABLE Documents_with_Expenses (document_id VARCHAR, budget_type_code VARCHAR); CREATE TABLE Documents (document_date VARCHAR, document_id VARCHAR)",
"instruction": "What are the dates for the documents with both 'GV' type and 'SF' type expenses?",
"output": "SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'GV' INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'SF'"
} |
### INSTRUCTION
What was the date of the game played at Fenway Park?
### INPUT
CREATE TABLE table_name_28 (date VARCHAR, game_site VARCHAR)
### OUTPUT
SELECT date FROM table_name_28 WHERE game_site = "fenway park" | {
"input": "CREATE TABLE table_name_28 (date VARCHAR, game_site VARCHAR)",
"instruction": "What was the date of the game played at Fenway Park?",
"output": "SELECT date FROM table_name_28 WHERE game_site = \"fenway park\""
} |
### INSTRUCTION
How many Assets (billion $) has an Industry of oil and gas, and a Rank of 9, and a Market Value (billion $) larger than 121.7?
### INPUT
CREATE TABLE table_name_8 (assets__billion_ INTEGER, market_value__billion_$_ VARCHAR, industry VARCHAR, rank VARCHAR)
### OUTPUT
SELECT SUM(assets__billion_) AS $_ FROM table_name_8 WHERE industry = "oil and gas" AND rank = 9 AND market_value__billion_$_ > 121.7 | {
"input": "CREATE TABLE table_name_8 (assets__billion_ INTEGER, market_value__billion_$_ VARCHAR, industry VARCHAR, rank VARCHAR)",
"instruction": "How many Assets (billion $) has an Industry of oil and gas, and a Rank of 9, and a Market Value (billion $) larger than 121.7?",
"output": "SELECT SUM(assets__billion_) AS $_ FROM table_name_8 WHERE industry = \"oil and gas\" AND rank = 9 AND market_value__billion_$_ > 121.7"
} |
### INSTRUCTION
What is the iclandic of the glossary for presenta for mi locaria
### INPUT
CREATE TABLE table_13003460_1 (the_icelandic_of_the_glossary VARCHAR, the_basque_of_the_glossary VARCHAR)
### OUTPUT
SELECT the_icelandic_of_the_glossary FROM table_13003460_1 WHERE the_basque_of_the_glossary = "presenta for mi locaria" | {
"input": "CREATE TABLE table_13003460_1 (the_icelandic_of_the_glossary VARCHAR, the_basque_of_the_glossary VARCHAR)",
"instruction": "What is the iclandic of the glossary for presenta for mi locaria",
"output": "SELECT the_icelandic_of_the_glossary FROM table_13003460_1 WHERE the_basque_of_the_glossary = \"presenta for mi locaria\""
} |
### INSTRUCTION
WHAT IS THE RESULT FOR best urban/alternative performance, IN 2003 OR GREATER?
### INPUT
CREATE TABLE table_name_1 (result VARCHAR, category VARCHAR, year VARCHAR)
### OUTPUT
SELECT result FROM table_name_1 WHERE category = "best urban/alternative performance" AND year > 2003 | {
"input": "CREATE TABLE table_name_1 (result VARCHAR, category VARCHAR, year VARCHAR)",
"instruction": "WHAT IS THE RESULT FOR best urban/alternative performance, IN 2003 OR GREATER?",
"output": "SELECT result FROM table_name_1 WHERE category = \"best urban/alternative performance\" AND year > 2003"
} |
### INSTRUCTION
How many winning scores were there in the rr donnelley lpga founders cup?
### INPUT
CREATE TABLE table_17335602_1 (winning_score VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT COUNT(winning_score) FROM table_17335602_1 WHERE tournament = "RR Donnelley LPGA Founders Cup" | {
"input": "CREATE TABLE table_17335602_1 (winning_score VARCHAR, tournament VARCHAR)",
"instruction": "How many winning scores were there in the rr donnelley lpga founders cup?",
"output": "SELECT COUNT(winning_score) FROM table_17335602_1 WHERE tournament = \"RR Donnelley LPGA Founders Cup\""
} |
### INSTRUCTION
What is the sum of losses for Geelong Amateur, with 0 byes?
### INPUT
CREATE TABLE table_name_95 (losses INTEGER, bellarine_fl VARCHAR, byes VARCHAR)
### OUTPUT
SELECT SUM(losses) FROM table_name_95 WHERE bellarine_fl = "geelong amateur" AND byes < 0 | {
"input": "CREATE TABLE table_name_95 (losses INTEGER, bellarine_fl VARCHAR, byes VARCHAR)",
"instruction": "What is the sum of losses for Geelong Amateur, with 0 byes?",
"output": "SELECT SUM(losses) FROM table_name_95 WHERE bellarine_fl = \"geelong amateur\" AND byes < 0"
} |
### INSTRUCTION
Name the number of Earnings per share (¢) which has a Net profit (US $m) larger than 66, and a Year to April smaller than 2010?
### INPUT
CREATE TABLE table_name_38 (earnings_per_share__ VARCHAR, net_profit__us_$m_ VARCHAR, year_to_april VARCHAR)
### OUTPUT
SELECT COUNT(earnings_per_share__) AS ¢_ FROM table_name_38 WHERE net_profit__us_$m_ > 66 AND year_to_april < 2010 | {
"input": "CREATE TABLE table_name_38 (earnings_per_share__ VARCHAR, net_profit__us_$m_ VARCHAR, year_to_april VARCHAR)",
"instruction": "Name the number of Earnings per share (¢) which has a Net profit (US $m) larger than 66, and a Year to April smaller than 2010?",
"output": "SELECT COUNT(earnings_per_share__) AS ¢_ FROM table_name_38 WHERE net_profit__us_$m_ > 66 AND year_to_april < 2010"
} |
### INSTRUCTION
How many times is the ethnic group other: total?
### INPUT
CREATE TABLE table_282413_3 (ethnic_group VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM table_282413_3 WHERE ethnic_group = "Other: Total" | {
"input": "CREATE TABLE table_282413_3 (ethnic_group VARCHAR)",
"instruction": "How many times is the ethnic group other: total?",
"output": "SELECT COUNT(*) FROM table_282413_3 WHERE ethnic_group = \"Other: Total\""
} |
### INSTRUCTION
What is the characteristic name used by most number of the products?
### INPUT
CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
### OUTPUT
SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id GROUP BY t3.characteristic_name ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)",
"instruction": "What is the characteristic name used by most number of the products?",
"output": "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id GROUP BY t3.characteristic_name ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Which opponent played in the Chinese Taipei Open in 2000?
### INPUT
CREATE TABLE table_name_66 (opponent VARCHAR, tournament VARCHAR, year VARCHAR)
### OUTPUT
SELECT opponent FROM table_name_66 WHERE tournament = "chinese taipei open" AND year = 2000 | {
"input": "CREATE TABLE table_name_66 (opponent VARCHAR, tournament VARCHAR, year VARCHAR)",
"instruction": "Which opponent played in the Chinese Taipei Open in 2000?",
"output": "SELECT opponent FROM table_name_66 WHERE tournament = \"chinese taipei open\" AND year = 2000"
} |
### INSTRUCTION
What Scores by each individual judge has a Status of current, and a Co-contestant (Yaar vs. Pyaar) of krushna abhishek?
### INPUT
CREATE TABLE table_name_67 (scores_by_each_individual_judge VARCHAR, status VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)
### OUTPUT
SELECT scores_by_each_individual_judge FROM table_name_67 WHERE status = "current" AND co_contestant__yaar_vs_pyaar_ = "krushna abhishek" | {
"input": "CREATE TABLE table_name_67 (scores_by_each_individual_judge VARCHAR, status VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)",
"instruction": "What Scores by each individual judge has a Status of current, and a Co-contestant (Yaar vs. Pyaar) of krushna abhishek?",
"output": "SELECT scores_by_each_individual_judge FROM table_name_67 WHERE status = \"current\" AND co_contestant__yaar_vs_pyaar_ = \"krushna abhishek\""
} |
### INSTRUCTION
What is the name of the anti-ship missile that had a turbojet propulsion that was launched by a surface, sub after 1985?
### INPUT
CREATE TABLE table_name_96 (name VARCHAR, launched_by VARCHAR, propulsion VARCHAR, year VARCHAR)
### OUTPUT
SELECT name FROM table_name_96 WHERE propulsion = "turbojet" AND year > 1985 AND launched_by = "surface, sub" | {
"input": "CREATE TABLE table_name_96 (name VARCHAR, launched_by VARCHAR, propulsion VARCHAR, year VARCHAR)",
"instruction": "What is the name of the anti-ship missile that had a turbojet propulsion that was launched by a surface, sub after 1985?",
"output": "SELECT name FROM table_name_96 WHERE propulsion = \"turbojet\" AND year > 1985 AND launched_by = \"surface, sub\""
} |
### INSTRUCTION
Which county has a % (2040) larger than 1.8, a % (2000) smaller than 4.1, a % (1960) smaller than 3.2, and is ranked 13?
### INPUT
CREATE TABLE table_name_82 (county VARCHAR, rank VARCHAR, _percentage__1960_ VARCHAR, _percentage__2040_ VARCHAR, _percentage__2000_ VARCHAR)
### OUTPUT
SELECT county FROM table_name_82 WHERE _percentage__2040_ > 1.8 AND _percentage__2000_ < 4.1 AND _percentage__1960_ < 3.2 AND rank = "13" | {
"input": "CREATE TABLE table_name_82 (county VARCHAR, rank VARCHAR, _percentage__1960_ VARCHAR, _percentage__2040_ VARCHAR, _percentage__2000_ VARCHAR)",
"instruction": "Which county has a % (2040) larger than 1.8, a % (2000) smaller than 4.1, a % (1960) smaller than 3.2, and is ranked 13?",
"output": "SELECT county FROM table_name_82 WHERE _percentage__2040_ > 1.8 AND _percentage__2000_ < 4.1 AND _percentage__1960_ < 3.2 AND rank = \"13\""
} |
### INSTRUCTION
Name the team for 19-34
### INPUT
CREATE TABLE table_23274514_7 (team VARCHAR, record VARCHAR)
### OUTPUT
SELECT team FROM table_23274514_7 WHERE record = "19-34" | {
"input": "CREATE TABLE table_23274514_7 (team VARCHAR, record VARCHAR)",
"instruction": "Name the team for 19-34",
"output": "SELECT team FROM table_23274514_7 WHERE record = \"19-34\""
} |
### INSTRUCTION
Show the crime rate of counties with a city having white percentage more than 90.
### INPUT
CREATE TABLE county_public_safety (Crime_rate VARCHAR, County_ID VARCHAR); CREATE TABLE city (County_ID VARCHAR, White INTEGER)
### OUTPUT
SELECT T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID WHERE T1.White > 90 | {
"input": "CREATE TABLE county_public_safety (Crime_rate VARCHAR, County_ID VARCHAR); CREATE TABLE city (County_ID VARCHAR, White INTEGER)",
"instruction": "Show the crime rate of counties with a city having white percentage more than 90.",
"output": "SELECT T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID WHERE T1.White > 90"
} |
### INSTRUCTION
What was the report of the Belgian Grand Prix?
### INPUT
CREATE TABLE table_1132600_3 (report VARCHAR, grand_prix VARCHAR)
### OUTPUT
SELECT report FROM table_1132600_3 WHERE grand_prix = "Belgian grand_prix" | {
"input": "CREATE TABLE table_1132600_3 (report VARCHAR, grand_prix VARCHAR)",
"instruction": "What was the report of the Belgian Grand Prix?",
"output": "SELECT report FROM table_1132600_3 WHERE grand_prix = \"Belgian grand_prix\""
} |
### INSTRUCTION
What are the region names affected by the storm with a number of deaths of least 10?
### INPUT
CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR, storm_id VARCHAR); CREATE TABLE storm (storm_id VARCHAR, number_deaths VARCHAR)
### OUTPUT
SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T3.number_deaths >= 10 | {
"input": "CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR, storm_id VARCHAR); CREATE TABLE storm (storm_id VARCHAR, number_deaths VARCHAR)",
"instruction": "What are the region names affected by the storm with a number of deaths of least 10?",
"output": "SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T3.number_deaths >= 10"
} |
### INSTRUCTION
What was the date of appointment for the manager of the 23rd team?
### INPUT
CREATE TABLE table_18795125_6 (date_of_appointment VARCHAR, position_in_table VARCHAR)
### OUTPUT
SELECT date_of_appointment FROM table_18795125_6 WHERE position_in_table = "23rd" | {
"input": "CREATE TABLE table_18795125_6 (date_of_appointment VARCHAR, position_in_table VARCHAR)",
"instruction": "What was the date of appointment for the manager of the 23rd team?",
"output": "SELECT date_of_appointment FROM table_18795125_6 WHERE position_in_table = \"23rd\""
} |
### INSTRUCTION
Which region in Saint-Simon-Les-Mines has a population smaller than 458?
### INPUT
CREATE TABLE table_name_9 (region INTEGER, name VARCHAR, population VARCHAR)
### OUTPUT
SELECT MAX(region) FROM table_name_9 WHERE name = "saint-simon-les-mines" AND population < 458 | {
"input": "CREATE TABLE table_name_9 (region INTEGER, name VARCHAR, population VARCHAR)",
"instruction": "Which region in Saint-Simon-Les-Mines has a population smaller than 458?",
"output": "SELECT MAX(region) FROM table_name_9 WHERE name = \"saint-simon-les-mines\" AND population < 458"
} |
### INSTRUCTION
How many points were there when there were less than 16 rebounds and 5 assists?
### INPUT
CREATE TABLE table_name_83 (points VARCHAR, assists VARCHAR, rebounds VARCHAR)
### OUTPUT
SELECT COUNT(points) FROM table_name_83 WHERE assists = 5 AND rebounds < 16 | {
"input": "CREATE TABLE table_name_83 (points VARCHAR, assists VARCHAR, rebounds VARCHAR)",
"instruction": "How many points were there when there were less than 16 rebounds and 5 assists?",
"output": "SELECT COUNT(points) FROM table_name_83 WHERE assists = 5 AND rebounds < 16"
} |
### INSTRUCTION
Which city had the charleston area convention center as its callback location
### INPUT
CREATE TABLE table_11129123_1 (audition_city VARCHAR, callback_venue VARCHAR)
### OUTPUT
SELECT audition_city FROM table_11129123_1 WHERE callback_venue = "Charleston Area Convention Center" | {
"input": "CREATE TABLE table_11129123_1 (audition_city VARCHAR, callback_venue VARCHAR)",
"instruction": "Which city had the charleston area convention center as its callback location",
"output": "SELECT audition_city FROM table_11129123_1 WHERE callback_venue = \"Charleston Area Convention Center\""
} |
### INSTRUCTION
How many entries are there for vote when the air date was 15 november 1997?
### INPUT
CREATE TABLE table_25016824_2 (vote VARCHAR, air_date VARCHAR)
### OUTPUT
SELECT COUNT(vote) FROM table_25016824_2 WHERE air_date = "15 November 1997" | {
"input": "CREATE TABLE table_25016824_2 (vote VARCHAR, air_date VARCHAR)",
"instruction": "How many entries are there for vote when the air date was 15 november 1997?",
"output": "SELECT COUNT(vote) FROM table_25016824_2 WHERE air_date = \"15 November 1997\""
} |
### INSTRUCTION
What LINER class has a W.A. of 0-6-0st with a 2 No. Built?
### INPUT
CREATE TABLE table_name_44 (lner_class VARCHAR, wa VARCHAR, no_built VARCHAR)
### OUTPUT
SELECT lner_class FROM table_name_44 WHERE wa = "0-6-0st" AND no_built = 2 | {
"input": "CREATE TABLE table_name_44 (lner_class VARCHAR, wa VARCHAR, no_built VARCHAR)",
"instruction": "What LINER class has a W.A. of 0-6-0st with a 2 No. Built?",
"output": "SELECT lner_class FROM table_name_44 WHERE wa = \"0-6-0st\" AND no_built = 2"
} |
### INSTRUCTION
What is the sales when the artist is kelly clarkson?
### INPUT
CREATE TABLE table_name_88 (sales VARCHAR, artist VARCHAR)
### OUTPUT
SELECT COUNT(sales) FROM table_name_88 WHERE artist = "kelly clarkson" | {
"input": "CREATE TABLE table_name_88 (sales VARCHAR, artist VARCHAR)",
"instruction": "What is the sales when the artist is kelly clarkson?",
"output": "SELECT COUNT(sales) FROM table_name_88 WHERE artist = \"kelly clarkson\""
} |
### INSTRUCTION
How many picks had a Reg GP that was over 906, when the Pl GP was bigger than 99?
### INPUT
CREATE TABLE table_name_30 (pick__number VARCHAR, reg_gp VARCHAR, pl_gp VARCHAR)
### OUTPUT
SELECT COUNT(pick__number) FROM table_name_30 WHERE reg_gp > 906 AND pl_gp > 99 | {
"input": "CREATE TABLE table_name_30 (pick__number VARCHAR, reg_gp VARCHAR, pl_gp VARCHAR)",
"instruction": "How many picks had a Reg GP that was over 906, when the Pl GP was bigger than 99?",
"output": "SELECT COUNT(pick__number) FROM table_name_30 WHERE reg_gp > 906 AND pl_gp > 99"
} |
### INSTRUCTION
List the name and count of each product in all orders.
### INPUT
CREATE TABLE orders (order_id VARCHAR); CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR)
### OUTPUT
SELECT T3.product_name, COUNT(*) FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id | {
"input": "CREATE TABLE orders (order_id VARCHAR); CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR)",
"instruction": "List the name and count of each product in all orders.",
"output": "SELECT T3.product_name, COUNT(*) FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id"
} |
### INSTRUCTION
What is listed for the Drawn that has a Tray bonus of 5 wiht Points for of 517?
### INPUT
CREATE TABLE table_name_23 (drawn VARCHAR, try_bonus VARCHAR, points_for VARCHAR)
### OUTPUT
SELECT drawn FROM table_name_23 WHERE try_bonus = "5" AND points_for = "517" | {
"input": "CREATE TABLE table_name_23 (drawn VARCHAR, try_bonus VARCHAR, points_for VARCHAR)",
"instruction": "What is listed for the Drawn that has a Tray bonus of 5 wiht Points for of 517?",
"output": "SELECT drawn FROM table_name_23 WHERE try_bonus = \"5\" AND points_for = \"517\""
} |
### INSTRUCTION
What is the Location of the Old Bedians Pitch?
### INPUT
CREATE TABLE table_name_97 (location VARCHAR, pitch VARCHAR)
### OUTPUT
SELECT location FROM table_name_97 WHERE pitch = "old bedians" | {
"input": "CREATE TABLE table_name_97 (location VARCHAR, pitch VARCHAR)",
"instruction": "What is the Location of the Old Bedians Pitch?",
"output": "SELECT location FROM table_name_97 WHERE pitch = \"old bedians\""
} |
### INSTRUCTION
WHich Coat of Cash" Wearing Celebrity has a Episode Number larger than 1 and with amy macdonald ( mr rock & roll )?
### INPUT
CREATE TABLE table_name_92 (episode_number VARCHAR, musical_guest__song_performed_ VARCHAR)
### OUTPUT
SELECT "coat_of_cash" AS _wearing_celebrity FROM table_name_92 WHERE episode_number > 1 AND musical_guest__song_performed_ = "amy macdonald ( mr rock & roll )" | {
"input": "CREATE TABLE table_name_92 (episode_number VARCHAR, musical_guest__song_performed_ VARCHAR)",
"instruction": "WHich Coat of Cash\" Wearing Celebrity has a Episode Number larger than 1 and with amy macdonald ( mr rock & roll )?",
"output": "SELECT \"coat_of_cash\" AS _wearing_celebrity FROM table_name_92 WHERE episode_number > 1 AND musical_guest__song_performed_ = \"amy macdonald ( mr rock & roll )\""
} |
### INSTRUCTION
Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?
### INPUT
CREATE TABLE votes (contestant_number VARCHAR); CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR)
### OUTPUT
SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY COUNT(*) LIMIT 1 | {
"input": "CREATE TABLE votes (contestant_number VARCHAR); CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR)",
"instruction": "Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?",
"output": "SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY COUNT(*) LIMIT 1"
} |
### INSTRUCTION
What is the sum of against scores when there are 3 losses and less than 6 games played?
### INPUT
CREATE TABLE table_name_1 (against VARCHAR, lost VARCHAR, played VARCHAR)
### OUTPUT
SELECT COUNT(against) FROM table_name_1 WHERE lost = 3 AND played < 6 | {
"input": "CREATE TABLE table_name_1 (against VARCHAR, lost VARCHAR, played VARCHAR)",
"instruction": "What is the sum of against scores when there are 3 losses and less than 6 games played?",
"output": "SELECT COUNT(against) FROM table_name_1 WHERE lost = 3 AND played < 6"
} |
### INSTRUCTION
Which Week has an Opponent of pittsburgh steelers, and an Attendance larger than 47,727?
### INPUT
CREATE TABLE table_name_69 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
### OUTPUT
SELECT MIN(week) FROM table_name_69 WHERE opponent = "pittsburgh steelers" AND attendance > 47 OFFSET 727 | {
"input": "CREATE TABLE table_name_69 (week INTEGER, opponent VARCHAR, attendance VARCHAR)",
"instruction": "Which Week has an Opponent of pittsburgh steelers, and an Attendance larger than 47,727?",
"output": "SELECT MIN(week) FROM table_name_69 WHERE opponent = \"pittsburgh steelers\" AND attendance > 47 OFFSET 727"
} |
### INSTRUCTION
What team has a location and attendance at the Seattle Center Coliseum 12,591?
### INPUT
CREATE TABLE table_name_22 (team VARCHAR, location_attendance VARCHAR)
### OUTPUT
SELECT team FROM table_name_22 WHERE location_attendance = "seattle center coliseum 12,591" | {
"input": "CREATE TABLE table_name_22 (team VARCHAR, location_attendance VARCHAR)",
"instruction": "What team has a location and attendance at the Seattle Center Coliseum 12,591?",
"output": "SELECT team FROM table_name_22 WHERE location_attendance = \"seattle center coliseum 12,591\""
} |
### INSTRUCTION
What is the submission Year of the Film The Dark Side of the Moon directed by Erik Clausen?
### INPUT
CREATE TABLE table_name_40 (year INTEGER, director VARCHAR, english_title VARCHAR)
### OUTPUT
SELECT SUM(year) FROM table_name_40 WHERE director = "erik clausen" AND english_title = "the dark side of the moon" | {
"input": "CREATE TABLE table_name_40 (year INTEGER, director VARCHAR, english_title VARCHAR)",
"instruction": "What is the submission Year of the Film The Dark Side of the Moon directed by Erik Clausen?",
"output": "SELECT SUM(year) FROM table_name_40 WHERE director = \"erik clausen\" AND english_title = \"the dark side of the moon\""
} |
### INSTRUCTION
what is the county when the latitude is more than 48.581299, ansi code is more than 1037103 and the geo id is 3801985060?
### INPUT
CREATE TABLE table_name_74 (county VARCHAR, geo_id VARCHAR, latitude VARCHAR, ansi_code VARCHAR)
### OUTPUT
SELECT county FROM table_name_74 WHERE latitude > 48.581299 AND ansi_code > 1037103 AND geo_id = 3801985060 | {
"input": "CREATE TABLE table_name_74 (county VARCHAR, geo_id VARCHAR, latitude VARCHAR, ansi_code VARCHAR)",
"instruction": "what is the county when the latitude is more than 48.581299, ansi code is more than 1037103 and the geo id is 3801985060?",
"output": "SELECT county FROM table_name_74 WHERE latitude > 48.581299 AND ansi_code > 1037103 AND geo_id = 3801985060"
} |
### INSTRUCTION
What numbered episode was directed by greg colton and written by patrick meighan?
### INPUT
CREATE TABLE table_28210383_1 (no__episode__number_ VARCHAR, directed_by VARCHAR, written_by VARCHAR)
### OUTPUT
SELECT no__episode__number_ FROM table_28210383_1 WHERE directed_by = "Greg Colton" AND written_by = "Patrick Meighan" | {
"input": "CREATE TABLE table_28210383_1 (no__episode__number_ VARCHAR, directed_by VARCHAR, written_by VARCHAR)",
"instruction": "What numbered episode was directed by greg colton and written by patrick meighan?",
"output": "SELECT no__episode__number_ FROM table_28210383_1 WHERE directed_by = \"Greg Colton\" AND written_by = \"Patrick Meighan\""
} |
### INSTRUCTION
what's the won with points against being 597
### INPUT
CREATE TABLE table_13758945_3 (won VARCHAR, points_against VARCHAR)
### OUTPUT
SELECT won FROM table_13758945_3 WHERE points_against = "597" | {
"input": "CREATE TABLE table_13758945_3 (won VARCHAR, points_against VARCHAR)",
"instruction": "what's the won with points against being 597",
"output": "SELECT won FROM table_13758945_3 WHERE points_against = \"597\""
} |
### INSTRUCTION
what is the lowest qualifying rank?
### INPUT
CREATE TABLE table_13114949_3 (qualifying_rank INTEGER)
### OUTPUT
SELECT MIN(qualifying_rank) FROM table_13114949_3 | {
"input": "CREATE TABLE table_13114949_3 (qualifying_rank INTEGER)",
"instruction": "what is the lowest qualifying rank?",
"output": "SELECT MIN(qualifying_rank) FROM table_13114949_3"
} |
### INSTRUCTION
When 318676 is the population of 2010 and 1st class is the income classification what is the area in kilometers squared?
### INPUT
CREATE TABLE table_29289372_1 (area__km²_ VARCHAR, income_classification VARCHAR, population__2010_ VARCHAR)
### OUTPUT
SELECT area__km²_ FROM table_29289372_1 WHERE income_classification = "1st Class" AND population__2010_ = 318676 | {
"input": "CREATE TABLE table_29289372_1 (area__km²_ VARCHAR, income_classification VARCHAR, population__2010_ VARCHAR)",
"instruction": "When 318676 is the population of 2010 and 1st class is the income classification what is the area in kilometers squared?",
"output": "SELECT area__km²_ FROM table_29289372_1 WHERE income_classification = \"1st Class\" AND population__2010_ = 318676"
} |
### INSTRUCTION
Which Population density (per km²) has a Change (%) larger than 4.9, and a Land area (km²) smaller than 15.59, and a Population (2011) larger than 790?
### INPUT
CREATE TABLE table_name_90 (population_density__per_km²_ INTEGER, population__2011_ VARCHAR, change___percentage_ VARCHAR, land_area__km²_ VARCHAR)
### OUTPUT
SELECT MAX(population_density__per_km²_) FROM table_name_90 WHERE change___percentage_ > 4.9 AND land_area__km²_ < 15.59 AND population__2011_ > 790 | {
"input": "CREATE TABLE table_name_90 (population_density__per_km²_ INTEGER, population__2011_ VARCHAR, change___percentage_ VARCHAR, land_area__km²_ VARCHAR)",
"instruction": "Which Population density (per km²) has a Change (%) larger than 4.9, and a Land area (km²) smaller than 15.59, and a Population (2011) larger than 790?",
"output": "SELECT MAX(population_density__per_km²_) FROM table_name_90 WHERE change___percentage_ > 4.9 AND land_area__km²_ < 15.59 AND population__2011_ > 790"
} |
### INSTRUCTION
What is the format for the station owned by Dakota Broadcasting?
### INPUT
CREATE TABLE table_2709_4 (format VARCHAR, owner VARCHAR)
### OUTPUT
SELECT format FROM table_2709_4 WHERE owner = "Dakota Broadcasting" | {
"input": "CREATE TABLE table_2709_4 (format VARCHAR, owner VARCHAR)",
"instruction": "What is the format for the station owned by Dakota Broadcasting?",
"output": "SELECT format FROM table_2709_4 WHERE owner = \"Dakota Broadcasting\""
} |
### INSTRUCTION
How much Area (km 2) has a Common of collegno, and a Population smaller than 50137?
### INPUT
CREATE TABLE table_name_60 (area__km_2__ VARCHAR, common_of VARCHAR, population VARCHAR)
### OUTPUT
SELECT COUNT(area__km_2__) FROM table_name_60 WHERE common_of = "collegno" AND population < 50137 | {
"input": "CREATE TABLE table_name_60 (area__km_2__ VARCHAR, common_of VARCHAR, population VARCHAR)",
"instruction": "How much Area (km 2) has a Common of collegno, and a Population smaller than 50137?",
"output": "SELECT COUNT(area__km_2__) FROM table_name_60 WHERE common_of = \"collegno\" AND population < 50137"
} |
### INSTRUCTION
What district is the court located in Tolland?
### INPUT
CREATE TABLE table_26758262_1 (district INTEGER, location_of_court VARCHAR)
### OUTPUT
SELECT MAX(district) FROM table_26758262_1 WHERE location_of_court = "Tolland" | {
"input": "CREATE TABLE table_26758262_1 (district INTEGER, location_of_court VARCHAR)",
"instruction": "What district is the court located in Tolland?",
"output": "SELECT MAX(district) FROM table_26758262_1 WHERE location_of_court = \"Tolland\""
} |
### INSTRUCTION
Name the total number of score for staples center 13,266
### INPUT
CREATE TABLE table_17323529_5 (score VARCHAR, location_attendance VARCHAR)
### OUTPUT
SELECT COUNT(score) FROM table_17323529_5 WHERE location_attendance = "Staples Center 13,266" | {
"input": "CREATE TABLE table_17323529_5 (score VARCHAR, location_attendance VARCHAR)",
"instruction": "Name the total number of score for staples center 13,266",
"output": "SELECT COUNT(score) FROM table_17323529_5 WHERE location_attendance = \"Staples Center 13,266\""
} |
### INSTRUCTION
What is the 2000 population in OK with a 1990-2000 percent change of A078 +17.22%?
### INPUT
CREATE TABLE table_name_71 (state_s_ VARCHAR, percent_change__1990_2000_ VARCHAR)
### OUTPUT
SELECT 2000 AS _population FROM table_name_71 WHERE state_s_ = "ok" AND percent_change__1990_2000_ = "a078 +17.22%" | {
"input": "CREATE TABLE table_name_71 (state_s_ VARCHAR, percent_change__1990_2000_ VARCHAR)",
"instruction": "What is the 2000 population in OK with a 1990-2000 percent change of A078 +17.22%?",
"output": "SELECT 2000 AS _population FROM table_name_71 WHERE state_s_ = \"ok\" AND percent_change__1990_2000_ = \"a078 +17.22%\""
} |
### INSTRUCTION
What was the average Value ($M) when the Country was England, the Operating income($m) was greater than -5, and the Revenue ($M) was smaller than 103?
### INPUT
CREATE TABLE table_name_95 (value__ INTEGER, revenue__$m_ VARCHAR, country VARCHAR, operating_income_$m_ VARCHAR)
### OUTPUT
SELECT AVG(value__) AS $m_ FROM table_name_95 WHERE country = "england" AND operating_income_$m_ > -5 AND revenue__$m_ < 103 | {
"input": "CREATE TABLE table_name_95 (value__ INTEGER, revenue__$m_ VARCHAR, country VARCHAR, operating_income_$m_ VARCHAR)",
"instruction": "What was the average Value ($M) when the Country was England, the Operating income($m) was greater than -5, and the Revenue ($M) was smaller than 103?",
"output": "SELECT AVG(value__) AS $m_ FROM table_name_95 WHERE country = \"england\" AND operating_income_$m_ > -5 AND revenue__$m_ < 103"
} |
### INSTRUCTION
Can you tell me the Barrel twist that has the Barrel lenght of 11.5 in.?
### INPUT
CREATE TABLE table_name_63 (barrel_twist VARCHAR, barrel_length VARCHAR)
### OUTPUT
SELECT barrel_twist FROM table_name_63 WHERE barrel_length = "11.5 in." | {
"input": "CREATE TABLE table_name_63 (barrel_twist VARCHAR, barrel_length VARCHAR)",
"instruction": "Can you tell me the Barrel twist that has the Barrel lenght of 11.5 in.?",
"output": "SELECT barrel_twist FROM table_name_63 WHERE barrel_length = \"11.5 in.\""
} |
### INSTRUCTION
What incumbent was first elected in 2009?
### INPUT
CREATE TABLE table_19753079_8 (incumbent VARCHAR, first_elected VARCHAR)
### OUTPUT
SELECT incumbent FROM table_19753079_8 WHERE first_elected = 2009 | {
"input": "CREATE TABLE table_19753079_8 (incumbent VARCHAR, first_elected VARCHAR)",
"instruction": "What incumbent was first elected in 2009?",
"output": "SELECT incumbent FROM table_19753079_8 WHERE first_elected = 2009"
} |
### INSTRUCTION
Name the lowest Gain which has a Long of 0, and a GP-GS of 4–0, and a Loss smaller than 3?
### INPUT
CREATE TABLE table_name_95 (gain INTEGER, loss VARCHAR, long VARCHAR, gp_gs VARCHAR)
### OUTPUT
SELECT MIN(gain) FROM table_name_95 WHERE long = 0 AND gp_gs = "4–0" AND loss < 3 | {
"input": "CREATE TABLE table_name_95 (gain INTEGER, loss VARCHAR, long VARCHAR, gp_gs VARCHAR)",
"instruction": "Name the lowest Gain which has a Long of 0, and a GP-GS of 4–0, and a Loss smaller than 3?",
"output": "SELECT MIN(gain) FROM table_name_95 WHERE long = 0 AND gp_gs = \"4–0\" AND loss < 3"
} |
### INSTRUCTION
How many numbers were listed under losing bonus when there were 68 tries for?
### INPUT
CREATE TABLE table_13399573_3 (losing_bonus VARCHAR, tries_for VARCHAR)
### OUTPUT
SELECT COUNT(losing_bonus) FROM table_13399573_3 WHERE tries_for = "68" | {
"input": "CREATE TABLE table_13399573_3 (losing_bonus VARCHAR, tries_for VARCHAR)",
"instruction": "How many numbers were listed under losing bonus when there were 68 tries for?",
"output": "SELECT COUNT(losing_bonus) FROM table_13399573_3 WHERE tries_for = \"68\""
} |
### INSTRUCTION
For all games with calgary as home, what is the average number of attendees?
### INPUT
CREATE TABLE table_name_1 (attendance INTEGER, home VARCHAR)
### OUTPUT
SELECT AVG(attendance) FROM table_name_1 WHERE home = "calgary" | {
"input": "CREATE TABLE table_name_1 (attendance INTEGER, home VARCHAR)",
"instruction": "For all games with calgary as home, what is the average number of attendees?",
"output": "SELECT AVG(attendance) FROM table_name_1 WHERE home = \"calgary\""
} |
### INSTRUCTION
Which Coach has a Most Improved of rory thompson?
### INPUT
CREATE TABLE table_name_75 (coach VARCHAR, most_improved VARCHAR)
### OUTPUT
SELECT coach FROM table_name_75 WHERE most_improved = "rory thompson" | {
"input": "CREATE TABLE table_name_75 (coach VARCHAR, most_improved VARCHAR)",
"instruction": "Which Coach has a Most Improved of rory thompson?",
"output": "SELECT coach FROM table_name_75 WHERE most_improved = \"rory thompson\""
} |
### INSTRUCTION
How many proteins are associated with an institution founded after 1880 or an institution with type "Private"?
### INPUT
CREATE TABLE institution (institution_id VARCHAR, founded VARCHAR, type VARCHAR); CREATE TABLE protein (institution_id VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id WHERE T1.founded > 1880 OR T1.type = 'Private' | {
"input": "CREATE TABLE institution (institution_id VARCHAR, founded VARCHAR, type VARCHAR); CREATE TABLE protein (institution_id VARCHAR)",
"instruction": "How many proteins are associated with an institution founded after 1880 or an institution with type \"Private\"?",
"output": "SELECT COUNT(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id WHERE T1.founded > 1880 OR T1.type = 'Private'"
} |
### INSTRUCTION
List the state names and the number of customers living in each state.
### INPUT
CREATE TABLE customer_addresses (address_id VARCHAR); CREATE TABLE addresses (state_province_county VARCHAR, address_id VARCHAR)
### OUTPUT
SELECT t2.state_province_county, COUNT(*) FROM customer_addresses AS t1 JOIN addresses AS t2 ON t1.address_id = t2.address_id GROUP BY t2.state_province_county | {
"input": "CREATE TABLE customer_addresses (address_id VARCHAR); CREATE TABLE addresses (state_province_county VARCHAR, address_id VARCHAR)",
"instruction": "List the state names and the number of customers living in each state.",
"output": "SELECT t2.state_province_county, COUNT(*) FROM customer_addresses AS t1 JOIN addresses AS t2 ON t1.address_id = t2.address_id GROUP BY t2.state_province_county"
} |
### INSTRUCTION
What is the lowest First Year, when Model is "Quattroporte (2.8)"?
### INPUT
CREATE TABLE table_name_15 (first_year INTEGER, model VARCHAR)
### OUTPUT
SELECT MIN(first_year) FROM table_name_15 WHERE model = "quattroporte (2.8)" | {
"input": "CREATE TABLE table_name_15 (first_year INTEGER, model VARCHAR)",
"instruction": "What is the lowest First Year, when Model is \"Quattroporte (2.8)\"?",
"output": "SELECT MIN(first_year) FROM table_name_15 WHERE model = \"quattroporte (2.8)\""
} |
### INSTRUCTION
What is the name of team 1 that was after the 2005 season and with a 4-2 score?
### INPUT
CREATE TABLE table_name_11 (team_1 VARCHAR, season VARCHAR, score VARCHAR)
### OUTPUT
SELECT team_1 FROM table_name_11 WHERE season > 2005 AND score = "4-2" | {
"input": "CREATE TABLE table_name_11 (team_1 VARCHAR, season VARCHAR, score VARCHAR)",
"instruction": "What is the name of team 1 that was after the 2005 season and with a 4-2 score?",
"output": "SELECT team_1 FROM table_name_11 WHERE season > 2005 AND score = \"4-2\""
} |
### INSTRUCTION
Who did the Rangers play in a game that was later than 72 when the team record was 39-27-9?
### INPUT
CREATE TABLE table_name_93 (opponent VARCHAR, game VARCHAR, record VARCHAR)
### OUTPUT
SELECT opponent FROM table_name_93 WHERE game > 72 AND record = "39-27-9" | {
"input": "CREATE TABLE table_name_93 (opponent VARCHAR, game VARCHAR, record VARCHAR)",
"instruction": "Who did the Rangers play in a game that was later than 72 when the team record was 39-27-9?",
"output": "SELECT opponent FROM table_name_93 WHERE game > 72 AND record = \"39-27-9\""
} |
### INSTRUCTION
Which Release price (USD ) that has a Release date on april 2012 and a Part number(s) of cm8063701211900bx80637i73770s?
### INPUT
CREATE TABLE table_name_90 (release_price___usd__ VARCHAR, release_date VARCHAR, part_number_s_ VARCHAR)
### OUTPUT
SELECT release_price___usd__ FROM table_name_90 WHERE release_date = "april 2012" AND part_number_s_ = "cm8063701211900bx80637i73770s" | {
"input": "CREATE TABLE table_name_90 (release_price___usd__ VARCHAR, release_date VARCHAR, part_number_s_ VARCHAR)",
"instruction": "Which Release price (USD ) that has a Release date on april 2012 and a Part number(s) of cm8063701211900bx80637i73770s?",
"output": "SELECT release_price___usd__ FROM table_name_90 WHERE release_date = \"april 2012\" AND part_number_s_ = \"cm8063701211900bx80637i73770s\""
} |
### INSTRUCTION
What instrumental has chven-s as the adverbial?
### INPUT
CREATE TABLE table_name_87 (instrumental VARCHAR, adverbial VARCHAR)
### OUTPUT
SELECT instrumental FROM table_name_87 WHERE adverbial = "chven-s" | {
"input": "CREATE TABLE table_name_87 (instrumental VARCHAR, adverbial VARCHAR)",
"instruction": "What instrumental has chven-s as the adverbial?",
"output": "SELECT instrumental FROM table_name_87 WHERE adverbial = \"chven-s\""
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.