text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the route with winner of sébastien rosseler ### Context: CREATE TABLE table_name_27 (route VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT route FROM table_name_27 WHERE winner = "sébastien rosseler" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the route for 170.8km distance ### Context: CREATE TABLE table_name_14 (route VARCHAR, distance VARCHAR) [/INST] ### Response: SELECT route FROM table_name_14 WHERE distance = "170.8km" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the date for luciano pagliarini ### Context: CREATE TABLE table_name_68 (date VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT date FROM table_name_68 WHERE winner = "luciano pagliarini" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the date for mark cavendish ### Context: CREATE TABLE table_name_10 (date VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT date FROM table_name_10 WHERE winner = "mark cavendish" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the laps for qual of 144.665 ### Context: CREATE TABLE table_name_94 (laps INTEGER, qual VARCHAR) [/INST] ### Response: SELECT SUM(laps) FROM table_name_94 WHERE qual = "144.665" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the total number of Laps for year of 1961 ### Context: CREATE TABLE table_name_48 (laps VARCHAR, year VARCHAR) [/INST] ### Response: SELECT COUNT(laps) FROM table_name_48 WHERE year = "1961" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the finish for start of 28 ### Context: CREATE TABLE table_name_76 (finish VARCHAR, start VARCHAR) [/INST] ### Response: SELECT finish FROM table_name_76 WHERE start = "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: Name the laps for rank of 14 and start of 16 ### Context: CREATE TABLE table_name_67 (laps VARCHAR, rank VARCHAR, start VARCHAR) [/INST] ### Response: SELECT laps FROM table_name_67 WHERE rank = "14" AND start = "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: Name the qual for year of 1960 ### Context: CREATE TABLE table_name_25 (qual VARCHAR, year VARCHAR) [/INST] ### Response: SELECT qual FROM table_name_25 WHERE year = "1960" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player in position lb and an overall of 128? ### Context: CREATE TABLE table_name_65 (player VARCHAR, position VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT player FROM table_name_65 WHERE position = "lb" AND overall = 128 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall when Kenny Lewis is the player in a round after 5? ### Context: CREATE TABLE table_name_98 (overall VARCHAR, player VARCHAR, round VARCHAR) [/INST] ### Response: SELECT COUNT(overall) FROM table_name_98 WHERE player = "kenny lewis" AND round > 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the college when the over is larger than 15 in round 7? ### Context: CREATE TABLE table_name_41 (college VARCHAR, overall VARCHAR, round VARCHAR) [/INST] ### Response: SELECT college FROM table_name_41 WHERE overall > 15 AND round = 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the position with an overall less than 128 for Brigham Young college? ### Context: CREATE TABLE table_name_87 (position VARCHAR, overall VARCHAR, college VARCHAR) [/INST] ### Response: SELECT position FROM table_name_87 WHERE overall < 128 AND college = "brigham young" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attended the game on 4 February 2003? ### Context: CREATE TABLE table_name_81 (attendance INTEGER, date VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_81 WHERE date = "4 february 2003" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: yes or no for the auckland with a yes for sydney, no for perth, yes for melbourne and yes for the gold coast? ### Context: CREATE TABLE table_name_74 (auckland VARCHAR, gold_coast VARCHAR, melbourne VARCHAR, sydney VARCHAR, perth VARCHAR) [/INST] ### Response: SELECT auckland FROM table_name_74 WHERE sydney = "yes" AND perth = "no" AND melbourne = "yes" AND gold_coast = "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: yes or no for the adelaide with no for auckland, yes for melbourne, yes for the gold coast? ### Context: CREATE TABLE table_name_97 (adelaide VARCHAR, gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR) [/INST] ### Response: SELECT adelaide FROM table_name_97 WHERE auckland = "no" AND melbourne = "yes" AND gold_coast = "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: yes or no for the gold coast with yes for melbourne, yes for adelaide, yes for auckland? ### Context: CREATE TABLE table_name_2 (gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR, adelaide VARCHAR) [/INST] ### Response: SELECT gold_coast FROM table_name_2 WHERE melbourne = "yes" AND adelaide = "yes" AND auckland = "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: yes or no for the melbourne with yes for gold coast, yes for adelaide, no for auckland? ### Context: CREATE TABLE table_name_92 (melbourne VARCHAR, auckland VARCHAR, gold_coast VARCHAR, adelaide VARCHAR) [/INST] ### Response: SELECT melbourne FROM table_name_92 WHERE gold_coast = "yes" AND adelaide = "no" AND auckland = "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: yes or no for the sydney with yes for melbourne, no for perth, no for auckland and no for gold coast? ### Context: CREATE TABLE table_name_43 (sydney VARCHAR, gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR, perth VARCHAR) [/INST] ### Response: SELECT sydney FROM table_name_43 WHERE melbourne = "yes" AND perth = "no" AND auckland = "no" AND gold_coast = "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: yes or no for the melbourne that has no for adelaide, no for gold coast? ### Context: CREATE TABLE table_name_90 (melbourne VARCHAR, adelaide VARCHAR, gold_coast VARCHAR) [/INST] ### Response: SELECT melbourne FROM table_name_90 WHERE adelaide = "yes" AND gold_coast = "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: How many losses did the team with 0 wins and more than 72 runs allowed have? ### Context: CREATE TABLE table_name_1 (losses INTEGER, wins VARCHAR, runs_allowed VARCHAR) [/INST] ### Response: SELECT SUM(losses) FROM table_name_1 WHERE wins = 0 AND runs_allowed > 72 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest amount of losses the United States, ranked higher than 3 with more than 6 wins, have? ### Context: CREATE TABLE table_name_96 (losses INTEGER, wins VARCHAR, rank VARCHAR, team VARCHAR) [/INST] ### Response: SELECT MIN(losses) FROM table_name_96 WHERE rank < 3 AND team = "united states" AND wins > 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: How many runs allowed did the team ranked 2 with more than 2 losses have? ### Context: CREATE TABLE table_name_50 (runs_allowed INTEGER, rank VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT AVG(runs_allowed) FROM table_name_50 WHERE rank = 2 AND losses > 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many total wins did the team ranked lower than 1 with a run ratio less than 5.85 and more than 4 losses have? ### Context: CREATE TABLE table_name_87 (wins VARCHAR, losses VARCHAR, rank VARCHAR, run_ratio VARCHAR) [/INST] ### Response: SELECT COUNT(wins) FROM table_name_87 WHERE rank > 1 AND run_ratio < 5.85 AND losses > 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest run ratio Japan, which has less than 58 runs and 5 wins, have? ### Context: CREATE TABLE table_name_36 (run_ratio INTEGER, team VARCHAR, runs_allowed VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT MAX(run_ratio) FROM table_name_36 WHERE runs_allowed < 58 AND wins = 5 AND team = "japan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of losses the team with less than 25 runs allowed and 5 wins have? ### Context: CREATE TABLE table_name_63 (losses INTEGER, runs_allowed VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT AVG(losses) FROM table_name_63 WHERE runs_allowed < 25 AND wins = 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which date has tigers as the opponent? ### Context: CREATE TABLE table_name_14 (date VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_14 WHERE opponent = "tigers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What loss has october 1 as the date? ### Context: CREATE TABLE table_name_47 (loss VARCHAR, date VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_47 WHERE date = "october 1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year is listed that has points greater than 0 with a chassis labeled AGS JH22? ### Context: CREATE TABLE table_name_26 (year VARCHAR, points VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT year FROM table_name_26 WHERE points > 0 AND chassis = "ags jh22" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total points listed that includes P listed Tyres after 1986? ### Context: CREATE TABLE table_name_76 (points INTEGER, tyres VARCHAR, year VARCHAR) [/INST] ### Response: SELECT SUM(points) FROM table_name_76 WHERE tyres = "p" AND year > 1986 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What point is the lowest for listings of chassis labeled AGS JH23 before 1988? ### Context: CREATE TABLE table_name_73 (points INTEGER, chassis VARCHAR, year VARCHAR) [/INST] ### Response: SELECT MIN(points) FROM table_name_73 WHERE chassis = "ags jh23" AND year < 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 total point for the year listed in 1988? ### Context: CREATE TABLE table_name_58 (points INTEGER, year VARCHAR) [/INST] ### Response: SELECT SUM(points) FROM table_name_58 WHERE year = 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 was the attendance on August 2? ### Context: CREATE TABLE table_name_28 (attendance INTEGER, date VARCHAR) [/INST] ### Response: SELECT MAX(attendance) FROM table_name_28 WHERE date = "august 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 opponent lost with pitcher Kinney (0-1)? ### Context: CREATE TABLE table_name_54 (opponent VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_54 WHERE loss = "kinney (0-1)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the attendance on August 23? ### Context: CREATE TABLE table_name_77 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_name_77 WHERE date = "august 23" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest wins a tournament with 3 cuts and more than 4 events has? ### Context: CREATE TABLE table_name_27 (wins INTEGER, cuts_made VARCHAR, events VARCHAR) [/INST] ### Response: SELECT MAX(wins) FROM table_name_27 WHERE cuts_made = 3 AND events > 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest number of events a tournament with more than 1 top-10 and more than 0 wins has? ### Context: CREATE TABLE table_name_77 (events INTEGER, top_10 VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT MIN(events) FROM table_name_77 WHERE top_10 > 1 AND wins > 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: How many laps did the 6th placed in 1998 complete? ### Context: CREATE TABLE table_name_90 (laps INTEGER, pos VARCHAR, year VARCHAR) [/INST] ### Response: SELECT SUM(laps) FROM table_name_90 WHERE pos = "6th" AND year = 1998 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team was c1 class, had over 331 laps after 1990? ### Context: CREATE TABLE table_name_55 (team VARCHAR, year VARCHAR, class VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT team FROM table_name_55 WHERE class = "c1" AND laps > 331 AND year > 1990 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What class did eddie cheever raul boesel race in? ### Context: CREATE TABLE table_name_16 (class VARCHAR, co_drivers VARCHAR) [/INST] ### Response: SELECT class FROM table_name_16 WHERE co_drivers = "eddie cheever raul boesel" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest rank of a player who played in 2012? ### Context: CREATE TABLE table_name_50 (rank INTEGER, event VARCHAR) [/INST] ### Response: SELECT MIN(rank) FROM table_name_50 WHERE event = "2012" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What player has the rank 2011? ### Context: CREATE TABLE table_name_97 (player VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT player FROM table_name_97 WHERE rank = 2011 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score of the match played on hard with a person ranked 10? ### Context: CREATE TABLE table_name_70 (score VARCHAR, surface VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT score FROM table_name_70 WHERE surface = "hard" AND rank = 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 females speak Romanian? ### Context: CREATE TABLE table_name_71 (females VARCHAR, language VARCHAR) [/INST] ### Response: SELECT females FROM table_name_71 WHERE language = "romanian" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What females have males of 1 234? ### Context: CREATE TABLE table_name_21 (females VARCHAR, males VARCHAR) [/INST] ### Response: SELECT females FROM table_name_21 WHERE males = "1 234" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What males speak Polish? ### Context: CREATE TABLE table_name_22 (males VARCHAR, language VARCHAR) [/INST] ### Response: SELECT males FROM table_name_22 WHERE language = "polish" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 males 977 948? ### Context: CREATE TABLE table_name_20 (number VARCHAR, males VARCHAR) [/INST] ### Response: SELECT number FROM table_name_20 WHERE males = "977 948" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Bowler of shane bond has what lowest overall number? ### Context: CREATE TABLE table_name_37 (over_no INTEGER, bowler VARCHAR) [/INST] ### Response: SELECT MIN(over_no) FROM table_name_37 WHERE bowler = "shane bond" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Wickets of chris gayle caught kapali happened on what date? ### Context: CREATE TABLE table_name_16 (date VARCHAR, wickets VARCHAR) [/INST] ### Response: SELECT date FROM table_name_16 WHERE wickets = "chris gayle caught kapali" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year did Kyle Newman place third? ### Context: CREATE TABLE table_name_34 (year VARCHAR, third VARCHAR) [/INST] ### Response: SELECT year FROM table_name_34 WHERE third = "kyle newman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue when Jerran Hart won? ### Context: CREATE TABLE table_name_20 (venue VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_20 WHERE winner = "jerran hart" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 runner-up in 2004? ### Context: CREATE TABLE table_name_82 (runner_up VARCHAR, year VARCHAR) [/INST] ### Response: SELECT runner_up FROM table_name_82 WHERE year = 2004 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue when Jack Hargreaves finished third? ### Context: CREATE TABLE table_name_63 (venue VARCHAR, third VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_63 WHERE third = "jack hargreaves" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue when Ben Barker finished third? ### Context: CREATE TABLE table_name_65 (venue VARCHAR, third VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_65 WHERE third = "ben barker" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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/region is RJTQ located? ### Context: CREATE TABLE table_name_91 (province_region VARCHAR, icao VARCHAR) [/INST] ### Response: SELECT province_region FROM table_name_91 WHERE icao = "rjtq" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city is RJSN located? ### Context: CREATE TABLE table_name_57 (city VARCHAR, icao VARCHAR) [/INST] ### Response: SELECT city FROM table_name_57 WHERE icao = "rjsn" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 RJCM's IATA? ### Context: CREATE TABLE table_name_76 (iata VARCHAR, icao VARCHAR) [/INST] ### Response: SELECT iata FROM table_name_76 WHERE icao = "rjcm" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country is Hokkaidō and New Chitose airport located? ### Context: CREATE TABLE table_name_55 (country VARCHAR, province_region VARCHAR, airport VARCHAR) [/INST] ### Response: SELECT country FROM table_name_55 WHERE province_region = "hokkaidō" AND airport = "new chitose 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: In what country is Hiroshima Airport located? ### Context: CREATE TABLE table_name_69 (country VARCHAR, airport VARCHAR) [/INST] ### Response: SELECT country FROM table_name_69 WHERE airport = "hiroshima 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 is the ICAO of Nakashibetsu? ### Context: CREATE TABLE table_name_89 (icao VARCHAR, city VARCHAR) [/INST] ### Response: SELECT icao FROM table_name_89 WHERE city = "nakashibetsu" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 games lost when 22 have been played, the losing BP number is 2, and the club is Merthyr RFC? ### Context: CREATE TABLE table_name_52 (lost VARCHAR, club VARCHAR, played VARCHAR, losing_bp VARCHAR) [/INST] ### Response: SELECT lost FROM table_name_52 WHERE played = "22" AND losing_bp = "2" AND club = "merthyr rfc" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 drawn when 3 have been lost? ### Context: CREATE TABLE table_name_74 (drawn VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT drawn FROM table_name_74 WHERE lost = "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 number drawn when the try BP is 1? ### Context: CREATE TABLE table_name_79 (drawn VARCHAR, try_bp VARCHAR) [/INST] ### Response: SELECT drawn FROM table_name_79 WHERE try_bp = "1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the try BP when the losing BP is 4 and the club is Bargoed RFC? ### Context: CREATE TABLE table_name_82 (try_bp VARCHAR, losing_bp VARCHAR, club VARCHAR) [/INST] ### Response: SELECT try_bp FROM table_name_82 WHERE losing_bp = "4" AND club = "bargoed rfc" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 club that has played 22 rounds, has a drawn score of 0, has lost 14, and whose losing BP is 5? ### Context: CREATE TABLE table_name_96 (club VARCHAR, losing_bp VARCHAR, lost VARCHAR, played VARCHAR, drawn VARCHAR) [/INST] ### Response: SELECT club FROM table_name_96 WHERE played = "22" AND drawn = "0" AND lost = "14" AND losing_bp = "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 average Total has a Rank of 3 and a Bronze award larger than 3? ### Context: CREATE TABLE table_name_33 (total INTEGER, rank VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_33 WHERE rank = "3" AND bronze > 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 average Total has a Gold award of 13 and a Bronze award less than 13? ### Context: CREATE TABLE table_name_84 (total INTEGER, gold VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_84 WHERE gold = 13 AND bronze < 13 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average Gold award that has a Silver award greater than 2, and a Bronze award less than 13, and a Total greater than 24? ### Context: CREATE TABLE table_name_5 (gold INTEGER, total VARCHAR, silver VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT AVG(gold) FROM table_name_5 WHERE silver > 2 AND bronze < 13 AND total > 24 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of the game where Guardado lost? ### Context: CREATE TABLE table_name_9 (record VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT record FROM table_name_9 WHERE loss = "guardado" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest attendance recorded at a game on September 28? ### Context: CREATE TABLE table_name_79 (attendance INTEGER, date VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_79 WHERE date = "september 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 gold that has a total of 2 and more than 1 bronze. ### Context: CREATE TABLE table_name_75 (gold INTEGER, total VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT AVG(gold) FROM table_name_75 WHERE total = 2 AND bronze > 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the 2006 result of the Canada Masters tournament that is A in 2009 and A in 2010? ### Context: CREATE TABLE table_name_88 (tournament VARCHAR) [/INST] ### Response: SELECT 2006 FROM table_name_88 WHERE 2010 = "a" AND 2009 = "a" AND tournament = "canada masters" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for 2006 of a tournament that is 107 in 2010? ### Context: CREATE TABLE table_name_73 (Id VARCHAR) [/INST] ### Response: SELECT 2006 FROM table_name_73 WHERE 2010 = "107" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2010 result of a tournament that is A in 2006 and A in 2011? ### Context: CREATE TABLE table_name_40 (Id VARCHAR) [/INST] ### Response: SELECT 2010 FROM table_name_40 WHERE 2011 = "a" AND 2006 = "a" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2012 result of a tournament that is 2R in 2007, 1R in 2008 and 1R in 2009? ### Context: CREATE TABLE table_name_29 (Id VARCHAR) [/INST] ### Response: SELECT 2012 FROM table_name_29 WHERE 2009 = "1r" AND 2008 = "1r" AND 2007 = "2r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2010 result of a tournament that is 1R in 2009, Q2 in 2011 and 1R in 2012? ### Context: CREATE TABLE table_name_43 (Id VARCHAR) [/INST] ### Response: SELECT 2010 FROM table_name_43 WHERE 2011 = "q2" AND 2012 = "1r" AND 2009 = "1r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What match number took place on August 3, 2007? ### Context: CREATE TABLE table_name_38 (match INTEGER, date VARCHAR) [/INST] ### Response: SELECT MAX(match) FROM table_name_38 WHERE date = "august 3, 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: What is the 2010 value of the 2013 Grand Slam Tournaments? ### Context: CREATE TABLE table_name_1 (Id VARCHAR) [/INST] ### Response: SELECT 2010 FROM table_name_1 WHERE 2013 = "grand slam tournaments" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2012 value with A in 2007 and qf in 2011? ### Context: CREATE TABLE table_name_11 (Id VARCHAR) [/INST] ### Response: SELECT 2012 FROM table_name_11 WHERE 2007 = "a" AND 2011 = "qf" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2012 value with a 1r in 2011 in the Australian Open? ### Context: CREATE TABLE table_name_6 (tournament VARCHAR) [/INST] ### Response: SELECT 2012 FROM table_name_6 WHERE 2011 = "1r" AND tournament = "australian open" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the 2013 value with a qf in 2011? ### Context: CREATE TABLE table_name_68 (Id VARCHAR) [/INST] ### Response: SELECT 2013 FROM table_name_68 WHERE 2011 = "qf" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 value at the 2012 Grand Slam Tournaments? ### Context: CREATE TABLE table_name_26 (Id VARCHAR) [/INST] ### Response: SELECT 2007 FROM table_name_26 WHERE 2012 = "grand slam tournaments" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a qf in 2011? ### Context: CREATE TABLE table_name_26 (tournament VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_26 WHERE 2011 = "qf" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score for the 2014 FIFA World Cup Qual. competition? ### Context: CREATE TABLE table_name_13 (score VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT score FROM table_name_13 WHERE competition = "2014 fifa world cup qual." </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest number of matches with less than 2 draws that had an efficiency percent of 25%? ### Context: CREATE TABLE table_name_46 (matches INTEGER, draws VARCHAR, efficiency__percentage VARCHAR) [/INST] ### Response: SELECT MAX(matches) FROM table_name_46 WHERE draws < 2 AND efficiency__percentage = "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 is the total number of Draws with less than 4 matches? ### Context: CREATE TABLE table_name_27 (draws VARCHAR, matches INTEGER) [/INST] ### Response: SELECT COUNT(draws) FROM table_name_27 WHERE matches < 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average MHz Frequency of radio rezonans? ### Context: CREATE TABLE table_name_9 (frequency_mhz INTEGER, program VARCHAR) [/INST] ### Response: SELECT AVG(frequency_mhz) FROM table_name_9 WHERE program = "radio rezonans" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a Loss of lilly (2–2)? ### Context: CREATE TABLE table_name_80 (date VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT date FROM table_name_80 WHERE loss = "lilly (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 is the loss when the time was 3:16, and a Record of 15–15? ### Context: CREATE TABLE table_name_74 (loss VARCHAR, time VARCHAR, record VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_74 WHERE time = "3:16" AND record = "15–15" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team was the opponent when the time was 2:57, and a Score of 7–5? ### Context: CREATE TABLE table_name_59 (opponent VARCHAR, time VARCHAR, score VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_59 WHERE time = "2:57" AND score = "7–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 date was the loss of ponson (4–3)? ### Context: CREATE TABLE table_name_68 (date VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT date FROM table_name_68 WHERE loss = "ponson (4–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 date was the loss of sparks (0–1)? ### Context: CREATE TABLE table_name_43 (date VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT date FROM table_name_43 WHERE loss = "sparks (0–1)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the position of the competition in Tampere, Finland? ### Context: CREATE TABLE table_name_62 (position VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT position FROM table_name_62 WHERE venue = "tampere, finland" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total that has draws less than 2 and wins less than 1, losses bigger than 1 with a goal difference of 1:2 ### Context: CREATE TABLE table_name_89 (total INTEGER, losses VARCHAR, goal_difference VARCHAR, draws VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT MIN(total) FROM table_name_89 WHERE draws < 2 AND wins < 1 AND goal_difference = "1:2" AND losses > 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average number of draws that have a total of 1 and a goal difference of 2:0? ### Context: CREATE TABLE table_name_67 (draws INTEGER, total VARCHAR, goal_difference VARCHAR) [/INST] ### Response: SELECT AVG(draws) FROM table_name_67 WHERE total = 1 AND goal_difference = "2:0" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest number of draws that have a goal difference of 0:2 and wins greater than 0? ### Context: CREATE TABLE table_name_83 (draws INTEGER, goal_difference VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT MIN(draws) FROM table_name_83 WHERE goal_difference = "0:2" AND wins > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What regular season had an average attendance of 1,242? ### Context: CREATE TABLE table_name_89 (reg_season VARCHAR, avg_attendance_† VARCHAR) [/INST] ### Response: SELECT reg_season FROM table_name_89 WHERE avg_attendance_† = "1,242" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What league has an average attendance of 244? ### Context: CREATE TABLE table_name_72 (league VARCHAR, avg_attendance_† VARCHAR) [/INST] ### Response: SELECT league FROM table_name_72 WHERE avg_attendance_† = "244" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On what date was the opponent the White Sox and the record 18-13? ### Context: CREATE TABLE table_name_90 (date VARCHAR, opponent VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_90 WHERE opponent = "white sox" AND record = "18-13" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the average attendance when the record was 19-13? ### Context: CREATE TABLE table_name_23 (attendance INTEGER, record VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_23 WHERE record = "19-13" </s>