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's the number of the episode directed by Tucker Gates? ### Context: CREATE TABLE table_12722302_3 (no VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT no FROM table_12722302_3 WHERE directed_by = "Tucker Gates"</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 name of the non-mammal who has tatarinov as the author? ### Context: CREATE TABLE table_name_4 (name VARCHAR, authors VARCHAR) ### Response: ### Response: SELECT name FROM table_name_4 WHERE authors = "tatarinov"</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 ground is match 4 held on? ### Context: CREATE TABLE table_name_49 (ground VARCHAR, match VARCHAR) ### Response: ### Response: SELECT ground FROM table_name_49 WHERE match = 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 tournament is on October 27, 2003? ### Context: CREATE TABLE table_name_84 (tournament VARCHAR, date VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_84 WHERE date = "october 27, 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: Which Power has a Name of 9 nc? ### Context: CREATE TABLE table_name_21 (power VARCHAR, name VARCHAR) ### Response: ### Response: SELECT power FROM table_name_21 WHERE name = "9 nc"</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 years are listed for the Tahunanui school with an authority of state? ### Context: CREATE TABLE table_name_31 (years VARCHAR, authority VARCHAR, name VARCHAR) ### Response: ### Response: SELECT years FROM table_name_31 WHERE authority = "state" AND name = "tahunanui school"</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 rank has a gross of $35,976,000? ### Context: CREATE TABLE table_name_44 (rank VARCHAR, gross VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_44 WHERE gross = "$35,976,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: What is the Result of Game 3? ### Context: CREATE TABLE table_name_16 (result VARCHAR, game VARCHAR) ### Response: ### Response: SELECT result FROM table_name_16 WHERE game = "game 3"</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 avererage decile of Francis Douglas Memorial College? ### Context: CREATE TABLE table_name_74 (decile INTEGER, name VARCHAR) ### Response: ### Response: SELECT AVG(decile) FROM table_name_74 WHERE name = "francis douglas memorial college"</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: Is the count rectified for single opponents, either positional or automatic, and no material or non-material? ### Context: CREATE TABLE table_name_78 (count_rectified VARCHAR, material_or_non_material VARCHAR, opponents VARCHAR, positional_or_automatic VARCHAR) ### Response: ### Response: SELECT count_rectified FROM table_name_78 WHERE opponents = "single" AND positional_or_automatic = "either" AND material_or_non_material = "no"</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 surface has an Opponent of fernando verdasco? ### Context: CREATE TABLE table_name_41 (surface VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_41 WHERE opponent = "fernando verdasco"</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 visiting team that had a record of 26-18? ### Context: CREATE TABLE table_name_82 (visitor VARCHAR, record VARCHAR) ### Response: ### Response: SELECT visitor FROM table_name_82 WHERE record = "26-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: How many districts in Baltimore City does Cheryl Glenn dictate? ### Context: CREATE TABLE table_name_40 (district VARCHAR, place_of_birth VARCHAR, delegate VARCHAR) ### Response: ### Response: SELECT COUNT(district) FROM table_name_40 WHERE place_of_birth = "baltimore city" AND delegate = "cheryl glenn"</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 Fuel Propulsion has a Fleet Series (Quantity) of 04001-04125 (125)? ### Context: CREATE TABLE table_name_73 (fuel_propulsion VARCHAR, fleet_series__quantity_ VARCHAR) ### Response: ### Response: SELECT fuel_propulsion FROM table_name_73 WHERE fleet_series__quantity_ = "04001-04125 (125)"</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 was the game on Taylor Field played? ### Context: CREATE TABLE table_21796261_4 (date VARCHAR, location VARCHAR) ### Response: ### Response: SELECT date FROM table_21796261_4 WHERE location = "Taylor Field"</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 the Runner-up in Hossegor? ### Context: CREATE TABLE table_name_68 (runner_up VARCHAR, location VARCHAR) ### Response: ### Response: SELECT runner_up FROM table_name_68 WHERE location = "hossegor"</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 the winning team for round 3? ### Context: CREATE TABLE table_name_1 (winning_team VARCHAR, round VARCHAR) ### Response: ### Response: SELECT winning_team FROM table_name_1 WHERE round = "3"</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 Round has a Player of anna chakvetadze? ### Context: CREATE TABLE table_name_23 (round VARCHAR, player VARCHAR) ### Response: ### Response: SELECT round FROM table_name_23 WHERE player = "anna chakvetadze"</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 fleet number with a 4-6-0 wheel arrangement made in 1890? ### Context: CREATE TABLE table_name_94 (fleet_number_s_ VARCHAR, wheel_arrangement VARCHAR, year_made VARCHAR) ### Response: ### Response: SELECT fleet_number_s_ FROM table_name_94 WHERE wheel_arrangement = "4-6-0" AND year_made = "1890"</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 the standard stamp duty is 367 what is the percentage over gdp? ### Context: CREATE TABLE table_1618358_1 (over_gdp__in__percentage_ VARCHAR, standard_stamp_duty VARCHAR) ### Response: ### Response: SELECT over_gdp__in__percentage_ FROM table_1618358_1 WHERE standard_stamp_duty = "367"</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 record for the Chargers on Week 10? ### Context: CREATE TABLE table_name_84 (record VARCHAR, week VARCHAR) ### Response: ### Response: SELECT record FROM table_name_84 WHERE week = 10</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 year 2007 earnings per share? ### Context: CREATE TABLE table_name_47 (earnings_per_share__p_ VARCHAR, year_ended VARCHAR) ### Response: ### Response: SELECT earnings_per_share__p_ FROM table_name_47 WHERE year_ended = "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: Which name has a pressure of 985hpa (29.09inhg)? ### Context: CREATE TABLE table_name_56 (name VARCHAR, pressure VARCHAR) ### Response: ### Response: SELECT name FROM table_name_56 WHERE pressure = "985hpa (29.09inhg)"</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 Venue has Against of 25? ### Context: CREATE TABLE table_name_89 (venue VARCHAR, against VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_89 WHERE against = 25</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 were the runners-up in the tournament on May 26, 1996? ### Context: CREATE TABLE table_name_93 (runner_s__up VARCHAR, date VARCHAR) ### Response: ### Response: SELECT runner_s__up FROM table_name_93 WHERE date = "may 26, 1996"</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 Grid with a hydraulics time/required? ### Context: CREATE TABLE table_name_57 (grid VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT grid FROM table_name_57 WHERE time_retired = "hydraulics"</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 what the comptroller alan hevesi and the party working families? ### Context: CREATE TABLE table_name_78 (year VARCHAR, comptroller VARCHAR, party VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_78 WHERE comptroller = "alan hevesi" AND party = "working families"</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 value for internal floppy disk with s-100 slots greater than 8 introduced earlier than 1978? ### Context: CREATE TABLE table_name_19 (internal_floppy_disk VARCHAR, s_100_slots VARCHAR, year_introduced VARCHAR) ### Response: ### Response: SELECT internal_floppy_disk FROM table_name_19 WHERE s_100_slots > 8 AND year_introduced < 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 party is Sanford Bishop a member of? ### Context: CREATE TABLE table_1341522_13 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_1341522_13 WHERE incumbent = "Sanford Bishop"</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 rank of the 150.163 qual? ### Context: CREATE TABLE table_name_34 (rank VARCHAR, qual VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_34 WHERE qual = "150.163"</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 tasks does each project have? List the task count and the project detail. ### Context: CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR); CREATE TABLE Tasks (project_id VARCHAR) ### Response: ### Response: SELECT COUNT(*), T1.project_details FROM Projects AS T1 JOIN Tasks AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id</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 concerts are there in year 2014 or 2015? ### Context: CREATE TABLE concert (YEAR VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015</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: Find the number of cities in each district whose population is greater than the average population of cities? ### Context: CREATE TABLE city (District VARCHAR, Population INTEGER) ### Response: ### Response: SELECT COUNT(*), District FROM city WHERE Population > (SELECT AVG(Population) FROM city) GROUP BY District</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 percentage of browsers were using Safari during the period in which 2.05% were using Chrome? ### Context: CREATE TABLE table_name_57 (safari VARCHAR, chrome VARCHAR) ### Response: ### Response: SELECT safari FROM table_name_57 WHERE chrome = "2.05%"</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 featured in 20 questions on 4-03? ### Context: CREATE TABLE table_1566852_4 (date VARCHAR) ### Response: ### Response: SELECT 20 AS _questions FROM table_1566852_4 WHERE date = "4-03"</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 Nation with less than 1 silver, and the total is 1, and bronze is less than 0? ### Context: CREATE TABLE table_name_81 (nation VARCHAR, bronze VARCHAR, silver VARCHAR, total VARCHAR) ### Response: ### Response: SELECT nation FROM table_name_81 WHERE silver < 1 AND total = 1 AND bronze = 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 total number of overall figures when duke was the college and the round was higher than 7? ### Context: CREATE TABLE table_name_99 (overall INTEGER, college VARCHAR, round VARCHAR) ### Response: ### Response: SELECT SUM(overall) FROM table_name_99 WHERE college = "duke" AND round > 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: How many directors directed an episode that reached 2.48 million viewers? ### Context: CREATE TABLE table_27047554_1 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR) ### Response: ### Response: SELECT COUNT(directed_by) FROM table_27047554_1 WHERE us_viewers__in_millions_ = "2.48"</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 the losing team of the game that was contested on February 1, 2004? ### Context: CREATE TABLE table_10548224_1 (losing_team VARCHAR, date_contested VARCHAR) ### Response: ### Response: SELECT losing_team FROM table_10548224_1 WHERE date_contested = "February 1, 2004"</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 record for the game played on September 27? ### Context: CREATE TABLE table_name_26 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_26 WHERE date = "september 27"</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 Bronze is the highest one that has a Rank of 26, and a Total larger than 1? ### Context: CREATE TABLE table_name_48 (bronze INTEGER, rank VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MAX(bronze) FROM table_name_48 WHERE rank = "26" AND total > 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 was the score of the away team when the game was played at vfl park? ### Context: CREATE TABLE table_name_83 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_83 WHERE venue = "vfl park"</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 away team that played at Kardinia Park? ### Context: CREATE TABLE table_name_33 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_33 WHERE venue = "kardinia park"</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 total number of totals for nations with 1 silver and more than 1 bronze? ### Context: CREATE TABLE table_name_4 (total VARCHAR, bronze VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT COUNT(total) FROM table_name_4 WHERE bronze > 1 AND silver = 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 position(s) drafted by the montreal alouettes? ### Context: CREATE TABLE table_20170644_5 (position VARCHAR, cfl_team VARCHAR) ### Response: ### Response: SELECT position FROM table_20170644_5 WHERE cfl_team = "Montreal Alouettes"</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 owned winner Blueeyesintherein after 2009? ### Context: CREATE TABLE table_name_75 (owner VARCHAR, year VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT owner FROM table_name_75 WHERE year > 2009 AND winner = "blueeyesintherein"</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 2010 has a 2002 of 2r? ### Context: CREATE TABLE table_name_20 (Id VARCHAR) ### Response: ### Response: SELECT 2010 FROM table_name_20 WHERE 2002 = "2r"</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 entries for start of stage occur in the year 2006? ### Context: CREATE TABLE table_275506_1 (start_of_stage VARCHAR, year VARCHAR) ### Response: ### Response: SELECT COUNT(start_of_stage) FROM table_275506_1 WHERE year = "2006"</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 rank of the arch with a length in meters of 75/55? ### Context: CREATE TABLE table_name_29 (rank VARCHAR, length___m__ VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_29 WHERE length___m__ = "75/55"</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 bonus points are there when points for is 385? ### Context: CREATE TABLE table_17510803_2 (bonus_points VARCHAR, points_for VARCHAR) ### Response: ### Response: SELECT bonus_points FROM table_17510803_2 WHERE points_for = "385"</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 POSITION WITH A LOST OF 6, FOR CAERNARFON TOWN? ### Context: CREATE TABLE table_name_29 (position INTEGER, lost VARCHAR, team VARCHAR) ### Response: ### Response: SELECT SUM(position) FROM table_name_29 WHERE lost = 6 AND team = "caernarfon town"</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 tournament was played on 12 February 2001? ### Context: CREATE TABLE table_name_21 (tournament VARCHAR, date VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_21 WHERE date = "12 february 2001"</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 judges were there for the eliminated couple? ### Context: CREATE TABLE table_26375386_23 (judges VARCHAR, result VARCHAR) ### Response: ### Response: SELECT judges FROM table_26375386_23 WHERE result = "Eliminated"</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 specification of the locomotives with a total produced more than 19 and a model of fb-1? ### Context: CREATE TABLE table_name_1 (specification VARCHAR, total_produced VARCHAR, model VARCHAR) ### Response: ### Response: SELECT specification FROM table_name_1 WHERE total_produced > 19 AND model = "fb-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 state had william bigler (d) as a successor) ### Context: CREATE TABLE table_2417308_3 (state__class_ VARCHAR, successor VARCHAR) ### Response: ### Response: SELECT state__class_ FROM table_2417308_3 WHERE successor = "William Bigler (D)"</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 final score of the game on June 17? ### Context: CREATE TABLE table_name_74 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_74 WHERE date = "june 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: What is Tournament, when Date is "9 August 1993"? ### Context: CREATE TABLE table_name_38 (tournament VARCHAR, date VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_38 WHERE date = "9 august 1993"</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 name of the roller coaster that opened in 2000 in Brighton Pier? ### Context: CREATE TABLE table_name_98 (name VARCHAR, opened VARCHAR, park VARCHAR) ### Response: ### Response: SELECT name FROM table_name_98 WHERE opened = 2000 AND park = "brighton pier"</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: Where is every location where Nick is Bru? ### Context: CREATE TABLE table_2112260_1 (location VARCHAR, nick VARCHAR) ### Response: ### Response: SELECT location FROM table_2112260_1 WHERE nick = "BRU"</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 population for the ### Context: CREATE TABLE table_12496904_1 (_august_15 VARCHAR, _2002 VARCHAR, population INTEGER) ### Response: ### Response: SELECT MAX(population), _august_15, _2002 FROM table_12496904_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 top Points Allowed? ### Context: CREATE TABLE table_17012578_6 (pa INTEGER) ### Response: ### Response: SELECT MAX(pa) FROM table_17012578_6</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 entrant had less than 3 points before 1963? ### Context: CREATE TABLE table_name_28 (entrant VARCHAR, year VARCHAR, points VARCHAR) ### Response: ### Response: SELECT entrant FROM table_name_28 WHERE year < 1963 AND points < 3</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 did the team have a 10-8 record? ### Context: CREATE TABLE table_name_26 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_26 WHERE record = "10-8"</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 have a Gold larger than 0, and a Bronze smaller than 0? ### Context: CREATE TABLE table_name_62 (total VARCHAR, gold VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT COUNT(total) FROM table_name_62 WHERE gold > 0 AND bronze < 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 was the fewest laps for somone who finished +18.445? ### Context: CREATE TABLE table_name_89 (laps INTEGER, time_retired VARCHAR) ### Response: ### Response: SELECT MIN(laps) FROM table_name_89 WHERE time_retired = "+18.445"</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 shortest length from north klondike highway that has a length less than 326? ### Context: CREATE TABLE table_name_38 (length__km_ INTEGER, name VARCHAR, length__mi_ VARCHAR) ### Response: ### Response: SELECT MIN(length__km_) FROM table_name_38 WHERE name = "north klondike highway" AND length__mi_ < 326</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 stadium can hold 63,443 people? ### Context: CREATE TABLE table_name_97 (result VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT result FROM table_name_97 WHERE attendance = "63,443"</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: find the package option of the tv channel that do not have any cartoon directed by Ben Jones. ### Context: CREATE TABLE cartoon (package_option VARCHAR, id VARCHAR, channel VARCHAR, directed_by VARCHAR); CREATE TABLE TV_Channel (package_option VARCHAR, id VARCHAR, channel VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT package_option FROM TV_Channel WHERE NOT id IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')</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 the athlete with react of 0.185? ### Context: CREATE TABLE table_name_79 (athlete VARCHAR, react VARCHAR) ### Response: ### Response: SELECT athlete FROM table_name_79 WHERE react = 0.185</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 highest vote number for Bush? ### Context: CREATE TABLE table_1756284_1 (bush_number INTEGER) ### Response: ### Response: SELECT MAX(bush_number) FROM table_1756284_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: In the US Open championship and the outcome is runner-up, what is the minimum year? ### Context: CREATE TABLE table_22597626_2 (year INTEGER, outcome VARCHAR, championship VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_22597626_2 WHERE outcome = "Runner-up" AND championship = "US Open"</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 catches did Clifford McWatt have? ### Context: CREATE TABLE table_27771406_1 (catches INTEGER, player VARCHAR) ### Response: ### Response: SELECT MIN(catches) FROM table_27771406_1 WHERE player = "Clifford McWatt"</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 total number of Lifetime India Distributor share earlier than 2009? ### Context: CREATE TABLE table_name_39 (lifetime_india_distributor_share VARCHAR, year INTEGER) ### Response: ### Response: SELECT COUNT(lifetime_india_distributor_share) FROM table_name_39 WHERE year < 2009</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 total attendance of the New York Giants? ### Context: CREATE TABLE table_28884858_2 (total_attendance INTEGER, team VARCHAR) ### Response: ### Response: SELECT MIN(total_attendance) FROM table_28884858_2 WHERE team = "New York Giants"</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 paper type for the date of issue July 8? ### Context: CREATE TABLE table_25468520_1 (paper_type VARCHAR, date_of_issue VARCHAR) ### Response: ### Response: SELECT paper_type FROM table_25468520_1 WHERE date_of_issue = "July 8"</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 joined Manchester University? ### Context: CREATE TABLE table_255205_1 (joined VARCHAR, institution VARCHAR) ### Response: ### Response: SELECT joined FROM table_255205_1 WHERE institution = "Manchester University"</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 ranked 2? ### Context: CREATE TABLE table_25220821_4 (rider VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT rider FROM table_25220821_4 WHERE rank = 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: Who is team e when Aaron Solloway is team D? ### Context: CREATE TABLE table_name_94 (team_e VARCHAR, team_d VARCHAR) ### Response: ### Response: SELECT team_e FROM table_name_94 WHERE team_d = "aaron solloway"</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 had high rebounds on May 1? ### Context: CREATE TABLE table_name_15 (high_rebounds VARCHAR, date VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_name_15 WHERE date = "may 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 competition has aik club? ### Context: CREATE TABLE table_name_32 (competition VARCHAR, club VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_32 WHERE club = "aik"</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 Venue of the Heptathlon after 2006 where Tatyana Chernova comes in Position 7th? ### Context: CREATE TABLE table_name_70 (venue VARCHAR, notes VARCHAR, year VARCHAR, position VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_70 WHERE year > 2006 AND position = "7th" AND notes = "heptathlon"</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 date of the poll from Survey USA that showed a lead margin smaller than 5.5? ### Context: CREATE TABLE table_name_87 (dates_administered VARCHAR, lead_margin VARCHAR, poll_source VARCHAR) ### Response: ### Response: SELECT dates_administered FROM table_name_87 WHERE lead_margin < 5.5 AND poll_source = "survey usa"</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: On what Surface was the match with a Score of 3-6, 1-6 played? ### Context: CREATE TABLE table_name_99 (surface VARCHAR, score VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_99 WHERE score = "3-6, 1-6"</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: For any races with a start of 14 what was the lowest finish? ### Context: CREATE TABLE table_name_61 (finish INTEGER, start VARCHAR) ### Response: ### Response: SELECT MIN(finish) FROM table_name_61 WHERE start = 14</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 Total for 1926–1938? ### Context: CREATE TABLE table_name_89 (total VARCHAR, years VARCHAR) ### Response: ### Response: SELECT total FROM table_name_89 WHERE years = "1926–1938"</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 survivor count for the episode directed by Gwyneth Horder-Payton? ### Context: CREATE TABLE table_21304131_2 (survivor_count VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT survivor_count FROM table_21304131_2 WHERE directed_by = "Gwyneth Horder-Payton"</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: Where did Geelong play as the away team? ### Context: CREATE TABLE table_name_9 (venue VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_9 WHERE away_team = "geelong"</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 result of week 1 and the opponent was bye? ### Context: CREATE TABLE table_name_31 (result VARCHAR, week VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT result FROM table_name_31 WHERE week = "1" AND opponent = "bye"</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 votes did Obama have at 32.12% ### Context: CREATE TABLE table_20722805_1 (obama_number INTEGER, obama_percentage VARCHAR) ### Response: ### Response: SELECT MIN(obama_number) FROM table_20722805_1 WHERE obama_percentage = "32.12%"</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 season premieres had 15.27 million viewers? ### Context: CREATE TABLE table_27553627_2 (season VARCHAR, viewers__in_millions_ VARCHAR) ### Response: ### Response: SELECT COUNT(season) AS premiere FROM table_27553627_2 WHERE viewers__in_millions_ = "15.27"</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 swimmer in lane 7 has what as the smallest rank? ### Context: CREATE TABLE table_name_81 (rank INTEGER, lane VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_81 WHERE lane = 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 was the archive for the episode with a run time of 25:24? ### Context: CREATE TABLE table_2102714_1 (archive VARCHAR, run_time VARCHAR) ### Response: ### Response: SELECT archive FROM table_2102714_1 WHERE run_time = "25: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: How many Latin Americans were there in 2001 in the province with 0.0% 2001 and 0.2% 2011? ### Context: CREATE TABLE table_1939405_2 (latin_americans_2001 INTEGER, _percentage_2001 VARCHAR, _percentage_2011 VARCHAR) ### Response: ### Response: SELECT MAX(latin_americans_2001) FROM table_1939405_2 WHERE _percentage_2001 = "0.0%" AND _percentage_2011 = "0.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's the date of completion where deadline for completion is september 30, 2007 ### Context: CREATE TABLE table_12078626_1 (date_of_completion VARCHAR, deadline_for_completion VARCHAR) ### Response: ### Response: SELECT date_of_completion FROM table_12078626_1 WHERE deadline_for_completion = "September 30, 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: On which episode number is event 4 The Wall and event 1 the Pendulum? ### Context: CREATE TABLE table_17257687_1 (episode_number VARCHAR, event_4 VARCHAR, event_1 VARCHAR) ### Response: ### Response: SELECT COUNT(episode_number) FROM table_17257687_1 WHERE event_4 = "The Wall" AND event_1 = "Pendulum"</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 fa cups had a total of 565 (7)? ### Context: CREATE TABLE table_14962287_1 (fa_cup VARCHAR, total VARCHAR) ### Response: ### Response: SELECT fa_cup FROM table_14962287_1 WHERE total = "565 (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 venue of the game where hibernian won and the rangers were the runner-up? ### Context: CREATE TABLE table_name_15 (venue VARCHAR, runner_up VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_15 WHERE runner_up = "rangers" AND winner = "hibernian"</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 venue when the result is 2-0, and the score is 1 goal, and the competition is 1980 afc asian cup? ### Context: CREATE TABLE table_name_60 (venue VARCHAR, competition VARCHAR, result VARCHAR, score VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_60 WHERE result = "2-0" AND score = "1 goal" AND competition = "1980 afc asian cup"</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 persons had immunity in the episode when Wanda was eliminated? ### Context: CREATE TABLE table_1272844_2 (immunity VARCHAR, eliminated VARCHAR) ### Response: ### Response: SELECT COUNT(immunity) FROM table_1272844_2 WHERE eliminated = "Wanda"</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 time for Moscow, Russia? ### Context: CREATE TABLE table_name_62 (time VARCHAR, location VARCHAR) ### Response: ### Response: SELECT time FROM table_name_62 WHERE location = "moscow, russia"</s>