text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the location of record 5-3 ### Context: CREATE TABLE table_name_21 (location VARCHAR, record VARCHAR) [/INST] ### Response: SELECT location FROM table_name_21 WHERE record = "5-3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the rank for a team that has a percentage of 56% and a loss smaller than 4? ### Context: CREATE TABLE table_name_45 (rank INTEGER, loss VARCHAR, percentage VARCHAR) [/INST] ### Response: SELECT AVG(rank) FROM table_name_45 WHERE NOT percentage = "56%" AND loss < 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the lowest yards for 34 long and avg less than 12.6 ### Context: CREATE TABLE table_name_3 (yards INTEGER, long VARCHAR, avg VARCHAR) [/INST] ### Response: SELECT MIN(yards) FROM table_name_3 WHERE long = 34 AND avg < 12.6 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team is sponsored by chameleon sunglasses? ### Context: CREATE TABLE table_name_63 (team VARCHAR, sponsor VARCHAR) [/INST] ### Response: SELECT team FROM table_name_63 WHERE sponsor = "chameleon sunglasses" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team does bobby hillin jr. (r) drive a buick regal for? ### Context: CREATE TABLE table_name_8 (team VARCHAR, make VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT team FROM table_name_8 WHERE make = "buick regal" AND driver = "bobby hillin jr. (r)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team is sponsored by w.h. bolin? ### Context: CREATE TABLE table_name_14 (team VARCHAR, sponsor VARCHAR) [/INST] ### Response: SELECT team FROM table_name_14 WHERE sponsor = "w.h. bolin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who drives for the sponsor w.h. bolin? ### Context: CREATE TABLE table_name_82 (driver VARCHAR, sponsor VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_82 WHERE sponsor = "w.h. bolin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who sponsors driver neil bonnett? ### Context: CREATE TABLE table_name_18 (sponsor VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT sponsor FROM table_name_18 WHERE driver = "neil bonnett" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What channel has a description of the public broadcaster? ### Context: CREATE TABLE table_name_82 (channel VARCHAR, description VARCHAR) [/INST] ### Response: SELECT channel FROM table_name_82 WHERE description = "public broadcaster" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the channel that was financed by commercials? ### Context: CREATE TABLE table_name_39 (channel VARCHAR, financed_by VARCHAR) [/INST] ### Response: SELECT channel FROM table_name_39 WHERE financed_by = "commercials" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which entry has the highest laps of those with constructor Minardi - Fondmetal, driver Marc Gené, and a grid larger than 20? ### Context: CREATE TABLE table_name_10 (laps INTEGER, grid VARCHAR, constructor VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT MAX(laps) FROM table_name_10 WHERE constructor = "minardi - fondmetal" AND driver = "marc gené" AND grid > 20 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of grid values of driver Michael Schumacher with lap counts larger than 66? ### Context: CREATE TABLE table_name_7 (grid INTEGER, laps VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT SUM(grid) FROM table_name_7 WHERE laps > 66 AND driver = "michael schumacher" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which driver has 62 laps? ### Context: CREATE TABLE table_name_17 (driver VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_17 WHERE laps = 62 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest grid value with constructor Mclaren - Mercedes, driver David Coulthard, and has fewer than 66 laps? ### Context: CREATE TABLE table_name_99 (grid INTEGER, laps VARCHAR, constructor VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT MAX(grid) FROM table_name_99 WHERE constructor = "mclaren - mercedes" AND driver = "david coulthard" AND laps < 66 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest number of laps for grid 17? ### Context: CREATE TABLE table_name_99 (laps INTEGER, grid VARCHAR) [/INST] ### Response: SELECT MAX(laps) FROM table_name_99 WHERE grid = 17 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: None of the rounds has Roger Williamson as a driver. ### Context: CREATE TABLE table_name_8 (rounds VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT rounds FROM table_name_8 WHERE driver = "roger williamson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the time/retired for alain prost? ### Context: CREATE TABLE table_name_60 (time_retired VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_60 WHERE driver = "alain prost" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the time/retired for grid 9? ### Context: CREATE TABLE table_name_30 (time_retired VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_30 WHERE grid = 9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who had to retire due to suspension? ### Context: CREATE TABLE table_name_65 (driver VARCHAR, time_retired VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_65 WHERE time_retired = "suspension" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What class is volleyball in 2000? ### Context: CREATE TABLE table_name_40 (class VARCHAR, sport VARCHAR, year VARCHAR) [/INST] ### Response: SELECT class FROM table_name_40 WHERE sport = "volleyball" AND year = 2000 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the team's record in 3a volleyball? ### Context: CREATE TABLE table_name_89 (record VARCHAR, class VARCHAR, sport VARCHAR) [/INST] ### Response: SELECT record FROM table_name_89 WHERE class = "3a" AND sport = "volleyball" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the away team at Melbourne's home game? ### Context: CREATE TABLE table_name_62 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_62 WHERE home_team = "melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the away team score at Corio Oval? ### Context: CREATE TABLE table_name_42 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_42 WHERE venue = "corio oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Call Sign that has a Tail Code of oy belong to Weapon Systems Officer Capt Charles B. Debellevue? ### Context: CREATE TABLE table_name_37 (call_sign VARCHAR, tail_code VARCHAR, weapon_systems_officer VARCHAR) [/INST] ### Response: SELECT call_sign FROM table_name_37 WHERE tail_code = "oy" AND weapon_systems_officer = "capt charles b. debellevue" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Tail Code belongs to Weapon Systems Officer Capt Charles B. Debellevue? ### Context: CREATE TABLE table_name_29 (tail_code VARCHAR, weapon_systems_officer VARCHAR) [/INST] ### Response: SELECT tail_code FROM table_name_29 WHERE weapon_systems_officer = "capt charles b. debellevue" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Aircraft has the Call Sign Paula 01? ### Context: CREATE TABLE table_name_37 (aircraft VARCHAR, call_sign VARCHAR) [/INST] ### Response: SELECT aircraft FROM table_name_37 WHERE call_sign = "paula 01" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Call Sign that has Tail Code ed? ### Context: CREATE TABLE table_name_80 (call_sign VARCHAR, tail_code VARCHAR) [/INST] ### Response: SELECT call_sign FROM table_name_80 WHERE tail_code = "ed" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which aircraft Weapon Systems Officer Capt Charles B. Debellevue belongs on? ### Context: CREATE TABLE table_name_27 (aircraft VARCHAR, weapon_systems_officer VARCHAR) [/INST] ### Response: SELECT aircraft FROM table_name_27 WHERE weapon_systems_officer = "capt charles b. debellevue" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest amount of wins of someone who has 2 losses? ### Context: CREATE TABLE table_name_96 (wins INTEGER, losses VARCHAR) [/INST] ### Response: SELECT MIN(wins) FROM table_name_96 WHERE losses = 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the largest amount of wins of someone who has an against score greater than 1249 and a number of losses less than 17? ### Context: CREATE TABLE table_name_29 (wins INTEGER, against VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT MAX(wins) FROM table_name_29 WHERE against > 1249 AND losses < 17 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of race that has a winning driver of Stirling moss and a Circuit of oulton park? ### Context: CREATE TABLE table_name_23 (race_name VARCHAR, winning_driver VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT race_name FROM table_name_23 WHERE winning_driver = "stirling moss" AND circuit = "oulton park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the winning driver that has a construction of brm? ### Context: CREATE TABLE table_name_27 (winning_driver VARCHAR, constructor VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_name_27 WHERE constructor = "brm" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the high bronze total for nations ranked 12? ### Context: CREATE TABLE table_name_15 (bronze INTEGER, rank VARCHAR) [/INST] ### Response: SELECT MAX(bronze) FROM table_name_15 WHERE rank = "12" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the winning score on May 3, 1998? ### Context: CREATE TABLE table_name_23 (winning_score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT winning_score FROM table_name_23 WHERE date = "may 3, 1998" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the role of the aircraft that has a registration of s5-hpg s5-hpc? ### Context: CREATE TABLE table_name_26 (role VARCHAR, registration VARCHAR) [/INST] ### Response: SELECT role FROM table_name_26 WHERE registration = "s5-hpg s5-hpc" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the country of origin of the aircraft with a registration s5-hpb? ### Context: CREATE TABLE table_name_67 (origin VARCHAR, registration VARCHAR) [/INST] ### Response: SELECT origin FROM table_name_67 WHERE registration = "s5-hpb" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the role of the aircraft that originates from the European Union? ### Context: CREATE TABLE table_name_41 (role VARCHAR, origin VARCHAR) [/INST] ### Response: SELECT role FROM table_name_41 WHERE origin = "european union" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the role of the aircraft that has a registration of s5-hpb? ### Context: CREATE TABLE table_name_51 (role VARCHAR, registration VARCHAR) [/INST] ### Response: SELECT role FROM table_name_51 WHERE registration = "s5-hpb" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Hometown has a Height of 6-10? ### Context: CREATE TABLE table_name_90 (hometown VARCHAR, height VARCHAR) [/INST] ### Response: SELECT hometown FROM table_name_90 WHERE height = "6-10" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the NBA Draft for the School Bishop O'Connell High School? ### Context: CREATE TABLE table_name_10 (nba_draft VARCHAR, school VARCHAR) [/INST] ### Response: SELECT nba_draft FROM table_name_10 WHERE school = "bishop o'connell high school" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which School is located in Winter Park, FL (Hometown)? ### Context: CREATE TABLE table_name_65 (school VARCHAR, hometown VARCHAR) [/INST] ### Response: SELECT school FROM table_name_65 WHERE hometown = "winter park, fl" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When the School is Bishop Luers High School, what is the Hometown? ### Context: CREATE TABLE table_name_83 (hometown VARCHAR, school VARCHAR) [/INST] ### Response: SELECT hometown FROM table_name_83 WHERE school = "bishop luers high school" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Hometown for Villanova College? ### Context: CREATE TABLE table_name_11 (hometown VARCHAR, college VARCHAR) [/INST] ### Response: SELECT hometown FROM table_name_11 WHERE college = "villanova" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the home team at the game when the Thrashers had a record of 18–18–1? ### Context: CREATE TABLE table_name_31 (home VARCHAR, record VARCHAR) [/INST] ### Response: SELECT home FROM table_name_31 WHERE record = "18–18–1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the date of the game with a decision of Lehtonen and attended by more than 17,731 people? ### Context: CREATE TABLE table_name_70 (date VARCHAR, decision VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT date FROM table_name_70 WHERE decision = "lehtonen" AND attendance > 17 OFFSET 731 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average grid for johnny herbert with a Time/Retired of +1 lap? ### Context: CREATE TABLE table_name_38 (grid INTEGER, time_retired VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT AVG(grid) FROM table_name_38 WHERE time_retired = "+1 lap" AND driver = "johnny herbert" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the away team at mcg? ### Context: CREATE TABLE table_name_25 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_25 WHERE venue = "mcg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the home team at princes park? ### Context: CREATE TABLE table_name_25 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_25 WHERE venue = "princes park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Object type has a Constellation of orion, and an NGC number larger than 2174, and a Declination (J2000) of °48′06″? ### Context: CREATE TABLE table_name_32 (object_type VARCHAR, declination___j2000__ VARCHAR, constellation VARCHAR, ngc_number VARCHAR) [/INST] ### Response: SELECT object_type FROM table_name_32 WHERE constellation = "orion" AND ngc_number > 2174 AND declination___j2000__ = "°48′06″" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Right ascension (J2000) has a Constellation of mensa, and an NGC number larger than 2171? ### Context: CREATE TABLE table_name_98 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, ngc_number VARCHAR) [/INST] ### Response: SELECT right_ascension___j2000__ FROM table_name_98 WHERE constellation = "mensa" AND ngc_number > 2171 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which NGC number has an Object type of open cluster, and a Right ascension (J2000) of 06h01m06s? ### Context: CREATE TABLE table_name_61 (ngc_number INTEGER, object_type VARCHAR, right_ascension___j2000__ VARCHAR) [/INST] ### Response: SELECT MAX(ngc_number) FROM table_name_61 WHERE object_type = "open cluster" AND right_ascension___j2000__ = "06h01m06s" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Object type has an NGC number of 2171? ### Context: CREATE TABLE table_name_37 (object_type VARCHAR, ngc_number VARCHAR) [/INST] ### Response: SELECT object_type FROM table_name_37 WHERE ngc_number = 2171 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the end date of the term for Governor of richard j. oglesby, and a Term of 1885–1889? ### Context: CREATE TABLE table_name_8 (end_date VARCHAR, governor VARCHAR, term VARCHAR) [/INST] ### Response: SELECT end_date FROM table_name_8 WHERE governor = "richard j. oglesby" AND term = "1885–1889" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What site has an orbit of Leo, a decay (UTC) of still in orbit, and a magnetosphere research? ### Context: CREATE TABLE table_name_5 (site VARCHAR, function VARCHAR, orbit VARCHAR, decay___utc__ VARCHAR) [/INST] ### Response: SELECT site FROM table_name_5 WHERE orbit = "leo" AND decay___utc__ = "still in orbit" AND function = "magnetosphere research" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date and time has a sub-orbital of orbit, a function of aeronomy research, and a Nike Orion rocket, as well as a Poker Flat site? ### Context: CREATE TABLE table_name_23 (date_and_time___utc__ VARCHAR, site VARCHAR, rocket VARCHAR, orbit VARCHAR, function VARCHAR) [/INST] ### Response: SELECT date_and_time___utc__ FROM table_name_23 WHERE orbit = "sub-orbital" AND function = "aeronomy research" AND rocket = "nike orion" AND site = "poker flat" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the tournament when the winning score is 2 and 1? ### Context: CREATE TABLE table_name_29 (tournament VARCHAR, winning_score VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_29 WHERE winning_score = "2 and 1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the margin of victory for the tournament travelers championship? ### Context: CREATE TABLE table_name_30 (margin_of_victory VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT margin_of_victory FROM table_name_30 WHERE tournament = "travelers championship" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the margin of victory for the waste management phoenix open tournament? ### Context: CREATE TABLE table_name_69 (margin_of_victory VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT margin_of_victory FROM table_name_69 WHERE tournament = "waste management phoenix open" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: who is the runner-up when the winning score is −16 (68-70-65-65=268)? ### Context: CREATE TABLE table_name_26 (runner_up VARCHAR, winning_score VARCHAR) [/INST] ### Response: SELECT runner_up FROM table_name_26 WHERE winning_score = −16(68 - 70 - 65 - 65 = 268) </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: For which Game 4 did Michael O'Connor play wing position? ### Context: CREATE TABLE table_name_8 (game_4 VARCHAR, position VARCHAR, game_1 VARCHAR) [/INST] ### Response: SELECT game_4 FROM table_name_8 WHERE position = "wing" AND game_1 = "michael o'connor" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: For which Game 4, did David Boyle play in Game 3? ### Context: CREATE TABLE table_name_41 (game_4 VARCHAR, game_3 VARCHAR) [/INST] ### Response: SELECT game_4 FROM table_name_41 WHERE game_3 = "david boyle" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Game 1 has a fullback? ### Context: CREATE TABLE table_name_88 (game_1 VARCHAR, position VARCHAR) [/INST] ### Response: SELECT game_1 FROM table_name_88 WHERE position = "fullback" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: For which Game 4 did Michael O'Connor play during Game 1? ### Context: CREATE TABLE table_name_27 (game_4 VARCHAR, game_1 VARCHAR) [/INST] ### Response: SELECT game_4 FROM table_name_27 WHERE game_1 = "michael o'connor" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: During Game 2, which position did Andrew Farrar play? ### Context: CREATE TABLE table_name_20 (position VARCHAR, game_2 VARCHAR) [/INST] ### Response: SELECT position FROM table_name_20 WHERE game_2 = "andrew farrar" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: During which Game 4, did Brett Kenny play Game 2? ### Context: CREATE TABLE table_name_52 (game_4 VARCHAR, game_2 VARCHAR) [/INST] ### Response: SELECT game_4 FROM table_name_52 WHERE game_2 = "brett kenny" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where was the former private member that was founded in 1891 and left in 1975? ### Context: CREATE TABLE table_name_98 (location VARCHAR, founded VARCHAR, left VARCHAR, type VARCHAR) [/INST] ### Response: SELECT location FROM table_name_98 WHERE left = 1975 AND type = "private" AND founded = 1891 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the places when for the soviet union with a rank more than 11? ### Context: CREATE TABLE table_name_38 (places INTEGER, nation VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT SUM(places) FROM table_name_38 WHERE nation = "soviet union" AND rank > 11 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the name when the nation is soviet union and the points is 185? ### Context: CREATE TABLE table_name_4 (name VARCHAR, nation VARCHAR, points VARCHAR) [/INST] ### Response: SELECT name FROM table_name_4 WHERE nation = "soviet union" AND points = 185 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What constructor has less than 3 laps and grid 15? ### Context: CREATE TABLE table_name_22 (constructor VARCHAR, laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_22 WHERE laps < 3 AND grid = 15 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Home team has an Away team of collingwood? ### Context: CREATE TABLE table_name_25 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_25 WHERE away_team = "collingwood" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the lowest against for when wins are greater than 14, draws is 0 and losses are 4 ### Context: CREATE TABLE table_name_3 (against INTEGER, wins VARCHAR, losses VARCHAR, draws VARCHAR) [/INST] ### Response: SELECT MIN(against) FROM table_name_3 WHERE losses = 4 AND draws = 0 AND wins > 14 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the sum against for byes less than 0 ### Context: CREATE TABLE table_name_92 (against INTEGER, byes INTEGER) [/INST] ### Response: SELECT SUM(against) FROM table_name_92 WHERE byes < 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the sum of draws for losses less than 2 and wins of 16 ### Context: CREATE TABLE table_name_6 (draws INTEGER, wins VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT SUM(draws) FROM table_name_6 WHERE wins = 16 AND losses < 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How few laps were finished in 17? ### Context: CREATE TABLE table_name_48 (laps INTEGER, finish VARCHAR) [/INST] ### Response: SELECT MIN(laps) FROM table_name_48 WHERE finish = "17" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is 1966's Qual rating? ### Context: CREATE TABLE table_name_55 (qual VARCHAR, year VARCHAR) [/INST] ### Response: SELECT qual FROM table_name_55 WHERE year = "1966" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What race has a finish time of 10? ### Context: CREATE TABLE table_name_78 (start VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT start FROM table_name_78 WHERE finish = "10" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest lap with a rank of 30? ### Context: CREATE TABLE table_name_85 (laps INTEGER, rank VARCHAR) [/INST] ### Response: SELECT MIN(laps) FROM table_name_85 WHERE rank = "30" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What finish time started at 32? ### Context: CREATE TABLE table_name_9 (finish VARCHAR, start VARCHAR) [/INST] ### Response: SELECT finish FROM table_name_9 WHERE start = "32" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the lowest ranked player from the United States that has less than 3 Wins? ### Context: CREATE TABLE table_name_59 (rank INTEGER, country VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT MIN(rank) FROM table_name_59 WHERE country = "united states" AND wins < 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score of the game that had a visiting team of Edmonton? ### Context: CREATE TABLE table_name_93 (score VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT score FROM table_name_93 WHERE visitor = "edmonton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the record of the game that had a home team of Colorado, and a visiting team of Winnipeg? ### Context: CREATE TABLE table_name_59 (record VARCHAR, home VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT record FROM table_name_59 WHERE home = "colorado" AND visitor = "winnipeg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team was visiting on February 15? ### Context: CREATE TABLE table_name_85 (visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_85 WHERE date = "february 15" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What theme had an issue price of $489.95 after 2005? ### Context: CREATE TABLE table_name_22 (theme VARCHAR, issue_price VARCHAR, year VARCHAR) [/INST] ### Response: SELECT theme FROM table_name_22 WHERE issue_price = "$489.95" AND year > 2005 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year was the timber trade? ### Context: CREATE TABLE table_name_61 (year INTEGER, theme VARCHAR) [/INST] ### Response: SELECT SUM(year) FROM table_name_61 WHERE theme = "timber trade" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year has an issue price of $697.95? ### Context: CREATE TABLE table_name_9 (year VARCHAR, issue_price VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_9 WHERE issue_price = "$697.95" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the engine driven by Jean-Pierre Jarier and has a chassis of PC4? ### Context: CREATE TABLE table_name_66 (engine VARCHAR, driver VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT engine FROM table_name_66 WHERE driver = "jean-pierre jarier" AND chassis = "pc4" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Season had Dundee United as a Winner? ### Context: CREATE TABLE table_name_87 (season VARCHAR, winners VARCHAR) [/INST] ### Response: SELECT season FROM table_name_87 WHERE winners = "dundee united" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Score of the Rangers' Runner-ups and Hibernian Winners in Hampden Park? ### Context: CREATE TABLE table_name_17 (score VARCHAR, winners VARCHAR, venue VARCHAR, runners_up VARCHAR) [/INST] ### Response: SELECT score FROM table_name_17 WHERE venue = "hampden park" AND runners_up = "rangers" AND winners = "hibernian" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Runners-up have a Venue in Broadwood Stadium? ### Context: CREATE TABLE table_name_75 (runners_up VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT runners_up FROM table_name_75 WHERE venue = "broadwood stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When is the completed date of the destroyer with a pennant number h63? ### Context: CREATE TABLE table_name_91 (completed VARCHAR, pennant_number VARCHAR) [/INST] ### Response: SELECT completed FROM table_name_91 WHERE pennant_number = "h63" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When is the completed date of the destroyer with a pennant number h59? ### Context: CREATE TABLE table_name_50 (completed VARCHAR, pennant_number VARCHAR) [/INST] ### Response: SELECT completed FROM table_name_50 WHERE pennant_number = "h59" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What ship has a pennant number h05? ### Context: CREATE TABLE table_name_89 (ship VARCHAR, pennant_number VARCHAR) [/INST] ### Response: SELECT ship FROM table_name_89 WHERE pennant_number = "h05" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What ship has a pennant number h05? ### Context: CREATE TABLE table_name_5 (ship VARCHAR, pennant_number VARCHAR) [/INST] ### Response: SELECT ship FROM table_name_5 WHERE pennant_number = "h05" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the launched date of the destroyer completed 25 February 1936? ### Context: CREATE TABLE table_name_13 (launched VARCHAR, completed VARCHAR) [/INST] ### Response: SELECT launched FROM table_name_13 WHERE completed = "25 february 1936" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the launched date of the destroyer completed 1 July 1936? ### Context: CREATE TABLE table_name_28 (launched VARCHAR, completed VARCHAR) [/INST] ### Response: SELECT launched FROM table_name_28 WHERE completed = "1 july 1936" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the home team score when the VFL played at Western Oval? ### Context: CREATE TABLE table_name_65 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_65 WHERE venue = "western oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was North Melbourne's home opponent? ### Context: CREATE TABLE table_name_26 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_26 WHERE away_team = "north melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the home team score when the VFL played at Princes Park? ### Context: CREATE TABLE table_name_86 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_86 WHERE venue = "princes park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which sum of AVE-No has a Name of albula alps, and a Height (m) larger than 3418? ### Context: CREATE TABLE table_name_98 (ave__no INTEGER, name VARCHAR, height__m_ VARCHAR) [/INST] ### Response: SELECT SUM(ave__no) FROM table_name_98 WHERE name = "albula alps" AND height__m_ > 3418 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Height (m) has a Name of plessur alps, and a AVE-No larger than 63? ### Context: CREATE TABLE table_name_97 (height__m_ INTEGER, name VARCHAR, ave__no VARCHAR) [/INST] ### Response: SELECT MIN(height__m_) FROM table_name_97 WHERE name = "plessur alps" AND ave__no > 63 </s>