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 was the score in Hampden Park, Glasgow? ### Context: CREATE TABLE table_name_68 (score VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT score FROM table_name_68 WHERE venue = "hampden park, glasgow" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Venue has a Notes of 2:28:31? ### Context: CREATE TABLE table_name_83 (venue VARCHAR, notes VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_83 WHERE notes = "2:28: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 Venue has a Competition of venice marathon? ### Context: CREATE TABLE table_name_98 (venue VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_98 WHERE competition = "venice marathon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 that has Notes of dnf? ### Context: CREATE TABLE table_name_17 (year INTEGER, notes VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_17 WHERE notes = "dnf" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Competition has a Year larger than 2000? ### Context: CREATE TABLE table_name_45 (competition VARCHAR, year INTEGER) [/INST] ### Response: SELECT competition FROM table_name_45 WHERE year > 2000 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date has a set 4 of 25-19? ### Context: CREATE TABLE table_name_33 (date VARCHAR, set_4 VARCHAR) [/INST] ### Response: SELECT date FROM table_name_33 WHERE set_4 = "25-19" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the set 2 of 25-18? ### Context: CREATE TABLE table_name_80 (total VARCHAR, set_2 VARCHAR) [/INST] ### Response: SELECT total FROM table_name_80 WHERE set_2 = "25-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: What is the total for set 2 of 25-19? ### Context: CREATE TABLE table_name_55 (total VARCHAR, set_2 VARCHAR) [/INST] ### Response: SELECT total FROM table_name_55 WHERE set_2 = "25-19" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 set 3 when set 5 is na, set 1 is 21-25, and set 2 is 25-16? ### Context: CREATE TABLE table_name_54 (set_3 VARCHAR, set_2 VARCHAR, set_5 VARCHAR, set_1 VARCHAR) [/INST] ### Response: SELECT set_3 FROM table_name_54 WHERE set_5 = "na" AND set_1 = "21-25" AND set_2 = "25-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 is the set 1 for the date jun 26, and a set 2 of 25-16? ### Context: CREATE TABLE table_name_90 (set_1 VARCHAR, date VARCHAR, set_2 VARCHAR) [/INST] ### Response: SELECT set_1 FROM table_name_90 WHERE date = "jun 26" AND set_2 = "25-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 is the total for set 2 17-25? ### Context: CREATE TABLE table_name_80 (total VARCHAR, set_2 VARCHAR) [/INST] ### Response: SELECT total FROM table_name_80 WHERE set_2 = "17-25" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a Score that is 1-6, 3-6? ### Context: CREATE TABLE table_name_57 (opponent VARCHAR, score VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_57 WHERE score = "1-6, 3-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 writer has mort drucker as the artist, an issue greater than 470, and law & order: svu as an actual title? ### Context: CREATE TABLE table_name_9 (writer VARCHAR, actual_title VARCHAR, artist VARCHAR, issue VARCHAR) [/INST] ### Response: SELECT writer FROM table_name_9 WHERE artist = "mort drucker" AND issue > 470 AND actual_title = "law & order: svu" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ed as an actual title? ### Context: CREATE TABLE table_name_93 (date VARCHAR, actual_title VARCHAR) [/INST] ### Response: SELECT date FROM table_name_93 WHERE actual_title = "ed" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What isssue has 7th heaven as an actual title? ### Context: CREATE TABLE table_name_51 (issue VARCHAR, actual_title VARCHAR) [/INST] ### Response: SELECT issue FROM table_name_51 WHERE actual_title = "7th heaven" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 issue has mort drucker as the artist and february 2001 as the date? ### Context: CREATE TABLE table_name_20 (issue VARCHAR, artist VARCHAR, date VARCHAR) [/INST] ### Response: SELECT issue FROM table_name_20 WHERE artist = "mort drucker" AND date = "february 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 Week was the Attendance 39,434? ### Context: CREATE TABLE table_name_78 (week VARCHAR, attendance INTEGER) [/INST] ### Response: SELECT COUNT(week) FROM table_name_78 WHERE attendance < 39 OFFSET 434 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year was the match were xavier malisse was the runner-up against lleyton hewitt? ### Context: CREATE TABLE table_name_3 (year VARCHAR, outcome VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT year FROM table_name_3 WHERE outcome = "runner-up" AND opponent = "lleyton hewitt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year was the match against filippo volandri where xavier malisse was runner-up? ### Context: CREATE TABLE table_name_39 (year VARCHAR, outcome VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT year FROM table_name_39 WHERE outcome = "runner-up" AND opponent = "filippo volandri" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 against have a difference of 6, with a played greater than 19? ### Context: CREATE TABLE table_name_57 (against INTEGER, difference VARCHAR, played VARCHAR) [/INST] ### Response: SELECT SUM(against) FROM table_name_57 WHERE difference = "6" AND played > 19 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest drawn that has a played greater than 19, with a position less than 2? ### Context: CREATE TABLE table_name_52 (drawn INTEGER, played VARCHAR, position VARCHAR) [/INST] ### Response: SELECT MIN(drawn) FROM table_name_52 WHERE played > 19 AND position < 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 average against that has a drawn less than 7, points greater than 22, and 19 for the played? ### Context: CREATE TABLE table_name_66 (against INTEGER, played VARCHAR, drawn VARCHAR, points VARCHAR) [/INST] ### Response: SELECT AVG(against) FROM table_name_66 WHERE drawn < 7 AND points > 22 AND played = 19 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a TV Time of fox 12:00 pm cdt? ### Context: CREATE TABLE table_name_75 (date VARCHAR, tv_time VARCHAR) [/INST] ### Response: SELECT date FROM table_name_75 WHERE tv_time = "fox 12:00 pm cdt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Week of 8? ### Context: CREATE TABLE table_name_73 (date VARCHAR, week VARCHAR) [/INST] ### Response: SELECT date FROM table_name_73 WHERE week = 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: Which Week has a Result of l 13-16 and an Opponent of at buffalo bills? ### Context: CREATE TABLE table_name_27 (week INTEGER, result VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT AVG(week) FROM table_name_27 WHERE result = "l 13-16" AND opponent = "at buffalo bills" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 TV Time that has a Result of w 24–10? ### Context: CREATE TABLE table_name_72 (tv_time VARCHAR, result VARCHAR) [/INST] ### Response: SELECT tv_time FROM table_name_72 WHERE result = "w 24–10" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the conference that K. C. Jones was a head coach in? ### Context: CREATE TABLE table_name_78 (conf VARCHAR, head_coach VARCHAR) [/INST] ### Response: SELECT conf FROM table_name_78 WHERE head_coach = "k. c. jones" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who had the highest assists of the game on March 5? ### Context: CREATE TABLE table_name_50 (high_assists VARCHAR, date VARCHAR) [/INST] ### Response: SELECT high_assists FROM table_name_50 WHERE date = "march 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 is the least amount of appearances by new zealand when they scored 4 goals? ### Context: CREATE TABLE table_name_85 (appearances INTEGER, goals VARCHAR, nationality VARCHAR) [/INST] ### Response: SELECT MIN(appearances) FROM table_name_85 WHERE goals = 4 AND nationality = "new zealand" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 appearances did batram suri category:articles with hcards have scoring less than 2 goals? ### Context: CREATE TABLE table_name_41 (appearances VARCHAR, name VARCHAR, goals VARCHAR) [/INST] ### Response: SELECT COUNT(appearances) FROM table_name_41 WHERE name = "batram suri category:articles with hcards" AND goals < 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 province has a v valparaíso region and an area of 927.2? ### Context: CREATE TABLE table_name_31 (province VARCHAR, region VARCHAR, area VARCHAR) [/INST] ### Response: SELECT province FROM table_name_31 WHERE region = "v valparaíso" AND area = 927.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 average area with valparaíso as the capital? ### Context: CREATE TABLE table_name_34 (area INTEGER, capital VARCHAR) [/INST] ### Response: SELECT AVG(area) FROM table_name_34 WHERE capital = "valparaíso" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Category in White has a Amerindian of 4,87%? ### Context: CREATE TABLE table_name_96 (white VARCHAR, amerindian VARCHAR) [/INST] ### Response: SELECT white FROM table_name_96 WHERE amerindian = "4,87%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Category in White has a Black of 38,05%? ### Context: CREATE TABLE table_name_35 (white VARCHAR, black VARCHAR) [/INST] ### Response: SELECT white FROM table_name_35 WHERE black = "38,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: Which Category in Brown has a Frequency of 0.08%? ### Context: CREATE TABLE table_name_84 (brown VARCHAR, frequency VARCHAR) [/INST] ### Response: SELECT brown FROM table_name_84 WHERE frequency = "0.08%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Category in Black has a Brown of 6,54%? ### Context: CREATE TABLE table_name_61 (black VARCHAR, brown VARCHAR) [/INST] ### Response: SELECT black FROM table_name_61 WHERE brown = "6,54%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Capacity in use with an Annual change that is 21.8%? ### Context: CREATE TABLE table_name_31 (capacity_in_use VARCHAR, annual_change VARCHAR) [/INST] ### Response: SELECT capacity_in_use FROM table_name_31 WHERE annual_change = "21.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: How many Tries has Points for smaller than 137, and Tries against larger than 12? ### Context: CREATE TABLE table_name_81 (tries_for VARCHAR, points_for VARCHAR, tries_against VARCHAR) [/INST] ### Response: SELECT COUNT(tries_for) FROM table_name_81 WHERE points_for < 137 AND tries_against > 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 Team that has Points against of 43? ### Context: CREATE TABLE table_name_17 (team VARCHAR, points_against VARCHAR) [/INST] ### Response: SELECT team FROM table_name_17 WHERE points_against = 43 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tries has a Team of pau and Points against larger than 103? ### Context: CREATE TABLE table_name_48 (tries_for INTEGER, team VARCHAR, points_against VARCHAR) [/INST] ### Response: SELECT MIN(tries_for) FROM table_name_48 WHERE team = "pau" AND points_against > 103 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Points against has Tries for smaller than 14, and a Team of llanelli? ### Context: CREATE TABLE table_name_13 (points_against INTEGER, tries_for VARCHAR, team VARCHAR) [/INST] ### Response: SELECT AVG(points_against) FROM table_name_13 WHERE tries_for < 14 AND team = "llanelli" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tries against has a Try diff of –17 and Points for smaller than 80? ### Context: CREATE TABLE table_name_30 (tries_against VARCHAR, try_diff VARCHAR, points_for VARCHAR) [/INST] ### Response: SELECT COUNT(tries_against) FROM table_name_30 WHERE try_diff = "–17" AND points_for < 80 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player was the forward? ### Context: CREATE TABLE table_name_7 (player VARCHAR, position VARCHAR) [/INST] ### Response: SELECT player FROM table_name_7 WHERE position = "forward" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years in Orlando are featured with the center position? ### Context: CREATE TABLE table_name_11 (years_in_orlando VARCHAR, position VARCHAR) [/INST] ### Response: SELECT years_in_orlando FROM table_name_11 WHERE position = "center" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position was in Orlando in 2000? ### Context: CREATE TABLE table_name_15 (position VARCHAR, years_in_orlando VARCHAR) [/INST] ### Response: SELECT position FROM table_name_15 WHERE years_in_orlando = "2000" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Name with Goals that are 135? ### Context: CREATE TABLE table_name_61 (name VARCHAR, goals VARCHAR) [/INST] ### Response: SELECT name FROM table_name_61 WHERE goals = 135 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 American Labor candidate ran against Democratic candidate Robert F. Wagner? ### Context: CREATE TABLE table_name_51 (american_labor_ticket VARCHAR, democratic_ticket VARCHAR) [/INST] ### Response: SELECT american_labor_ticket FROM table_name_51 WHERE democratic_ticket = "robert f. wagner" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Socialist candidate ran against American Labor candidate Caroline O'Day? ### Context: CREATE TABLE table_name_65 (socialist_ticket VARCHAR, american_labor_ticket VARCHAR) [/INST] ### Response: SELECT socialist_ticket FROM table_name_65 WHERE american_labor_ticket = "caroline o'day" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Democrtic candidate ran against the Socialist candidate Edna Mitchell Blue? ### Context: CREATE TABLE table_name_71 (democratic_ticket VARCHAR, socialist_ticket VARCHAR) [/INST] ### Response: SELECT democratic_ticket FROM table_name_71 WHERE socialist_ticket = "edna mitchell blue" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 American Labor candidate is running against the Socialist candidate Herman J. Hahn? ### Context: CREATE TABLE table_name_55 (american_labor_ticket VARCHAR, socialist_ticket VARCHAR) [/INST] ### Response: SELECT american_labor_ticket FROM table_name_55 WHERE socialist_ticket = "herman j. hahn" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Republican ran against the American Labor candidate Matthew J. Merritt? ### Context: CREATE TABLE table_name_5 (republican_ticket VARCHAR, american_labor_ticket VARCHAR) [/INST] ### Response: SELECT republican_ticket FROM table_name_5 WHERE american_labor_ticket = "matthew j. merritt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 American Labor candidate ran against Republican Thomas E. Dewey? ### Context: CREATE TABLE table_name_91 (american_labor_ticket VARCHAR, republican_ticket VARCHAR) [/INST] ### Response: SELECT american_labor_ticket FROM table_name_91 WHERE republican_ticket = "thomas e. dewey" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in the final after 1983 with an Outcome of runner-up? ### Context: CREATE TABLE table_name_48 (opponent_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent_in_the_final FROM table_name_48 WHERE outcome = "runner-up" AND date > 1983 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in the final had a match with a Score in the final of 7–5, 6–2? ### Context: CREATE TABLE table_name_31 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR) [/INST] ### Response: SELECT opponent_in_the_final FROM table_name_31 WHERE score_in_the_final = "7–5, 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 Championship with Vitas Gerulaitis as Opponent in the final in a match on Clay Surface? ### Context: CREATE TABLE table_name_3 (championship VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT championship FROM table_name_3 WHERE surface = "clay" AND opponent_in_the_final = "vitas gerulaitis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 smallest percentage of marine area for Pacific Marine ecozone and percentage of total area greater than 3.1? ### Context: CREATE TABLE table_name_50 (percentage_of_marine_area__foreez_ INTEGER, ecozone VARCHAR, percentage_of_total_area__foreez_ VARCHAR) [/INST] ### Response: SELECT MIN(percentage_of_marine_area__foreez_) FROM table_name_50 WHERE ecozone = "pacific marine" AND percentage_of_total_area__foreez_ > 3.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 many values for percentage of marine area are for the Atlantic marine ecozone with an exclusive economic zone area less than 996,439? ### Context: CREATE TABLE table_name_78 (percentage_of_marine_area__foreez_ VARCHAR, ecozone VARCHAR, area__km²__exclusive_economic_zone VARCHAR) [/INST] ### Response: SELECT COUNT(percentage_of_marine_area__foreez_) FROM table_name_78 WHERE ecozone = "atlantic marine" AND area__km²__exclusive_economic_zone < 996 OFFSET 439 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the team when alvin williams (6) has the high assists? ### Context: CREATE TABLE table_name_29 (team VARCHAR, high_assists VARCHAR) [/INST] ### Response: SELECT team FROM table_name_29 WHERE high_assists = "alvin williams (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 Record for a game less than 3 and the score was l 91–96 (ot)? ### Context: CREATE TABLE table_name_19 (record VARCHAR, game VARCHAR, score VARCHAR) [/INST] ### Response: SELECT record FROM table_name_19 WHERE game < 3 AND score = "l 91–96 (ot)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when the high points went to Dell Curry (17)? ### Context: CREATE TABLE table_name_84 (date VARCHAR, high_points VARCHAR) [/INST] ### Response: SELECT date FROM table_name_84 WHERE high_points = "dell curry (17)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Team when antonio davis (8) had the high rebounds? ### Context: CREATE TABLE table_name_53 (team VARCHAR, high_rebounds VARCHAR) [/INST] ### Response: SELECT team FROM table_name_53 WHERE high_rebounds = "antonio davis (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 is the Tournament with a Date that is apr 16, 1967? ### Context: CREATE TABLE table_name_56 (tournament VARCHAR, date VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_56 WHERE date = "apr 16, 1967" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 with a Runner(s)-up that is jerry steelsmith? ### Context: CREATE TABLE table_name_69 (date VARCHAR, runner_s__up VARCHAR) [/INST] ### Response: SELECT date FROM table_name_69 WHERE runner_s__up = "jerry steelsmith" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Obama that has a Source of rasmussen reports? ### Context: CREATE TABLE table_name_28 (obama VARCHAR, source VARCHAR) [/INST] ### Response: SELECT obama FROM table_name_28 WHERE source = "rasmussen reports" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Source has a Undecided of 2%? ### Context: CREATE TABLE table_name_46 (source VARCHAR, undecided VARCHAR) [/INST] ### Response: SELECT source FROM table_name_46 WHERE undecided = "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 kind of Obama has a Undecided of 1%? ### Context: CREATE TABLE table_name_87 (obama VARCHAR, undecided VARCHAR) [/INST] ### Response: SELECT obama FROM table_name_87 WHERE undecided = "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: When has a Source of surveyusa and a Obama of 54%? ### Context: CREATE TABLE table_name_8 (date VARCHAR, source VARCHAR, obama VARCHAR) [/INST] ### Response: SELECT date FROM table_name_8 WHERE source = "surveyusa" AND obama = "54%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Source of rasmussen reports? ### Context: CREATE TABLE table_name_39 (date VARCHAR, source VARCHAR) [/INST] ### Response: SELECT date FROM table_name_39 WHERE source = "rasmussen reports" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Source has a Clinton of 39% and a Undecided of 7%? ### Context: CREATE TABLE table_name_94 (source VARCHAR, clinton VARCHAR, undecided VARCHAR) [/INST] ### Response: SELECT source FROM table_name_94 WHERE clinton = "39%" AND undecided = "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 is the Date of Birth with a Block that is larger than 342? ### Context: CREATE TABLE table_name_18 (date_of_birth VARCHAR, block INTEGER) [/INST] ### Response: SELECT date_of_birth FROM table_name_18 WHERE block > 342 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of positions that have 2012 ratings of 0.92? ### Context: CREATE TABLE table_name_21 (position VARCHAR) [/INST] ### Response: SELECT COUNT(position) FROM table_name_21 WHERE 2012 = "0.92" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 owner of the channel that has a 2012 rating of 5.42? ### Context: CREATE TABLE table_name_96 (owner VARCHAR) [/INST] ### Response: SELECT owner FROM table_name_96 WHERE 2012 = "5.42" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2007 rating of the channel with a position of 6? ### Context: CREATE TABLE table_name_28 (position VARCHAR) [/INST] ### Response: SELECT 2007 FROM table_name_28 WHERE position = 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 channel with a 2011 rating of 8.5? ### Context: CREATE TABLE table_name_64 (channel VARCHAR) [/INST] ### Response: SELECT channel FROM table_name_64 WHERE 2011 = "8.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 is ASTC Member, when State is Arkansas, when AAM Member is No, and when AAM Accredited is Yes? ### Context: CREATE TABLE table_name_39 (astc_member VARCHAR, aam_accredited VARCHAR, state VARCHAR, aam_member VARCHAR) [/INST] ### Response: SELECT astc_member FROM table_name_39 WHERE state = "arkansas" AND aam_member = "no" AND aam_accredited = "yes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 City, when State is Florida, when AAM Member is No, and when AAM Accredited is No? ### Context: CREATE TABLE table_name_61 (city VARCHAR, aam_accredited VARCHAR, state VARCHAR, aam_member VARCHAR) [/INST] ### Response: SELECT city FROM table_name_61 WHERE state = "florida" AND aam_member = "no" AND aam_accredited = "no" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 City, when ASTC Member is No, when State is California, and when AAM Member is Yes? ### Context: CREATE TABLE table_name_62 (city VARCHAR, aam_member VARCHAR, astc_member VARCHAR, state VARCHAR) [/INST] ### Response: SELECT city FROM table_name_62 WHERE astc_member = "no" AND state = "california" AND aam_member = "yes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 State, when AAM Accredited is No, when ASTC Member is No, and when City is Tulsa? ### Context: CREATE TABLE table_name_49 (state VARCHAR, city VARCHAR, aam_accredited VARCHAR, astc_member VARCHAR) [/INST] ### Response: SELECT state FROM table_name_49 WHERE aam_accredited = "no" AND astc_member = "no" AND city = "tulsa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 City, when State is California, when AAM Accredited is No, when ASTC Member is Yes, and when AAM Member is No? ### Context: CREATE TABLE table_name_30 (city VARCHAR, aam_member VARCHAR, astc_member VARCHAR, state VARCHAR, aam_accredited VARCHAR) [/INST] ### Response: SELECT city FROM table_name_30 WHERE state = "california" AND aam_accredited = "no" AND astc_member = "yes" AND aam_member = "no" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 AAM Member, when AAM Accredited is No, when State is California, when ASTC Member is Yes, and when City is Sacramento? ### Context: CREATE TABLE table_name_21 (aam_member VARCHAR, city VARCHAR, astc_member VARCHAR, aam_accredited VARCHAR, state VARCHAR) [/INST] ### Response: SELECT aam_member FROM table_name_21 WHERE aam_accredited = "no" AND state = "california" AND astc_member = "yes" AND city = "sacramento" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were the runners-up when the individual winner was Tiger Woods? ### Context: CREATE TABLE table_name_17 (runners_up VARCHAR, individual VARCHAR) [/INST] ### Response: SELECT runners_up FROM table_name_17 WHERE individual = "tiger woods" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years was the individual winner from the United States was Tiger Woods? ### Context: CREATE TABLE table_name_75 (year VARCHAR, country VARCHAR, individual VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_75 WHERE country = "united states" AND individual = "tiger woods" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 earliest year that the tournament was played in Cape Town, South Africa? ### Context: CREATE TABLE table_name_71 (year INTEGER, location VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_71 WHERE location = "cape town, south africa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Driver, when the Date is October 6? ### Context: CREATE TABLE table_name_98 (driver VARCHAR, date VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_98 WHERE date = "october 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 total number of Seasons, when the Engine is Cosworth, and when the Team is Kraco Racing? ### Context: CREATE TABLE table_name_85 (season VARCHAR, engine VARCHAR, team VARCHAR) [/INST] ### Response: SELECT COUNT(season) FROM table_name_85 WHERE engine = "cosworth" AND team = "kraco racing" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Driver, when the Engine is Chevrolet, and when the Date is October 3? ### Context: CREATE TABLE table_name_90 (driver VARCHAR, engine VARCHAR, date VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_90 WHERE engine = "chevrolet" AND date = "october 3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of Seasons, when the Team is Penske Racing, and when the Date is October 3? ### Context: CREATE TABLE table_name_10 (season INTEGER, team VARCHAR, date VARCHAR) [/INST] ### Response: SELECT SUM(season) FROM table_name_10 WHERE team = "penske racing" AND date = "october 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 was the Year to Open for the Dandeung Bridge? ### Context: CREATE TABLE table_name_51 (year_to_open VARCHAR, name VARCHAR) [/INST] ### Response: SELECT COUNT(year_to_open) FROM table_name_51 WHERE name = "dandeung 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: What is the Main span of the Qincaobei Bridge ### Context: CREATE TABLE table_name_64 (main_span_feet VARCHAR, name VARCHAR) [/INST] ### Response: SELECT main_span_feet FROM table_name_64 WHERE name = "qincaobei 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: What is the Main span of the bridge from China with a Year to open of 2013 and Main span feet of 2,585? ### Context: CREATE TABLE table_name_23 (main_span_metres VARCHAR, main_span_feet VARCHAR, year_to_open VARCHAR, country VARCHAR) [/INST] ### Response: SELECT main_span_metres FROM table_name_23 WHERE year_to_open = 2013 AND country = "china" AND main_span_feet = "2,585" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 republican ticket has stanley h. fuld as the Democratic ticket? ### Context: CREATE TABLE table_name_25 (republican_ticket VARCHAR, democratic_ticket VARCHAR) [/INST] ### Response: SELECT republican_ticket FROM table_name_25 WHERE democratic_ticket = "stanley h. fuld" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 liberal ticket that has judith white as the socialist workers? ### Context: CREATE TABLE table_name_73 (liberal_ticket VARCHAR, socialist_workers_ticket VARCHAR) [/INST] ### Response: SELECT liberal_ticket FROM table_name_73 WHERE socialist_workers_ticket = "judith white" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 socialist workers ticket has malcolm wilson as the Republican ticket? ### Context: CREATE TABLE table_name_71 (socialist_workers_ticket VARCHAR, republican_ticket VARCHAR) [/INST] ### Response: SELECT socialist_workers_ticket FROM table_name_71 WHERE republican_ticket = "malcolm wilson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 office has kieran o'doherty as the conservative ticket? ### Context: CREATE TABLE table_name_28 (office VARCHAR, conservative_ticket VARCHAR) [/INST] ### Response: SELECT office FROM table_name_28 WHERE conservative_ticket = "kieran o'doherty" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 office has (none) as the socialist labor ticket, and stanley h. fuld as the liberal ticket? ### Context: CREATE TABLE table_name_8 (office VARCHAR, socialist_labor_ticket VARCHAR, liberal_ticket VARCHAR) [/INST] ### Response: SELECT office FROM table_name_8 WHERE socialist_labor_ticket = "(none)" AND liberal_ticket = "stanley h. fuld" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: If the call sign is w291ch what's the ERP W corresponding to that sign? ### Context: CREATE TABLE table_name_38 (erp_w VARCHAR, call_sign VARCHAR) [/INST] ### Response: SELECT erp_w FROM table_name_38 WHERE call_sign = "w291ch" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: For the call sign w242at what's the city the license plate is registered to? ### Context: CREATE TABLE table_name_78 (city_of_license VARCHAR, call_sign VARCHAR) [/INST] ### Response: SELECT city_of_license FROM table_name_78 WHERE call_sign = "w242at" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Class for the city the license plate was issued in great barrington, massachusetts? ### Context: CREATE TABLE table_name_16 (class VARCHAR, city_of_license VARCHAR) [/INST] ### Response: SELECT class FROM table_name_16 WHERE city_of_license = "great barrington, massachusetts" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 gold have a bronze of 1, a rank smaller than 6, and a total less than 3? ### Context: CREATE TABLE table_name_81 (gold INTEGER, total VARCHAR, bronze VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT SUM(gold) FROM table_name_81 WHERE bronze = 1 AND rank < 6 AND total < 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 France bronze have a gold of more than 1 and a rank of 0? ### Context: CREATE TABLE table_name_79 (bronze INTEGER, rank VARCHAR, gold VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT SUM(bronze) FROM table_name_79 WHERE gold > 1 AND nation = "france" AND rank < 1 </s>