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: What is the date of the tournament with Alena Tarasova as the opponent? ### Context: CREATE TABLE table_name_56 (date VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_56 WHERE opponent = "alena tarasova" </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 Hereditary peers have a Total of 1? ### Context: CREATE TABLE table_name_15 (hereditary_peers VARCHAR, total VARCHAR) [/INST] ### Response: SELECT hereditary_peers FROM table_name_15 WHERE total = 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: Which Total has a Hereditary peer of –, and a Lords spiritual of –, and a Life peers of 2, and an Affiliation of plaid cymru? ### Context: CREATE TABLE table_name_17 (total VARCHAR, affiliation VARCHAR, life_peers VARCHAR, hereditary_peers VARCHAR, lords_spiritual VARCHAR) [/INST] ### Response: SELECT COUNT(total) FROM table_name_17 WHERE hereditary_peers = "–" AND lords_spiritual = "–" AND life_peers = "2" AND affiliation = "plaid cymru" </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 Elector is hungarian? ### Context: CREATE TABLE table_name_68 (elector VARCHAR, nationality VARCHAR) [/INST] ### Response: SELECT elector FROM table_name_68 WHERE nationality = "hungarian" </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 Cardinalatial Title has an Elevator of pope eugenius iv? ### Context: CREATE TABLE table_name_77 (cardinalatial_title VARCHAR, elevator VARCHAR) [/INST] ### Response: SELECT cardinalatial_title FROM table_name_77 WHERE elevator = "pope eugenius iv" </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 Works number has a Number larger than 807, and a Type of 0-6-0, and a Date of 1920? ### Context: CREATE TABLE table_name_1 (works_number INTEGER, date VARCHAR, number VARCHAR, type VARCHAR) [/INST] ### Response: SELECT AVG(works_number) FROM table_name_1 WHERE number > 807 AND type = "0-6-0" AND date = 1920 </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 Type has a Date smaller than 1943, and a Builder of alco schenectady, and a Number larger than 822, and Works number of 59867? ### Context: CREATE TABLE table_name_46 (type VARCHAR, works_number VARCHAR, number VARCHAR, date VARCHAR, builder VARCHAR) [/INST] ### Response: SELECT type FROM table_name_46 WHERE date < 1943 AND builder = "alco schenectady" AND number > 822 AND works_number = 59867 </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 Builder of alco schenectady, and a Number larger than 835, and Works number of 56566? ### Context: CREATE TABLE table_name_19 (date INTEGER, works_number VARCHAR, builder VARCHAR, number VARCHAR) [/INST] ### Response: SELECT AVG(date) FROM table_name_19 WHERE builder = "alco schenectady" AND number > 835 AND works_number = 56566 </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 Election of 1953? ### Context: CREATE TABLE table_name_46 (date VARCHAR, election VARCHAR) [/INST] ### Response: SELECT date FROM table_name_46 WHERE election = "1953" </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: On what date were there 50,324 votes? ### Context: CREATE TABLE table_name_78 (date VARCHAR, votes VARCHAR) [/INST] ### Response: SELECT date FROM table_name_78 WHERE votes = "50,324" </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 votes were there on November 10? ### Context: CREATE TABLE table_name_32 (votes VARCHAR, date VARCHAR) [/INST] ### Response: SELECT votes FROM table_name_32 WHERE date = "november 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 date has 79-48 as the record? ### Context: CREATE TABLE table_name_47 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_47 WHERE record = "79-48" </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 attendance that has 83-52 as the record? ### Context: CREATE TABLE table_name_86 (attendance INTEGER, record VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_86 WHERE record = "83-52" </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 segment D for umbrellas ### Context: CREATE TABLE table_name_60 (segment_d VARCHAR, segment_a VARCHAR) [/INST] ### Response: SELECT segment_d FROM table_name_60 WHERE segment_a = "umbrellas" </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 segment A for netflix of s05e01 ### Context: CREATE TABLE table_name_89 (segment_a VARCHAR, netflix VARCHAR) [/INST] ### Response: SELECT segment_a FROM table_name_89 WHERE netflix = "s05e01" </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 series ep for darts ### Context: CREATE TABLE table_name_27 (series_ep VARCHAR, segment_d VARCHAR) [/INST] ### Response: SELECT series_ep FROM table_name_27 WHERE segment_d = "darts" </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 series ep for segment c of luxury cars (part 1) ### Context: CREATE TABLE table_name_63 (series_ep VARCHAR, segment_c VARCHAR) [/INST] ### Response: SELECT series_ep FROM table_name_63 WHERE segment_c = "luxury cars (part 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 school is located in rossville? ### Context: CREATE TABLE table_name_79 (school VARCHAR, location VARCHAR) [/INST] ### Response: SELECT school FROM table_name_79 WHERE location = "rossville" </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 people enrolled a the school with an IHSAA Class of a, and the trojans as their mascot? ### Context: CREATE TABLE table_name_73 (enrollment INTEGER, ihsaa_class VARCHAR, mascot VARCHAR) [/INST] ### Response: SELECT MIN(enrollment) FROM table_name_73 WHERE ihsaa_class = "a" AND mascot = "trojans" </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 IHSAA clas is the school with a county number of 12 clinton and the hornets as their mascot? ### Context: CREATE TABLE table_name_80 (ihsaa_class VARCHAR, _number___county VARCHAR, mascot VARCHAR) [/INST] ### Response: SELECT ihsaa_class FROM table_name_80 WHERE _number___county = "12 clinton" AND mascot = "hornets" </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 when a loss was listed with Lannan (4-8)? ### Context: CREATE TABLE table_name_48 (score VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT score FROM table_name_48 WHERE loss = "lannan (4-8)" </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 when the Twins had a record of 44-37? ### Context: CREATE TABLE table_name_93 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_93 WHERE record = "44-37" </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 Opponents in Final has a Date of september 16, 1990? ### Context: CREATE TABLE table_name_25 (opponents_in_final VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponents_in_final FROM table_name_25 WHERE date = "september 16, 1990" </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 Partner has a Date of june 18, 1989? ### Context: CREATE TABLE table_name_87 (partner VARCHAR, date VARCHAR) [/INST] ### Response: SELECT partner FROM table_name_87 WHERE date = "june 18, 1989" </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 Opponents in Final has an Outcome of winner, and a Surface of hard, and a Date of april 17, 1994? ### Context: CREATE TABLE table_name_15 (opponents_in_final VARCHAR, date VARCHAR, outcome VARCHAR, surface VARCHAR) [/INST] ### Response: SELECT opponents_in_final FROM table_name_15 WHERE outcome = "winner" AND surface = "hard" AND date = "april 17, 1994" </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 Opponents in Final has a Score in Final of 7–5, 1–6 4–6? ### Context: CREATE TABLE table_name_19 (opponents_in_final VARCHAR, score_in_final VARCHAR) [/INST] ### Response: SELECT opponents_in_final FROM table_name_19 WHERE score_in_final = "7–5, 1–6 4–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: Which Partner has a Score in Final of 6–1, 6–2? ### Context: CREATE TABLE table_name_94 (partner VARCHAR, score_in_final VARCHAR) [/INST] ### Response: SELECT partner FROM table_name_94 WHERE score_in_final = "6–1, 6–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 total Points for the Opponent of @ New Jersey Devils and a Game bigger than 7? ### Context: CREATE TABLE table_name_29 (points INTEGER, opponent VARCHAR, game VARCHAR) [/INST] ### Response: SELECT SUM(points) FROM table_name_29 WHERE opponent = "@ new jersey devils" AND game > 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 was the time of the NJKF Titans Neo X event? ### Context: CREATE TABLE table_name_83 (time VARCHAR, event VARCHAR) [/INST] ### Response: SELECT time FROM table_name_83 WHERE event = "njkf titans neo x" </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 record after the NJKF Magnam 16 event that lasted 2:06? ### Context: CREATE TABLE table_name_72 (record VARCHAR, time VARCHAR, event VARCHAR) [/INST] ### Response: SELECT record FROM table_name_72 WHERE time = "2:06" AND event = "njkf magnam 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: Which opponent led to a 6-3 record? ### Context: CREATE TABLE table_name_14 (opponent VARCHAR, record VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_14 WHERE record = "6-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: How many Picks have a Round larger than 2, and a Name of lawrence sidbury, and an Overall smaller than 125? ### Context: CREATE TABLE table_name_69 (pick__number VARCHAR, overall VARCHAR, round VARCHAR, name VARCHAR) [/INST] ### Response: SELECT COUNT(pick__number) FROM table_name_69 WHERE round > 2 AND name = "lawrence sidbury" AND overall < 125 </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 Pick # is the highest one that has a Name of william middleton, and a Round larger than 5? ### Context: CREATE TABLE table_name_32 (pick__number INTEGER, name VARCHAR, round VARCHAR) [/INST] ### Response: SELECT MAX(pick__number) FROM table_name_32 WHERE name = "william middleton" AND round > 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 Overall is the lowest one that has a Position of offensive tackle? ### Context: CREATE TABLE table_name_33 (overall INTEGER, position VARCHAR) [/INST] ### Response: SELECT MIN(overall) FROM table_name_33 WHERE position = "offensive tackle" </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 Overall is the average one that has a Name of vance walker? ### Context: CREATE TABLE table_name_95 (overall INTEGER, name VARCHAR) [/INST] ### Response: SELECT AVG(overall) FROM table_name_95 WHERE name = "vance walker" </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 Pick # is the highest one that has a Name of lawrence sidbury, and a Round smaller than 4? ### Context: CREATE TABLE table_name_86 (pick__number INTEGER, name VARCHAR, round VARCHAR) [/INST] ### Response: SELECT MAX(pick__number) FROM table_name_86 WHERE name = "lawrence sidbury" AND round < 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 February number of the game played against the St. Louis Blues with a game number less than 58? ### Context: CREATE TABLE table_name_35 (february INTEGER, opponent VARCHAR, game VARCHAR) [/INST] ### Response: SELECT AVG(february) FROM table_name_35 WHERE opponent = "st. louis blues" AND game < 58 </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 opponent of the game that had a record of 24-26-4? ### Context: CREATE TABLE table_name_50 (opponent VARCHAR, record VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_50 WHERE record = "24-26-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 February number of the game with the Vancouver Canucks as the opponent and a game number greater than 55? ### Context: CREATE TABLE table_name_48 (february VARCHAR, opponent VARCHAR, game VARCHAR) [/INST] ### Response: SELECT COUNT(february) FROM table_name_48 WHERE opponent = "vancouver canucks" AND game > 55 </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 nationality is Larry McMorran? ### Context: CREATE TABLE table_name_59 (nationality VARCHAR, player VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_59 WHERE player = "larry mcmorran" </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 scored 17 ### Context: CREATE TABLE table_name_71 (date VARCHAR, game VARCHAR) [/INST] ### Response: SELECT date FROM table_name_71 WHERE game = 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 was their record on July 22? ### Context: CREATE TABLE table_name_58 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_58 WHERE date = "july 22" </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: On what date was their record 46-39? ### Context: CREATE TABLE table_name_17 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_17 WHERE record = "46-39" </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 oilers record on October 20? ### Context: CREATE TABLE table_name_1 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_1 WHERE date = "october 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 was the oilers record for the game on November 27 when the Edmonton oilers were playing at home and the Chicago Blackhawks were the visiting team? ### Context: CREATE TABLE table_name_85 (record VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT record FROM table_name_85 WHERE home = "edmonton oilers" AND visitor = "chicago blackhawks" AND date = "november 27" </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 lead with left bloc of 8.4% ### Context: CREATE TABLE table_name_25 (lead VARCHAR, left_bloc VARCHAR) [/INST] ### Response: SELECT lead FROM table_name_25 WHERE left_bloc = "8.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 lead for institute of election results and social democratic of 31.7% 8 seats ### Context: CREATE TABLE table_name_95 (lead VARCHAR, institute VARCHAR, social_democratic VARCHAR) [/INST] ### Response: SELECT lead FROM table_name_95 WHERE institute = "election results" AND social_democratic = "31.7% 8 seats" </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 Regionalliga Sud for 1995-96? ### Context: CREATE TABLE table_name_13 (regionalliga_süd VARCHAR, season VARCHAR) [/INST] ### Response: SELECT regionalliga_süd FROM table_name_13 WHERE season = "1995-96" </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 Regionalliga Nord-Ost for the team that had a Regionalliga Sud of SpVgg Unterhaching? ### Context: CREATE TABLE table_name_61 (regionalliga_nord VARCHAR, Ost VARCHAR, regionalliga_süd VARCHAR) [/INST] ### Response: SELECT regionalliga_nord - Ost FROM table_name_61 WHERE regionalliga_süd = "spvgg unterhaching" </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 season had a Regionalliga Sud of Stuttgarter Kickers? ### Context: CREATE TABLE table_name_68 (season VARCHAR, regionalliga_süd VARCHAR) [/INST] ### Response: SELECT season FROM table_name_68 WHERE regionalliga_süd = "stuttgarter kickers" </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 party is Charles Van Wyck part of? ### Context: CREATE TABLE table_name_4 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_name_4 WHERE incumbent = "charles van wyck" </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 district is James Humphrey from who was first elected in 1858 and was eventually defeated democratic gain? ### Context: CREATE TABLE table_name_3 (district VARCHAR, incumbent VARCHAR, first_elected VARCHAR, result VARCHAR) [/INST] ### Response: SELECT district FROM table_name_3 WHERE first_elected = 1858 AND result = "defeated democratic gain" AND incumbent = "james humphrey" </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 surface was the November 5, 1995 match played on? ### Context: CREATE TABLE table_name_33 (surface VARCHAR, date VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_33 WHERE date = "november 5, 1995" </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 was the match played where Amy Frazier was the opponent? ### Context: CREATE TABLE table_name_80 (date VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT date FROM table_name_80 WHERE opponent_in_the_final = "amy frazier" </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 score was given at the August 17, 2005 match? ### Context: CREATE TABLE table_name_47 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_47 WHERE date = "august 17, 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: Which tournament was played on October 1, 2006? ### Context: CREATE TABLE table_name_7 (tournament VARCHAR, date VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_7 WHERE date = "october 1, 2006" </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 match played on a hard surface with an opponent in the final of Elena Likhovtseva? ### Context: CREATE TABLE table_name_2 (score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT score FROM table_name_2 WHERE surface = "hard" AND opponent_in_the_final = "elena likhovtseva" </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 team's record on july 18? ### Context: CREATE TABLE table_name_71 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_71 WHERE date = "july 18" </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 Conference Joined has a Previous Conference of northwestern, and a Mascot of oilers? ### Context: CREATE TABLE table_name_95 (conference_joined VARCHAR, previous_conference VARCHAR, mascot VARCHAR) [/INST] ### Response: SELECT conference_joined FROM table_name_95 WHERE previous_conference = "northwestern" AND mascot = "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: Which Year Left is the lowest one that has a School of calumet, and a Year Joined larger than 1993? ### Context: CREATE TABLE table_name_13 (year_left INTEGER, school VARCHAR, year_joined VARCHAR) [/INST] ### Response: SELECT MIN(year_left) FROM table_name_13 WHERE school = "calumet" AND year_joined > 1993 </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: avg passengers in 2012 for 2009 more than 104.5 and 2010 less than 162.6 and 2011 less than 141.8 is what? ### Context: CREATE TABLE table_name_22 (Id VARCHAR) [/INST] ### Response: SELECT AVG(2012) FROM table_name_22 WHERE 2009 > 104.5 AND 2010 < 162.6 AND 2011 < 141.8 </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: The lowest rank with 2011 less than 80.7 and 2012 less than 73.1 is what? ### Context: CREATE TABLE table_name_82 (rank INTEGER) [/INST] ### Response: SELECT MIN(rank) FROM table_name_82 WHERE 2011 < 80.7 AND 2012 < 73.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: the sum of 2009 with rank of 5 and 2010 less than 76.5 is what? ### Context: CREATE TABLE table_name_70 (rank VARCHAR) [/INST] ### Response: SELECT SUM(2009) FROM table_name_70 WHERE rank = 5 AND 2010 < 76.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: What was the Entered Office of the man with the throne name Mohammad Ali Shah Qajar? ### Context: CREATE TABLE table_name_45 (entered_office VARCHAR, throne_name VARCHAR) [/INST] ### Response: SELECT entered_office FROM table_name_45 WHERE throne_name = "mohammad ali shah qajar" </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 listed for the Main Location(s) that has a % of National of 2.05%? ### Context: CREATE TABLE table_name_77 (main_location_s_ VARCHAR, _percentage_of_national VARCHAR) [/INST] ### Response: SELECT main_location_s_ FROM table_name_77 WHERE _percentage_of_national = "2.05%" </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 Area with an Output (2007) of 12,332 T? ### Context: CREATE TABLE table_name_17 (area VARCHAR, output__2007_ VARCHAR) [/INST] ### Response: SELECT area FROM table_name_17 WHERE output__2007_ = "12,332 t" </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 Main Location(s) has an Area of 19,800 HA? ### Context: CREATE TABLE table_name_16 (main_location_s_ VARCHAR, area VARCHAR) [/INST] ### Response: SELECT main_location_s_ FROM table_name_16 WHERE area = "19,800 ha" </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: On what date was the record 4–0–0? ### Context: CREATE TABLE table_name_81 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_81 WHERE record = "4–0–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: what was the score in toronto ### Context: CREATE TABLE table_name_2 (score VARCHAR, home VARCHAR) [/INST] ### Response: SELECT score FROM table_name_2 WHERE home = "toronto" </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 Record has an Event of tpf 5: stars and strikes? ### Context: CREATE TABLE table_name_21 (record VARCHAR, event VARCHAR) [/INST] ### Response: SELECT record FROM table_name_21 WHERE event = "tpf 5: stars and strikes" </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 Opponent has an Event of king of the cage: shock and awe? ### Context: CREATE TABLE table_name_8 (opponent VARCHAR, event VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_8 WHERE event = "king of the cage: shock and awe" </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 Method has a Record of 16–7? ### Context: CREATE TABLE table_name_99 (method VARCHAR, record VARCHAR) [/INST] ### Response: SELECT method FROM table_name_99 WHERE record = "16–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: Which Round has a Method of decision (unanimous), and an Event of ufc 145? ### Context: CREATE TABLE table_name_32 (round VARCHAR, method VARCHAR, event VARCHAR) [/INST] ### Response: SELECT round FROM table_name_32 WHERE method = "decision (unanimous)" AND event = "ufc 145" </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 Event has a Round of 1, and a Record of 2–0? ### Context: CREATE TABLE table_name_70 (event VARCHAR, round VARCHAR, record VARCHAR) [/INST] ### Response: SELECT event FROM table_name_70 WHERE round = "1" AND record = "2–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: What is the general classification of Mapei-clas in stage 12? ### Context: CREATE TABLE table_name_25 (general_classification VARCHAR, team_classification VARCHAR, stage VARCHAR) [/INST] ### Response: SELECT general_classification FROM table_name_25 WHERE team_classification = "mapei-clas" AND stage = "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: Which winner has a P stage? ### Context: CREATE TABLE table_name_48 (winner VARCHAR, stage VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_48 WHERE stage = "p" </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 stage corresponds to Banesto and Tony Rominger? ### Context: CREATE TABLE table_name_7 (stage VARCHAR, team_classification VARCHAR, points_classification VARCHAR) [/INST] ### Response: SELECT stage FROM table_name_7 WHERE team_classification = "banesto" AND points_classification = "tony rominger" </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: Type of primary, and a Call letters of kbjs has what format? ### Context: CREATE TABLE table_name_74 (format VARCHAR, type VARCHAR, call_letters VARCHAR) [/INST] ### Response: SELECT format FROM table_name_74 WHERE type = "primary" AND call_letters = "kbjs" </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: Frequency (MHz) that has a Type of primary, and a Call letters of ktbb-fm has what total number? ### Context: CREATE TABLE table_name_52 (frequency__mhz_ VARCHAR, type VARCHAR, call_letters VARCHAR) [/INST] ### Response: SELECT COUNT(frequency__mhz_) FROM table_name_52 WHERE type = "primary" AND call_letters = "ktbb-fm" </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: Type of primary, and a Call letters of kktx-fm has what average Frequency (MHz)? ### Context: CREATE TABLE table_name_40 (frequency__mhz_ INTEGER, type VARCHAR, call_letters VARCHAR) [/INST] ### Response: SELECT AVG(frequency__mhz_) FROM table_name_40 WHERE type = "primary" AND call_letters = "kktx-fm" </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: Frequency (MHz) that has a Call letters of krmd-fm has what sum? ### Context: CREATE TABLE table_name_99 (frequency__mhz_ INTEGER, call_letters VARCHAR) [/INST] ### Response: SELECT SUM(frequency__mhz_) FROM table_name_99 WHERE call_letters = "krmd-fm" </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 has 1 for the game? ### Context: CREATE TABLE table_name_84 (date VARCHAR, game VARCHAR) [/INST] ### Response: SELECT date FROM table_name_84 WHERE game = 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 opponent has april 10 as the date? ### Context: CREATE TABLE table_name_14 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_14 WHERE date = "april 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 player has a round larger than 6 with a D position. ### Context: CREATE TABLE table_name_82 (player VARCHAR, round VARCHAR, position VARCHAR) [/INST] ### Response: SELECT player FROM table_name_82 WHERE round > 6 AND position = "d" </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 league is from the United States and a round smaller than 12. ### Context: CREATE TABLE table_name_44 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR, round VARCHAR) [/INST] ### Response: SELECT college_junior_club_team__league_ FROM table_name_44 WHERE nationality = "united states" AND 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 league has a 10 for round with Paul Cain? ### Context: CREATE TABLE table_name_51 (college_junior_club_team__league_ VARCHAR, round VARCHAR, player VARCHAR) [/INST] ### Response: SELECT college_junior_club_team__league_ FROM table_name_51 WHERE round = 10 AND player = "paul cain" </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 league has a D position, a round smaller than 11 and is with Dennis Vial? ### Context: CREATE TABLE table_name_84 (college_junior_club_team__league_ VARCHAR, player VARCHAR, position VARCHAR, round VARCHAR) [/INST] ### Response: SELECT college_junior_club_team__league_ FROM table_name_84 WHERE position = "d" AND round < 11 AND player = "dennis vial" </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 rank of the gatchaman of Jinpei? ### Context: CREATE TABLE table_name_76 (rank VARCHAR, gatchaman VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_76 WHERE gatchaman = "jinpei" </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 Japanese voice actor of the Battle of the Planets of Keyop? ### Context: CREATE TABLE table_name_87 (japanese_voice_actor VARCHAR, battle_of_the_planets VARCHAR) [/INST] ### Response: SELECT japanese_voice_actor FROM table_name_87 WHERE battle_of_the_planets = "keyop" </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 rank of the gatchaman Jinpei? ### Context: CREATE TABLE table_name_38 (rank VARCHAR, gatchaman VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_38 WHERE gatchaman = "jinpei" </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 voice actor of the character with the Japanese voice actor Yoku Shioya? ### Context: CREATE TABLE table_name_48 (voice_actor__harmony_gold_ova_dub_ VARCHAR, japanese_voice_actor VARCHAR) [/INST] ### Response: SELECT voice_actor__harmony_gold_ova_dub_ FROM table_name_48 WHERE japanese_voice_actor = "yoku shioya" </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 mecha with a condor bird uniform? ### Context: CREATE TABLE table_name_33 (mecha VARCHAR, bird_uniform VARCHAR) [/INST] ### Response: SELECT mecha FROM table_name_33 WHERE bird_uniform = "condor" </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 voice actor (harmony gold ova dub) of the character with a voice actor (adv TV/sentai ova dub) Kim Prause? ### Context: CREATE TABLE table_name_10 (voice_actor__harmony_gold_ova_dub_ VARCHAR, voice_actor__adv_tv_sentai_ova_dub_ VARCHAR) [/INST] ### Response: SELECT voice_actor__harmony_gold_ova_dub_ FROM table_name_10 WHERE voice_actor__adv_tv_sentai_ova_dub_ = "kim prause" </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 tournament on 25 July 1994 with a clay surface and Patricia Tarabini as the partner? ### Context: CREATE TABLE table_name_83 (score VARCHAR, date VARCHAR, surface VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT score FROM table_name_83 WHERE surface = "clay" AND partner = "patricia tarabini" AND date = "25 july 1994" </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 partner of the tournament on 6 July 1987? ### Context: CREATE TABLE table_name_12 (partner VARCHAR, date VARCHAR) [/INST] ### Response: SELECT partner FROM table_name_12 WHERE date = "6 july 1987" </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 partner at the Tampa tournament? ### Context: CREATE TABLE table_name_93 (partner VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT partner FROM table_name_93 WHERE tournament = "tampa" </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 tenure of the person with revenues of 60,000-->58,000 koku? ### Context: CREATE TABLE table_name_90 (tenure VARCHAR, revenues VARCHAR) [/INST] ### Response: SELECT tenure FROM table_name_90 WHERE revenues = "60,000-->58,000 koku" </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 court rank of the person with a courtesy title of nagato-no-kami? ### Context: CREATE TABLE table_name_70 (court_rank VARCHAR, courtesy_title VARCHAR) [/INST] ### Response: SELECT court_rank FROM table_name_70 WHERE courtesy_title = "nagato-no-kami" </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 the person with a courtesy title of sanuki-no-kami/jiju? ### Context: CREATE TABLE table_name_32 (name VARCHAR, courtesy_title VARCHAR) [/INST] ### Response: SELECT name FROM table_name_32 WHERE courtesy_title = "sanuki-no-kami/jiju" </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 day was the score 39-14 ### Context: CREATE TABLE table_name_58 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_58 WHERE record = "39-14" </s>