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: How many matches were played that resulted in less than 59.1 overs and a 6.78 Economy rate? ### Context: CREATE TABLE table_name_67 (matches INTEGER, overs VARCHAR, economy_rate VARCHAR) [/INST] ### Response: SELECT SUM(matches) FROM table_name_67 WHERE overs < 59.1 AND economy_rate > 6.78 </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 of someone with more than 19 wickets and less than 16 matches? ### Context: CREATE TABLE table_name_13 (average INTEGER, wickets VARCHAR, matches VARCHAR) [/INST] ### Response: SELECT AVG(average) FROM table_name_13 WHERE wickets > 19 AND matches < 16 </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 were the total number of matches played when the Deccan Chargers had a strike rate of 15.5? ### Context: CREATE TABLE table_name_50 (matches INTEGER, team VARCHAR, strike_rate VARCHAR) [/INST] ### Response: SELECT MAX(matches) FROM table_name_50 WHERE team = "deccan chargers" AND strike_rate > 15.5 </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 of the match on 21.10.07, which had bsc young boys (asl) as the geust? ### Context: CREATE TABLE table_name_30 (home VARCHAR, date VARCHAR, geust VARCHAR) [/INST] ### Response: SELECT home FROM table_name_30 WHERE date = "21.10.07" AND geust = "bsc young boys (asl)" </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 home of fc st. gallen (asl) geust? ### Context: CREATE TABLE table_name_52 (home VARCHAR, geust VARCHAR) [/INST] ### Response: SELECT home FROM table_name_52 WHERE geust = "fc st. gallen (asl)" </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 home of the geust fc basel (asl)? ### Context: CREATE TABLE table_name_14 (home VARCHAR, geust VARCHAR) [/INST] ### Response: SELECT home FROM table_name_14 WHERE geust = "fc basel (asl)" </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 home of fc thun (asl) geust? ### Context: CREATE TABLE table_name_83 (home VARCHAR, geust VARCHAR) [/INST] ### Response: SELECT home FROM table_name_83 WHERE geust = "fc thun (asl)" </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 home of the match with a 0:2 result on 21.10.07? ### Context: CREATE TABLE table_name_28 (home VARCHAR, result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home FROM table_name_28 WHERE result = "0:2" AND date = "21.10.07" </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 geust with a 0:1 result? ### Context: CREATE TABLE table_name_65 (geust VARCHAR, result VARCHAR) [/INST] ### Response: SELECT geust FROM table_name_65 WHERE result = "0: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 nalchik with 4 played, a rl qual., and 100 jermuk? ### Context: CREATE TABLE table_name_32 (nalchik VARCHAR, jermuk VARCHAR, played VARCHAR, qual VARCHAR) [/INST] ### Response: SELECT nalchik FROM table_name_32 WHERE played = 4 AND qual = "rl" AND jermuk = "100" </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 elista with 1 played and 153⅓ baku? ### Context: CREATE TABLE table_name_14 (elista VARCHAR, played VARCHAR, baku VARCHAR) [/INST] ### Response: SELECT elista FROM table_name_14 WHERE played = 1 AND baku = "153⅓" </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 river had 26 points? ### Context: CREATE TABLE table_name_72 (driver VARCHAR, points VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_72 WHERE points = 26 </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 did the Caphouse Colliery railway close? ### Context: CREATE TABLE table_name_79 (closed VARCHAR, name VARCHAR) [/INST] ### Response: SELECT closed FROM table_name_79 WHERE name = "caphouse colliery" </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 percentage in 2006 that had less than 9% in 1970? ### Context: CREATE TABLE table_name_47 (Id VARCHAR) [/INST] ### Response: SELECT AVG(2006) FROM table_name_47 WHERE 1970 < 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: What was the percentage in 1980 that had less than 37.8% in 2006, more than 29.4% in 2000, and more than 18.2% in 1970? ### Context: CREATE TABLE table_name_30 (Id VARCHAR) [/INST] ### Response: SELECT MIN(1980) FROM table_name_30 WHERE 2006 < 37.8 AND 2000 > 29.4 AND 1970 > 18.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 was the percentage in 1980 in Brooklyn? ### Context: CREATE TABLE table_name_70 (borough VARCHAR) [/INST] ### Response: SELECT MIN(1980) FROM table_name_70 WHERE borough = "brooklyn" </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 result the R3 round? ### Context: CREATE TABLE table_name_14 (result VARCHAR, round VARCHAR) [/INST] ### Response: SELECT result FROM table_name_14 WHERE round = "r3" </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 result of the game against Ayr United? ### Context: CREATE TABLE table_name_73 (result VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT result FROM table_name_73 WHERE opponent = "ayr 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 was the score for the game in which the Edmonton Oilers were visitors? ### Context: CREATE TABLE table_name_4 (score VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT score FROM table_name_4 WHERE visitor = "edmonton oilers" </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 score of the game in which the Toronto Maple Leafs were visitors? ### Context: CREATE TABLE table_name_97 (score VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT score FROM table_name_97 WHERE visitor = "toronto maple leafs" </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 Jeb Barlow was picked in round smaller than 7, how many player in totals were picked? ### Context: CREATE TABLE table_name_67 (pick VARCHAR, player VARCHAR, round VARCHAR) [/INST] ### Response: SELECT COUNT(pick) FROM table_name_67 WHERE player = "jeb barlow" AND round < 7 </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 country is team ucla come from? ### Context: CREATE TABLE table_name_70 (nationality VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_70 WHERE school_club_team = "ucla" </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 many rounds have picked smaller than 220, with Alford Turner as a player? ### Context: CREATE TABLE table_name_79 (round INTEGER, pick VARCHAR, player VARCHAR) [/INST] ### Response: SELECT SUM(round) FROM table_name_79 WHERE pick < 220 AND player = "alford turner" </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 pick with Dean Sears and round larger than 6? ### Context: CREATE TABLE table_name_61 (pick INTEGER, round VARCHAR, player VARCHAR) [/INST] ### Response: SELECT MIN(pick) FROM table_name_61 WHERE round > 6 AND player = "dean sears" </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 total pick with Bill Duffy? ### Context: CREATE TABLE table_name_12 (pick INTEGER, player VARCHAR) [/INST] ### Response: SELECT SUM(pick) FROM table_name_12 WHERE player = "bill duffy" </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 total round with pick of 109? ### Context: CREATE TABLE table_name_37 (round INTEGER, pick VARCHAR) [/INST] ### Response: SELECT SUM(round) FROM table_name_37 WHERE pick = 109 </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 many picks for round 12? ### Context: CREATE TABLE table_name_5 (pick__number VARCHAR, round VARCHAR) [/INST] ### Response: SELECT COUNT(pick__number) FROM table_name_5 WHERE round = 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 Tom Donchez pick number? ### Context: CREATE TABLE table_name_21 (pick__number VARCHAR, player VARCHAR) [/INST] ### Response: SELECT pick__number FROM table_name_21 WHERE player = "tom donchez" </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 date when against is smaller than 6 and location was durban? ### Context: CREATE TABLE table_name_75 (date VARCHAR, against VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_75 WHERE against < 6 AND venue = "durban" </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 note with a year after 2003? ### Context: CREATE TABLE table_name_28 (note VARCHAR, year INTEGER) [/INST] ### Response: SELECT note FROM table_name_28 WHERE year > 2003 </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 was the note a vocals and the album north (original motion picture soundtrack)? ### Context: CREATE TABLE table_name_62 (year VARCHAR, note VARCHAR, album VARCHAR) [/INST] ### Response: SELECT year FROM table_name_62 WHERE note = "vocals" AND album = "north (original motion picture soundtrack)" </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 album had the note tape [tape echo]? ### Context: CREATE TABLE table_name_95 (album VARCHAR, note VARCHAR) [/INST] ### Response: SELECT album FROM table_name_95 WHERE note = "tape [tape echo]" </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 artist was 2003? ### Context: CREATE TABLE table_name_32 (artist VARCHAR, year VARCHAR) [/INST] ### Response: SELECT artist FROM table_name_32 WHERE year = 2003 </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 Title of the episode after Season 10 Directed by Erik Wiese and Eddie Trigueros after Seres 35? ### Context: CREATE TABLE table_name_83 (title VARCHAR, directed_by VARCHAR, season__number VARCHAR, series__number VARCHAR) [/INST] ### Response: SELECT title FROM table_name_83 WHERE season__number > 10 AND series__number > 35 AND directed_by = "erik wiese and eddie trigueros" </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 Original airdate of the episode after Season 6 Directed by Erik Wiese? ### Context: CREATE TABLE table_name_19 (original_airdate VARCHAR, directed_by VARCHAR, season__number VARCHAR) [/INST] ### Response: SELECT original_airdate FROM table_name_19 WHERE directed_by = "erik wiese" AND season__number > 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 is the average of laps ridden by Toni Elias? ### Context: CREATE TABLE table_name_42 (laps INTEGER, rider VARCHAR) [/INST] ### Response: SELECT AVG(laps) FROM table_name_42 WHERE rider = "toni elias" </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 long did it take for the rider of a Yamaha with a grid less than 8 and laps less than 23? ### Context: CREATE TABLE table_name_47 (time VARCHAR, laps VARCHAR, manufacturer VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT time FROM table_name_47 WHERE manufacturer = "yamaha" AND grid < 8 AND laps < 23 </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 fewest amount of laps when the grid was larger than 1 and 42:31.153? ### Context: CREATE TABLE table_name_45 (laps INTEGER, time VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT MIN(laps) FROM table_name_45 WHERE time = "42:31.153" AND grid > 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: How long did it take to ride when the laps were 23 and the grid of 13? ### Context: CREATE TABLE table_name_65 (time VARCHAR, laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT time FROM table_name_65 WHERE laps = 23 AND grid = 13 </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 result for the 71,164 in attendance? ### Context: CREATE TABLE table_name_9 (result VARCHAR, attendance INTEGER) [/INST] ### Response: SELECT result FROM table_name_9 WHERE attendance > 71 OFFSET 164 </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 rank is above floor 47? ### Context: CREATE TABLE table_name_83 (rank VARCHAR, floors INTEGER) [/INST] ### Response: SELECT rank FROM table_name_83 WHERE floors > 47 </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 the RML Team? ### Context: CREATE TABLE table_name_40 (class VARCHAR, team VARCHAR) [/INST] ### Response: SELECT class FROM table_name_40 WHERE team = "rml" </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 Result has a Home team of portland, and a Date of may 31? ### Context: CREATE TABLE table_name_30 (result VARCHAR, home_team VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_30 WHERE home_team = "portland" AND date = "may 31" </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 Date has a Road team of portland, and a Game of game 5? ### Context: CREATE TABLE table_name_16 (date VARCHAR, road_team VARCHAR, game VARCHAR) [/INST] ### Response: SELECT date FROM table_name_16 WHERE road_team = "portland" AND game = "game 5" </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 a Road team of portland, and a Result of 104–110? ### Context: CREATE TABLE table_name_85 (home_team VARCHAR, road_team VARCHAR, result VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_85 WHERE road_team = "portland" AND result = "104–110" </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 a Game of game 5? ### Context: CREATE TABLE table_name_85 (home_team VARCHAR, game VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_85 WHERE game = "game 5" </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 Date has a Home team of philadelphia, and a Result of 104–110? ### Context: CREATE TABLE table_name_4 (date VARCHAR, home_team VARCHAR, result VARCHAR) [/INST] ### Response: SELECT date FROM table_name_4 WHERE home_team = "philadelphia" AND result = "104–110" </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 Road team has a Home team of portland, and a Date of may 31? ### Context: CREATE TABLE table_name_17 (road_team VARCHAR, home_team VARCHAR, date VARCHAR) [/INST] ### Response: SELECT road_team FROM table_name_17 WHERE home_team = "portland" AND date = "may 31" </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 Tongan has a North Marquesan of /haʔe/? ### Context: CREATE TABLE table_name_15 (tongan VARCHAR, north_marquesan VARCHAR) [/INST] ### Response: SELECT tongan FROM table_name_15 WHERE north_marquesan = "/haʔe/" </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 kind of North Marquesan has a Takuu of /ɾani/? ### Context: CREATE TABLE table_name_2 (north_marquesan VARCHAR, takuu VARCHAR) [/INST] ### Response: SELECT north_marquesan FROM table_name_2 WHERE takuu = "/ɾani/" </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 kind of Takuu has a North Marquesan of /vehine/? ### Context: CREATE TABLE table_name_83 (takuu VARCHAR, north_marquesan VARCHAR) [/INST] ### Response: SELECT takuu FROM table_name_83 WHERE north_marquesan = "/vehine/" </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 kind of Rarotongan has a Tahitian of /metua/? ### Context: CREATE TABLE table_name_15 (rarotongan VARCHAR, tahitian VARCHAR) [/INST] ### Response: SELECT rarotongan FROM table_name_15 WHERE tahitian = "/metua/" </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 kind of Tongan has a North Marquesan of /haʔe/? ### Context: CREATE TABLE table_name_89 (tongan VARCHAR, north_marquesan VARCHAR) [/INST] ### Response: SELECT tongan FROM table_name_89 WHERE north_marquesan = "/haʔe/" </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 kind of South Marquesan has a Sāmoan of /matua/? ### Context: CREATE TABLE table_name_67 (south_marquesan VARCHAR, sāmoan VARCHAR) [/INST] ### Response: SELECT south_marquesan FROM table_name_67 WHERE sāmoan = "/matua/" </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 maximum Col (m) when 3,046 is the Prominence (m)? ### Context: CREATE TABLE table_name_94 (col__m_ INTEGER, prominence__m_ VARCHAR) [/INST] ### Response: SELECT MAX(col__m_) FROM table_name_94 WHERE prominence__m_ = 3 OFFSET 046 </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 is the peak Pico Basilé located? ### Context: CREATE TABLE table_name_15 (location VARCHAR, peak VARCHAR) [/INST] ### Response: SELECT location FROM table_name_15 WHERE peak = "pico basilé" </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 German Gewehr 98 when the Danish Krag-Jørgensen 1889 is 4.28kg? ### Context: CREATE TABLE table_name_46 (german_gewehr_98 VARCHAR, danish_krag_jørgensen_1889 VARCHAR) [/INST] ### Response: SELECT german_gewehr_98 FROM table_name_46 WHERE danish_krag_jørgensen_1889 = "4.28kg" </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 Rifle when the German Gewehr 98 is 74cm? ### Context: CREATE TABLE table_name_94 (rifle VARCHAR, german_gewehr_98 VARCHAR) [/INST] ### Response: SELECT rifle FROM table_name_94 WHERE german_gewehr_98 = "74cm" </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 US Krag-Jørgensen M1892 when the Norwegian Krag-Jørgensen M1894 is 126.8cm? ### Context: CREATE TABLE table_name_87 (us_krag_jørgensen_m1892 VARCHAR, norwegian_krag_jørgensen_m1894 VARCHAR) [/INST] ### Response: SELECT us_krag_jørgensen_m1892 FROM table_name_87 WHERE norwegian_krag_jørgensen_m1894 = "126.8cm" </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 has a national league in 2001? ### Context: CREATE TABLE table_name_31 (team VARCHAR, league VARCHAR, year VARCHAR) [/INST] ### Response: SELECT team FROM table_name_31 WHERE league = "national" AND year = 2001 </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 league of the third baseman player before 1973? ### Context: CREATE TABLE table_name_79 (league VARCHAR, year VARCHAR, position VARCHAR) [/INST] ### Response: SELECT league FROM table_name_79 WHERE year < 1973 AND position = "third baseman" </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 Original Title, when Film Title Used In Nomination is "Monga"? ### Context: CREATE TABLE table_name_15 (original_title VARCHAR, film_title_used_in_nomination VARCHAR) [/INST] ### Response: SELECT original_title FROM table_name_15 WHERE film_title_used_in_nomination = "monga" </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 Result, when Original Title is "Tiānmǎ Cháfáng (天馬茶房)"? ### Context: CREATE TABLE table_name_47 (result VARCHAR, original_title VARCHAR) [/INST] ### Response: SELECT result FROM table_name_47 WHERE original_title = "tiānmǎ cháfáng (天馬茶房)" </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 Film Title Used In Nomination, when Original Title is "Báng-Kah (艋舺)" ### Context: CREATE TABLE table_name_27 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) [/INST] ### Response: SELECT film_title_used_in_nomination FROM table_name_27 WHERE original_title = "báng-kah (艋舺)" </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 Original Title, when Director is "Ting Shan-Si", and when Film Title Used In Nomination is "The 800 Heroes"? ### Context: CREATE TABLE table_name_73 (original_title VARCHAR, director VARCHAR, film_title_used_in_nomination VARCHAR) [/INST] ### Response: SELECT original_title FROM table_name_73 WHERE director = "ting shan-si" AND film_title_used_in_nomination = "the 800 heroes" </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 Year (Ceremony), when Director is "Wang Siu-Di"? ### Context: CREATE TABLE table_name_66 (year__ceremony_ VARCHAR, director VARCHAR) [/INST] ### Response: SELECT year__ceremony_ FROM table_name_66 WHERE director = "wang siu-di" </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 Result, when Film Title Used In Nomination is "Kuei-Mei, A Woman"? ### Context: CREATE TABLE table_name_43 (result VARCHAR, film_title_used_in_nomination VARCHAR) [/INST] ### Response: SELECT result FROM table_name_43 WHERE film_title_used_in_nomination = "kuei-mei, a woman" </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 issued serial for yellow on blue design issued in 1955? ### Context: CREATE TABLE table_name_39 (serials_issued VARCHAR, design VARCHAR, issued VARCHAR) [/INST] ### Response: SELECT serials_issued FROM table_name_39 WHERE design = "yellow on blue" AND issued = 1955 </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 serial format for white on blue with a serial issued of ss-00-00 to zz-99-99? ### Context: CREATE TABLE table_name_72 (serial_format VARCHAR, design VARCHAR, serials_issued VARCHAR) [/INST] ### Response: SELECT serial_format FROM table_name_72 WHERE design = "white on blue" AND serials_issued = "ss-00-00 to zz-99-99" </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 issued serial given in 1966? ### Context: CREATE TABLE table_name_71 (serials_issued VARCHAR, issued VARCHAR) [/INST] ### Response: SELECT serials_issued FROM table_name_71 WHERE issued = 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 serial format was issued in 1972? ### Context: CREATE TABLE table_name_71 (serial_format VARCHAR, issued VARCHAR) [/INST] ### Response: SELECT serial_format FROM table_name_71 WHERE issued = 1972 </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 type was issued in 1964? ### Context: CREATE TABLE table_name_1 (type VARCHAR, issued VARCHAR) [/INST] ### Response: SELECT type FROM table_name_1 WHERE issued = 1964 </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: At which tournament does Milan play against Hungary's league selection? ### Context: CREATE TABLE table_name_97 (tournament VARCHAR, opponent_team VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_97 WHERE opponent_team = "hungary's league selection" </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 final score on 1 August 2008? ### Context: CREATE TABLE table_name_65 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_65 WHERE date = "1 august 2008" </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 did Milan play against Napoli? ### Context: CREATE TABLE table_name_74 (location VARCHAR, opponent_team VARCHAR) [/INST] ### Response: SELECT location FROM table_name_74 WHERE opponent_team = "napoli" </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 WEEK HAS A TV TIME OF BYE? ### Context: CREATE TABLE table_name_37 (week VARCHAR, tv_time VARCHAR) [/INST] ### Response: SELECT week FROM table_name_37 WHERE tv_time = "bye" </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 ATTENDANCE FOR WEEK 15? ### Context: CREATE TABLE table_name_17 (attendance VARCHAR, week VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_17 WHERE week = 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 WAS THE RESULT FOR NOVEMBER 29, 2001? ### Context: CREATE TABLE table_name_30 (result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_30 WHERE date = "november 29, 2001" </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: In what year was the bridge in Clarkdale built? ### Context: CREATE TABLE table_name_16 (built VARCHAR, location VARCHAR) [/INST] ### Response: SELECT built FROM table_name_16 WHERE location = "clarkdale" </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: In what year was the Gila Bend Overpass built? ### Context: CREATE TABLE table_name_79 (built VARCHAR, name VARCHAR) [/INST] ### Response: SELECT built FROM table_name_79 WHERE name = "gila bend overpass" </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: In what county is the Canyon Padre Bridge? ### Context: CREATE TABLE table_name_33 (county VARCHAR, name VARCHAR) [/INST] ### Response: SELECT county FROM table_name_33 WHERE name = "canyon padre bridge" </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 won the ABA Championship in 1971? ### Context: CREATE TABLE table_name_94 (championships INTEGER, years_won VARCHAR) [/INST] ### Response: SELECT MIN(championships) FROM table_name_94 WHERE years_won = "1971" </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 average amount of losses for teams with played less than 14? ### Context: CREATE TABLE table_name_5 (lost INTEGER, played INTEGER) [/INST] ### Response: SELECT AVG(lost) FROM table_name_5 WHERE played < 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: What was the total number of games played by se freising when their points were larger than 13? ### Context: CREATE TABLE table_name_61 (played VARCHAR, name VARCHAR, points VARCHAR) [/INST] ### Response: SELECT COUNT(played) FROM table_name_61 WHERE name = "se freising" AND points > 13 </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 average losses for team with points larger than 3 and played larger thna 14? ### Context: CREATE TABLE table_name_65 (lost INTEGER, points VARCHAR, played VARCHAR) [/INST] ### Response: SELECT AVG(lost) FROM table_name_65 WHERE points > 3 AND played > 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: How many losses did ev bruckberg have when the drawn was more than 1? ### Context: CREATE TABLE table_name_42 (lost INTEGER, name VARCHAR, drawn VARCHAR) [/INST] ### Response: SELECT SUM(lost) FROM table_name_42 WHERE name = "ev bruckberg" AND drawn > 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 administered from a source of Rasmussen Reports and a lead margin over 32? ### Context: CREATE TABLE table_name_19 (dates_administered VARCHAR, poll_source VARCHAR, lead_margin VARCHAR) [/INST] ### Response: SELECT dates_administered FROM table_name_19 WHERE poll_source = "rasmussen reports" AND lead_margin > 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: What is the Score of the Chicago Black Hawks Home game on March 28? ### Context: CREATE TABLE table_name_38 (score VARCHAR, home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_38 WHERE home = "chicago black hawks" AND date = "march 28" </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 Visitor of the game on April 2? ### Context: CREATE TABLE table_name_86 (visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_86 WHERE date = "april 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 Home team on April 4? ### Context: CREATE TABLE table_name_61 (home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home FROM table_name_61 WHERE date = "april 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: What is the Visitor on March 31? ### Context: CREATE TABLE table_name_56 (visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_56 WHERE date = "march 31" </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 Home team on April 2? ### Context: CREATE TABLE table_name_43 (home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home FROM table_name_43 WHERE date = "april 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 Date of the game with a Record of 2-3? ### Context: CREATE TABLE table_name_86 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_86 WHERE record = "2-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 track was used in 1926? ### Context: CREATE TABLE table_name_55 (track VARCHAR, year VARCHAR) [/INST] ### Response: SELECT track FROM table_name_55 WHERE year = "1926" </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 won the 250cc in 1927? ### Context: CREATE TABLE table_name_31 (year VARCHAR) [/INST] ### Response: SELECT 250 AS _cc FROM table_name_31 WHERE year = "1927" </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 grand prix was held at Granollers? ### Context: CREATE TABLE table_name_32 (designated_grand_prix VARCHAR, track VARCHAR) [/INST] ### Response: SELECT designated_grand_prix FROM table_name_32 WHERE track = "granollers" </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 won the 350cc at Sachsenring? ### Context: CREATE TABLE table_name_90 (track VARCHAR) [/INST] ### Response: SELECT 350 AS _cc FROM table_name_90 WHERE track = "sachsenring" </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 fleet numbers has quanitity of 13? ### Context: CREATE TABLE table_name_35 (fleet_number_s_ VARCHAR, quantity_made VARCHAR) [/INST] ### Response: SELECT fleet_number_s_ FROM table_name_35 WHERE quantity_made = "13" </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 wheel arrangement made in year 1900? ### Context: CREATE TABLE table_name_3 (wheel_arrangement VARCHAR, year_made VARCHAR) [/INST] ### Response: SELECT wheel_arrangement FROM table_name_3 WHERE year_made = "1900" </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 fleet numbers has quantity of 1? ### Context: CREATE TABLE table_name_78 (fleet_number_s_ VARCHAR, quantity_made VARCHAR) [/INST] ### Response: SELECT fleet_number_s_ FROM table_name_78 WHERE quantity_made = "1" </s>