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: Name the Score of the Year larger than 2004 and a Runner-up of northeastern? ### Context: CREATE TABLE table_name_43 (score VARCHAR, year VARCHAR, runner_up VARCHAR) ### Response: ### Response: SELECT score FROM table_name_43 WHERE year > 2004 AND runner_up = "northeastern"</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 College of the Halfback Player? ### Context: CREATE TABLE table_name_57 (college VARCHAR, position VARCHAR) ### Response: ### Response: SELECT college FROM table_name_57 WHERE position = "halfback"</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 college did the player for the Hamilton Tiger-Cats go to? ### Context: CREATE TABLE table_21321804_3 (college VARCHAR, cfl_team VARCHAR) ### Response: ### Response: SELECT college FROM table_21321804_3 WHERE cfl_team = "Hamilton Tiger-Cats"</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 least round number for Jon Olinger, who was picked before pick # 24? ### Context: CREATE TABLE table_name_3 (round INTEGER, name VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_3 WHERE name = "jon olinger" AND pick__number < 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: With a statistic of most points, what is the stage? ### Context: CREATE TABLE table_name_7 (stage VARCHAR, statistic VARCHAR) ### Response: ### Response: SELECT stage FROM table_name_7 WHERE statistic = "most points"</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 to par for 156 strokes? ### Context: CREATE TABLE table_name_37 (to_par VARCHAR, total INTEGER) ### Response: ### Response: SELECT COUNT(to_par) FROM table_name_37 WHERE total > 156</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 type of cartridge is used by a Winchester? ### Context: CREATE TABLE table_16010376_1 (cartridge VARCHAR, source VARCHAR) ### Response: ### Response: SELECT cartridge FROM table_16010376_1 WHERE source = "Winchester"</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 the vehicle category is multi-axle vehicle, what is the till aligarh? ### Context: CREATE TABLE table_19787093_1 (till_aligarh INTEGER, vehicle_category VARCHAR) ### Response: ### Response: SELECT MIN(till_aligarh) FROM table_19787093_1 WHERE vehicle_category = "Multi-axle Vehicle"</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 number of drawn games for the club with a tries for count of 76? ### Context: CREATE TABLE table_12886178_5 (drawn VARCHAR, tries_for VARCHAR) ### Response: ### Response: SELECT drawn FROM table_12886178_5 WHERE tries_for = "76"</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 Croatia lead? ### Context: CREATE TABLE table_name_1 (lead VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT lead FROM table_name_1 WHERE nation = "croatia"</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 Album title has a Title of 滑板? ### Context: CREATE TABLE table_name_53 (album_title VARCHAR, title VARCHAR) ### Response: ### Response: SELECT album_title FROM table_name_53 WHERE title = "滑板"</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 did st. louis score at home? ### Context: CREATE TABLE table_name_11 (score VARCHAR, home VARCHAR) ### Response: ### Response: SELECT score FROM table_name_11 WHERE home = "st. louis"</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 gender is associated with University students and adults of 25mm? ### Context: CREATE TABLE table_name_19 (gender VARCHAR, university_students_and_adults__18yrs VARCHAR, _ VARCHAR) ### Response: ### Response: SELECT gender FROM table_name_19 WHERE university_students_and_adults__18yrs + _ = "25mm"</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 friendly competition took place on 19 April 1979? ### Context: CREATE TABLE table_name_37 (score VARCHAR, competition VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_37 WHERE competition = "friendly" AND date = "19 april 1979"</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 maximum enrollment for st. andrews university ### Context: CREATE TABLE table_16168849_1 (enrollment INTEGER, institution VARCHAR) ### Response: ### Response: SELECT MAX(enrollment) FROM table_16168849_1 WHERE institution = "St. Andrews 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: Name the least number of believers ### Context: CREATE TABLE table_24613895_1 (number_of_believers INTEGER) ### Response: ### Response: SELECT MIN(number_of_believers) FROM table_24613895_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 engine does the Fuzzy's Ultra Premium Vodka sponsored car use? ### Context: CREATE TABLE table_2503102_1 (engine VARCHAR, car_sponsor_s_ VARCHAR) ### Response: ### Response: SELECT engine FROM table_2503102_1 WHERE car_sponsor_s_ = "Fuzzy's Ultra Premium Vodka"</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 production code for the episode that had 1.32 million U.S. viewers? ### Context: CREATE TABLE table_22347090_6 (production_code VARCHAR, us_viewers__million_ VARCHAR) ### Response: ### Response: SELECT production_code FROM table_22347090_6 WHERE us_viewers__million_ = "1.32"</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 has the SBA Towers Tower Hayneville? ### Context: CREATE TABLE table_name_71 (country VARCHAR, name VARCHAR) ### Response: ### Response: SELECT country FROM table_name_71 WHERE name = "sba towers tower hayneville"</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 points against has team Cardiff had when there were less than 7 tries? ### Context: CREATE TABLE table_name_97 (points_against VARCHAR, team VARCHAR, tries_against VARCHAR) ### Response: ### Response: SELECT COUNT(points_against) FROM table_name_97 WHERE team = "cardiff" AND tries_against < 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: Where Award is best actress and Work is first kiss, what is the average Year? ### Context: CREATE TABLE table_name_58 (year INTEGER, award VARCHAR, work VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_58 WHERE award = "best actress" AND work = "first kiss"</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 draws did Mortlake have when the losses were more than 5? ### Context: CREATE TABLE table_name_94 (draws VARCHAR, losses VARCHAR, club VARCHAR) ### Response: ### Response: SELECT COUNT(draws) FROM table_name_94 WHERE losses > 5 AND club = "mortlake"</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 LOWEST GRID FOR RETIREMENT, AND LAPS LARGER THAN 17? ### Context: CREATE TABLE table_name_72 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT MIN(grid) FROM table_name_72 WHERE time_retired = "retirement" AND laps > 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: Name the D 46 which has a D 43 of majority→ ### Context: CREATE TABLE table_name_34 (d_46 VARCHAR, d_43 VARCHAR) ### Response: ### Response: SELECT d_46 FROM table_name_34 WHERE d_43 = "majority→"</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 call sign has a frequency of 91.3 MHz? ### Context: CREATE TABLE table_name_81 (call_sign VARCHAR, frequency_mhz VARCHAR) ### Response: ### Response: SELECT call_sign FROM table_name_81 WHERE frequency_mhz = 91.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 season was harrisburg lunatics in? ### Context: CREATE TABLE table_name_75 (season VARCHAR, team VARCHAR) ### Response: ### Response: SELECT season FROM table_name_75 WHERE team = "harrisburg lunatics"</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 second member ewarlier than 1804 when Tory Henry Isherwood is the first member? ### Context: CREATE TABLE table_name_15 (second_member VARCHAR, first_member VARCHAR, first_party VARCHAR, year VARCHAR) ### Response: ### Response: SELECT second_member FROM table_name_15 WHERE first_party = "tory" AND year < 1804 AND first_member = "henry isherwood"</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 Champions have a Runner-up of tobol, and a Coeff of 1.125? ### Context: CREATE TABLE table_name_95 (champions VARCHAR, runner_up VARCHAR, coeff VARCHAR) ### Response: ### Response: SELECT champions FROM table_name_95 WHERE runner_up = "tobol" AND coeff = "1.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: Which Round has a Player of sammy okpro? ### Context: CREATE TABLE table_name_32 (round INTEGER, player VARCHAR) ### Response: ### Response: SELECT AVG(round) FROM table_name_32 WHERE player = "sammy okpro"</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 most year with start less than 2 ### Context: CREATE TABLE table_name_9 (year INTEGER, start INTEGER) ### Response: ### Response: SELECT MAX(year) FROM table_name_9 WHERE start < 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: Name the nationality of the player with round more than 4 ### Context: CREATE TABLE table_name_46 (nationality VARCHAR, round INTEGER) ### Response: ### Response: SELECT nationality FROM table_name_46 WHERE round > 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 date is the crowd larger than 20,000? ### Context: CREATE TABLE table_name_56 (date VARCHAR, crowd INTEGER) ### Response: ### Response: SELECT date FROM table_name_56 WHERE crowd > 20 OFFSET 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 was the finishing time of the Stage that featured a distance of 24.00km and a start time of 21:27? ### Context: CREATE TABLE table_name_78 (time VARCHAR, distance VARCHAR, start_time VARCHAR) ### Response: ### Response: SELECT time FROM table_name_78 WHERE distance = "24.00km" AND start_time = "21: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: What was the crowd number when the home team was Carlton? ### Context: CREATE TABLE table_name_23 (crowd INTEGER, home_team VARCHAR) ### Response: ### Response: SELECT MIN(crowd) FROM table_name_23 WHERE home_team = "carlton"</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 Week 15 when Week 12 was Washington (9-1)? ### Context: CREATE TABLE table_name_69 (week_15__final__dec_3 VARCHAR, week_12_nov_13 VARCHAR) ### Response: ### Response: SELECT week_15__final__dec_3 FROM table_name_69 WHERE week_12_nov_13 = "washington (9-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: Opponent of @ blue jays, and a Date of october 6 had what score? ### Context: CREATE TABLE table_name_19 (score VARCHAR, opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_19 WHERE opponent = "@ blue jays" AND date = "october 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: Which Position has a College of washington, and an Overall of 46? ### Context: CREATE TABLE table_name_18 (position VARCHAR, college VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT position FROM table_name_18 WHERE college = "washington" AND overall = 46</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 LOCATION ATTENDANCE FOR GAME 4? ### Context: CREATE TABLE table_name_7 (location_attendance VARCHAR, game VARCHAR) ### Response: ### Response: SELECT location_attendance FROM table_name_7 WHERE game = 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: How many gold medals does the Choctawhatchee High School have? ### Context: CREATE TABLE table_1305623_12 (gold_medals INTEGER, ensemble VARCHAR) ### Response: ### Response: SELECT MAX(gold_medals) FROM table_1305623_12 WHERE ensemble = "Choctawhatchee High 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's the Total number of Opening Weekend Net Gross that occured after the year 2012 with a Rank of 1? ### Context: CREATE TABLE table_name_82 (opening_weekend_net_gross VARCHAR, year VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT COUNT(opening_weekend_net_gross) FROM table_name_82 WHERE year > 2012 AND rank = 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: Who is the home team at kardinia park? ### Context: CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_16 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: How much March has Points of 85? ### Context: CREATE TABLE table_name_24 (march VARCHAR, points VARCHAR) ### Response: ### Response: SELECT COUNT(march) FROM table_name_24 WHERE points = 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: Which series with a total of 27 albums did Dargaud edit? ### Context: CREATE TABLE table_name_39 (series VARCHAR, editor VARCHAR, albums VARCHAR) ### Response: ### Response: SELECT series FROM table_name_39 WHERE editor = "dargaud" AND albums = "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: What is the title of the film that had a production cost of $850,000? ### Context: CREATE TABLE table_name_93 (title VARCHAR, production_cost VARCHAR) ### Response: ### Response: SELECT title FROM table_name_93 WHERE production_cost = "$850,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 was the attendance at the week 7 game? ### Context: CREATE TABLE table_name_43 (attendance VARCHAR, week VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_43 WHERE week = 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: With the Republican ticket of Frank M. Williams who was the Progressive ticket? ### Context: CREATE TABLE table_name_63 (progressive_ticket VARCHAR, republican_ticket VARCHAR) ### Response: ### Response: SELECT progressive_ticket FROM table_name_63 WHERE republican_ticket = "frank m. williams"</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 guest 4 for steve lamacq ### Context: CREATE TABLE table_20466963_13 (guest_4 VARCHAR, guest_2 VARCHAR) ### Response: ### Response: SELECT guest_4 FROM table_20466963_13 WHERE guest_2 = "Steve Lamacq"</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 2008 value that was 2nd in 2006? ### Context: CREATE TABLE table_name_87 (Id VARCHAR) ### Response: ### Response: SELECT 2008 FROM table_name_87 WHERE 2006 = "2nd"</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 time was the distance Abu Dhabi? ### Context: CREATE TABLE table_26894949_2 (sanya VARCHAR, distance VARCHAR) ### Response: ### Response: SELECT COUNT(sanya) FROM table_26894949_2 WHERE distance = "abu_dhabi"</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 margin of victory in the year when the honoree was Tommy Armour? ### Context: CREATE TABLE table_1515346_2 (margin_of_victory VARCHAR, honoree_s_ VARCHAR) ### Response: ### Response: SELECT margin_of_victory FROM table_1515346_2 WHERE honoree_s_ = "Tommy Armour"</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 1995 value with a Jiangxi year and a 2008 value bigger than 67? ### Context: CREATE TABLE table_name_7 (year VARCHAR) ### Response: ### Response: SELECT SUM(1995) FROM table_name_7 WHERE year = "jiangxi" AND 2008 > 67</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 nfl team where player is clifford charlton ### Context: CREATE TABLE table_10650711_1 (nfl_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT nfl_team FROM table_10650711_1 WHERE player = "Clifford Charlton"</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 number missile led to damage to the Islamic University campus? ### Context: CREATE TABLE table_23014685_1 (no INTEGER, area_damaged VARCHAR) ### Response: ### Response: SELECT MIN(no) FROM table_23014685_1 WHERE area_damaged = "Islamic University campus"</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 candidate where the incumbent is named James P. Buchanan? ### Context: CREATE TABLE table_1342331_43 (candidates VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1342331_43 WHERE incumbent = "James P. Buchanan"</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 date for the flag of Norway? ### Context: CREATE TABLE table_name_73 (date VARCHAR, flag VARCHAR) ### Response: ### Response: SELECT date FROM table_name_73 WHERE flag = "norway"</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 nationality is Rod Langway? ### Context: CREATE TABLE table_name_79 (nationality VARCHAR, player VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_79 WHERE player = "rod langway"</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 attendance at Junction Oval? ### Context: CREATE TABLE table_name_90 (crowd INTEGER, venue VARCHAR) ### Response: ### Response: SELECT MAX(crowd) FROM table_name_90 WHERE venue = "junction 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 Date has a Result of 0–0? ### Context: CREATE TABLE table_name_42 (date VARCHAR, result VARCHAR) ### Response: ### Response: SELECT date FROM table_name_42 WHERE result = "0–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 elevation of the city with a number of 91,385 Housing dwellings in 2007? ### Context: CREATE TABLE table_name_71 (elevation_msl VARCHAR, housing__2007_ VARCHAR) ### Response: ### Response: SELECT elevation_msl FROM table_name_71 WHERE housing__2007_ = "91,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: how many geo id with 48.578664 are ### Context: CREATE TABLE table_18600760_19 (geo_id VARCHAR, latitude VARCHAR) ### Response: ### Response: SELECT COUNT(geo_id) FROM table_18600760_19 WHERE latitude = "48.578664"</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 number of Counties carries? ### Context: CREATE TABLE table_16186152_1 (counties_carries INTEGER) ### Response: ### Response: SELECT MAX(counties_carries) FROM table_16186152_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 Release date has a Type of 2d? ### Context: CREATE TABLE table_name_34 (release_date VARCHAR, type VARCHAR) ### Response: ### Response: SELECT release_date FROM table_name_34 WHERE type = "2d"</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 did the high rebounds in the game where Carl Landry (23) did the most high points? ### Context: CREATE TABLE table_23281862_6 (high_rebounds VARCHAR, high_points VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_23281862_6 WHERE high_points = "Carl Landry (23)"</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 constructor with grid value 5? ### Context: CREATE TABLE table_name_54 (constructor VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_54 WHERE grid = "5"</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 place did the singer in atomic kitten finish? ### Context: CREATE TABLE table_name_91 (finished VARCHAR, famous_for VARCHAR) ### Response: ### Response: SELECT finished FROM table_name_91 WHERE famous_for = "singer in atomic kitten"</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 was the game where attendance was 51478? ### Context: CREATE TABLE table_17848578_1 (game_site VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT game_site FROM table_17848578_1 WHERE attendance = 51478</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 regular season did the team reach the conference semifinals in the playoffs? ### Context: CREATE TABLE table_name_78 (regular_season VARCHAR, playoffs VARCHAR) ### Response: ### Response: SELECT regular_season FROM table_name_78 WHERE playoffs = "conference semifinals"</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 album had the reunion label in 2006? ### Context: CREATE TABLE table_name_21 (album VARCHAR, label VARCHAR, year VARCHAR) ### Response: ### Response: SELECT album FROM table_name_21 WHERE label = "reunion" AND 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 team name for the racer who had a first qualification time of 1:22.655? ### Context: CREATE TABLE table_name_17 (team VARCHAR, qual_1 VARCHAR) ### Response: ### Response: SELECT team FROM table_name_17 WHERE qual_1 = "1:22.655"</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 nation won the boxing championship in 2012? ### Context: CREATE TABLE table_name_1 (nation_represented VARCHAR, year VARCHAR) ### Response: ### Response: SELECT nation_represented FROM table_name_1 WHERE year = 2012</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 all information on the airport that has the largest number of international passengers. ### Context: CREATE TABLE airport (International_Passengers VARCHAR) ### Response: ### Response: SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 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 year of the tournament played at Melbourne, Australia? ### Context: CREATE TABLE table_name_89 (year INTEGER, venue VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_89 WHERE venue = "melbourne, australia"</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 parts does detroit red wings person urban nordin play ### Context: CREATE TABLE table_2850912_8 (position VARCHAR, nhl_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(position) FROM table_2850912_8 WHERE nhl_team = "Detroit Red Wings" AND player = "Urban Nordin"</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 to par when the score was 69-69=138? ### Context: CREATE TABLE table_name_35 (to_par VARCHAR, score VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_35 WHERE score = 69 - 69 = 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: What is the percentage of the popular vote when there were 90 seats available? ### Context: CREATE TABLE table_name_53 (_percentage_of_popular_vote VARCHAR, _number_of_seats_available VARCHAR) ### Response: ### Response: SELECT _percentage_of_popular_vote FROM table_name_53 WHERE _number_of_seats_available = 90</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 period has 53.52% as the internet explorer? ### Context: CREATE TABLE table_name_36 (period VARCHAR, internet_explorer VARCHAR) ### Response: ### Response: SELECT period FROM table_name_36 WHERE internet_explorer = "53.52%"</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 STROKE COUNT WITH RADICAL OF 生, FRQUENCY SMALLER THAN 22? ### Context: CREATE TABLE table_name_57 (stroke_count VARCHAR, radical__variants_ VARCHAR, frequency VARCHAR) ### Response: ### Response: SELECT COUNT(stroke_count) FROM table_name_57 WHERE radical__variants_ = "生" AND frequency < 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: Show all distinct template type codes for all templates. ### Context: CREATE TABLE Templates (template_type_code VARCHAR) ### Response: ### Response: SELECT DISTINCT template_type_code FROM Templates</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 of the team with a T score less than 6.8? ### Context: CREATE TABLE table_name_88 (total INTEGER, t_score INTEGER) ### Response: ### Response: SELECT SUM(total) FROM table_name_88 WHERE t_score < 6.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: What was the Loss that had a Score of 9-1? ### Context: CREATE TABLE table_name_87 (loss VARCHAR, score VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_87 WHERE score = "9-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 release dates has Canada had? ### Context: CREATE TABLE table_name_7 (release_date VARCHAR, country VARCHAR) ### Response: ### Response: SELECT COUNT(release_date) FROM table_name_7 WHERE country = "canada"</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 people were assisted in 1997? ### Context: CREATE TABLE table_name_14 (people_assisted VARCHAR, year VARCHAR) ### Response: ### Response: SELECT people_assisted FROM table_name_14 WHERE year = "1997"</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 Lead Pitch/mm has a Part Number of tsop40, and a Body Length/mm larger than 18.4? ### Context: CREATE TABLE table_name_1 (lead_pitch_mm INTEGER, part_number VARCHAR, body_length_mm VARCHAR) ### Response: ### Response: SELECT MAX(lead_pitch_mm) FROM table_name_1 WHERE part_number = "tsop40" AND body_length_mm > 18.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: Show the top 3 apartment type codes sorted by the average number of rooms in descending order. ### Context: CREATE TABLE Apartments (apt_type_code VARCHAR, room_count INTEGER) ### Response: ### Response: SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY AVG(room_count) DESC LIMIT 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 name of the college/junior/club team of the Buffalo Sabres? ### Context: CREATE TABLE table_2679061_10 (college_junior_club_team VARCHAR, nhl_team VARCHAR) ### Response: ### Response: SELECT college_junior_club_team FROM table_2679061_10 WHERE nhl_team = "Buffalo Sabres"</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 percentage of literate people where india is andaman and Nicobar Islands? ### Context: CREATE TABLE table_14598_9 (literate_persons___percentage_ VARCHAR, india_state_ut VARCHAR) ### Response: ### Response: SELECT literate_persons___percentage_ FROM table_14598_9 WHERE india_state_ut = "Andaman and Nicobar Islands"</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 nickname with an enrollment (2013/14) of 160? ### Context: CREATE TABLE table_name_59 (nickname_s_ VARCHAR, enrollment__2013_14_ VARCHAR) ### Response: ### Response: SELECT nickname_s_ FROM table_name_59 WHERE enrollment__2013_14_ = "160"</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 rating for tv asahi? ### Context: CREATE TABLE table_18539834_2 (average_ratings VARCHAR, tv_station VARCHAR) ### Response: ### Response: SELECT average_ratings FROM table_18539834_2 WHERE tv_station = "TV Asahi"</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 quantity preserved when 4 were made of class F-21? ### Context: CREATE TABLE table_name_76 (quantity_preserved VARCHAR, quantity_made VARCHAR, class VARCHAR) ### Response: ### Response: SELECT quantity_preserved FROM table_name_76 WHERE quantity_made = "4" AND class = "f-21"</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 candidates were there in the race where Cecil R. King is the incumbent? ### Context: CREATE TABLE table_1342198_6 (candidates VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT COUNT(candidates) FROM table_1342198_6 WHERE incumbent = "Cecil R. King"</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 Baraga County with less than 3,444 households? ### Context: CREATE TABLE table_name_96 (population INTEGER, county VARCHAR, number_of_households VARCHAR) ### Response: ### Response: SELECT MAX(population) FROM table_name_96 WHERE county = "baraga" AND number_of_households < 3 OFFSET 444</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: Give me the maximum low temperature and average precipitation at the Amersham station. ### Context: CREATE TABLE weekly_weather (low_temperature INTEGER, precipitation INTEGER, station_id VARCHAR); CREATE TABLE station (id VARCHAR, network_name VARCHAR) ### Response: ### Response: SELECT MAX(t1.low_temperature), AVG(t1.precipitation) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id WHERE t2.network_name = "Amersham"</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 Speed at Lake Mead? ### Context: CREATE TABLE table_name_80 (speed VARCHAR, location VARCHAR) ### Response: ### Response: SELECT speed FROM table_name_80 WHERE location = "lake mead"</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: There are 5 imports of plywood. ### Context: CREATE TABLE table_12077540_1 (import VARCHAR, product VARCHAR) ### Response: ### Response: SELECT import FROM table_12077540_1 WHERE product = "Plywood"</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 place is player leo diegel? ### Context: CREATE TABLE table_name_38 (place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_38 WHERE player = "leo diegel"</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 restaurant originally named Essence? ### Context: CREATE TABLE table_name_93 (restaurant_name VARCHAR, original_name VARCHAR) ### Response: ### Response: SELECT restaurant_name FROM table_name_93 WHERE original_name = "essence"</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 Round, when Opponent Team is Slovakia, when Outcome is Loser, and when Edition is greater than 2010? ### Context: CREATE TABLE table_name_7 (round VARCHAR, edition VARCHAR, opponent_team VARCHAR, outcome VARCHAR) ### Response: ### Response: SELECT round FROM table_name_7 WHERE opponent_team = "slovakia" AND outcome = "loser" AND edition > 2010</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 week starts on December 28, 1997? ### Context: CREATE TABLE table_name_1 (week VARCHAR, date VARCHAR) ### Response: ### Response: SELECT week FROM table_name_1 WHERE date = "december 28, 1997"</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 much Overall has a Position of ot, and a Round larger than 5? ### Context: CREATE TABLE table_name_76 (overall VARCHAR, position VARCHAR, round VARCHAR) ### Response: ### Response: SELECT COUNT(overall) FROM table_name_76 WHERE position = "ot" AND round > 5</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 girls singles is lindaweni fanetri what is the mixed doubled? ### Context: CREATE TABLE table_14319023_2 (mixed_doubles VARCHAR, girls_singles VARCHAR) ### Response: ### Response: SELECT mixed_doubles FROM table_14319023_2 WHERE girls_singles = "Lindaweni Fanetri"</s>