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 totals had more than 4 bronze? ### Context: CREATE TABLE table_name_93 (total INTEGER, bronze INTEGER) [/INST] ### Response: SELECT SUM(total) FROM table_name_93 WHERE bronze > 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 was Austria's lowest total when the gold was more than 3? ### Context: CREATE TABLE table_name_84 (total INTEGER, nation VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT MIN(total) FROM table_name_84 WHERE nation = "austria" AND gold > 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 are the years won when the to par is +5? ### Context: CREATE TABLE table_name_76 (year_s__won VARCHAR, to_par VARCHAR) [/INST] ### Response: SELECT year_s__won FROM table_name_76 WHERE to_par = "+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 average total for Tiger Woods? ### Context: CREATE TABLE table_name_26 (total INTEGER, player VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_26 WHERE player = "tiger woods" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which country had a total of 295? ### Context: CREATE TABLE table_name_46 (country VARCHAR, total VARCHAR) [/INST] ### Response: SELECT country FROM table_name_46 WHERE total = 295 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 finish when the to par is +18? ### Context: CREATE TABLE table_name_18 (finish VARCHAR, to_par VARCHAR) [/INST] ### Response: SELECT finish FROM table_name_18 WHERE to_par = "+18" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many total No Results occured when the team had less than 46 wins and more than 16 matches? ### Context: CREATE TABLE table_name_63 (no_result INTEGER, matches VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT SUM(no_result) FROM table_name_63 WHERE matches > 16 AND wins < 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: When the team had more than 46 wins, what were the average losses? ### Context: CREATE TABLE table_name_13 (losses INTEGER, wins INTEGER) [/INST] ### Response: SELECT AVG(losses) FROM table_name_13 WHERE wins > 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: How many total No Results are recorded for less than 6 wins? ### Context: CREATE TABLE table_name_21 (no_result VARCHAR, wins INTEGER) [/INST] ### Response: SELECT COUNT(no_result) FROM table_name_21 WHERE 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: What Interview subject was on a Date that is 11-92? ### Context: CREATE TABLE table_name_42 (interview_subject VARCHAR, date VARCHAR) [/INST] ### Response: SELECT interview_subject FROM table_name_42 WHERE date = "11-92" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest game number with Aris Thessaloniki with points smaller than 120? ### Context: CREATE TABLE table_name_70 (games INTEGER, team VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MIN(games) FROM table_name_70 WHERE team = "aris thessaloniki" AND points < 120 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game average that has a rank larger than 2 with team Olympiacos and points larger than 113? ### Context: CREATE TABLE table_name_76 (games INTEGER, points VARCHAR, rank VARCHAR, team VARCHAR) [/INST] ### Response: SELECT AVG(games) FROM table_name_76 WHERE rank > 2 AND team = "olympiacos" AND points > 113 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which result was there when the opponents were the Buffalo Bills? ### Context: CREATE TABLE table_name_14 (result VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT result FROM table_name_14 WHERE opponent = "buffalo bills" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the Purse ($) total for Iowa? ### Context: CREATE TABLE table_name_88 (purse__ VARCHAR, location VARCHAR) [/INST] ### Response: SELECT COUNT(purse__) AS $__ FROM table_name_88 WHERE location = "iowa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the Score of 195 (-21) happen? ### Context: CREATE TABLE table_name_4 (date VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_4 WHERE score = "195 (-21)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did Scott Hoch (2) win? ### Context: CREATE TABLE table_name_78 (date VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT date FROM table_name_78 WHERE winner = "scott hoch (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 team placed second during the season where Western Australia placed fifth, South Australia placed sixth, and Tasmania placed fourth? ### Context: CREATE TABLE table_name_2 (second VARCHAR, fourth VARCHAR, fifth VARCHAR, sixth VARCHAR) [/INST] ### Response: SELECT second FROM table_name_2 WHERE fifth = "western australia" AND sixth = "south australia" AND fourth = "tasmania" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 placed sixth during the season where Western Australia placed fourth and Tasmania placed first? ### Context: CREATE TABLE table_name_91 (sixth VARCHAR, fourth VARCHAR, first VARCHAR) [/INST] ### Response: SELECT sixth FROM table_name_91 WHERE fourth = "western australia" AND first = "tasmania" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 placed sixth during the season where Tasmania placed second and Western Australia placed fourth? ### Context: CREATE TABLE table_name_70 (sixth VARCHAR, second VARCHAR, fourth VARCHAR) [/INST] ### Response: SELECT sixth FROM table_name_70 WHERE second = "tasmania" AND fourth = "western australia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 placed fifth during the season where Victoria placed second, Tasmania placed first, and South Australia placed sixth? ### Context: CREATE TABLE table_name_96 (fifth VARCHAR, sixth VARCHAR, second VARCHAR, first VARCHAR) [/INST] ### Response: SELECT fifth FROM table_name_96 WHERE second = "victoria" AND first = "tasmania" AND sixth = "south australia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the smallest number of losses for a position greater than 2 with 4 points and more than 2 draws? ### Context: CREATE TABLE table_name_4 (lost INTEGER, drawn VARCHAR, position VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MIN(lost) FROM table_name_4 WHERE position > 2 AND points = 4 AND drawn > 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 points occurred with a difference of 2 for position less than 4? ### Context: CREATE TABLE table_name_90 (points VARCHAR, difference VARCHAR, position VARCHAR) [/INST] ### Response: SELECT COUNT(points) FROM table_name_90 WHERE difference = "2" AND position < 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 number of points for a position less than 3 and less than 1 loss? ### Context: CREATE TABLE table_name_19 (points INTEGER, position VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT MAX(points) FROM table_name_19 WHERE position < 3 AND lost < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When Estudiantes was team #2, what was their agg. value? ### Context: CREATE TABLE table_name_28 (agg VARCHAR, team__number2 VARCHAR) [/INST] ### Response: SELECT agg FROM table_name_28 WHERE team__number2 = "estudiantes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played against TSV bayer 04 leverkusen when they were team #1? ### Context: CREATE TABLE table_name_9 (team__number1 VARCHAR) [/INST] ### Response: SELECT 2 AS nd_leg FROM table_name_9 WHERE team__number1 = "tsv bayer 04 leverkusen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played against Hapoel tel aviv when they were team #1? ### Context: CREATE TABLE table_name_89 (team__number2 VARCHAR, team__number1 VARCHAR) [/INST] ### Response: SELECT team__number2 FROM table_name_89 WHERE team__number1 = "hapoel tel aviv" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 BAFA adult flag division in Aylesbury? ### Context: CREATE TABLE table_name_95 (location VARCHAR) [/INST] ### Response: SELECT 2013 AS _bafa_adult_flag_division FROM table_name_95 WHERE location = "aylesbury" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Records from Kontor Records from the catalog of Kontor446 was released in what format? ### Context: CREATE TABLE table_name_63 (format VARCHAR, label VARCHAR, catalog VARCHAR) [/INST] ### Response: SELECT format FROM table_name_63 WHERE label = "kontor records" AND catalog = "kontor446" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 release that was Wrongun as the label? ### Context: CREATE TABLE table_name_66 (date VARCHAR, label VARCHAR) [/INST] ### Response: SELECT date FROM table_name_66 WHERE label = "wrongun" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Catalog Nebdj068 was released when? ### Context: CREATE TABLE table_name_26 (date VARCHAR, catalog VARCHAR) [/INST] ### Response: SELECT date FROM table_name_26 WHERE catalog = "nebdj068" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 format was the release from the Nebt068 catalog on April 11, 2005 in? ### Context: CREATE TABLE table_name_62 (format VARCHAR, date VARCHAR, catalog VARCHAR) [/INST] ### Response: SELECT format FROM table_name_62 WHERE date = "april 11, 2005" AND catalog = "nebt068" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What region has the date of 2005 and Playground Music Scandinavia as a label? ### Context: CREATE TABLE table_name_16 (region VARCHAR, date VARCHAR, label VARCHAR) [/INST] ### Response: SELECT region FROM table_name_16 WHERE date = "2005" AND label = "playground music scandinavia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a Venue that is filbert street? ### Context: CREATE TABLE table_name_16 (result VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT result FROM table_name_16 WHERE venue = "filbert street" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the Texans play BYE? ### Context: CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_8 WHERE opponent = "bye" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who did the Texans play when there were 70,724 people in attendance? ### Context: CREATE TABLE table_name_11 (opponent VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_11 WHERE attendance = "70,724" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 status of jr synonym of protosialis casca? ### Context: CREATE TABLE table_name_75 (novelty VARCHAR, status VARCHAR) [/INST] ### Response: SELECT novelty FROM table_name_75 WHERE status = "jr synonym of protosialis casca" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 writer is named mongolbittacus? ### Context: CREATE TABLE table_name_62 (authors VARCHAR, name VARCHAR) [/INST] ### Response: SELECT authors FROM table_name_62 WHERE name = "mongolbittacus" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game that had 359 people in attendance? ### Context: CREATE TABLE table_name_59 (score VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT score FROM table_name_59 WHERE attendance = "359" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the home team of the game that ended with a score of 0-1? ### Context: CREATE TABLE table_name_95 (home_team VARCHAR, score VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_95 WHERE score = "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: How many people attended Match No. 31? ### Context: CREATE TABLE table_name_51 (attendance VARCHAR, match_no VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_51 WHERE match_no = "31" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the Home Team for Match No. 23? ### Context: CREATE TABLE table_name_42 (home_team VARCHAR, match_no VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_42 WHERE match_no = "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 score of the game with 1,125 people in attendance? ### Context: CREATE TABLE table_name_37 (score VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT score FROM table_name_37 WHERE attendance = "1,125" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Country with a Launched that is april 3, 1990? ### Context: CREATE TABLE table_name_70 (country VARCHAR, launched VARCHAR) [/INST] ### Response: SELECT country FROM table_name_70 WHERE launched = "april 3, 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 is the Launched from a Country that is spain? ### Context: CREATE TABLE table_name_45 (launched VARCHAR, country VARCHAR) [/INST] ### Response: SELECT launched FROM table_name_45 WHERE country = "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 is the lowest order with a Minister that is joe hockey? ### Context: CREATE TABLE table_name_66 (order INTEGER, minister VARCHAR) [/INST] ### Response: SELECT MIN(order) FROM table_name_66 WHERE minister = "joe hockey" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Years in Orlando has a Nationality of united states, and a Player of doug overton? ### Context: CREATE TABLE table_name_43 (years_in_orlando VARCHAR, nationality VARCHAR, player VARCHAR) [/INST] ### Response: SELECT years_in_orlando FROM table_name_43 WHERE nationality = "united states" AND player = "doug overton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Years in Orlando has a Nationality of united states, a Position of center, and a Player of jawann oldham? ### Context: CREATE TABLE table_name_10 (years_in_orlando VARCHAR, player VARCHAR, nationality VARCHAR, position VARCHAR) [/INST] ### Response: SELECT years_in_orlando FROM table_name_10 WHERE nationality = "united states" AND position = "center" AND player = "jawann oldham" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Years in Orlando has a Player of bo outlaw? ### Context: CREATE TABLE table_name_54 (years_in_orlando VARCHAR, player VARCHAR) [/INST] ### Response: SELECT years_in_orlando FROM table_name_54 WHERE player = "bo outlaw" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Years in Orlando has a School/Club Team of seattle? ### Context: CREATE TABLE table_name_16 (years_in_orlando VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT years_in_orlando FROM table_name_16 WHERE school_club_team = "seattle" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Nationality has a Position of center, and a Years in Orlando of 2010–2012? ### Context: CREATE TABLE table_name_63 (nationality VARCHAR, position VARCHAR, years_in_orlando VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_63 WHERE position = "center" AND years_in_orlando = "2010–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: Which Nationality has a School/Club Team of seattle? ### Context: CREATE TABLE table_name_40 (nationality VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_40 WHERE school_club_team = "seattle" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did they play at Candlestick Park? ### Context: CREATE TABLE table_name_25 (date VARCHAR, game_site VARCHAR) [/INST] ### Response: SELECT date FROM table_name_25 WHERE game_site = "candlestick park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 top-10s for events under 57 and 0 top-5s? ### Context: CREATE TABLE table_name_6 (top_10 INTEGER, events VARCHAR, top_5 VARCHAR) [/INST] ### Response: SELECT AVG(top_10) FROM table_name_6 WHERE events < 57 AND top_5 < 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 average number of top-10s for events with more than 12 cuts made and 0 wins? ### Context: CREATE TABLE table_name_56 (top_10 INTEGER, cuts_made VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT AVG(top_10) FROM table_name_56 WHERE cuts_made > 12 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 is the average number of top-25s for events with less than 2 top-10s? ### Context: CREATE TABLE table_name_93 (top_25 INTEGER, top_10 INTEGER) [/INST] ### Response: SELECT AVG(top_25) FROM table_name_93 WHERE top_10 < 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 Works number has a Builder of canadian engine & machinery company, and a Number smaller than 3? ### Context: CREATE TABLE table_name_20 (works_number VARCHAR, builder VARCHAR, number VARCHAR) [/INST] ### Response: SELECT works_number FROM table_name_20 WHERE builder = "canadian engine & machinery company" AND number < 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: Which Works number has a Builder of avonside engine company, and a Type of 4-6-0, and a Number smaller than 12, and a Date of december 1871? ### Context: CREATE TABLE table_name_76 (works_number VARCHAR, date VARCHAR, number VARCHAR, builder VARCHAR, type VARCHAR) [/INST] ### Response: SELECT works_number FROM table_name_76 WHERE builder = "avonside engine company" AND type = "4-6-0" AND number < 12 AND date = "december 1871" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Type has a Builder of avonside engine company, and a Number of 9? ### Context: CREATE TABLE table_name_55 (type VARCHAR, builder VARCHAR, number VARCHAR) [/INST] ### Response: SELECT type FROM table_name_55 WHERE builder = "avonside engine company" AND number = 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: Which Date has a Type of 4-6-0, and a Number larger than 11? ### Context: CREATE TABLE table_name_22 (date VARCHAR, type VARCHAR, number VARCHAR) [/INST] ### Response: SELECT date FROM table_name_22 WHERE type = "4-6-0" AND number > 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 Builder has a Date of early 1871? ### Context: CREATE TABLE table_name_39 (builder VARCHAR, date VARCHAR) [/INST] ### Response: SELECT builder FROM table_name_39 WHERE date = "early 1871" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What ist he Home with a Score that is 42-64? ### Context: CREATE TABLE table_name_69 (home VARCHAR, score VARCHAR) [/INST] ### Response: SELECT home FROM table_name_69 WHERE score = "42-64" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Home with a Time that is 12:00? ### Context: CREATE TABLE table_name_34 (home VARCHAR, time VARCHAR) [/INST] ### Response: SELECT home FROM table_name_34 WHERE time = "12:00" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Ground with a Score that is 49-80? ### Context: CREATE TABLE table_name_61 (ground VARCHAR, score VARCHAR) [/INST] ### Response: SELECT ground FROM table_name_61 WHERE score = "49-80" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the smallest March when the record is 22-12-6? ### Context: CREATE TABLE table_name_7 (march INTEGER, record VARCHAR) [/INST] ### Response: SELECT MIN(march) FROM table_name_7 WHERE record = "22-12-6" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which record's march was 26? ### Context: CREATE TABLE table_name_77 (record VARCHAR, march VARCHAR) [/INST] ### Response: SELECT record FROM table_name_77 WHERE march = 26 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Lost with a Losing Bonus that is 4? ### Context: CREATE TABLE table_name_30 (lost VARCHAR, losing_bonus VARCHAR) [/INST] ### Response: SELECT lost FROM table_name_30 WHERE losing_bonus = "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 Points with a Tries For that is 21? ### Context: CREATE TABLE table_name_13 (points VARCHAR, tries_for VARCHAR) [/INST] ### Response: SELECT points FROM table_name_13 WHERE tries_for = "21" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lost with a Try Bonus that is try bonus? ### Context: CREATE TABLE table_name_77 (lost VARCHAR, try_bonus VARCHAR) [/INST] ### Response: SELECT lost FROM table_name_77 WHERE try_bonus = "try bonus" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Total for the rank 12, and gold less than 0? ### Context: CREATE TABLE table_name_53 (total INTEGER, rank VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT MAX(total) FROM table_name_53 WHERE rank = "12" AND gold < 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 total number of Total when the Silver is less than 2, and a Bronze is less than 0? ### Context: CREATE TABLE table_name_70 (total VARCHAR, silver VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT COUNT(total) FROM table_name_70 WHERE silver < 2 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: What is the nickname of the team that has the colors blue and gold? ### Context: CREATE TABLE table_name_42 (nickname VARCHAR, colors VARCHAR) [/INST] ### Response: SELECT nickname FROM table_name_42 WHERE colors = "blue and gold" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nickname of the team that has the colors black and gold? ### Context: CREATE TABLE table_name_27 (nickname VARCHAR, colors VARCHAR) [/INST] ### Response: SELECT nickname FROM table_name_27 WHERE colors = "black and gold" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nickname of the team in division 2? ### Context: CREATE TABLE table_name_34 (nickname VARCHAR, division VARCHAR) [/INST] ### Response: SELECT nickname FROM table_name_34 WHERE division = "division 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 class of the Middletown High School team that is in the DSHA league? ### Context: CREATE TABLE table_name_98 (class VARCHAR, league VARCHAR, school VARCHAR) [/INST] ### Response: SELECT class FROM table_name_98 WHERE league = "dsha" AND school = "middletown high school" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What school is the team from that has the colors blue and gold? ### Context: CREATE TABLE table_name_29 (school VARCHAR, colors VARCHAR) [/INST] ### Response: SELECT school FROM table_name_29 WHERE colors = "blue and gold" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 colors for the division 2 team with the nickname, the seahawks? ### Context: CREATE TABLE table_name_74 (colors VARCHAR, division VARCHAR, nickname VARCHAR) [/INST] ### Response: SELECT colors FROM table_name_74 WHERE division = "division 2" AND nickname = "seahawks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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's the Centerfold model with a Pictorials of adrianne curry, girls of tuscany? ### Context: CREATE TABLE table_name_47 (centerfold_model VARCHAR, pictorials VARCHAR) [/INST] ### Response: SELECT centerfold_model FROM table_name_47 WHERE pictorials = "adrianne curry, girls of tuscany" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Interview subject has a Pictorials of vida guerra? ### Context: CREATE TABLE table_name_30 (interview_subject VARCHAR, pictorials VARCHAR) [/INST] ### Response: SELECT interview_subject FROM table_name_30 WHERE pictorials = "vida guerra" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Pictorials of mercedes mcnab, girls of hawaiian tropic? ### Context: CREATE TABLE table_name_67 (date VARCHAR, pictorials VARCHAR) [/INST] ### Response: SELECT date FROM table_name_67 WHERE pictorials = "mercedes mcnab, girls of hawaiian tropic" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Interview subject has a Centerfold model of athena lundberg? ### Context: CREATE TABLE table_name_60 (interview_subject VARCHAR, centerfold_model VARCHAR) [/INST] ### Response: SELECT interview_subject FROM table_name_60 WHERE centerfold_model = "athena lundberg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 votes from the Labour Party? ### Context: CREATE TABLE table_name_23 (votes VARCHAR, party VARCHAR) [/INST] ### Response: SELECT COUNT(votes) FROM table_name_23 WHERE party = "labour" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 party has less than 11,484 votes? ### Context: CREATE TABLE table_name_81 (party VARCHAR, votes INTEGER) [/INST] ### Response: SELECT party FROM table_name_81 WHERE votes < 11 OFFSET 484 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 numbers had Brandon Dean as a name? ### Context: CREATE TABLE table_name_24 (number INTEGER, name VARCHAR) [/INST] ### Response: SELECT SUM(number) FROM table_name_24 WHERE name = "brandon dean" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 singular for the Meaning of night? ### Context: CREATE TABLE table_name_28 (singular VARCHAR, meaning VARCHAR) [/INST] ### Response: SELECT singular FROM table_name_28 WHERE meaning = "night" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 plural for the Meaning of night? ### Context: CREATE TABLE table_name_85 (plural VARCHAR, meaning VARCHAR) [/INST] ### Response: SELECT plural FROM table_name_85 WHERE meaning = "night" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 plural if the singular is nyaqot? ### Context: CREATE TABLE table_name_47 (plural VARCHAR, singular VARCHAR) [/INST] ### Response: SELECT plural FROM table_name_47 WHERE singular = "nyaqot" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 plural if the meaning is python and the plural gender is n? ### Context: CREATE TABLE table_name_92 (plural VARCHAR, plural_gender VARCHAR, meaning VARCHAR) [/INST] ### Response: SELECT plural FROM table_name_92 WHERE plural_gender = "n" AND meaning = "python" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 plural if the singular is awu? ### Context: CREATE TABLE table_name_60 (plural VARCHAR, singular VARCHAR) [/INST] ### Response: SELECT plural FROM table_name_60 WHERE singular = "awu" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 singular if the plural is xweer(a)du? ### Context: CREATE TABLE table_name_19 (singular VARCHAR, plural VARCHAR) [/INST] ### Response: SELECT singular FROM table_name_19 WHERE plural = "xweer(a)du" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 againsts for the Sant'Anna team with a position number greater than 10? ### Context: CREATE TABLE table_name_94 (against VARCHAR, team VARCHAR, position VARCHAR) [/INST] ### Response: SELECT COUNT(against) FROM table_name_94 WHERE team = "sant'anna" AND position > 10 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of games played with 3 losses, 1 or more drawns and 10 or fewer points? ### Context: CREATE TABLE table_name_68 (played INTEGER, points VARCHAR, lost VARCHAR, drawn VARCHAR) [/INST] ### Response: SELECT SUM(played) FROM table_name_68 WHERE lost = 3 AND drawn > 1 AND points < 10 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average lost of games played of more than 9? ### Context: CREATE TABLE table_name_16 (lost INTEGER, played INTEGER) [/INST] ### Response: SELECT AVG(lost) FROM table_name_16 WHERE played > 9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest number of bronze medals for Great Britain with more than 2 medals total? ### Context: CREATE TABLE table_name_71 (bronze INTEGER, nation VARCHAR, total VARCHAR) [/INST] ### Response: SELECT MIN(bronze) FROM table_name_71 WHERE nation = "great britain" 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: What is the lowest wins the club with a position of 4 and less than 4 losses has? ### Context: CREATE TABLE table_name_67 (wins INTEGER, position VARCHAR, loses VARCHAR) [/INST] ### Response: SELECT MIN(wins) FROM table_name_67 WHERE position = 4 AND loses < 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 sum of the points of club nevėžis-2 kėdainiai, which has more than 35 goals conceded? ### Context: CREATE TABLE table_name_39 (points INTEGER, club VARCHAR, goals_conceded VARCHAR) [/INST] ### Response: SELECT SUM(points) FROM table_name_39 WHERE club = "nevėžis-2 kėdainiai" AND goals_conceded > 35 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played of the team with 4 wins and a position less than 9? ### Context: CREATE TABLE table_name_6 (games_played VARCHAR, wins VARCHAR, position VARCHAR) [/INST] ### Response: SELECT COUNT(games_played) FROM table_name_6 WHERE wins = 4 AND position < 9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest number of wins of the team with a position less than 1? ### Context: CREATE TABLE table_name_8 (wins INTEGER, position INTEGER) [/INST] ### Response: SELECT MAX(wins) FROM table_name_8 WHERE position < 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 total losses against 1412, and 10 wins, but draws less than 0? ### Context: CREATE TABLE table_name_56 (losses INTEGER, draws VARCHAR, against VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT SUM(losses) FROM table_name_56 WHERE against > 1412 AND wins = 10 AND draws < 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 highest draw against 2161? ### Context: CREATE TABLE table_name_98 (draws INTEGER, against INTEGER) [/INST] ### Response: SELECT MAX(draws) FROM table_name_98 WHERE against > 2161 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 losses against 1412, and Byes less than 2? ### Context: CREATE TABLE table_name_4 (losses VARCHAR, against VARCHAR, byes VARCHAR) [/INST] ### Response: SELECT COUNT(losses) FROM table_name_4 WHERE against = 1412 AND byes < 2 </s>