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: List the names of entrepreneurs and their companies in descending order of money requested? ### Context: CREATE TABLE entrepreneur (Company VARCHAR, People_ID VARCHAR, Money_Requested VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR) ### Response: ### Response: SELECT T2.Name, T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest rank after 2009 with an accolade of 125 best albums of the past 25 years? ### Context: CREATE TABLE table_name_79 (rank INTEGER, year VARCHAR, accolade VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_79 WHERE year > 2009 AND accolade = "125 best albums of the past 25 years"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 positions have an against of less than 27, and a played number of less than 8? ### Context: CREATE TABLE table_name_59 (position VARCHAR, against VARCHAR, played VARCHAR) ### Response: ### Response: SELECT COUNT(position) FROM table_name_59 WHERE against < 27 AND played < 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 result of the Best Actor in a Musical category? ### Context: CREATE TABLE table_name_81 (result VARCHAR, category VARCHAR) ### Response: ### Response: SELECT result FROM table_name_81 WHERE category = "best actor in a musical"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Score, when Record is "2-0"? ### Context: CREATE TABLE table_name_95 (score VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_95 WHERE record = "2-0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of league goals for Simon Charlton? ### Context: CREATE TABLE table_name_14 (league_goals VARCHAR, name VARCHAR) ### Response: ### Response: SELECT COUNT(league_goals) FROM table_name_14 WHERE name = "simon 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 was the result of the game before week 3 with an attendance of 53,658? ### Context: CREATE TABLE table_name_32 (result VARCHAR, week VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT result FROM table_name_32 WHERE week < 3 AND attendance = "53,658"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 B.C. Open in New York? ### Context: CREATE TABLE table_name_65 (score VARCHAR, location VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT score FROM table_name_65 WHERE location = "new york" AND tournament = "b.c. 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: Which Date has a Winning score of −9 (70-64-70=203)? ### Context: CREATE TABLE table_name_19 (date VARCHAR, winning_score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_19 WHERE winning_score = −9(70 - 64 - 70 = 203)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode # for production code 227 ### Context: CREATE TABLE table_10269427_3 (episode__number VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT episode__number FROM table_10269427_3 WHERE production_code = 227</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Losing BP with 22 played and 9 Try BP. ### Context: CREATE TABLE table_name_72 (losing_bp VARCHAR, played VARCHAR, try_bp VARCHAR) ### Response: ### Response: SELECT losing_bp FROM table_name_72 WHERE played = "22" AND try_bp = "9"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 north american record is the world record who is the denis nizhegorodov ( rus )? ### Context: CREATE TABLE table_24059973_3 (denis_nizhegorodov___rus__ VARCHAR, world_record VARCHAR) ### Response: ### Response: SELECT denis_nizhegorodov___rus__ FROM table_24059973_3 WHERE world_record = "North American record"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 subscribers, in 2006, does Glo Mobile have? ### Context: CREATE TABLE table_29395291_2 (subscribers__2006___thousands_ VARCHAR, provider VARCHAR) ### Response: ### Response: SELECT subscribers__2006___thousands_ FROM table_29395291_2 WHERE provider = "Glo Mobile"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did team scandia finish when their engine was cosworth? ### Context: CREATE TABLE table_name_72 (finish VARCHAR, engine VARCHAR, team VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_72 WHERE engine = "cosworth" AND team = "team scandia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 earliest week the team played the chicago cardinals in front of less than 25,312? ### Context: CREATE TABLE table_name_12 (week INTEGER, opponent VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT MIN(week) FROM table_name_12 WHERE opponent = "chicago cardinals" AND attendance < 25 OFFSET 312</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Copa del Rey has a La Liga smaller than 0? ### Context: CREATE TABLE table_name_80 (copa_del_rey INTEGER, la_liga INTEGER) ### Response: ### Response: SELECT SUM(copa_del_rey) FROM table_name_80 WHERE la_liga < 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: Which Week has an Air Date of august 2, 2008? ### Context: CREATE TABLE table_name_62 (week VARCHAR, air_date VARCHAR) ### Response: ### Response: SELECT week FROM table_name_62 WHERE air_date = "august 2, 2008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ε (m −1 cm −1 ) of the red dye? ### Context: CREATE TABLE table_26428602_1 (ε__m_−1_cm_−1__ VARCHAR, color VARCHAR) ### Response: ### Response: SELECT ε__m_−1_cm_−1__ FROM table_26428602_1 WHERE color = "red"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 positions for denis patry? ### Context: CREATE TABLE table_1965650_6 (position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(position) FROM table_1965650_6 WHERE player = "Denis Patry"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player moving to Arminia Bielefeld? ### Context: CREATE TABLE table_name_68 (name VARCHAR, moving_to VARCHAR) ### Response: ### Response: SELECT name FROM table_name_68 WHERE moving_to = "arminia bielefeld"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average rating when the Romanji title was Mendol? ### Context: CREATE TABLE table_name_26 (average_ratings VARCHAR, romaji_title VARCHAR) ### Response: ### Response: SELECT average_ratings FROM table_name_26 WHERE romaji_title = "mendol"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Year, when Surface is Hard, and when Opponent is Dinara Safina? ### Context: CREATE TABLE table_name_3 (year INTEGER, surface VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_3 WHERE surface = "hard" AND opponent = "dinara safina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tries against did the club with 48 tries for have? ### Context: CREATE TABLE table_name_90 (tries_against VARCHAR, tries_for VARCHAR) ### Response: ### Response: SELECT tries_against FROM table_name_90 WHERE tries_for = "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: what's the district  with first elected being 1938 ### Context: CREATE TABLE table_1342292_2 (district VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT district FROM table_1342292_2 WHERE first_elected = 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: Which driver has a Time/Retired of +6 laps? ### Context: CREATE TABLE table_name_21 (driver VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_21 WHERE time_retired = "+6 laps"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2008 with 2012 of 2r and 2006 of 2r ### Context: CREATE TABLE table_name_39 (Id VARCHAR) ### Response: ### Response: SELECT 2008 FROM table_name_39 WHERE 2012 = "2r" AND 2006 = "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: Sébastien Bourdais of the team Newman/Haas Racing has what qual 1? ### Context: CREATE TABLE table_name_32 (qual_1 VARCHAR, team VARCHAR, name VARCHAR) ### Response: ### Response: SELECT qual_1 FROM table_name_32 WHERE team = "newman/haas racing" AND name = "sébastien bourdais"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constituency number with a reserved for ( SC / ST /None) of none, for Katol? ### Context: CREATE TABLE table_name_65 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR) ### Response: ### Response: SELECT constituency_number FROM table_name_65 WHERE reserved_for___sc___st__none_ = "none" AND name = "katol"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 February has a Game of 64? ### Context: CREATE TABLE table_name_77 (february INTEGER, game VARCHAR) ### Response: ### Response: SELECT AVG(february) FROM table_name_77 WHERE game = 64</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year did the team receive more than 0 points? ### Context: CREATE TABLE table_name_65 (year INTEGER, points INTEGER) ### Response: ### Response: SELECT AVG(year) FROM table_name_65 WHERE points > 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: List the forenames of all distinct drivers in alphabetical order? ### Context: CREATE TABLE drivers (forename VARCHAR) ### Response: ### Response: SELECT DISTINCT forename FROM drivers ORDER BY forename</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home captian has aus by 295 runs as the result? ### Context: CREATE TABLE table_name_21 (home_captain VARCHAR, result VARCHAR) ### Response: ### Response: SELECT home_captain FROM table_name_21 WHERE result = "aus by 295 runs"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Format, when Region is United States? ### Context: CREATE TABLE table_name_11 (format VARCHAR, region VARCHAR) ### Response: ### Response: SELECT format FROM table_name_11 WHERE region = "united states"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 English winning song had the winner aris runtuwene? ### Context: CREATE TABLE table_name_7 (English VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT WINNING_SONG(English AS Title) FROM table_name_7 WHERE winner = "aris runtuwene"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the country of the player with a score of 69-74-71=214? ### Context: CREATE TABLE table_name_23 (country VARCHAR, score VARCHAR) ### Response: ### Response: SELECT country FROM table_name_23 WHERE score = 69 - 74 - 71 = 214</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 affiliation of a location called Issaquah? ### Context: CREATE TABLE table_name_51 (affiliation VARCHAR, location VARCHAR) ### Response: ### Response: SELECT affiliation FROM table_name_51 WHERE location = "issaquah"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 mol.weight (daltons) when the percent of mass is 1.5? ### Context: CREATE TABLE table_name_47 (molweight__daltons_ VARCHAR, percent_of_mass VARCHAR) ### Response: ### Response: SELECT molweight__daltons_ FROM table_name_47 WHERE percent_of_mass = "1.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 is the tournament on july 23, 2006? ### Context: CREATE TABLE table_name_11 (tournament VARCHAR, date VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_11 WHERE date = "july 23, 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: How many Wins have a Top-10 smaller than 6, and Cuts made larger than 7, and a Top-5 of 0? ### Context: CREATE TABLE table_name_57 (wins VARCHAR, top_5 VARCHAR, top_10 VARCHAR, cuts_made VARCHAR) ### Response: ### Response: SELECT COUNT(wins) FROM table_name_57 WHERE top_10 < 6 AND cuts_made > 7 AND top_5 = 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 tie when team 2 is koper? ### Context: CREATE TABLE table_19294812_2 (tie_no INTEGER, team_2 VARCHAR) ### Response: ### Response: SELECT MIN(tie_no) FROM table_19294812_2 WHERE team_2 = "Koper"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2nd Member, when Assembled is "30 March 1298"? ### Context: CREATE TABLE table_name_96 (assembled VARCHAR) ### Response: ### Response: SELECT 2 AS nd_member FROM table_name_96 WHERE assembled = "30 march 1298"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Pick that is wide receiver with overall of 29? ### Context: CREATE TABLE table_name_60 (pick__number INTEGER, position VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT MAX(pick__number) FROM table_name_60 WHERE position = "wide receiver" AND overall = 29</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest total for those receiving less than 18 but more than 14? ### Context: CREATE TABLE table_name_31 (total INTEGER, silver VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT MIN(total) FROM table_name_31 WHERE silver < 18 AND rank = "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 example for the American of ɪ, ə, and a Semi-closed initial unstressed vowels of y /ɨ/? ### Context: CREATE TABLE table_name_73 (examples VARCHAR, american VARCHAR, semi_closed_initial_unstressed_vowels VARCHAR) ### Response: ### Response: SELECT examples FROM table_name_73 WHERE american = "ɪ, ə" AND semi_closed_initial_unstressed_vowels = "y /ɨ/"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a game played at 7:00 pm? ### Context: CREATE TABLE table_name_65 (date VARCHAR, time VARCHAR) ### Response: ### Response: SELECT date FROM table_name_65 WHERE time = "7:00 pm"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 parred E and scored 71-73-70-74=288? ### Context: CREATE TABLE table_name_19 (country VARCHAR, to_par VARCHAR, score VARCHAR) ### Response: ### Response: SELECT country FROM table_name_19 WHERE to_par = "e" AND score = 71 - 73 - 70 - 74 = 288</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 last 10 meetings when the overall record is *as of March 14, 2013? ### Context: CREATE TABLE table_name_53 (last_10_meetings VARCHAR, overall_record VARCHAR) ### Response: ### Response: SELECT last_10_meetings FROM table_name_53 WHERE overall_record = "*as of march 14, 2013"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 T8 Place Player with a Score of 68-74=142? ### Context: CREATE TABLE table_name_67 (player VARCHAR, place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_67 WHERE place = "t8" AND score = 68 - 74 = 142</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 mean amount of staying councilors with an election result amounting to less than 10 with the Green party, and a new council bigger than 0? ### Context: CREATE TABLE table_name_76 (staying_councillors INTEGER, new_council VARCHAR, election_result VARCHAR, party VARCHAR) ### Response: ### Response: SELECT AVG(staying_councillors) FROM table_name_76 WHERE election_result < 10 AND party = "green" AND new_council > 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: which is the production code when the number of the episode in series is 87? ### Context: CREATE TABLE table_27622417_1 (prod_code VARCHAR, no_in_series VARCHAR) ### Response: ### Response: SELECT prod_code FROM table_27622417_1 WHERE no_in_series = 87</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 amount of points in 1978 with a Chassis of arrows fa1? ### Context: CREATE TABLE table_name_98 (points INTEGER, year VARCHAR, chassis VARCHAR) ### Response: ### Response: SELECT SUM(points) FROM table_name_98 WHERE year = 1978 AND chassis = "arrows fa1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 mongolian has the province of municipality? ### Context: CREATE TABLE table_name_79 (mongolian VARCHAR, province VARCHAR) ### Response: ### Response: SELECT mongolian FROM table_name_79 WHERE province = "municipality"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 names of sponsors of players whose residence is either "Brandon" or "Birtle". ### Context: CREATE TABLE player (Sponsor_name VARCHAR, Residence VARCHAR) ### Response: ### Response: SELECT Sponsor_name FROM player WHERE Residence = "Brandon" OR Residence = "Birtle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wins did the team, which had more than 110 points, have in 1989? ### Context: CREATE TABLE table_name_13 (wins INTEGER, year VARCHAR, points VARCHAR) ### Response: ### Response: SELECT SUM(wins) FROM table_name_13 WHERE year = 1989 AND points > 110</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Home team that played Fitzroy as the Away team? ### Context: CREATE TABLE table_name_53 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_53 WHERE away_team = "fitzroy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fa cup apps with 0 league cup goals, and a total of 43 apps? ### Context: CREATE TABLE table_name_60 (fa_cup_apps VARCHAR, league_cup_goals VARCHAR, total_apps VARCHAR) ### Response: ### Response: SELECT fa_cup_apps FROM table_name_60 WHERE league_cup_goals = 0 AND total_apps = "43"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the United States International University, what was the highest pick number allowed? ### Context: CREATE TABLE table_name_53 (pick INTEGER, college VARCHAR) ### Response: ### Response: SELECT MAX(pick) FROM table_name_53 WHERE college = "united states international 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: What chassis does the shadow built car use? ### Context: CREATE TABLE table_name_36 (chassis VARCHAR, constructor VARCHAR) ### Response: ### Response: SELECT chassis FROM table_name_36 WHERE constructor = "shadow"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 car has the v16 engine? ### Context: CREATE TABLE table_name_40 (type VARCHAR, engine VARCHAR) ### Response: ### Response: SELECT type FROM table_name_40 WHERE engine = "v16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the service for versions l-410uvp ### Context: CREATE TABLE table_name_52 (in_service VARCHAR, versions VARCHAR) ### Response: ### Response: SELECT in_service FROM table_name_52 WHERE versions = "l-410uvp"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 engine has a Year larger than 1969? ### Context: CREATE TABLE table_name_7 (engine VARCHAR, year INTEGER) ### Response: ### Response: SELECT engine FROM table_name_7 WHERE year > 1969</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on october 8, 1961? ### Context: CREATE TABLE table_name_49 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_49 WHERE date = "october 8, 1961"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the record of 0-1 from the table? ### Context: CREATE TABLE table_14656147_2 (week VARCHAR, record VARCHAR) ### Response: ### Response: SELECT week FROM table_14656147_2 WHERE record = "0-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 Background of the contestant with a Result of 07 fired in task 6 (2009-04-05)? ### Context: CREATE TABLE table_name_20 (background VARCHAR, result VARCHAR) ### Response: ### Response: SELECT background FROM table_name_20 WHERE result = "07 fired in task 6 (2009-04-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: What is the Winning score on oct 22, 2000? ### Context: CREATE TABLE table_name_93 (winning_score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT winning_score FROM table_name_93 WHERE date = "oct 22, 2000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the smallest number of people to attend a game with an H/A of h and the opponent was Roma? ### Context: CREATE TABLE table_name_67 (attendance INTEGER, h___a VARCHAR, opponents VARCHAR) ### Response: ### Response: SELECT MIN(attendance) FROM table_name_67 WHERE h___a = "h" AND opponents = "roma"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what are all the percent (1990) where state is mississippi ### Context: CREATE TABLE table_1182314_5 (percent__1990_ VARCHAR, state VARCHAR) ### Response: ### Response: SELECT percent__1990_ FROM table_1182314_5 WHERE state = "Mississippi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 seasons has John Mcfadden coached? ### Context: CREATE TABLE table_name_71 (seasons VARCHAR, coach VARCHAR) ### Response: ### Response: SELECT COUNT(seasons) FROM table_name_71 WHERE coach = "john mcfadden"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sum number of Pl GP when the Reg GP was 0, the Rd number was bigger than 8, and the pick number was bigger than 146? ### Context: CREATE TABLE table_name_90 (pl_gp VARCHAR, pick__number VARCHAR, reg_gp VARCHAR, rd__number VARCHAR) ### Response: ### Response: SELECT COUNT(pl_gp) FROM table_name_90 WHERE reg_gp = 0 AND rd__number > 8 AND pick__number > 146</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the Chicago Black Hawks Home game with the New York Rangers and a Score of 3–2? ### Context: CREATE TABLE table_name_28 (record VARCHAR, score VARCHAR, home VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT record FROM table_name_28 WHERE home = "chicago black hawks" AND visitor = "new york rangers" AND score = "3–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 the conductor for Rusalka? ### Context: CREATE TABLE table_24521345_1 (conductor VARCHAR, work_title VARCHAR) ### Response: ### Response: SELECT conductor FROM table_24521345_1 WHERE work_title = "Rusalka"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 runner-up is [[|]] 151/8 (50.0 overs), what were the results? ### Context: CREATE TABLE table_22577693_1 (result VARCHAR, runner_up VARCHAR) ### Response: ### Response: SELECT result FROM table_22577693_1 WHERE runner_up = "[[|]] 151/8 (50.0 overs)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 shows for bronze when silver is 1, rank is smaller than 4, and gold is larger than 1? ### Context: CREATE TABLE table_name_8 (bronze INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT SUM(bronze) FROM table_name_8 WHERE silver = 1 AND rank < 4 AND gold > 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How was times was the dance the jive and the week # was 10? ### Context: CREATE TABLE table_1276219_1 (phillips VARCHAR, dance VARCHAR, week__number VARCHAR) ### Response: ### Response: SELECT COUNT(phillips) FROM table_1276219_1 WHERE dance = "Jive" AND week__number = "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 average goals against average for those playing more than 78 games? ### Context: CREATE TABLE table_name_33 (goals_against_average INTEGER, games_played INTEGER) ### Response: ### Response: SELECT AVG(goals_against_average) FROM table_name_33 WHERE games_played > 78</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 surface for the opponents in the final with fitzgerald vilas? ### Context: CREATE TABLE table_22597626_17 (surface VARCHAR, opponents_in_the_final VARCHAR) ### Response: ### Response: SELECT surface FROM table_22597626_17 WHERE opponents_in_the_final = "Fitzgerald Vilas"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Plautdietsch has Dutch of maken? ### Context: CREATE TABLE table_name_61 (plautdietsch VARCHAR, dutch VARCHAR) ### Response: ### Response: SELECT plautdietsch FROM table_name_61 WHERE dutch = "maken"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 writer has mort drucker as the artist, an issue greater than 470, and law & order: svu as an actual title? ### Context: CREATE TABLE table_name_9 (writer VARCHAR, actual_title VARCHAR, artist VARCHAR, issue VARCHAR) ### Response: ### Response: SELECT writer FROM table_name_9 WHERE artist = "mort drucker" AND issue > 470 AND actual_title = "law & order: svu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game with a score of 15–6? ### Context: CREATE TABLE table_name_15 (date VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_15 WHERE score = "15–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 was the date of the Women's Individual Class 3? ### Context: CREATE TABLE table_name_73 (date VARCHAR, event VARCHAR) ### Response: ### Response: SELECT date FROM table_name_73 WHERE event = "women's individual class 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 report for Challenge Stadium? ### Context: CREATE TABLE table_name_29 (report VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT report FROM table_name_29 WHERE venue = "challenge stadium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 largest value for Fall 08 when Fall 07 is less than 242? ### Context: CREATE TABLE table_name_28 (fall_08 INTEGER, fall_07 INTEGER) ### Response: ### Response: SELECT MAX(fall_08) FROM table_name_28 WHERE fall_07 < 242</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 IHSAA class A school are the Cavaliers from? ### Context: CREATE TABLE table_name_38 (county VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR) ### Response: ### Response: SELECT county FROM table_name_38 WHERE ihsaa_class = "a" AND mascot = "cavaliers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 presenter 11 may ### Context: CREATE TABLE table_20466963_13 (presenter VARCHAR, date VARCHAR) ### Response: ### Response: SELECT presenter FROM table_20466963_13 WHERE date = "11 May"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 holes does Player Vijay Singh have? ### Context: CREATE TABLE table_name_79 (hole VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(hole) FROM table_name_79 WHERE player = "vijay singh"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Digital PSIP for channels over 29 with callsign CFTU-DT? ### Context: CREATE TABLE table_name_81 (digital_psip INTEGER, call_sign VARCHAR, broadcast_channel VARCHAR) ### Response: ### Response: SELECT MIN(digital_psip) FROM table_name_81 WHERE call_sign = "cftu-dt" AND broadcast_channel > 29</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is moving to Triestina? ### Context: CREATE TABLE table_name_21 (name VARCHAR, moving_to VARCHAR) ### Response: ### Response: SELECT name FROM table_name_21 WHERE moving_to = "triestina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Location/Attendance of verizon center 7,448? ### Context: CREATE TABLE table_name_15 (date VARCHAR, location_attendance VARCHAR) ### Response: ### Response: SELECT date FROM table_name_15 WHERE location_attendance = "verizon center 7,448"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Pastoral Region has 3 Cemeteries? ### Context: CREATE TABLE table_name_57 (pastoral_region VARCHAR, cemeteries VARCHAR) ### Response: ### Response: SELECT pastoral_region FROM table_name_57 WHERE cemeteries = 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 Country, when Player is "Jack Nicklaus"? ### Context: CREATE TABLE table_name_56 (country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_56 WHERE player = "jack nicklaus"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: I want to know the condition with Prothrombin time of unaffected and bleeding time of prolonged with partial thromboplastin time of unaffected with platelet count of decreased or unaffected ### Context: CREATE TABLE table_name_75 (condition VARCHAR, platelet_count VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR) ### Response: ### Response: SELECT condition FROM table_name_75 WHERE prothrombin_time = "unaffected" AND bleeding_time = "prolonged" AND partial_thromboplastin_time = "unaffected" AND platelet_count = "decreased or unaffected"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many ranks have an industry of health care? ### Context: CREATE TABLE table_name_42 (rank VARCHAR, primary_industry VARCHAR) ### Response: ### Response: SELECT COUNT(rank) FROM table_name_42 WHERE primary_industry = "health care"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the friendly competition at Dreisamstadion, Freiburg? ### Context: CREATE TABLE table_name_52 (score VARCHAR, competition VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT score FROM table_name_52 WHERE competition = "friendly" AND venue = "dreisamstadion, freiburg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Surface, when Date is less than 1979, and when Opponent in the Final is "Bill Scanlon"? ### Context: CREATE TABLE table_name_45 (surface VARCHAR, date VARCHAR, opponent_in_the_final VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_45 WHERE date < 1979 AND opponent_in_the_final = "bill scanlon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lanes have 2 as the heat, and susanna kallur as the name? ### Context: CREATE TABLE table_name_77 (lane INTEGER, heat VARCHAR, name VARCHAR) ### Response: ### Response: SELECT SUM(lane) FROM table_name_77 WHERE heat = 2 AND name = "susanna kallur"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round of 32 if the round of 16 is drenovak ( srb ) w 20–11? ### Context: CREATE TABLE table_27294107_11 (round_of_32 VARCHAR, round_of_16 VARCHAR) ### Response: ### Response: SELECT round_of_32 FROM table_27294107_11 WHERE round_of_16 = "Drenovak ( SRB ) W 20–11"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the perfect stem for pozten? ### Context: CREATE TABLE table_12784134_24 (perfect_stem VARCHAR, imperfect_stem VARCHAR) ### Response: ### Response: SELECT perfect_stem FROM table_12784134_24 WHERE imperfect_stem = "pozten"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 vote for thiago ### Context: CREATE TABLE table_24233848_2 (vote VARCHAR, eliminated VARCHAR) ### Response: ### Response: SELECT vote FROM table_24233848_2 WHERE eliminated = "Thiago"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What player has 14 wins? ### Context: CREATE TABLE table_name_83 (player VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT player FROM table_name_83 WHERE wins = 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 maximum lowest with average being 734 ### Context: CREATE TABLE table_14003108_1 (lowest INTEGER, average VARCHAR) ### Response: ### Response: SELECT MAX(lowest) FROM table_14003108_1 WHERE average = 734</s>