inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What description does Livery of ews have? ### Context: CREATE TABLE table_name_61 (description VARCHAR, livery VARCHAR) ### Response: ### Response: SELECT description FROM table_name_61 WHERE livery = "ews"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the score for number 4 ### Context: CREATE TABLE table_16967990_1 (score VARCHAR, _number VARCHAR) ### Response: ### Response: SELECT score FROM table_16967990_1 WHERE _number = "4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which away team played at western oval? ### Context: CREATE TABLE table_name_16 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_16 WHERE venue = "western oval"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the country of player lee trevino, who has a to par of +2? ### Context: CREATE TABLE table_name_32 (country VARCHAR, to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_32 WHERE to_par = "+2" AND player = "lee trevino"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many League Cup Goals have Total Apps of 36, and Total Goals smaller than 1? ### Context: CREATE TABLE table_name_76 (league_cup_goals VARCHAR, total_apps VARCHAR, total_goals VARCHAR) ### Response: ### Response: SELECT COUNT(league_cup_goals) FROM table_name_76 WHERE total_apps = "36" AND total_goals < 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which constructor had a laps number bigger than 3 when the driver was Jarno Trulli? ### Context: CREATE TABLE table_name_5 (constructor VARCHAR, laps VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_5 WHERE laps > 3 AND driver = "jarno trulli"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Career Win-Loss has a 2001 of 1–1? ### Context: CREATE TABLE table_name_76 (career_win_loss VARCHAR) ### Response: ### Response: SELECT career_win_loss FROM table_name_76 WHERE 2001 = "1–1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many different amounts of winnings were there for the year when the team had an average finish of 17.4? ### Context: CREATE TABLE table_2182562_2 (winnings VARCHAR, avg_finish VARCHAR) ### Response: ### Response: SELECT COUNT(winnings) FROM table_2182562_2 WHERE avg_finish = "17.4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which of the lowest FA Trophys involved the Forest Green Rovers club when the play-offs number was bigger than 0? ### Context: CREATE TABLE table_name_8 (fa_trophy INTEGER, club VARCHAR, play_offs VARCHAR) ### Response: ### Response: SELECT MIN(fa_trophy) FROM table_name_8 WHERE club = "forest green rovers" AND play_offs > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: If there are 18 villages, what is the minimum area ? ### Context: CREATE TABLE table_21302_1 (area___ha__ INTEGER, no_of_villages VARCHAR) ### Response: ### Response: SELECT MIN(area___ha__) FROM table_21302_1 WHERE no_of_villages = 18</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What kind of Japanese has a Region of tōhoku? ### Context: CREATE TABLE table_name_71 (japanese VARCHAR, region VARCHAR) ### Response: ### Response: SELECT japanese FROM table_name_71 WHERE region = "tōhoku"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the constructor of John Surtees's Oulton Park circuit car? ### Context: CREATE TABLE table_name_67 (constructor VARCHAR, circuit VARCHAR, winning_driver VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_67 WHERE circuit = "oulton park" AND winning_driver = "john surtees"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When were ships laid down that were commissioned on october 29, 1965? ### Context: CREATE TABLE table_1014206_2 (laid_down VARCHAR, commissioned VARCHAR) ### Response: ### Response: SELECT laid_down FROM table_1014206_2 WHERE commissioned = "October 29, 1965"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What round did the match go to when tko (cut) was the method? ### Context: CREATE TABLE table_name_24 (round VARCHAR, method VARCHAR) ### Response: ### Response: SELECT round FROM table_name_24 WHERE method = "tko (cut)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the page count and word count greater than 5 with Bits of 18–22? ### Context: CREATE TABLE table_name_79 (page__number VARCHAR, word__number VARCHAR, bits VARCHAR) ### Response: ### Response: SELECT page__number FROM table_name_79 WHERE word__number > 5 AND bits = "18–22"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which CFL Teams drafted an OL in 2006? ### Context: CREATE TABLE table_10812938_4 (cfl_team VARCHAR, position VARCHAR) ### Response: ### Response: SELECT cfl_team FROM table_10812938_4 WHERE position = "OL"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the fewest losses that had an against score of 2190 and more than 0 draws? ### Context: CREATE TABLE table_name_27 (losses INTEGER, against VARCHAR, draws VARCHAR) ### Response: ### Response: SELECT MIN(losses) FROM table_name_27 WHERE against = 2190 AND draws > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the home team when the away team is frickley colliery? ### Context: CREATE TABLE table_name_17 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_17 WHERE away_team = "frickley colliery"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the largest number of aggravated assaults when there were 3811 robberies? ### Context: CREATE TABLE table_25271777_1 (aggravated_assault INTEGER, robbery VARCHAR) ### Response: ### Response: SELECT MAX(aggravated_assault) FROM table_25271777_1 WHERE robbery = 3811</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: To which organziation does the winnipeg jets belong to? ### Context: CREATE TABLE table_2850912_12 (college_junior_club_team VARCHAR, nhl_team VARCHAR) ### Response: ### Response: SELECT college_junior_club_team FROM table_2850912_12 WHERE nhl_team = "Winnipeg Jets"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Torque of the Model 320td (diesel)? ### Context: CREATE TABLE table_name_27 (torque VARCHAR, model VARCHAR) ### Response: ### Response: SELECT torque FROM table_name_27 WHERE model = "320td (diesel)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Score that has a Player of Ernie Els? ### Context: CREATE TABLE table_name_28 (score VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_28 WHERE player = "ernie els"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average year with a 1:42.85 time? ### Context: CREATE TABLE table_name_81 (year INTEGER, time VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_81 WHERE time = "1:42.85"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: in which season the position was center ### Context: CREATE TABLE table_19897896_7 (season VARCHAR, position VARCHAR) ### Response: ### Response: SELECT season FROM table_19897896_7 WHERE position = "Center"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: The game that has a save of lynch (4) ended with what score? ### Context: CREATE TABLE table_name_41 (score VARCHAR, save VARCHAR) ### Response: ### Response: SELECT score FROM table_name_41 WHERE save = "lynch (4)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Opponent In The Final, when Outcome is "Winner", when Surface is "Carpet (I)", and when Tournament is "Lyon, France"? ### Context: CREATE TABLE table_name_67 (opponent_in_the_final VARCHAR, tournament VARCHAR, outcome VARCHAR, surface VARCHAR) ### Response: ### Response: SELECT opponent_in_the_final FROM table_name_67 WHERE outcome = "winner" AND surface = "carpet (i)" AND tournament = "lyon, france"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what tie were Leeds United the away team? ### Context: CREATE TABLE table_17736890_5 (tie_no INTEGER, away_team VARCHAR) ### Response: ### Response: SELECT MAX(tie_no) FROM table_17736890_5 WHERE away_team = "Leeds United"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team is from Lake Oval? ### Context: CREATE TABLE table_name_93 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_93 WHERE venue = "lake oval"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Scored has a Team of recoleta? ### Context: CREATE TABLE table_name_81 (scored INTEGER, team VARCHAR) ### Response: ### Response: SELECT SUM(scored) FROM table_name_81 WHERE team = "recoleta"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many totals does pádraig harrington have? ### Context: CREATE TABLE table_name_83 (total VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(total) FROM table_name_83 WHERE player = "pádraig harrington"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name what succeeded by for foam ### Context: CREATE TABLE table_1601027_2 (succeeded_by VARCHAR, earpads VARCHAR) ### Response: ### Response: SELECT succeeded_by FROM table_1601027_2 WHERE earpads = "Foam"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is th IATA for Norway with an ICAO of ENTO? ### Context: CREATE TABLE table_name_99 (iata VARCHAR, country VARCHAR, icao VARCHAR) ### Response: ### Response: SELECT iata FROM table_name_99 WHERE country = "norway" AND icao = "ento"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: display job ID for those jobs that were done by two or more for more than 300 days. ### Context: CREATE TABLE job_history (job_id VARCHAR, end_date VARCHAR, start_date VARCHAR) ### Response: ### Response: SELECT job_id FROM job_history WHERE end_date - start_date > 300 GROUP BY job_id HAVING COUNT(*) >= 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the smallest 08-09 GP/JGP 2nd value when WS points equals 3197? ### Context: CREATE TABLE table_23938357_7 (ws_points VARCHAR) ### Response: ### Response: SELECT MIN(08 AS _09_gp_jgp_2nd) FROM table_23938357_7 WHERE ws_points = 3197</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what year did Italy begin playing? ### Context: CREATE TABLE table_14288212_1 (first_played INTEGER, team VARCHAR) ### Response: ### Response: SELECT MIN(first_played) FROM table_14288212_1 WHERE team = "Italy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Original title for an Episode Actor role which was Directed by Géza Bereményi? ### Context: CREATE TABLE table_name_59 (original_title VARCHAR, role VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT original_title FROM table_name_59 WHERE role = "episode actor" AND directed_by = "géza bereményi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the country for athens ### Context: CREATE TABLE table_28281704_1 (country VARCHAR, city VARCHAR) ### Response: ### Response: SELECT COUNT(country) FROM table_28281704_1 WHERE city = "Athens"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player on the Bulls has a 6 May 1978 birthday? ### Context: CREATE TABLE table_name_58 (player VARCHAR, club_province VARCHAR, date_of_birth__age_ VARCHAR) ### Response: ### Response: SELECT player FROM table_name_58 WHERE club_province = "bulls" AND date_of_birth__age_ = "6 may 1978"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the 2010 value of the 2013 Grand Slam Tournaments? ### Context: CREATE TABLE table_name_1 (Id VARCHAR) ### Response: ### Response: SELECT 2010 FROM table_name_1 WHERE 2013 = "grand slam tournaments"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the score of the game played on october 16? ### Context: CREATE TABLE table_27756014_1 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_27756014_1 WHERE date = "October 16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When relay is the station type and 5kw is the power kw what is the branding? ### Context: CREATE TABLE table_23394920_1 (branding VARCHAR, power_kw VARCHAR, station_type VARCHAR) ### Response: ### Response: SELECT branding FROM table_23394920_1 WHERE power_kw = "5kW" AND station_type = "Relay"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the major version when the webkit version was 528.17? ### Context: CREATE TABLE table_24257833_4 (major_version VARCHAR, webkit_version VARCHAR) ### Response: ### Response: SELECT major_version FROM table_24257833_4 WHERE webkit_version = "528.17"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Walter Giles is Crew Chief of what team? ### Context: CREATE TABLE table_name_50 (team VARCHAR, crew_chief VARCHAR) ### Response: ### Response: SELECT team FROM table_name_50 WHERE crew_chief = "walter giles"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many assists does cam long average in under 132 games? ### Context: CREATE TABLE table_name_28 (ast_avg INTEGER, player VARCHAR, games VARCHAR) ### Response: ### Response: SELECT MAX(ast_avg) FROM table_name_28 WHERE player = "cam long" AND games < 132</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which movie was awarded Film of the Year on May 8, 1964? ### Context: CREATE TABLE table_name_2 (film_of_the_year VARCHAR, date VARCHAR) ### Response: ### Response: SELECT film_of_the_year FROM table_name_2 WHERE date = "may 8, 1964"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average First year that has a Notes of replaced by us 12 when i-94 replaced us 12, and a Final year larger than 1961? ### Context: CREATE TABLE table_name_31 (first_year INTEGER, notes VARCHAR, final_year VARCHAR) ### Response: ### Response: SELECT AVG(first_year) FROM table_name_31 WHERE notes = "replaced by us 12 when i-94 replaced us 12" AND final_year > 1961</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was firest elected in 2002 in a district larger than 41? ### Context: CREATE TABLE table_name_4 (member_senator VARCHAR, first_elected VARCHAR, district VARCHAR) ### Response: ### Response: SELECT member_senator FROM table_name_4 WHERE first_elected = 2002 AND district > 41</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was west when ev fürstenfeldbruck was south? ### Context: CREATE TABLE table_name_28 (west VARCHAR, south VARCHAR) ### Response: ### Response: SELECT west FROM table_name_28 WHERE south = "ev fürstenfeldbruck"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many times is denmark ranked in technology? ### Context: CREATE TABLE table_13677808_1 (technology VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT COUNT(technology) FROM table_13677808_1 WHERE rank = "Denmark"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the longest length of mandatory secondary school? ### Context: CREATE TABLE table_1831309_1 (length_of_mandatory_secondary_school INTEGER) ### Response: ### Response: SELECT MAX(length_of_mandatory_secondary_school) FROM table_1831309_1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the area % of EU with 16.4 population in millions? ### Context: CREATE TABLE table_name_39 (area__percentage_of_eu VARCHAR, population_in_millions VARCHAR) ### Response: ### Response: SELECT area__percentage_of_eu FROM table_name_39 WHERE population_in_millions = 16.4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what's the loss with try bonus being 5 and points for being 390 ### Context: CREATE TABLE table_12828723_3 (lost VARCHAR, try_bonus VARCHAR, points_for VARCHAR) ### Response: ### Response: SELECT lost FROM table_12828723_3 WHERE try_bonus = "5" AND points_for = "390"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What score did Jack Nicklaus have when he placed t6? ### Context: CREATE TABLE table_name_92 (score VARCHAR, place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_92 WHERE place = "t6" AND player = "jack nicklaus"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which team scored l 87–115 (ot)? ### Context: CREATE TABLE table_name_61 (team VARCHAR, score VARCHAR) ### Response: ### Response: SELECT team FROM table_name_61 WHERE score = "l 87–115 (ot)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Stop # has a Platform of [2777] mciver station platforms? ### Context: CREATE TABLE table_name_50 (stop_no VARCHAR, platform VARCHAR) ### Response: ### Response: SELECT stop_no FROM table_name_50 WHERE platform = "[2777] mciver station platforms"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the method in round 1 of the UFC 20 event? ### Context: CREATE TABLE table_name_87 (method VARCHAR, round VARCHAR, event VARCHAR) ### Response: ### Response: SELECT method FROM table_name_87 WHERE round = 1 AND event = "ufc 20"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the player when the team is oakland raiders? ### Context: CREATE TABLE table_name_89 (player VARCHAR, team VARCHAR) ### Response: ### Response: SELECT player FROM table_name_89 WHERE team = "oakland raiders"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What country id Bob Rosburg from? ### Context: CREATE TABLE table_name_95 (country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_95 WHERE player = "bob rosburg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year has a venue of algiers, algeria, extra smaller than 8.03, and a Meeting of all africa games? ### Context: CREATE TABLE table_name_52 (year VARCHAR, meeting VARCHAR, venue VARCHAR, extra VARCHAR) ### Response: ### Response: SELECT year FROM table_name_52 WHERE venue = "algiers, algeria" AND extra < 8.03 AND meeting = "all africa games"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the category in 1998 with the role/episode of David Duchovny? ### Context: CREATE TABLE table_name_37 (category VARCHAR, year VARCHAR, role_episode VARCHAR) ### Response: ### Response: SELECT category FROM table_name_37 WHERE year = 1998 AND role_episode = "david duchovny"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Heat has a Nationality of bulgaria, and a Result larger than 55.97? ### Context: CREATE TABLE table_name_30 (heat INTEGER, nationality VARCHAR, result VARCHAR) ### Response: ### Response: SELECT MIN(heat) FROM table_name_30 WHERE nationality = "bulgaria" AND result > 55.97</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what Round was Pick 138? ### Context: CREATE TABLE table_name_93 (round INTEGER, pick VARCHAR) ### Response: ### Response: SELECT SUM(round) FROM table_name_93 WHERE pick = 138</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the facility codes of apartments with more than 4 bedrooms. ### Context: CREATE TABLE Apartment_Facilities (facility_code VARCHAR, apt_id VARCHAR); CREATE TABLE Apartments (apt_id VARCHAR, bedroom_count INTEGER) ### Response: ### Response: SELECT T1.facility_code FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which airline has abbreviation 'UAL'? ### Context: CREATE TABLE AIRLINES (Airline VARCHAR, Abbreviation VARCHAR) ### Response: ### Response: SELECT Airline FROM AIRLINES WHERE Abbreviation = "UAL"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player has an A-League of 150 (4)? ### Context: CREATE TABLE table_name_1 (name VARCHAR, a_league VARCHAR) ### Response: ### Response: SELECT name FROM table_name_1 WHERE a_league = "150 (4)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Postition, when Nationality is United States, when Jersey Number(s) is 12, and when Player is Tom Black Category:Articles With hCards? ### Context: CREATE TABLE table_name_50 (position VARCHAR, player VARCHAR, nationality VARCHAR, jersey_number_s_ VARCHAR) ### Response: ### Response: SELECT position FROM table_name_50 WHERE nationality = "united states" AND jersey_number_s_ = "12" AND player = "tom black category:articles with hcards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the result for 2010 fifa world cup qualification ### Context: CREATE TABLE table_name_81 (result VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT result FROM table_name_81 WHERE competition = "2010 fifa world cup qualification"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who won the FIS Nordic World Ski Championships in 1972? ### Context: CREATE TABLE table_name_4 (winner VARCHAR, fis_nordic_world_ski_championships VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_4 WHERE fis_nordic_world_ski_championships = "1972"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the To par of the Player with a Score of 71-69-68=208? ### Context: CREATE TABLE table_name_25 (to_par VARCHAR, score VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_25 WHERE score = 71 - 69 - 68 = 208</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who's the winner in stage 1a, where the leader in the young rider classification is Francesco Casagrande? ### Context: CREATE TABLE table_12261714_2 (winner VARCHAR, young_rider_classification VARCHAR, stage VARCHAR) ### Response: ### Response: SELECT winner FROM table_12261714_2 WHERE young_rider_classification = "Francesco Casagrande" AND stage = "1a"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What player from South Africa had a total less than 284? ### Context: CREATE TABLE table_name_93 (player VARCHAR, total VARCHAR, country VARCHAR) ### Response: ### Response: SELECT player FROM table_name_93 WHERE total < 284 AND country = "south africa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many tariff codes have a bts retail price of 2.553p/min? ### Context: CREATE TABLE table_10408617_5 (tariff_code VARCHAR, bts_retail_price__regulated_ VARCHAR) ### Response: ### Response: SELECT COUNT(tariff_code) FROM table_10408617_5 WHERE bts_retail_price__regulated_ = "2.553p/min"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the winner for jan 24 ### Context: CREATE TABLE table_25938117_1 (winner VARCHAR, date VARCHAR) ### Response: ### Response: SELECT winner FROM table_25938117_1 WHERE date = "Jan 24"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest percent of Bruce Arena when he loses more than 11 games? ### Context: CREATE TABLE table_name_9 (pts INTEGER, coach VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT MAX(pts) FROM table_name_9 WHERE coach = "bruce arena" AND loss > 11</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the original air date of the episode that was directed by Bruce Seth Green? ### Context: CREATE TABLE table_29584044_1 (original_air_date VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_29584044_1 WHERE directed_by = "Bruce Seth Green"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are all locations of train stations? ### Context: CREATE TABLE station (LOCATION VARCHAR) ### Response: ### Response: SELECT DISTINCT LOCATION FROM station</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the Category before 1995? ### Context: CREATE TABLE table_name_19 (category VARCHAR, year INTEGER) ### Response: ### Response: SELECT category FROM table_name_19 WHERE year < 1995</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score for the game on February 29? ### Context: CREATE TABLE table_name_10 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_10 WHERE date = "february 29"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what are all the positions of players who's hometown is concord, california ### Context: CREATE TABLE table_11677691_12 (position VARCHAR, hometown VARCHAR) ### Response: ### Response: SELECT position FROM table_11677691_12 WHERE hometown = "Concord, California"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which school has the mascot of the Colonials? ### Context: CREATE TABLE table_16403890_1 (institution VARCHAR, team_nickname VARCHAR) ### Response: ### Response: SELECT institution FROM table_16403890_1 WHERE team_nickname = "Colonials"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many rebounds did crystal ayers have? ### Context: CREATE TABLE table_23346303_4 (rebounds VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(rebounds) FROM table_23346303_4 WHERE player = "Crystal Ayers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Player, when Position is DB, and when College is Saint Mary's? ### Context: CREATE TABLE table_name_71 (player VARCHAR, position VARCHAR, college VARCHAR) ### Response: ### Response: SELECT player FROM table_name_71 WHERE position = "db" AND college = "saint mary's"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which co drivers are 3rd in Joest racing? ### Context: CREATE TABLE table_name_23 (co_drivers VARCHAR, pos VARCHAR, team VARCHAR) ### Response: ### Response: SELECT co_drivers FROM table_name_23 WHERE pos = "3rd" AND team = "joest racing"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number reference for LIE? ### Context: CREATE TABLE table_222771_1 (numeric_code VARCHAR, alpha_3_code VARCHAR) ### Response: ### Response: SELECT numeric_code FROM table_222771_1 WHERE alpha_3_code = "LIE"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what category was character Jacqui Mcqueen nominated before 2011? ### Context: CREATE TABLE table_name_67 (category VARCHAR, character VARCHAR, year VARCHAR) ### Response: ### Response: SELECT category FROM table_name_67 WHERE character = "jacqui mcqueen" AND year < 2011</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the growth rate for hooghly ### Context: CREATE TABLE table_2527063_3 (growth_rate VARCHAR, district VARCHAR) ### Response: ### Response: SELECT growth_rate FROM table_2527063_3 WHERE district = "Hooghly"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Team has a Record of 32–50? ### Context: CREATE TABLE table_name_24 (team VARCHAR, record VARCHAR) ### Response: ### Response: SELECT team FROM table_name_24 WHERE record = "32–50"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many ranks had 205 matches? ### Context: CREATE TABLE table_name_54 (rank VARCHAR, matches VARCHAR) ### Response: ### Response: SELECT COUNT(rank) FROM table_name_54 WHERE matches = 205</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Championship had a winning score of 69-71-67-68=275? ### Context: CREATE TABLE table_name_9 (championship VARCHAR, winning_score VARCHAR) ### Response: ### Response: SELECT championship FROM table_name_9 WHERE winning_score = 69 - 71 - 67 - 68 = 275</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the LLWS when the Year is 2003? ### Context: CREATE TABLE table_name_37 (llws VARCHAR, year VARCHAR) ### Response: ### Response: SELECT llws FROM table_name_37 WHERE year = 2003</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In the disaster in which 1,000 people were helped, what was the nature of help? ### Context: CREATE TABLE table_name_31 (nature_of_help VARCHAR, people_assisted VARCHAR) ### Response: ### Response: SELECT nature_of_help FROM table_name_31 WHERE people_assisted = "1,000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When 1927 is the founded year how many measurements of enrollment in 2012 are there? ### Context: CREATE TABLE table_2076516_1 (enrollment__2012_ VARCHAR, founded VARCHAR) ### Response: ### Response: SELECT COUNT(enrollment__2012_) FROM table_2076516_1 WHERE founded = 1927</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show member names that are not in the Progress Party. ### Context: CREATE TABLE party (party_id VARCHAR, Party_name VARCHAR); CREATE TABLE Member (member_name VARCHAR, party_id VARCHAR) ### Response: ### Response: SELECT T1.member_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id WHERE T2.Party_name <> "Progress Party"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many ranks have a Bronze smaller than 8, and a Total smaller than 7, and a Gold smaller than 1? ### Context: CREATE TABLE table_name_1 (rank VARCHAR, gold VARCHAR, bronze VARCHAR, total VARCHAR) ### Response: ### Response: SELECT COUNT(rank) FROM table_name_1 WHERE bronze < 8 AND total < 7 AND gold < 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the outgoing manager for position in table being 11th ### Context: CREATE TABLE table_17039232_3 (outgoing_manager VARCHAR, position_in_table VARCHAR) ### Response: ### Response: SELECT outgoing_manager FROM table_17039232_3 WHERE position_in_table = "11th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Opponent has a Record of 2–0? ### Context: CREATE TABLE table_name_80 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_80 WHERE record = "2–0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the platform of the game from 2007? ### Context: CREATE TABLE table_name_95 (platform_s_ VARCHAR, year VARCHAR) ### Response: ### Response: SELECT platform_s_ FROM table_name_95 WHERE year = 2007</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the score of the Devil Rays on April 24? ### Context: CREATE TABLE table_name_28 (score VARCHAR, opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_28 WHERE opponent = "devil rays" AND date = "april 24"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the title of book number 7? ### Context: CREATE TABLE table_2950964_1 (title VARCHAR, _number VARCHAR) ### Response: ### Response: SELECT title FROM table_2950964_1 WHERE _number = "7"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the earliest year a house opened? ### Context: CREATE TABLE table_1942683_1 (year_opened INTEGER) ### Response: ### Response: SELECT MIN(year_opened) FROM table_1942683_1</s>