text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many Gold does the Nation in Rank 12 with less than 2 Total medals have? ### Context: CREATE TABLE table_name_45 (gold INTEGER, rank VARCHAR, total VARCHAR) [/INST] ### Response: SELECT MAX(gold) FROM table_name_45 WHERE rank = "12" AND total < 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: Which NHL team got pick 89? ### Context: CREATE TABLE table_name_49 (nhl_team VARCHAR, pick__number VARCHAR) [/INST] ### Response: SELECT nhl_team FROM table_name_49 WHERE pick__number = "89" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 plays goaltender for the Vancouver Canucks? ### Context: CREATE TABLE table_name_22 (player VARCHAR, position VARCHAR, nhl_team VARCHAR) [/INST] ### Response: SELECT player FROM table_name_22 WHERE position = "goaltender" AND nhl_team = "vancouver canucks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 % Change at London Heathrow airport? ### Context: CREATE TABLE table_name_68 (_percentage_change VARCHAR, airport VARCHAR) [/INST] ### Response: SELECT _percentage_change FROM table_name_68 WHERE airport = "london heathrow airport" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2003 rank does the airport IATA code SIN have? ### Context: CREATE TABLE table_name_60 (code__iata_ VARCHAR) [/INST] ### Response: SELECT 2003 AS rank FROM table_name_60 WHERE code__iata_ = "sin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 airport has an IATA code of AMS? ### Context: CREATE TABLE table_name_73 (airport VARCHAR, code__iata_ VARCHAR) [/INST] ### Response: SELECT airport FROM table_name_73 WHERE code__iata_ = "ams" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 IATA code of the airport that has a Total Cargo of 1,838,894 Metric Tonnes? ### Context: CREATE TABLE table_name_20 (code__iata_ VARCHAR, total_cargo__metric_tonnes_ VARCHAR) [/INST] ### Response: SELECT code__iata_ FROM table_name_20 WHERE total_cargo__metric_tonnes_ = "1,838,894" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2003 rank for Los Angeles International airport? ### Context: CREATE TABLE table_name_17 (airport VARCHAR) [/INST] ### Response: SELECT 2003 AS rank FROM table_name_17 WHERE airport = "los angeles international airport" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Wyatt Aiken in? ### Context: CREATE TABLE table_name_19 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_name_19 WHERE incumbent = "wyatt aiken" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Silver larger than 0, and a Total smaller than 3, and a Nation of bulgaria, and a Bronze smaller than 0 had what sum of gold? ### Context: CREATE TABLE table_name_51 (gold INTEGER, bronze VARCHAR, nation VARCHAR, silver VARCHAR, total VARCHAR) [/INST] ### Response: SELECT SUM(gold) FROM table_name_51 WHERE silver > 0 AND total < 3 AND nation = "bulgaria" AND bronze < 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: Nation of total has what sum of gold? ### Context: CREATE TABLE table_name_36 (gold INTEGER, nation VARCHAR) [/INST] ### Response: SELECT SUM(gold) FROM table_name_36 WHERE nation = "total" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Total of 3, and a Gold larger than 0, and a Nation of belarus, and a Silver larger than 2 has what sum of bronze? ### Context: CREATE TABLE table_name_27 (bronze INTEGER, silver VARCHAR, nation VARCHAR, total VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT SUM(bronze) FROM table_name_27 WHERE total = 3 AND gold > 0 AND nation = "belarus" AND silver > 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: Bronze of 22 has what average silver? ### Context: CREATE TABLE table_name_99 (silver INTEGER, bronze VARCHAR) [/INST] ### Response: SELECT AVG(silver) FROM table_name_99 WHERE bronze = 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: Which position had 5 games played and a record of 1-2-2? ### Context: CREATE TABLE table_name_63 (position VARCHAR, games_played VARCHAR, w_l_d VARCHAR) [/INST] ### Response: SELECT position FROM table_name_63 WHERE games_played = 5 AND w_l_d = "1-2-2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the name of the leader whose term ended in 2013? ### Context: CREATE TABLE table_name_49 (name VARCHAR, term_end VARCHAR) [/INST] ### Response: SELECT name FROM table_name_49 WHERE term_end = "2013" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 start of the leader's term who was born on January 8, 1859 and whose term ended in 1919? ### Context: CREATE TABLE table_name_12 (term_start VARCHAR, term_end VARCHAR, date_of_birth VARCHAR) [/INST] ### Response: SELECT term_start FROM table_name_12 WHERE term_end = "1919" AND date_of_birth = "january 8, 1859" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 leader born on December 17, 1874 started their term before 1984? ### Context: CREATE TABLE table_name_50 (name VARCHAR, term_start VARCHAR, date_of_birth VARCHAR) [/INST] ### Response: SELECT name FROM table_name_50 WHERE term_start < 1984 AND date_of_birth = "december 17, 1874" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 shows the Outcome of winner against nikola fraňková carmen klaschka? ### Context: CREATE TABLE table_name_54 (date VARCHAR, outcome VARCHAR, opponents_in_the_final VARCHAR) [/INST] ### Response: SELECT date FROM table_name_54 WHERE outcome = "winner" AND opponents_in_the_final = "nikola fraňková carmen klaschka" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Outcome of the jounieh tournament? ### Context: CREATE TABLE table_name_73 (outcome VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_73 WHERE tournament = "jounieh" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 score of 6–3 6–4? ### Context: CREATE TABLE table_name_53 (date VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_53 WHERE score = "6–3 6–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: when indiana pacers were the opponent what was the date? ### Context: CREATE TABLE table_name_89 (date VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_89 WHERE opponent = "indiana pacers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: tries against is 55, what is the try bonus? ### Context: CREATE TABLE table_name_80 (try_bonus VARCHAR, tries_against VARCHAR) [/INST] ### Response: SELECT try_bonus FROM table_name_80 WHERE tries_against = "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: tries against is 29, what is the points against? ### Context: CREATE TABLE table_name_97 (points_against VARCHAR, tries_against VARCHAR) [/INST] ### Response: SELECT points_against FROM table_name_97 WHERE tries_against = "29" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: tries against correct as of 2007-10-15 has what tries for? ### Context: CREATE TABLE table_name_54 (tries_for VARCHAR, tries_against VARCHAR) [/INST] ### Response: SELECT tries_for FROM table_name_54 WHERE tries_against = "correct as of 2007-10-15" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: tries against correct as of 2007-10-15 has what tries for? ### Context: CREATE TABLE table_name_31 (tries_for VARCHAR, tries_against VARCHAR) [/INST] ### Response: SELECT tries_for FROM table_name_31 WHERE tries_against = "correct as of 2007-10-15" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: tries against is 88, played is 22, what is the lost? ### Context: CREATE TABLE table_name_57 (lost VARCHAR, played VARCHAR, tries_against VARCHAR) [/INST] ### Response: SELECT lost FROM table_name_57 WHERE played = "22" AND tries_against = "88" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who won silver in the year before 2010, the year Chan Ming Shu won gold? ### Context: CREATE TABLE table_name_21 (silver VARCHAR, year VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT silver FROM table_name_21 WHERE year < 2010 AND gold = "chan ming shu" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 location for the year under 2010 and the year Hei Zhi Hong won silver? ### Context: CREATE TABLE table_name_67 (location VARCHAR, year VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT location FROM table_name_67 WHERE year < 2010 AND silver = "hei zhi hong" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 location had a year over 2006? ### Context: CREATE TABLE table_name_68 (location VARCHAR, year INTEGER) [/INST] ### Response: SELECT location FROM table_name_68 WHERE year > 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: Score F–A of 2–0, and a Opponents of walsall has what date? ### Context: CREATE TABLE table_name_49 (date VARCHAR, score_f_a VARCHAR, opponents VARCHAR) [/INST] ### Response: SELECT date FROM table_name_49 WHERE score_f_a = "2–0" AND opponents = "walsall" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Score F–A of 3–0, and a Date of 31 july 2007 had what opponents? ### Context: CREATE TABLE table_name_13 (opponents VARCHAR, score_f_a VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponents FROM table_name_13 WHERE score_f_a = "3–0" AND date = "31 july 2007" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Opponents of sheffield wednesday had what date? ### Context: CREATE TABLE table_name_81 (date VARCHAR, opponents VARCHAR) [/INST] ### Response: SELECT date FROM table_name_81 WHERE opponents = "sheffield wednesday" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Opponents of sheffield wednesday had what date? ### Context: CREATE TABLE table_name_63 (date VARCHAR, opponents VARCHAR) [/INST] ### Response: SELECT date FROM table_name_63 WHERE opponents = "sheffield wednesday" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Date of 4 august 2007 had what opponents? ### Context: CREATE TABLE table_name_17 (opponents VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponents FROM table_name_17 WHERE date = "4 august 2007" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Player of david laliberte? ### Context: CREATE TABLE table_name_50 (position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT position FROM table_name_50 WHERE player = "david laliberte" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Player of gino pisellini? ### Context: CREATE TABLE table_name_13 (position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT position FROM table_name_13 WHERE player = "gino pisellini" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winning score of standard register ping tournament, which has Kelly Robbins as the runner-up? ### Context: CREATE TABLE table_name_46 (winning_score VARCHAR, tournament VARCHAR, runner_s__up VARCHAR) [/INST] ### Response: SELECT winning_score FROM table_name_46 WHERE tournament = "standard register ping" AND runner_s__up = "kelly robbins" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winning score of the tournament on 16 May 1993? ### Context: CREATE TABLE table_name_20 (winning_score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT winning_score FROM table_name_20 WHERE date = "16 may 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: What is the margin of victory of the tournament on 5 Jun 1988? ### Context: CREATE TABLE table_name_75 (margin_of_victory VARCHAR, date VARCHAR) [/INST] ### Response: SELECT margin_of_victory FROM table_name_75 WHERE date = "5 jun 1988" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winning scor of the tournament with Robin Walton as the runner-up? ### Context: CREATE TABLE table_name_88 (winning_score VARCHAR, runner_s__up VARCHAR) [/INST] ### Response: SELECT winning_score FROM table_name_88 WHERE runner_s__up = "robin walton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 NHL team has a College/Junior/Club Team (League) of shattuck-saint mary's school (midget major aaa)? ### Context: CREATE TABLE table_name_63 (nhl_team VARCHAR, college_junior_club_team__league_ VARCHAR) [/INST] ### Response: SELECT nhl_team FROM table_name_63 WHERE college_junior_club_team__league_ = "shattuck-saint mary's school (midget major aaa)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many Rounds have a Nationality of canada, and a College/Junior/Club Team (League) of fort mcmurray oil barons (ajhl)? ### Context: CREATE TABLE table_name_66 (round VARCHAR, nationality VARCHAR, college_junior_club_team__league_ VARCHAR) [/INST] ### Response: SELECT COUNT(round) FROM table_name_66 WHERE nationality = "canada" AND college_junior_club_team__league_ = "fort mcmurray oil barons (ajhl)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 NHL team of edmonton oilers and a Player of vyacheslav trukhno? ### Context: CREATE TABLE table_name_12 (round INTEGER, nhl_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT AVG(round) FROM table_name_12 WHERE nhl_team = "edmonton oilers" AND player = "vyacheslav trukhno" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Nationality of united states, and a College/Junior/Club Team (League) of breck school (ushs)? ### Context: CREATE TABLE table_name_19 (round INTEGER, nationality VARCHAR, college_junior_club_team__league_ VARCHAR) [/INST] ### Response: SELECT MIN(round) FROM table_name_19 WHERE nationality = "united states" AND college_junior_club_team__league_ = "breck school (ushs)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 max 1-min wind mph when the minimum press is 997? ### Context: CREATE TABLE table_name_57 (max_1_min_wind_mph__km_h_ VARCHAR, min_press___mbar__ VARCHAR) [/INST] ### Response: SELECT max_1_min_wind_mph__km_h_ FROM table_name_57 WHERE min_press___mbar__ = "997" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 deaths occurred during Darby? ### Context: CREATE TABLE table_name_64 (deaths VARCHAR, storm_name VARCHAR) [/INST] ### Response: SELECT deaths FROM table_name_64 WHERE storm_name = "darby" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 distance from Jaffa of Jerusalem station? ### Context: CREATE TABLE table_name_1 (distance_from_jaffa VARCHAR, name_location VARCHAR) [/INST] ### Response: SELECT distance_from_jaffa FROM table_name_1 WHERE name_location = "jerusalem" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 visitor has February 11 as the date? ### Context: CREATE TABLE table_name_37 (visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_37 WHERE date = "february 11" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which venue is the friendly match in? ### Context: CREATE TABLE table_name_7 (venue VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_7 WHERE competition = "friendly match" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the result of the friendly match in Seoul? ### Context: CREATE TABLE table_name_47 (result VARCHAR, competition VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT result FROM table_name_47 WHERE competition = "friendly match" AND venue = "seoul" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the result of the 2007 AFC asian cup? ### Context: CREATE TABLE table_name_19 (result VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT result FROM table_name_19 WHERE competition = "2007 afc asian cup" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Runner(s)-up has a Margin of victory of 1 stroke, and a Tournament of world seniors invitational? ### Context: CREATE TABLE table_name_34 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT runner_s__up FROM table_name_34 WHERE margin_of_victory = "1 stroke" AND tournament = "world seniors invitational" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Runner(s)-up has a Tournament of general foods pga seniors' championship? ### Context: CREATE TABLE table_name_65 (runner_s__up VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT runner_s__up FROM table_name_65 WHERE tournament = "general foods pga seniors' championship" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Tournament has a Margin of victory of 2 strokes, and a Winning score of −14 (68-66-68=202)? ### Context: CREATE TABLE table_name_10 (tournament VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_10 WHERE margin_of_victory = "2 strokes" AND winning_score = −14(68 - 66 - 68 = 202) </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winning score of −9 (70-64-70=203)? ### Context: CREATE TABLE table_name_19 (date VARCHAR, winning_score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_19 WHERE winning_score = −9(70 - 64 - 70 = 203) </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 High points when date was February 11? ### Context: CREATE TABLE table_name_55 (high_points VARCHAR, date VARCHAR) [/INST] ### Response: SELECT high_points FROM table_name_55 WHERE date = "february 11" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the team that has a High rebounds of popeye jones (14), and when the Record was 16-28? ### Context: CREATE TABLE table_name_86 (team VARCHAR, high_rebounds VARCHAR, record VARCHAR) [/INST] ### Response: SELECT team FROM table_name_86 WHERE high_rebounds = "popeye jones (14)" AND record = "16-28" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Location Attendance when the Date was February 27? ### Context: CREATE TABLE table_name_83 (location_attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT location_attendance FROM table_name_83 WHERE date = "february 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: What is the score of the scores when Game had a Record of 17-29? ### Context: CREATE TABLE table_name_27 (game INTEGER, record VARCHAR) [/INST] ### Response: SELECT SUM(game) FROM table_name_27 WHERE record = "17-29" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has the lead on Lisa Weagle? ### Context: CREATE TABLE table_name_80 (skip VARCHAR, lead VARCHAR) [/INST] ### Response: SELECT skip FROM table_name_80 WHERE lead = "lisa weagle" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 shows Matt St. Louis in second and a skip of John Morris? ### Context: CREATE TABLE table_name_24 (event VARCHAR, skip VARCHAR, second VARCHAR) [/INST] ### Response: SELECT event FROM table_name_24 WHERE skip = "john morris" AND second = "matt st. louis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 are the highest attempts that have net yards less than 631, and 2 for the touchdowns? ### Context: CREATE TABLE table_name_53 (attempts INTEGER, net_yards VARCHAR, touchdowns VARCHAR) [/INST] ### Response: SELECT MAX(attempts) FROM table_name_53 WHERE net_yards < 631 AND touchdowns = 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 are the average net yards that have 9 as the touchdowns, 145 as the attempts, and yards per attempt greater than 4.8? ### Context: CREATE TABLE table_name_87 (net_yards INTEGER, yards_per_attempt VARCHAR, touchdowns VARCHAR, attempts VARCHAR) [/INST] ### Response: SELECT AVG(net_yards) FROM table_name_87 WHERE touchdowns = 9 AND attempts = 145 AND yards_per_attempt > 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: How many yards per attempt have net yards greater than 631? ### Context: CREATE TABLE table_name_17 (yards_per_attempt INTEGER, net_yards INTEGER) [/INST] ### Response: SELECT SUM(yards_per_attempt) FROM table_name_17 WHERE net_yards > 631 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 are the highest touchdowns that have net yards greater than 631, with attempts less than 145? ### Context: CREATE TABLE table_name_34 (touchdowns INTEGER, net_yards VARCHAR, attempts VARCHAR) [/INST] ### Response: SELECT MAX(touchdowns) FROM table_name_34 WHERE net_yards > 631 AND attempts < 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: What is the value for Slalom in seasons later than 1994 and overall value greater than 22? ### Context: CREATE TABLE table_name_90 (slalom VARCHAR, season VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT slalom FROM table_name_90 WHERE season > 1994 AND overall > 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: How many seasons had a Super G of 2 and overall of 3? ### Context: CREATE TABLE table_name_61 (season VARCHAR, super_g VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT COUNT(season) FROM table_name_61 WHERE super_g = "2" AND overall = 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: Who was the Opponent in the Auckland, New Zealand Tournament? ### Context: CREATE TABLE table_name_50 (opponent VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_50 WHERE tournament = "auckland, 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: On what Date was Rafael Nadal the Opponent? ### Context: CREATE TABLE table_name_37 (date VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_37 WHERE opponent = "rafael nadal" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the Opponent on a Hard (i) Surface? ### Context: CREATE TABLE table_name_5 (opponent VARCHAR, surface VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_5 WHERE surface = "hard (i)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 at the Auckland, New Zealand Tournament? ### Context: CREATE TABLE table_name_7 (score VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT score FROM table_name_7 WHERE tournament = "auckland, 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: What team plays in Dinamo, Brest? ### Context: CREATE TABLE table_name_97 (team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT team FROM table_name_97 WHERE venue = "dinamo, brest" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 plays at Spartak, Mogilev? ### Context: CREATE TABLE table_name_26 (team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT team FROM table_name_26 WHERE venue = "spartak, mogilev" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the Producer/Director of Fear Beneath? ### Context: CREATE TABLE table_name_40 (producer_director VARCHAR, film VARCHAR) [/INST] ### Response: SELECT producer_director FROM table_name_40 WHERE film = "fear beneath" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 film was released in 1996? ### Context: CREATE TABLE table_name_76 (film VARCHAR, year VARCHAR) [/INST] ### Response: SELECT film FROM table_name_76 WHERE year = 1996 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Producer/Director of Political Engagement? ### Context: CREATE TABLE table_name_67 (producer_director VARCHAR, film VARCHAR) [/INST] ### Response: SELECT producer_director FROM table_name_67 WHERE film = "political engagement" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the original airdate for episode 7-17 (195) from writer Sidney Slon? ### Context: CREATE TABLE table_name_5 (original_airdate VARCHAR, writer_s_ VARCHAR, episode VARCHAR) [/INST] ### Response: SELECT original_airdate FROM table_name_5 WHERE writer_s_ = "sidney slon" AND episode = "7-17 (195)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played in Madrid, Spain? ### Context: CREATE TABLE table_name_90 (date VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT date FROM table_name_90 WHERE tournament = "madrid, spain" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 final as the round? ### Context: CREATE TABLE table_name_34 (opponent VARCHAR, round VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_34 WHERE round = "final" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round has hereford united as the opponent? ### Context: CREATE TABLE table_name_50 (round VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT round FROM table_name_50 WHERE opponent = "hereford united" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Location /State has a Winner of craig lowndes, and a Date of 29–31 may? ### Context: CREATE TABLE table_name_67 (location___state VARCHAR, winner VARCHAR, date VARCHAR) [/INST] ### Response: SELECT location___state FROM table_name_67 WHERE winner = "craig lowndes" AND date = "29–31 may" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Winner of craig lowndes, and a Circuit of phillip island grand prix circuit? ### Context: CREATE TABLE table_name_69 (team VARCHAR, winner VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT team FROM table_name_69 WHERE winner = "craig lowndes" AND circuit = "phillip island grand prix circuit" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Location/ State has a Date of 29–31 may? ### Context: CREATE TABLE table_name_36 (location___state VARCHAR, date VARCHAR) [/INST] ### Response: SELECT location___state FROM table_name_36 WHERE date = "29–31 may" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who won at the Circuit of lakeside international raceway? ### Context: CREATE TABLE table_name_89 (winner VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_89 WHERE circuit = "lakeside international raceway" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 service charge of the boat howitzers with 456 made? ### Context: CREATE TABLE table_name_38 (service_charge VARCHAR, number_made VARCHAR) [/INST] ### Response: SELECT service_charge FROM table_name_38 WHERE number_made = 456 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 service chage of the boat howitzers with a 12-pdr light destination? ### Context: CREATE TABLE table_name_42 (service_charge VARCHAR, designation VARCHAR) [/INST] ### Response: SELECT service_charge FROM table_name_42 WHERE designation = "12-pdr light" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 service charge of the boat howitzers with 1009 made? ### Context: CREATE TABLE table_name_9 (service_charge VARCHAR, number_made VARCHAR) [/INST] ### Response: SELECT service_charge FROM table_name_9 WHERE number_made = 1009 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bore of the boat howitzers with a 12-pdr heavy designation? ### Context: CREATE TABLE table_name_8 (bore VARCHAR, designation VARCHAR) [/INST] ### Response: SELECT bore FROM table_name_8 WHERE designation = "12-pdr heavy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance has 9 as the tie no.? ### Context: CREATE TABLE table_name_43 (attendance VARCHAR, tie_no VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_43 WHERE tie_no = 9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many Picks have a Position of defensive end, and an Overall smaller than 33? ### Context: CREATE TABLE table_name_22 (pick__number VARCHAR, position VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT COUNT(pick__number) FROM table_name_22 WHERE position = "defensive end" AND overall < 33 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest one that has a Name of gregory spann, and a Pick # larger than 19? ### Context: CREATE TABLE table_name_9 (overall INTEGER, name VARCHAR, pick__number VARCHAR) [/INST] ### Response: SELECT MAX(overall) FROM table_name_9 WHERE name = "gregory spann" AND pick__number > 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: Which Pick # has a Round larger than 5, and a Position of wide receiver, and a Name of gregory spann, and an Overall larger than 228? ### Context: CREATE TABLE table_name_67 (pick__number INTEGER, overall VARCHAR, name VARCHAR, round VARCHAR, position VARCHAR) [/INST] ### Response: SELECT AVG(pick__number) FROM table_name_67 WHERE round > 5 AND position = "wide receiver" AND name = "gregory spann" AND overall > 228 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 from the 21-27 Record? ### Context: CREATE TABLE table_name_96 (score VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_96 WHERE record = "21-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: How many people attended the May 28 game? ### Context: CREATE TABLE table_name_99 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_99 WHERE date = "may 28" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average drawn number of the team with less than 70 points and less than 46 played? ### Context: CREATE TABLE table_name_76 (drawn INTEGER, points VARCHAR, played VARCHAR) [/INST] ### Response: SELECT AVG(drawn) FROM table_name_76 WHERE points < 70 AND played < 46 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest position of the team with 24 lost and a drawn greater than 9? ### Context: CREATE TABLE table_name_62 (position INTEGER, lost VARCHAR, drawn VARCHAR) [/INST] ### Response: SELECT MAX(position) FROM table_name_62 WHERE lost = 24 AND drawn > 9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many Points has a Game of 82 and a April larger than 10? ### Context: CREATE TABLE table_name_11 (points INTEGER, game VARCHAR, april VARCHAR) [/INST] ### Response: SELECT AVG(points) FROM table_name_11 WHERE game = 82 AND 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: How many Games have a Score of 3–3 ot? ### Context: CREATE TABLE table_name_98 (game VARCHAR, score VARCHAR) [/INST] ### Response: SELECT COUNT(game) FROM table_name_98 WHERE score = "3–3 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: Which April has a Game of 84 ### Context: CREATE TABLE table_name_54 (april INTEGER, game VARCHAR) [/INST] ### Response: SELECT MAX(april) FROM table_name_54 WHERE game = 84 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played status when the club was banwen rfc? ### Context: CREATE TABLE table_name_88 (played VARCHAR, club VARCHAR) [/INST] ### Response: SELECT played FROM table_name_88 WHERE club = "banwen rfc" </s>