text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What is the name of the minister from the party of minister for community safety and legal affairs? ### INPUT CREATE TABLE table_name_45 (name VARCHAR, party VARCHAR) ### OUTPUT SELECT name FROM table_name_45 WHERE party = "minister for community safety and legal affairs"
{ "input": "CREATE TABLE table_name_45 (name VARCHAR, party VARCHAR)", "instruction": "What is the name of the minister from the party of minister for community safety and legal affairs?", "output": "SELECT name FROM table_name_45 WHERE party = \"minister for community safety and legal affairs\"" }
### INSTRUCTION Name the highest In/de-creased which has a Percentage in/de-crease of 100%, and Seats 2010 larger than 8? ### INPUT CREATE TABLE table_name_34 (in_de_creased_by INTEGER, percentage_in_de_crease VARCHAR, seats_2010 VARCHAR) ### OUTPUT SELECT MAX(in_de_creased_by) FROM table_name_34 WHERE percentage_in_de_crease = "100%" AND seats_2010 > 8
{ "input": "CREATE TABLE table_name_34 (in_de_creased_by INTEGER, percentage_in_de_crease VARCHAR, seats_2010 VARCHAR)", "instruction": "Name the highest In/de-creased which has a Percentage in/de-crease of 100%, and Seats 2010 larger than 8?", "output": "SELECT MAX(in_de_creased_by) FROM table_name_34 WHERE percentage_in_de_crease = \"100%\" AND seats_2010 > 8" }
### INSTRUCTION What is the one mora for a low tone mora with a gloss of /˩okiru/ [òkìɽɯ́]? ### INPUT CREATE TABLE table_name_95 (one_mora VARCHAR, gloss VARCHAR, accented_mora VARCHAR) ### OUTPUT SELECT one_mora FROM table_name_95 WHERE NOT accented_mora = "low tone" AND gloss = "/˩okiru/ [òkìɽɯ́]"
{ "input": "CREATE TABLE table_name_95 (one_mora VARCHAR, gloss VARCHAR, accented_mora VARCHAR)", "instruction": "What is the one mora for a low tone mora with a gloss of /˩okiru/ [òkìɽɯ́]?", "output": "SELECT one_mora FROM table_name_95 WHERE NOT accented_mora = \"low tone\" AND gloss = \"/˩okiru/ [òkìɽɯ́]\"" }
### INSTRUCTION How many customers are living in city "Lake Geovannyton"? ### INPUT CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE addresses (address_id VARCHAR, city VARCHAR); CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR) ### OUTPUT SELECT COUNT(*) FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.city = "Lake Geovannyton"
{ "input": "CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE addresses (address_id VARCHAR, city VARCHAR); CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR)", "instruction": "How many customers are living in city \"Lake Geovannyton\"?", "output": "SELECT COUNT(*) FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.city = \"Lake Geovannyton\"" }
### INSTRUCTION what is the average points when position is more than 5 and played is less than 10? ### INPUT CREATE TABLE table_name_55 (points INTEGER, position VARCHAR, played VARCHAR) ### OUTPUT SELECT AVG(points) FROM table_name_55 WHERE position > 5 AND played < 10
{ "input": "CREATE TABLE table_name_55 (points INTEGER, position VARCHAR, played VARCHAR)", "instruction": "what is the average points when position is more than 5 and played is less than 10?", "output": "SELECT AVG(points) FROM table_name_55 WHERE position > 5 AND played < 10" }
### INSTRUCTION What is the event when the method was submission (armbar), and Jeff Gibson was the opponent? ### INPUT CREATE TABLE table_name_67 (event VARCHAR, method VARCHAR, opponent VARCHAR) ### OUTPUT SELECT event FROM table_name_67 WHERE method = "submission (armbar)" AND opponent = "jeff gibson"
{ "input": "CREATE TABLE table_name_67 (event VARCHAR, method VARCHAR, opponent VARCHAR)", "instruction": "What is the event when the method was submission (armbar), and Jeff Gibson was the opponent?", "output": "SELECT event FROM table_name_67 WHERE method = \"submission (armbar)\" AND opponent = \"jeff gibson\"" }
### INSTRUCTION For the United Kingdom, what's the date? ### INPUT CREATE TABLE table_name_88 (date VARCHAR, country VARCHAR) ### OUTPUT SELECT date FROM table_name_88 WHERE country = "united kingdom"
{ "input": "CREATE TABLE table_name_88 (date VARCHAR, country VARCHAR)", "instruction": "For the United Kingdom, what's the date?", "output": "SELECT date FROM table_name_88 WHERE country = \"united kingdom\"" }
### INSTRUCTION Who placed t7 with a score of 70-71=141? ### INPUT CREATE TABLE table_name_16 (player VARCHAR, place VARCHAR, score VARCHAR) ### OUTPUT SELECT player FROM table_name_16 WHERE place = "t7" AND score = 70 - 71 = 141
{ "input": "CREATE TABLE table_name_16 (player VARCHAR, place VARCHAR, score VARCHAR)", "instruction": "Who placed t7 with a score of 70-71=141?", "output": "SELECT player FROM table_name_16 WHERE place = \"t7\" AND score = 70 - 71 = 141" }
### INSTRUCTION What is the highest Points when the record was 12–2, and the Points Against are larger than 6? ### INPUT CREATE TABLE table_name_25 (points_for INTEGER, record VARCHAR, points_against VARCHAR) ### OUTPUT SELECT MAX(points_for) FROM table_name_25 WHERE record = "12–2" AND points_against > 6
{ "input": "CREATE TABLE table_name_25 (points_for INTEGER, record VARCHAR, points_against VARCHAR)", "instruction": "What is the highest Points when the record was 12–2, and the Points Against are larger than 6?", "output": "SELECT MAX(points_for) FROM table_name_25 WHERE record = \"12–2\" AND points_against > 6" }
### INSTRUCTION What is the loses total when there is less than 4 draws, less than 105 conceded goals, less than 38 goals scored, and the club is positioned greater than 2? ### INPUT CREATE TABLE table_name_54 (loses INTEGER, goals_scored VARCHAR, position VARCHAR, draws VARCHAR, goals_conceded VARCHAR) ### OUTPUT SELECT SUM(loses) FROM table_name_54 WHERE draws < 4 AND goals_conceded < 105 AND position > 2 AND goals_scored < 38
{ "input": "CREATE TABLE table_name_54 (loses INTEGER, goals_scored VARCHAR, position VARCHAR, draws VARCHAR, goals_conceded VARCHAR)", "instruction": "What is the loses total when there is less than 4 draws, less than 105 conceded goals, less than 38 goals scored, and the club is positioned greater than 2?", "output": "SELECT SUM(loses) FROM table_name_54 WHERE draws < 4 AND goals_conceded < 105 AND position > 2 AND goals_scored < 38" }
### INSTRUCTION Name the first air date for 9 episode ### INPUT CREATE TABLE table_20971444_3 (first_air_date VARCHAR, episode VARCHAR) ### OUTPUT SELECT first_air_date FROM table_20971444_3 WHERE episode = 9
{ "input": "CREATE TABLE table_20971444_3 (first_air_date VARCHAR, episode VARCHAR)", "instruction": "Name the first air date for 9 episode", "output": "SELECT first_air_date FROM table_20971444_3 WHERE episode = 9" }
### INSTRUCTION Name the most points for class of 125cc and team of mv agusta with year more than 1957 ### INPUT CREATE TABLE table_name_65 (points INTEGER, year VARCHAR, class VARCHAR, team VARCHAR) ### OUTPUT SELECT MAX(points) FROM table_name_65 WHERE class = "125cc" AND team = "mv agusta" AND year > 1957
{ "input": "CREATE TABLE table_name_65 (points INTEGER, year VARCHAR, class VARCHAR, team VARCHAR)", "instruction": "Name the most points for class of 125cc and team of mv agusta with year more than 1957", "output": "SELECT MAX(points) FROM table_name_65 WHERE class = \"125cc\" AND team = \"mv agusta\" AND year > 1957" }
### INSTRUCTION What is the least 2009 that has 2005 littler than 640, and 2011 of 425, and 2003 littler than 500? ### INPUT CREATE TABLE table_name_81 (Id VARCHAR) ### OUTPUT SELECT MIN(2009) FROM table_name_81 WHERE 2005 < 640 AND 2011 = 425 AND 2003 < 500
{ "input": "CREATE TABLE table_name_81 (Id VARCHAR)", "instruction": "What is the least 2009 that has 2005 littler than 640, and 2011 of 425, and 2003 littler than 500?", "output": "SELECT MIN(2009) FROM table_name_81 WHERE 2005 < 640 AND 2011 = 425 AND 2003 < 500" }
### INSTRUCTION How many different directors are associated with the writer Gaby Chiappe? ### INPUT CREATE TABLE table_15026994_2 (director VARCHAR, writer VARCHAR) ### OUTPUT SELECT COUNT(director) FROM table_15026994_2 WHERE writer = "Gaby Chiappe"
{ "input": "CREATE TABLE table_15026994_2 (director VARCHAR, writer VARCHAR)", "instruction": "How many different directors are associated with the writer Gaby Chiappe?", "output": "SELECT COUNT(director) FROM table_15026994_2 WHERE writer = \"Gaby Chiappe\"" }
### INSTRUCTION How many Females (%) have Females Rank smaller than 21, and a State of kerala, and Males Rank larger than 1? ### INPUT CREATE TABLE table_name_1 (females___percentage_ VARCHAR, males_rank VARCHAR, females_rank VARCHAR, state VARCHAR) ### OUTPUT SELECT COUNT(females___percentage_) FROM table_name_1 WHERE females_rank < 21 AND state = "kerala" AND males_rank > 1
{ "input": "CREATE TABLE table_name_1 (females___percentage_ VARCHAR, males_rank VARCHAR, females_rank VARCHAR, state VARCHAR)", "instruction": "How many Females (%) have Females Rank smaller than 21, and a State of kerala, and Males Rank larger than 1?", "output": "SELECT COUNT(females___percentage_) FROM table_name_1 WHERE females_rank < 21 AND state = \"kerala\" AND males_rank > 1" }
### INSTRUCTION What is the highest number of silvers for qatar with under 8 total, 0 golds, and over 2 bronzes? ### INPUT CREATE TABLE table_name_9 (silver INTEGER, bronze VARCHAR, nation VARCHAR, total VARCHAR, gold VARCHAR) ### OUTPUT SELECT MAX(silver) FROM table_name_9 WHERE total < 8 AND gold = 0 AND nation = "qatar" AND bronze > 2
{ "input": "CREATE TABLE table_name_9 (silver INTEGER, bronze VARCHAR, nation VARCHAR, total VARCHAR, gold VARCHAR)", "instruction": "What is the highest number of silvers for qatar with under 8 total, 0 golds, and over 2 bronzes?", "output": "SELECT MAX(silver) FROM table_name_9 WHERE total < 8 AND gold = 0 AND nation = \"qatar\" AND bronze > 2" }
### INSTRUCTION which year was the original title გაღმა ნაპირი ### INPUT CREATE TABLE table_18069789_1 (year_ VARCHAR, e_ VARCHAR, original_title VARCHAR) ### OUTPUT SELECT year_[e_] AS __ceremony_ FROM table_18069789_1 WHERE original_title = "გაღმა ნაპირი"
{ "input": "CREATE TABLE table_18069789_1 (year_ VARCHAR, e_ VARCHAR, original_title VARCHAR)", "instruction": "which year was the original title გაღმა ნაპირი", "output": "SELECT year_[e_] AS __ceremony_ FROM table_18069789_1 WHERE original_title = \"გაღმა ნაპირი\"" }
### INSTRUCTION What is the Intergiro classification when the points classification is Paolo Bettini, Trofeo Super Team is Davitamon-Lotto, and the Mountains classification is José Rujano? ### INPUT CREATE TABLE table_name_16 (intergiro_classification VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR, trofeo_super_team VARCHAR) ### OUTPUT SELECT intergiro_classification FROM table_name_16 WHERE points_classification = "paolo bettini" AND trofeo_super_team = "davitamon-lotto" AND mountains_classification = "josé rujano"
{ "input": "CREATE TABLE table_name_16 (intergiro_classification VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR, trofeo_super_team VARCHAR)", "instruction": "What is the Intergiro classification when the points classification is Paolo Bettini, Trofeo Super Team is Davitamon-Lotto, and the Mountains classification is José Rujano?", "output": "SELECT intergiro_classification FROM table_name_16 WHERE points_classification = \"paolo bettini\" AND trofeo_super_team = \"davitamon-lotto\" AND mountains_classification = \"josé rujano\"" }
### INSTRUCTION What is the most common nationality of people? ### INPUT CREATE TABLE people (Nationality VARCHAR) ### OUTPUT SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE people (Nationality VARCHAR)", "instruction": "What is the most common nationality of people?", "output": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What is the airport with the IATA MEL? ### INPUT CREATE TABLE table_17419587_1 (airport VARCHAR, iata VARCHAR) ### OUTPUT SELECT COUNT(airport) FROM table_17419587_1 WHERE iata = "MEL"
{ "input": "CREATE TABLE table_17419587_1 (airport VARCHAR, iata VARCHAR)", "instruction": "What is the airport with the IATA MEL?", "output": "SELECT COUNT(airport) FROM table_17419587_1 WHERE iata = \"MEL\"" }
### INSTRUCTION What is the sum of Bronze when the rank is more than 11 and gold is less than 0? ### INPUT CREATE TABLE table_name_47 (bronze INTEGER, rank VARCHAR, gold VARCHAR) ### OUTPUT SELECT SUM(bronze) FROM table_name_47 WHERE rank > 11 AND gold < 0
{ "input": "CREATE TABLE table_name_47 (bronze INTEGER, rank VARCHAR, gold VARCHAR)", "instruction": "What is the sum of Bronze when the rank is more than 11 and gold is less than 0?", "output": "SELECT SUM(bronze) FROM table_name_47 WHERE rank > 11 AND gold < 0" }
### INSTRUCTION Who is the music-director for the song from the film khaleja who had a co-singer of hemachandra? ### INPUT CREATE TABLE table_name_69 (music___director VARCHAR, co___singer VARCHAR, film VARCHAR) ### OUTPUT SELECT music___director FROM table_name_69 WHERE co___singer = "hemachandra" AND film = "khaleja"
{ "input": "CREATE TABLE table_name_69 (music___director VARCHAR, co___singer VARCHAR, film VARCHAR)", "instruction": "Who is the music-director for the song from the film khaleja who had a co-singer of hemachandra?", "output": "SELECT music___director FROM table_name_69 WHERE co___singer = \"hemachandra\" AND film = \"khaleja\"" }
### INSTRUCTION Show all headquarters with both a company in banking industry and a company in Oil and gas. ### INPUT CREATE TABLE company (headquarters VARCHAR, main_industry VARCHAR) ### OUTPUT SELECT headquarters FROM company WHERE main_industry = 'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry = 'Oil and gas'
{ "input": "CREATE TABLE company (headquarters VARCHAR, main_industry VARCHAR)", "instruction": "Show all headquarters with both a company in banking industry and a company in Oil and gas.", "output": "SELECT headquarters FROM company WHERE main_industry = 'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry = 'Oil and gas'" }
### INSTRUCTION What is the 1st leg where Team 1 is C.D. Plaza Amador? ### INPUT CREATE TABLE table_name_48 (team_1 VARCHAR) ### OUTPUT SELECT 1 AS st_leg FROM table_name_48 WHERE team_1 = "c.d. plaza amador"
{ "input": "CREATE TABLE table_name_48 (team_1 VARCHAR)", "instruction": "What is the 1st leg where Team 1 is C.D. Plaza Amador?", "output": "SELECT 1 AS st_leg FROM table_name_48 WHERE team_1 = \"c.d. plaza amador\"" }
### INSTRUCTION Who had highest assists at game on December 21? ### INPUT CREATE TABLE table_27723526_9 (high_assists VARCHAR, date VARCHAR) ### OUTPUT SELECT COUNT(high_assists) FROM table_27723526_9 WHERE date = "December 21"
{ "input": "CREATE TABLE table_27723526_9 (high_assists VARCHAR, date VARCHAR)", "instruction": "Who had highest assists at game on December 21?", "output": "SELECT COUNT(high_assists) FROM table_27723526_9 WHERE date = \"December 21\"" }
### INSTRUCTION Which Tournament has a winner Outcome with a Score of 6–3, 7–5 with Kimberly Po-Messerli as a Partner? ### INPUT CREATE TABLE table_name_85 (tournament VARCHAR, partner VARCHAR, outcome VARCHAR, score VARCHAR) ### OUTPUT SELECT tournament FROM table_name_85 WHERE outcome = "winner" AND score = "6–3, 7–5" AND partner = "kimberly po-messerli"
{ "input": "CREATE TABLE table_name_85 (tournament VARCHAR, partner VARCHAR, outcome VARCHAR, score VARCHAR)", "instruction": "Which Tournament has a winner Outcome with a Score of 6–3, 7–5 with Kimberly Po-Messerli as a Partner?", "output": "SELECT tournament FROM table_name_85 WHERE outcome = \"winner\" AND score = \"6–3, 7–5\" AND partner = \"kimberly po-messerli\"" }
### INSTRUCTION What is the epicenter of the earthquake on March 2, 1825 with an unknown intensity? ### INPUT CREATE TABLE table_name_10 (epicenter VARCHAR, intensity VARCHAR, date VARCHAR) ### OUTPUT SELECT epicenter FROM table_name_10 WHERE intensity = "unknown" AND date = "march 2, 1825"
{ "input": "CREATE TABLE table_name_10 (epicenter VARCHAR, intensity VARCHAR, date VARCHAR)", "instruction": "What is the epicenter of the earthquake on March 2, 1825 with an unknown intensity?", "output": "SELECT epicenter FROM table_name_10 WHERE intensity = \"unknown\" AND date = \"march 2, 1825\"" }
### INSTRUCTION How many bronze medals for the nation with fewer than 3 gold, 1 silver and rank of 3? ### INPUT CREATE TABLE table_name_29 (bronze VARCHAR, rank VARCHAR, total VARCHAR, gold VARCHAR, silver VARCHAR) ### OUTPUT SELECT COUNT(bronze) FROM table_name_29 WHERE gold < 3 AND silver = 1 AND total < 3 AND rank = 3
{ "input": "CREATE TABLE table_name_29 (bronze VARCHAR, rank VARCHAR, total VARCHAR, gold VARCHAR, silver VARCHAR)", "instruction": "How many bronze medals for the nation with fewer than 3 gold, 1 silver and rank of 3?", "output": "SELECT COUNT(bronze) FROM table_name_29 WHERE gold < 3 AND silver = 1 AND total < 3 AND rank = 3" }
### INSTRUCTION what's the poles with pts being 81 ### INPUT CREATE TABLE table_14139408_1 (poles VARCHAR, pts VARCHAR) ### OUTPUT SELECT poles FROM table_14139408_1 WHERE pts = "81"
{ "input": "CREATE TABLE table_14139408_1 (poles VARCHAR, pts VARCHAR)", "instruction": "what's the poles with pts being 81", "output": "SELECT poles FROM table_14139408_1 WHERE pts = \"81\"" }
### INSTRUCTION Which Ending has British of iz, and Examples of achilles, appendices, fæces? ### INPUT CREATE TABLE table_name_49 (ending VARCHAR, british VARCHAR, examples VARCHAR) ### OUTPUT SELECT ending FROM table_name_49 WHERE british = "iz" AND examples = "achilles, appendices, fæces"
{ "input": "CREATE TABLE table_name_49 (ending VARCHAR, british VARCHAR, examples VARCHAR)", "instruction": "Which Ending has British of iz, and Examples of achilles, appendices, fæces?", "output": "SELECT ending FROM table_name_49 WHERE british = \"iz\" AND examples = \"achilles, appendices, fæces\"" }
### INSTRUCTION Name the D 45 O with D 44 O majority → ### INPUT CREATE TABLE table_name_5 (d_45_o VARCHAR, d_44_o VARCHAR) ### OUTPUT SELECT d_45_o FROM table_name_5 WHERE d_44_o = "majority →"
{ "input": "CREATE TABLE table_name_5 (d_45_o VARCHAR, d_44_o VARCHAR)", "instruction": "Name the D 45 O with D 44 O majority →", "output": "SELECT d_45_o FROM table_name_5 WHERE d_44_o = \"majority →\"" }
### INSTRUCTION What draw average has a televote less than 633 and Vilma Voroblevaitė as artist and the place is greater than 14? ### INPUT CREATE TABLE table_name_68 (draw INTEGER, place VARCHAR, televote VARCHAR, artist VARCHAR) ### OUTPUT SELECT AVG(draw) FROM table_name_68 WHERE televote < 633 AND artist = "vilma voroblevaitė" AND place > 14
{ "input": "CREATE TABLE table_name_68 (draw INTEGER, place VARCHAR, televote VARCHAR, artist VARCHAR)", "instruction": "What draw average has a televote less than 633 and Vilma Voroblevaitė as artist and the place is greater than 14?", "output": "SELECT AVG(draw) FROM table_name_68 WHERE televote < 633 AND artist = \"vilma voroblevaitė\" AND place > 14" }
### INSTRUCTION Name the Gold which has a Nation of australia, and a Bronze smaller than 1? ### INPUT CREATE TABLE table_name_64 (gold INTEGER, nation VARCHAR, bronze VARCHAR) ### OUTPUT SELECT MIN(gold) FROM table_name_64 WHERE nation = "australia" AND bronze < 1
{ "input": "CREATE TABLE table_name_64 (gold INTEGER, nation VARCHAR, bronze VARCHAR)", "instruction": "Name the Gold which has a Nation of australia, and a Bronze smaller than 1?", "output": "SELECT MIN(gold) FROM table_name_64 WHERE nation = \"australia\" AND bronze < 1" }
### INSTRUCTION What is the sum of Rank with a build year earlier than 2007 for the howard johnson hotel bucharest? ### INPUT CREATE TABLE table_name_39 (rank INTEGER, built VARCHAR, building VARCHAR) ### OUTPUT SELECT SUM(rank) FROM table_name_39 WHERE built < 2007 AND building = "howard johnson hotel bucharest"
{ "input": "CREATE TABLE table_name_39 (rank INTEGER, built VARCHAR, building VARCHAR)", "instruction": "What is the sum of Rank with a build year earlier than 2007 for the howard johnson hotel bucharest?", "output": "SELECT SUM(rank) FROM table_name_39 WHERE built < 2007 AND building = \"howard johnson hotel bucharest\"" }
### INSTRUCTION Show headquarters with at least two companies in the banking industry. ### INPUT CREATE TABLE company (headquarters VARCHAR, main_industry VARCHAR) ### OUTPUT SELECT headquarters FROM company WHERE main_industry = 'Banking' GROUP BY headquarters HAVING COUNT(*) >= 2
{ "input": "CREATE TABLE company (headquarters VARCHAR, main_industry VARCHAR)", "instruction": "Show headquarters with at least two companies in the banking industry.", "output": "SELECT headquarters FROM company WHERE main_industry = 'Banking' GROUP BY headquarters HAVING COUNT(*) >= 2" }
### INSTRUCTION How many people were in the crowd at Lake Oval? ### INPUT CREATE TABLE table_name_2 (crowd VARCHAR, venue VARCHAR) ### OUTPUT SELECT crowd FROM table_name_2 WHERE venue = "lake oval"
{ "input": "CREATE TABLE table_name_2 (crowd VARCHAR, venue VARCHAR)", "instruction": "How many people were in the crowd at Lake Oval?", "output": "SELECT crowd FROM table_name_2 WHERE venue = \"lake oval\"" }
### INSTRUCTION What was the Result F–A on 21 February 2009, when the league position was 1st? ### INPUT CREATE TABLE table_name_55 (result_f_a VARCHAR, league_position VARCHAR, date VARCHAR) ### OUTPUT SELECT result_f_a FROM table_name_55 WHERE league_position = "1st" AND date = "21 february 2009"
{ "input": "CREATE TABLE table_name_55 (result_f_a VARCHAR, league_position VARCHAR, date VARCHAR)", "instruction": "What was the Result F–A on 21 February 2009, when the league position was 1st?", "output": "SELECT result_f_a FROM table_name_55 WHERE league_position = \"1st\" AND date = \"21 february 2009\"" }
### INSTRUCTION What is the name and open year for the branch with most number of memberships registered in 2016? ### INPUT CREATE TABLE membership_register_branch (branch_id VARCHAR, register_year VARCHAR); CREATE TABLE branch (name VARCHAR, open_year VARCHAR, branch_id VARCHAR) ### OUTPUT SELECT T2.name, T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year = 2016 GROUP BY T2.branch_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE membership_register_branch (branch_id VARCHAR, register_year VARCHAR); CREATE TABLE branch (name VARCHAR, open_year VARCHAR, branch_id VARCHAR)", "instruction": "What is the name and open year for the branch with most number of memberships registered in 2016?", "output": "SELECT T2.name, T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year = 2016 GROUP BY T2.branch_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION Name the least points for patrick ### INPUT CREATE TABLE table_14342592_4 (points INTEGER, player VARCHAR) ### OUTPUT SELECT MIN(points) FROM table_14342592_4 WHERE player = "Patrick"
{ "input": "CREATE TABLE table_14342592_4 (points INTEGER, player VARCHAR)", "instruction": "Name the least points for patrick", "output": "SELECT MIN(points) FROM table_14342592_4 WHERE player = \"Patrick\"" }
### INSTRUCTION What is the smallest percentage of marine area for Pacific Marine ecozone and percentage of total area greater than 3.1? ### INPUT CREATE TABLE table_name_50 (percentage_of_marine_area__foreez_ INTEGER, ecozone VARCHAR, percentage_of_total_area__foreez_ VARCHAR) ### OUTPUT SELECT MIN(percentage_of_marine_area__foreez_) FROM table_name_50 WHERE ecozone = "pacific marine" AND percentage_of_total_area__foreez_ > 3.1
{ "input": "CREATE TABLE table_name_50 (percentage_of_marine_area__foreez_ INTEGER, ecozone VARCHAR, percentage_of_total_area__foreez_ VARCHAR)", "instruction": "What is the smallest percentage of marine area for Pacific Marine ecozone and percentage of total area greater than 3.1?", "output": "SELECT MIN(percentage_of_marine_area__foreez_) FROM table_name_50 WHERE ecozone = \"pacific marine\" AND percentage_of_total_area__foreez_ > 3.1" }
### INSTRUCTION What is the average height for hewitt class, with prom less than 86, and a Peak of gragareth? ### INPUT CREATE TABLE table_name_45 (height__m_ INTEGER, peak VARCHAR, class VARCHAR, prom__m_ VARCHAR) ### OUTPUT SELECT AVG(height__m_) FROM table_name_45 WHERE class = "hewitt" AND prom__m_ < 86 AND peak = "gragareth"
{ "input": "CREATE TABLE table_name_45 (height__m_ INTEGER, peak VARCHAR, class VARCHAR, prom__m_ VARCHAR)", "instruction": "What is the average height for hewitt class, with prom less than 86, and a Peak of gragareth?", "output": "SELECT AVG(height__m_) FROM table_name_45 WHERE class = \"hewitt\" AND prom__m_ < 86 AND peak = \"gragareth\"" }
### INSTRUCTION What is the Away captain when the Result was draw, and a Venue of lord's? ### INPUT CREATE TABLE table_name_72 (away_captain VARCHAR, result VARCHAR, venue VARCHAR) ### OUTPUT SELECT away_captain FROM table_name_72 WHERE result = "draw" AND venue = "lord's"
{ "input": "CREATE TABLE table_name_72 (away_captain VARCHAR, result VARCHAR, venue VARCHAR)", "instruction": "What is the Away captain when the Result was draw, and a Venue of lord's?", "output": "SELECT away_captain FROM table_name_72 WHERE result = \"draw\" AND venue = \"lord's\"" }
### INSTRUCTION Who was the opponent that played at Launceston Cricket Club Ground, launceston during the season of 1853/54? ### INPUT CREATE TABLE table_name_47 (opponent VARCHAR, venue VARCHAR, season VARCHAR) ### OUTPUT SELECT opponent FROM table_name_47 WHERE venue = "launceston cricket club ground, launceston" AND season = "1853/54"
{ "input": "CREATE TABLE table_name_47 (opponent VARCHAR, venue VARCHAR, season VARCHAR)", "instruction": "Who was the opponent that played at Launceston Cricket Club Ground, launceston during the season of 1853/54?", "output": "SELECT opponent FROM table_name_47 WHERE venue = \"launceston cricket club ground, launceston\" AND season = \"1853/54\"" }
### INSTRUCTION What was the Score in the game against the Buffalo Sabres? ### INPUT CREATE TABLE table_name_83 (score VARCHAR, opponent VARCHAR) ### OUTPUT SELECT score FROM table_name_83 WHERE opponent = "buffalo sabres"
{ "input": "CREATE TABLE table_name_83 (score VARCHAR, opponent VARCHAR)", "instruction": "What was the Score in the game against the Buffalo Sabres?", "output": "SELECT score FROM table_name_83 WHERE opponent = \"buffalo sabres\"" }
### INSTRUCTION Name the lowest Quay cranes for Berths of 1 and operator of mtl with terminal of terminal 5 (ct5) ### INPUT CREATE TABLE table_name_72 (quay_cranes INTEGER, terminal VARCHAR, berths VARCHAR, operator VARCHAR) ### OUTPUT SELECT MIN(quay_cranes) FROM table_name_72 WHERE berths = 1 AND operator = "mtl" AND terminal = "terminal 5 (ct5)"
{ "input": "CREATE TABLE table_name_72 (quay_cranes INTEGER, terminal VARCHAR, berths VARCHAR, operator VARCHAR)", "instruction": "Name the lowest Quay cranes for Berths of 1 and operator of mtl with terminal of terminal 5 (ct5)", "output": "SELECT MIN(quay_cranes) FROM table_name_72 WHERE berths = 1 AND operator = \"mtl\" AND terminal = \"terminal 5 (ct5)\"" }
### INSTRUCTION What is the score from September 15 that has the Indians as the opponent? ### INPUT CREATE TABLE table_name_35 (score VARCHAR, opponent VARCHAR, date VARCHAR) ### OUTPUT SELECT score FROM table_name_35 WHERE opponent = "indians" AND date = "september 15"
{ "input": "CREATE TABLE table_name_35 (score VARCHAR, opponent VARCHAR, date VARCHAR)", "instruction": "What is the score from September 15 that has the Indians as the opponent?", "output": "SELECT score FROM table_name_35 WHERE opponent = \"indians\" AND date = \"september 15\"" }
### INSTRUCTION Show the minimum, average, maximum order quantity of all invoices. ### INPUT CREATE TABLE INVOICES (Order_Quantity INTEGER) ### OUTPUT SELECT MIN(Order_Quantity), AVG(Order_Quantity), MAX(Order_Quantity) FROM INVOICES
{ "input": "CREATE TABLE INVOICES (Order_Quantity INTEGER)", "instruction": "Show the minimum, average, maximum order quantity of all invoices.", "output": "SELECT MIN(Order_Quantity), AVG(Order_Quantity), MAX(Order_Quantity) FROM INVOICES" }
### INSTRUCTION What is the total of Final year that has a Notes of replaced by i-96? ### INPUT CREATE TABLE table_name_15 (final_year INTEGER, notes VARCHAR) ### OUTPUT SELECT SUM(final_year) FROM table_name_15 WHERE notes = "replaced by i-96"
{ "input": "CREATE TABLE table_name_15 (final_year INTEGER, notes VARCHAR)", "instruction": "What is the total of Final year that has a Notes of replaced by i-96?", "output": "SELECT SUM(final_year) FROM table_name_15 WHERE notes = \"replaced by i-96\"" }
### INSTRUCTION Which catalog publisher has published the most catalogs? ### INPUT CREATE TABLE catalogs (catalog_publisher VARCHAR) ### OUTPUT SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE catalogs (catalog_publisher VARCHAR)", "instruction": "Which catalog publisher has published the most catalogs?", "output": "SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What is College/Team, when Round is less than 2, and when Nationality is "United States"? ### INPUT CREATE TABLE table_name_18 (college_team VARCHAR, round VARCHAR, nationality VARCHAR) ### OUTPUT SELECT college_team FROM table_name_18 WHERE round < 2 AND nationality = "united states"
{ "input": "CREATE TABLE table_name_18 (college_team VARCHAR, round VARCHAR, nationality VARCHAR)", "instruction": "What is College/Team, when Round is less than 2, and when Nationality is \"United States\"?", "output": "SELECT college_team FROM table_name_18 WHERE round < 2 AND nationality = \"united states\"" }
### INSTRUCTION Who was the supporting actress in "For Whom the Bell Tolls"? ### INPUT CREATE TABLE table_24225238_1 (supporting_actress VARCHAR, film VARCHAR) ### OUTPUT SELECT supporting_actress FROM table_24225238_1 WHERE film = "For Whom the Bell Tolls"
{ "input": "CREATE TABLE table_24225238_1 (supporting_actress VARCHAR, film VARCHAR)", "instruction": "Who was the supporting actress in \"For Whom the Bell Tolls\"?", "output": "SELECT supporting_actress FROM table_24225238_1 WHERE film = \"For Whom the Bell Tolls\"" }
### INSTRUCTION What is the name of the performance zhu xiaoming performed? ### INPUT CREATE TABLE table_28180840_15 (act VARCHAR, name_name_of_act VARCHAR) ### OUTPUT SELECT act FROM table_28180840_15 WHERE name_name_of_act = "Zhu Xiaoming"
{ "input": "CREATE TABLE table_28180840_15 (act VARCHAR, name_name_of_act VARCHAR)", "instruction": "What is the name of the performance zhu xiaoming performed?", "output": "SELECT act FROM table_28180840_15 WHERE name_name_of_act = \"Zhu Xiaoming\"" }
### INSTRUCTION What Driver has a +1.027 Time/Retired? ### INPUT CREATE TABLE table_name_86 (driver VARCHAR, time_retired VARCHAR) ### OUTPUT SELECT driver FROM table_name_86 WHERE time_retired = "+1.027"
{ "input": "CREATE TABLE table_name_86 (driver VARCHAR, time_retired VARCHAR)", "instruction": "What Driver has a +1.027 Time/Retired?", "output": "SELECT driver FROM table_name_86 WHERE time_retired = \"+1.027\"" }
### INSTRUCTION What is the category of the touchdown atlantic? ### INPUT CREATE TABLE table_name_76 (category VARCHAR, event_name VARCHAR) ### OUTPUT SELECT category FROM table_name_76 WHERE event_name = "touchdown atlantic"
{ "input": "CREATE TABLE table_name_76 (category VARCHAR, event_name VARCHAR)", "instruction": "What is the category of the touchdown atlantic?", "output": "SELECT category FROM table_name_76 WHERE event_name = \"touchdown atlantic\"" }
### INSTRUCTION What is the Result when the week is later than 9, and there are 65,858 people in attendance? ### INPUT CREATE TABLE table_name_33 (result VARCHAR, week VARCHAR, attendance VARCHAR) ### OUTPUT SELECT result FROM table_name_33 WHERE week > 9 AND attendance = "65,858"
{ "input": "CREATE TABLE table_name_33 (result VARCHAR, week VARCHAR, attendance VARCHAR)", "instruction": "What is the Result when the week is later than 9, and there are 65,858 people in attendance?", "output": "SELECT result FROM table_name_33 WHERE week > 9 AND attendance = \"65,858\"" }
### INSTRUCTION For the game with 26,236 attendance, what was the record? ### INPUT CREATE TABLE table_name_81 (record VARCHAR, attendance VARCHAR) ### OUTPUT SELECT record FROM table_name_81 WHERE attendance = "26,236"
{ "input": "CREATE TABLE table_name_81 (record VARCHAR, attendance VARCHAR)", "instruction": "For the game with 26,236 attendance, what was the record?", "output": "SELECT record FROM table_name_81 WHERE attendance = \"26,236\"" }
### INSTRUCTION Tell me what was commissioned december 30, 1965 ### INPUT CREATE TABLE table_name_12 (commissioned VARCHAR, launched VARCHAR) ### OUTPUT SELECT commissioned FROM table_name_12 WHERE launched = "december 30, 1965"
{ "input": "CREATE TABLE table_name_12 (commissioned VARCHAR, launched VARCHAR)", "instruction": "Tell me what was commissioned december 30, 1965", "output": "SELECT commissioned FROM table_name_12 WHERE launched = \"december 30, 1965\"" }
### INSTRUCTION Which Condition has a Bleeding time of unaffected and a Prothrombin time of prolonged? ### INPUT CREATE TABLE table_name_75 (condition VARCHAR, bleeding_time VARCHAR, prothrombin_time VARCHAR) ### OUTPUT SELECT condition FROM table_name_75 WHERE bleeding_time = "unaffected" AND prothrombin_time = "prolonged"
{ "input": "CREATE TABLE table_name_75 (condition VARCHAR, bleeding_time VARCHAR, prothrombin_time VARCHAR)", "instruction": "Which Condition has a Bleeding time of unaffected and a Prothrombin time of prolonged?", "output": "SELECT condition FROM table_name_75 WHERE bleeding_time = \"unaffected\" AND prothrombin_time = \"prolonged\"" }
### INSTRUCTION What is Population, when Total Congregations is less than 4, and when % LDS is 0.54%? ### INPUT CREATE TABLE table_name_83 (population VARCHAR, total_congregations VARCHAR, _percentage_lds VARCHAR) ### OUTPUT SELECT population FROM table_name_83 WHERE total_congregations < 4 AND _percentage_lds = "0.54%"
{ "input": "CREATE TABLE table_name_83 (population VARCHAR, total_congregations VARCHAR, _percentage_lds VARCHAR)", "instruction": "What is Population, when Total Congregations is less than 4, and when % LDS is 0.54%?", "output": "SELECT population FROM table_name_83 WHERE total_congregations < 4 AND _percentage_lds = \"0.54%\"" }
### INSTRUCTION What is the ship id and name that caused most total injuries? ### INPUT CREATE TABLE death (caused_by_ship_id VARCHAR); CREATE TABLE ship (Id VARCHAR) ### OUTPUT SELECT T2.id, T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE death (caused_by_ship_id VARCHAR); CREATE TABLE ship (Id VARCHAR)", "instruction": "What is the ship id and name that caused most total injuries?", "output": "SELECT T2.id, T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What group on the island of Faray has a Height (m) of 32 and a Population of 0? ### INPUT CREATE TABLE table_name_99 (group VARCHAR, island VARCHAR, height__m_ VARCHAR, population VARCHAR) ### OUTPUT SELECT group FROM table_name_99 WHERE height__m_ = 32 AND population = "0" AND island = "faray"
{ "input": "CREATE TABLE table_name_99 (group VARCHAR, island VARCHAR, height__m_ VARCHAR, population VARCHAR)", "instruction": "What group on the island of Faray has a Height (m) of 32 and a Population of 0?", "output": "SELECT group FROM table_name_99 WHERE height__m_ = 32 AND population = \"0\" AND island = \"faray\"" }
### INSTRUCTION Which team has an up/down of + 3479? ### INPUT CREATE TABLE table_2472711_31 (team VARCHAR, up_down VARCHAR) ### OUTPUT SELECT team FROM table_2472711_31 WHERE up_down = "+ 3479"
{ "input": "CREATE TABLE table_2472711_31 (team VARCHAR, up_down VARCHAR)", "instruction": "Which team has an up/down of + 3479?", "output": "SELECT team FROM table_2472711_31 WHERE up_down = \"+ 3479\"" }
### INSTRUCTION Name the total number of points for beta team march 1975 and chassis of march 751 ### INPUT CREATE TABLE table_name_86 (points VARCHAR, chassis VARCHAR, entrant VARCHAR, year VARCHAR) ### OUTPUT SELECT COUNT(points) FROM table_name_86 WHERE entrant = "beta team march" AND year = 1975 AND chassis = "march 751"
{ "input": "CREATE TABLE table_name_86 (points VARCHAR, chassis VARCHAR, entrant VARCHAR, year VARCHAR)", "instruction": "Name the total number of points for beta team march 1975 and chassis of march 751", "output": "SELECT COUNT(points) FROM table_name_86 WHERE entrant = \"beta team march\" AND year = 1975 AND chassis = \"march 751\"" }
### INSTRUCTION Of all the claims, what was the earliest date when any claim was made? ### INPUT CREATE TABLE Claims (Date_Claim_Made VARCHAR) ### OUTPUT SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made LIMIT 1
{ "input": "CREATE TABLE Claims (Date_Claim_Made VARCHAR)", "instruction": "Of all the claims, what was the earliest date when any claim was made?", "output": "SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made LIMIT 1" }
### INSTRUCTION Find the total amount of loans provided by bank branches in the state of New York. ### INPUT CREATE TABLE bank (branch_id VARCHAR, state VARCHAR); CREATE TABLE loan (amount INTEGER, branch_id VARCHAR) ### OUTPUT SELECT SUM(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T1.state = 'New York'
{ "input": "CREATE TABLE bank (branch_id VARCHAR, state VARCHAR); CREATE TABLE loan (amount INTEGER, branch_id VARCHAR)", "instruction": "Find the total amount of loans provided by bank branches in the state of New York.", "output": "SELECT SUM(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T1.state = 'New York'" }
### INSTRUCTION What place did R. Wenzel, who was active after 1934, have? ### INPUT CREATE TABLE table_name_7 (place INTEGER, name VARCHAR, until VARCHAR) ### OUTPUT SELECT SUM(place) FROM table_name_7 WHERE name = "r. wenzel" AND until > 1934
{ "input": "CREATE TABLE table_name_7 (place INTEGER, name VARCHAR, until VARCHAR)", "instruction": "What place did R. Wenzel, who was active after 1934, have?", "output": "SELECT SUM(place) FROM table_name_7 WHERE name = \"r. wenzel\" AND until > 1934" }
### INSTRUCTION What date is the zürich, switzerland tournament? ### INPUT CREATE TABLE table_name_36 (date VARCHAR, tournament VARCHAR) ### OUTPUT SELECT date FROM table_name_36 WHERE tournament = "zürich, switzerland"
{ "input": "CREATE TABLE table_name_36 (date VARCHAR, tournament VARCHAR)", "instruction": "What date is the zürich, switzerland tournament?", "output": "SELECT date FROM table_name_36 WHERE tournament = \"zürich, switzerland\"" }
### INSTRUCTION What is the specific impulse for the engine with a scenario of sr-71 at mach 3.2 (wet)? ### INPUT CREATE TABLE table_name_19 (specific_impulse__s_ VARCHAR, scenario VARCHAR) ### OUTPUT SELECT specific_impulse__s_ FROM table_name_19 WHERE scenario = "sr-71 at mach 3.2 (wet)"
{ "input": "CREATE TABLE table_name_19 (specific_impulse__s_ VARCHAR, scenario VARCHAR)", "instruction": "What is the specific impulse for the engine with a scenario of sr-71 at mach 3.2 (wet)?", "output": "SELECT specific_impulse__s_ FROM table_name_19 WHERE scenario = \"sr-71 at mach 3.2 (wet)\"" }
### INSTRUCTION Find the first and last name of the staff members who reported problems from the product "rem" but not "aut"? ### INPUT CREATE TABLE product (product_name VARCHAR, product_id VARCHAR); CREATE TABLE staff (staff_first_name VARCHAR, staff_last_name VARCHAR, staff_id VARCHAR); CREATE TABLE problems (product_id VARCHAR, reported_by_staff_id VARCHAR) ### OUTPUT SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = "rem" EXCEPT SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = "aut"
{ "input": "CREATE TABLE product (product_name VARCHAR, product_id VARCHAR); CREATE TABLE staff (staff_first_name VARCHAR, staff_last_name VARCHAR, staff_id VARCHAR); CREATE TABLE problems (product_id VARCHAR, reported_by_staff_id VARCHAR)", "instruction": "Find the first and last name of the staff members who reported problems from the product \"rem\" but not \"aut\"?", "output": "SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = \"rem\" EXCEPT SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = \"aut\"" }
### INSTRUCTION Find the name of the organization that has published the largest number of papers. ### INPUT CREATE TABLE inst (name VARCHAR, instid VARCHAR); CREATE TABLE authorship (instid VARCHAR, paperid VARCHAR); CREATE TABLE papers (paperid VARCHAR) ### OUTPUT SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.name ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE inst (name VARCHAR, instid VARCHAR); CREATE TABLE authorship (instid VARCHAR, paperid VARCHAR); CREATE TABLE papers (paperid VARCHAR)", "instruction": "Find the name of the organization that has published the largest number of papers.", "output": "SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.name ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION what is the quantity made when the wheel arrangement is 2-6-0 and the class is k? ### INPUT CREATE TABLE table_name_78 (quantity_made VARCHAR, wheel_arrangement VARCHAR, class VARCHAR) ### OUTPUT SELECT quantity_made FROM table_name_78 WHERE wheel_arrangement = "2-6-0" AND class = "k"
{ "input": "CREATE TABLE table_name_78 (quantity_made VARCHAR, wheel_arrangement VARCHAR, class VARCHAR)", "instruction": "what is the quantity made when the wheel arrangement is 2-6-0 and the class is k?", "output": "SELECT quantity_made FROM table_name_78 WHERE wheel_arrangement = \"2-6-0\" AND class = \"k\"" }
### INSTRUCTION How many total games were played against @ St. Louis Hawks this season? ### INPUT CREATE TABLE table_name_42 (game INTEGER, opponent VARCHAR) ### OUTPUT SELECT SUM(game) FROM table_name_42 WHERE opponent = "@ st. louis hawks"
{ "input": "CREATE TABLE table_name_42 (game INTEGER, opponent VARCHAR)", "instruction": "How many total games were played against @ St. Louis Hawks this season?", "output": "SELECT SUM(game) FROM table_name_42 WHERE opponent = \"@ st. louis hawks\"" }
### INSTRUCTION What was the population of a country with a population density of 14.3/km² (/sqmi)? ### INPUT CREATE TABLE table_26769_1 (population__july_2009_est_ VARCHAR, population_density_per_km² VARCHAR) ### OUTPUT SELECT population__july_2009_est_ FROM table_26769_1 WHERE population_density_per_km² = "14.3/km² (/sqmi)"
{ "input": "CREATE TABLE table_26769_1 (population__july_2009_est_ VARCHAR, population_density_per_km² VARCHAR)", "instruction": "What was the population of a country with a population density of 14.3/km² (/sqmi)?", "output": "SELECT population__july_2009_est_ FROM table_26769_1 WHERE population_density_per_km² = \"14.3/km² (/sqmi)\"" }
### INSTRUCTION What is the score of the game with Falkirk as the runner-up? ### INPUT CREATE TABLE table_name_48 (score VARCHAR, runner_up VARCHAR) ### OUTPUT SELECT score FROM table_name_48 WHERE runner_up = "falkirk"
{ "input": "CREATE TABLE table_name_48 (score VARCHAR, runner_up VARCHAR)", "instruction": "What is the score of the game with Falkirk as the runner-up?", "output": "SELECT score FROM table_name_48 WHERE runner_up = \"falkirk\"" }
### INSTRUCTION What is the average for the agricultural panel that has a National University of Ireland less than 0? ### INPUT CREATE TABLE table_name_16 (agricultural_panel INTEGER, national_university_of_ireland INTEGER) ### OUTPUT SELECT AVG(agricultural_panel) FROM table_name_16 WHERE national_university_of_ireland < 0
{ "input": "CREATE TABLE table_name_16 (agricultural_panel INTEGER, national_university_of_ireland INTEGER)", "instruction": "What is the average for the agricultural panel that has a National University of Ireland less than 0?", "output": "SELECT AVG(agricultural_panel) FROM table_name_16 WHERE national_university_of_ireland < 0" }
### INSTRUCTION Which Perth has Gold Coast yes, Sydney yes, Melbourne yes, and Adelaide yes? ### INPUT CREATE TABLE table_name_56 (perth VARCHAR, adelaide VARCHAR, melbourne VARCHAR, gold_coast VARCHAR, sydney VARCHAR) ### OUTPUT SELECT perth FROM table_name_56 WHERE gold_coast = "yes" AND sydney = "yes" AND melbourne = "yes" AND adelaide = "yes"
{ "input": "CREATE TABLE table_name_56 (perth VARCHAR, adelaide VARCHAR, melbourne VARCHAR, gold_coast VARCHAR, sydney VARCHAR)", "instruction": "Which Perth has Gold Coast yes, Sydney yes, Melbourne yes, and Adelaide yes?", "output": "SELECT perth FROM table_name_56 WHERE gold_coast = \"yes\" AND sydney = \"yes\" AND melbourne = \"yes\" AND adelaide = \"yes\"" }
### INSTRUCTION When fort irwin-barstow/victorville is the type of fare what is the cash fare? ### INPUT CREATE TABLE table_20803241_1 (cash_fare VARCHAR, type_of_fare VARCHAR) ### OUTPUT SELECT cash_fare FROM table_20803241_1 WHERE type_of_fare = "Fort Irwin-Barstow/Victorville"
{ "input": "CREATE TABLE table_20803241_1 (cash_fare VARCHAR, type_of_fare VARCHAR)", "instruction": "When fort irwin-barstow/victorville is the type of fare what is the cash fare?", "output": "SELECT cash_fare FROM table_20803241_1 WHERE type_of_fare = \"Fort Irwin-Barstow/Victorville\"" }
### INSTRUCTION Name the high assists for madison square garden 19,763 and record is 39–38 ### INPUT CREATE TABLE table_27713583_11 (high_assists VARCHAR, location_attendance VARCHAR, record VARCHAR) ### OUTPUT SELECT high_assists FROM table_27713583_11 WHERE location_attendance = "Madison Square Garden 19,763" AND record = "39–38"
{ "input": "CREATE TABLE table_27713583_11 (high_assists VARCHAR, location_attendance VARCHAR, record VARCHAR)", "instruction": "Name the high assists for madison square garden 19,763 and record is 39–38", "output": "SELECT high_assists FROM table_27713583_11 WHERE location_attendance = \"Madison Square Garden 19,763\" AND record = \"39–38\"" }
### INSTRUCTION Show the names of journalists that have reported more than one event. ### INPUT CREATE TABLE journalist (Name VARCHAR, journalist_ID VARCHAR); CREATE TABLE news_report (Event_ID VARCHAR, journalist_ID VARCHAR); CREATE TABLE event (Event_ID VARCHAR) ### OUTPUT SELECT T3.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name HAVING COUNT(*) > 1
{ "input": "CREATE TABLE journalist (Name VARCHAR, journalist_ID VARCHAR); CREATE TABLE news_report (Event_ID VARCHAR, journalist_ID VARCHAR); CREATE TABLE event (Event_ID VARCHAR)", "instruction": "Show the names of journalists that have reported more than one event.", "output": "SELECT T3.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name HAVING COUNT(*) > 1" }
### INSTRUCTION Find the first name and gpa of the students whose gpa is lower than the average gpa of all students. ### INPUT CREATE TABLE student (stu_fname VARCHAR, stu_gpa INTEGER) ### OUTPUT SELECT stu_fname, stu_gpa FROM student WHERE stu_gpa < (SELECT AVG(stu_gpa) FROM student)
{ "input": "CREATE TABLE student (stu_fname VARCHAR, stu_gpa INTEGER)", "instruction": "Find the first name and gpa of the students whose gpa is lower than the average gpa of all students.", "output": "SELECT stu_fname, stu_gpa FROM student WHERE stu_gpa < (SELECT AVG(stu_gpa) FROM student)" }
### INSTRUCTION What year gave a nominated result for the room 222 series? ### INPUT CREATE TABLE table_name_66 (year VARCHAR, result VARCHAR, series VARCHAR) ### OUTPUT SELECT COUNT(year) FROM table_name_66 WHERE result = "nominated" AND series = "room 222"
{ "input": "CREATE TABLE table_name_66 (year VARCHAR, result VARCHAR, series VARCHAR)", "instruction": "What year gave a nominated result for the room 222 series?", "output": "SELECT COUNT(year) FROM table_name_66 WHERE result = \"nominated\" AND series = \"room 222\"" }
### INSTRUCTION What date was a friendly match played that ended in a 3-0 score? ### INPUT CREATE TABLE table_name_74 (date VARCHAR, result VARCHAR, competition VARCHAR) ### OUTPUT SELECT date FROM table_name_74 WHERE result = "3-0" AND competition = "friendly match"
{ "input": "CREATE TABLE table_name_74 (date VARCHAR, result VARCHAR, competition VARCHAR)", "instruction": "What date was a friendly match played that ended in a 3-0 score?", "output": "SELECT date FROM table_name_74 WHERE result = \"3-0\" AND competition = \"friendly match\"" }
### INSTRUCTION What is the name of the national final main host at BBC Television Centre, and the selection show was Eurovision: Your Country Needs You? ### INPUT CREATE TABLE table_name_75 (national_final_main_host VARCHAR, venue VARCHAR, selection_show VARCHAR) ### OUTPUT SELECT national_final_main_host FROM table_name_75 WHERE venue = "bbc television centre" AND selection_show = "eurovision: your country needs you"
{ "input": "CREATE TABLE table_name_75 (national_final_main_host VARCHAR, venue VARCHAR, selection_show VARCHAR)", "instruction": "What is the name of the national final main host at BBC Television Centre, and the selection show was Eurovision: Your Country Needs You?", "output": "SELECT national_final_main_host FROM table_name_75 WHERE venue = \"bbc television centre\" AND selection_show = \"eurovision: your country needs you\"" }
### INSTRUCTION List the id of students who attended statistics courses in the order of attendance date. ### INPUT CREATE TABLE student_course_attendance (student_id VARCHAR, course_id VARCHAR, date_of_attendance VARCHAR); CREATE TABLE courses (course_id VARCHAR, course_name VARCHAR) ### OUTPUT SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "statistics" ORDER BY T2.date_of_attendance
{ "input": "CREATE TABLE student_course_attendance (student_id VARCHAR, course_id VARCHAR, date_of_attendance VARCHAR); CREATE TABLE courses (course_id VARCHAR, course_name VARCHAR)", "instruction": "List the id of students who attended statistics courses in the order of attendance date.", "output": "SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"statistics\" ORDER BY T2.date_of_attendance" }
### INSTRUCTION Name the most late 1943 with late 194 in slovenia ### INPUT CREATE TABLE table_1115992_1 (late_1943 INTEGER, _late_1941 VARCHAR) ### OUTPUT SELECT MAX(late_1943) FROM table_1115992_1 WHERE NOT _late_1941 = "Slovenia"
{ "input": "CREATE TABLE table_1115992_1 (late_1943 INTEGER, _late_1941 VARCHAR)", "instruction": "Name the most late 1943 with late 194 in slovenia", "output": "SELECT MAX(late_1943) FROM table_1115992_1 WHERE NOT _late_1941 = \"Slovenia\"" }
### INSTRUCTION Find the names of the campus which has more faculties in 2002 than every campus in Orange county. ### INPUT CREATE TABLE campuses (campus VARCHAR, id VARCHAR, county VARCHAR); CREATE TABLE faculty (campus VARCHAR, year VARCHAR) ### OUTPUT SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT MAX(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = "Orange")
{ "input": "CREATE TABLE campuses (campus VARCHAR, id VARCHAR, county VARCHAR); CREATE TABLE faculty (campus VARCHAR, year VARCHAR)", "instruction": "Find the names of the campus which has more faculties in 2002 than every campus in Orange county.", "output": "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT MAX(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = \"Orange\")" }
### INSTRUCTION Which average games played number has the Ottawa Hockey Club as a team and a number of wins bigger than 5? ### INPUT CREATE TABLE table_name_57 (games_played INTEGER, team VARCHAR, wins VARCHAR) ### OUTPUT SELECT AVG(games_played) FROM table_name_57 WHERE team = "ottawa hockey club" AND wins > 5
{ "input": "CREATE TABLE table_name_57 (games_played INTEGER, team VARCHAR, wins VARCHAR)", "instruction": "Which average games played number has the Ottawa Hockey Club as a team and a number of wins bigger than 5?", "output": "SELECT AVG(games_played) FROM table_name_57 WHERE team = \"ottawa hockey club\" AND wins > 5" }
### INSTRUCTION Please give me a list of cities whose regional population is over 8000000 or under 5000000. ### INPUT CREATE TABLE city (city VARCHAR, regional_population INTEGER) ### OUTPUT SELECT city FROM city WHERE regional_population > 10000000 UNION SELECT city FROM city WHERE regional_population < 5000000
{ "input": "CREATE TABLE city (city VARCHAR, regional_population INTEGER)", "instruction": "Please give me a list of cities whose regional population is over 8000000 or under 5000000.", "output": "SELECT city FROM city WHERE regional_population > 10000000 UNION SELECT city FROM city WHERE regional_population < 5000000" }
### INSTRUCTION How many heights are listed for Jesse Holley in the WR position? ### INPUT CREATE TABLE table_22603701_1 (height VARCHAR, position VARCHAR, name VARCHAR) ### OUTPUT SELECT COUNT(height) FROM table_22603701_1 WHERE position = "WR" AND name = "Jesse Holley"
{ "input": "CREATE TABLE table_22603701_1 (height VARCHAR, position VARCHAR, name VARCHAR)", "instruction": "How many heights are listed for Jesse Holley in the WR position? ", "output": "SELECT COUNT(height) FROM table_22603701_1 WHERE position = \"WR\" AND name = \"Jesse Holley\"" }
### INSTRUCTION who is the incumbent where the candidates is william v. chappell, jr. (d) unopposed? ### INPUT CREATE TABLE table_1341672_10 (incumbent VARCHAR, candidates VARCHAR) ### OUTPUT SELECT incumbent FROM table_1341672_10 WHERE candidates = "William V. Chappell, Jr. (D) Unopposed"
{ "input": "CREATE TABLE table_1341672_10 (incumbent VARCHAR, candidates VARCHAR)", "instruction": "who is the incumbent where the candidates is william v. chappell, jr. (d) unopposed?", "output": "SELECT incumbent FROM table_1341672_10 WHERE candidates = \"William V. Chappell, Jr. (D) Unopposed\"" }
### INSTRUCTION List the distinct police forces of counties whose location is not on east side. ### INPUT CREATE TABLE county_public_safety (Police_force VARCHAR, LOCATION VARCHAR) ### OUTPUT SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION <> "East"
{ "input": "CREATE TABLE county_public_safety (Police_force VARCHAR, LOCATION VARCHAR)", "instruction": "List the distinct police forces of counties whose location is not on east side.", "output": "SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION <> \"East\"" }
### INSTRUCTION What is the sum of the number of districts (kecamatan) in the geographical unit of java with more than 4 recencies (kabupaten) and less than 8,577 villages? ### INPUT CREATE TABLE table_name_4 (number_of_districts__kecamatan_ INTEGER, villages VARCHAR, geographical_unit VARCHAR, number_of_regencies__kabupaten_ VARCHAR) ### OUTPUT SELECT SUM(number_of_districts__kecamatan_) FROM table_name_4 WHERE geographical_unit = "java" AND number_of_regencies__kabupaten_ > 4 AND villages < 8 OFFSET 577
{ "input": "CREATE TABLE table_name_4 (number_of_districts__kecamatan_ INTEGER, villages VARCHAR, geographical_unit VARCHAR, number_of_regencies__kabupaten_ VARCHAR)", "instruction": "What is the sum of the number of districts (kecamatan) in the geographical unit of java with more than 4 recencies (kabupaten) and less than 8,577 villages?", "output": "SELECT SUM(number_of_districts__kecamatan_) FROM table_name_4 WHERE geographical_unit = \"java\" AND number_of_regencies__kabupaten_ > 4 AND villages < 8 OFFSET 577" }
### INSTRUCTION What tournament did she win with a final score of 4–6, 7–5, 6–2? ### INPUT CREATE TABLE table_19047_2 (championship VARCHAR, score_in_the_final VARCHAR) ### OUTPUT SELECT championship FROM table_19047_2 WHERE score_in_the_final = "4–6, 7–5, 6–2"
{ "input": "CREATE TABLE table_19047_2 (championship VARCHAR, score_in_the_final VARCHAR)", "instruction": "What tournament did she win with a final score of 4–6, 7–5, 6–2?", "output": "SELECT championship FROM table_19047_2 WHERE score_in_the_final = \"4–6, 7–5, 6–2\"" }
### INSTRUCTION Which Position has an Against of 5, and a Drawn larger than 0? ### INPUT CREATE TABLE table_name_35 (position INTEGER, against VARCHAR, drawn VARCHAR) ### OUTPUT SELECT SUM(position) FROM table_name_35 WHERE against = 5 AND drawn > 0
{ "input": "CREATE TABLE table_name_35 (position INTEGER, against VARCHAR, drawn VARCHAR)", "instruction": "Which Position has an Against of 5, and a Drawn larger than 0?", "output": "SELECT SUM(position) FROM table_name_35 WHERE against = 5 AND drawn > 0" }
### INSTRUCTION What was the method used when the time was 4:52? ### INPUT CREATE TABLE table_name_49 (method VARCHAR, time VARCHAR) ### OUTPUT SELECT method FROM table_name_49 WHERE time = "4:52"
{ "input": "CREATE TABLE table_name_49 (method VARCHAR, time VARCHAR)", "instruction": "What was the method used when the time was 4:52?", "output": "SELECT method FROM table_name_49 WHERE time = \"4:52\"" }
### INSTRUCTION What is the location with enrollment of 316 and county is 68 Randolph? ### INPUT CREATE TABLE table_name_21 (location VARCHAR, _number___county VARCHAR, enrollment VARCHAR) ### OUTPUT SELECT location FROM table_name_21 WHERE _number___county = "68 randolph" AND enrollment = 316
{ "input": "CREATE TABLE table_name_21 (location VARCHAR, _number___county VARCHAR, enrollment VARCHAR)", "instruction": "What is the location with enrollment of 316 and county is 68 Randolph?", "output": "SELECT location FROM table_name_21 WHERE _number___county = \"68 randolph\" AND enrollment = 316" }
### INSTRUCTION what is the result where the candidates is robert l. f. sikes (d) unopposed? ### INPUT CREATE TABLE table_1341672_10 (result VARCHAR, candidates VARCHAR) ### OUTPUT SELECT result FROM table_1341672_10 WHERE candidates = "Robert L. F. Sikes (D) Unopposed"
{ "input": "CREATE TABLE table_1341672_10 (result VARCHAR, candidates VARCHAR)", "instruction": "what is the result where the candidates is robert l. f. sikes (d) unopposed?", "output": "SELECT result FROM table_1341672_10 WHERE candidates = \"Robert L. F. Sikes (D) Unopposed\"" }
### INSTRUCTION How many teams placed 4th in the regular season? ### INPUT CREATE TABLE table_12002388_1 (division VARCHAR, reg_season VARCHAR) ### OUTPUT SELECT COUNT(division) FROM table_12002388_1 WHERE reg_season = "4th"
{ "input": "CREATE TABLE table_12002388_1 (division VARCHAR, reg_season VARCHAR)", "instruction": "How many teams placed 4th in the regular season?", "output": "SELECT COUNT(division) FROM table_12002388_1 WHERE reg_season = \"4th\"" }
### INSTRUCTION What is the event with a result of 3-2? ### INPUT CREATE TABLE table_name_40 (competition VARCHAR, result VARCHAR) ### OUTPUT SELECT competition FROM table_name_40 WHERE result = "3-2"
{ "input": "CREATE TABLE table_name_40 (competition VARCHAR, result VARCHAR)", "instruction": "What is the event with a result of 3-2?", "output": "SELECT competition FROM table_name_40 WHERE result = \"3-2\"" }
### INSTRUCTION If the population is 2188, what was the median household income? ### INPUT CREATE TABLE table_1840495_2 (median_house__hold_income VARCHAR, population VARCHAR) ### OUTPUT SELECT median_house__hold_income FROM table_1840495_2 WHERE population = 2188
{ "input": "CREATE TABLE table_1840495_2 (median_house__hold_income VARCHAR, population VARCHAR)", "instruction": "If the population is 2188, what was the median household income?", "output": "SELECT median_house__hold_income FROM table_1840495_2 WHERE population = 2188" }