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:
Who scored more than 8 goals, had more than 75 caps, and averaged 0.432?
### Context:
CREATE TABLE table_name_42 (player VARCHAR, average VARCHAR, goals VARCHAR, caps VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_42 WHERE goals > 8 AND caps > 75 AND average = 0.432 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 averages when there are 68 caps and less than 9 goals?
### Context:
CREATE TABLE table_name_16 (average INTEGER, caps VARCHAR, goals VARCHAR) [/INST]
### Response:
SELECT SUM(average) FROM table_name_16 WHERE caps = 68 AND goals < 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:
Tell me the 1968 for 1r
### Context:
CREATE TABLE table_name_76 (Id VARCHAR) [/INST]
### Response:
SELECT 1968 FROM table_name_76 WHERE 1967 = "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:
Tell me the round of 32 for conference of southland
### Context:
CREATE TABLE table_name_62 (round_of_32 VARCHAR, conference VARCHAR) [/INST]
### Response:
SELECT round_of_32 FROM table_name_62 WHERE conference = "southland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the lowest # of bids for win percent of .667
### Context:
CREATE TABLE table_name_38 (_number_of_bids INTEGER, win__percentage VARCHAR) [/INST]
### Response:
SELECT MIN(_number_of_bids) FROM table_name_38 WHERE win__percentage = ".667" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the sum of cap/hor for double chair and vertical less than 479
### Context:
CREATE TABLE table_name_8 (cap_hour INTEGER, type VARCHAR, vertical VARCHAR) [/INST]
### Response:
SELECT SUM(cap_hour) FROM table_name_8 WHERE type = "double chair" AND vertical < 479 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 compression ratio when the vin code is c?
### Context:
CREATE TABLE table_name_38 (vin_code VARCHAR) [/INST]
### Response:
SELECT "c" AS ompression_ratio FROM table_name_38 WHERE vin_code = "c" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the sum of year for extra of junior team competition
### Context:
CREATE TABLE table_name_31 (year INTEGER, extra VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_31 WHERE extra = "junior team competition" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the lens zoom for aperture of model s2600
### Context:
CREATE TABLE table_name_39 (lens_35mmequiv__zoom VARCHAR, _aperture VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT lens_35mmequiv__zoom, _aperture FROM table_name_39 WHERE model = "s2600" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the screen size for pixels of model s6400
### Context:
CREATE TABLE table_name_69 (screen_size VARCHAR, pixels VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT screen_size, pixels FROM table_name_69 WHERE model = "s6400" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sensor res for model of s9200
### Context:
CREATE TABLE table_name_74 (sensor_res VARCHAR, _size VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT sensor_res, _size FROM table_name_74 WHERE model = "s9200" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the nation for bronze more than 0 and total more than 8 with gold of 4
### Context:
CREATE TABLE table_name_62 (nation VARCHAR, gold VARCHAR, bronze VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT nation FROM table_name_62 WHERE bronze > 0 AND total > 8 AND gold = 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:
Who is Team Suzuki's rider and ranks higher than 6?
### Context:
CREATE TABLE table_name_44 (rider VARCHAR, rank VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT rider FROM table_name_44 WHERE rank > 6 AND team = "suzuki" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lowest division in the 7th season?
### Context:
CREATE TABLE table_name_11 (division INTEGER, reg_season VARCHAR) [/INST]
### Response:
SELECT MIN(division) FROM table_name_11 WHERE reg_season = "7th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1924/25, who was in the playoffs?
### Context:
CREATE TABLE table_name_27 (playoffs VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT playoffs FROM table_name_27 WHERE year = "1924/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:
Which division has no playoff but has a 12th game in their season?
### Context:
CREATE TABLE table_name_74 (division INTEGER, playoffs VARCHAR, reg_season VARCHAR) [/INST]
### Response:
SELECT MAX(division) FROM table_name_74 WHERE playoffs = "no playoff" AND reg_season = "12th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the competition that held the 1st position in 2011?
### Context:
CREATE TABLE table_name_68 (venue VARCHAR, position VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_68 WHERE position = "1st" AND year = 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 position of the Olympic Games in the year 2008?
### Context:
CREATE TABLE table_name_68 (position VARCHAR, competition VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_68 WHERE competition = "olympic games" AND year = 2008 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which competition held the 1st position in 2009?
### Context:
CREATE TABLE table_name_89 (competition VARCHAR, position VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_89 WHERE position = "1st" AND year = 2009 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which venue did the African Championships have after 2006 with a position of 2nd and 3000 m s'chase in notes?
### Context:
CREATE TABLE table_name_28 (venue VARCHAR, competition VARCHAR, position VARCHAR, year VARCHAR, notes VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_28 WHERE year > 2006 AND notes = "3000 m s'chase" AND position = "2nd" AND competition = "african championships" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the label for US region and catalog of 10008-2
### Context:
CREATE TABLE table_name_2 (label VARCHAR, region VARCHAR, catalog VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_2 WHERE region = "us" AND catalog = "10008-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:
Tell me the date for format of cd/dvd
### Context:
CREATE TABLE table_name_88 (date VARCHAR, format VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_88 WHERE format = "cd/dvd" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the format for european union
### Context:
CREATE TABLE table_name_99 (format VARCHAR, region VARCHAR) [/INST]
### Response:
SELECT format FROM table_name_99 WHERE region = "european union" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the catalog for date larger than 2004
### Context:
CREATE TABLE table_name_72 (catalog VARCHAR, date INTEGER) [/INST]
### Response:
SELECT catalog FROM table_name_72 WHERE date > 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:
I want the lowest date for catalog of 6561910008-1
### Context:
CREATE TABLE table_name_87 (date INTEGER, catalog VARCHAR) [/INST]
### Response:
SELECT MIN(date) FROM table_name_87 WHERE catalog = "6561910008-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 date was there a crowd larger than 30,343?
### Context:
CREATE TABLE table_name_97 (date VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT date FROM table_name_97 WHERE crowd > 30 OFFSET 343 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Crowd total from a game in which Essendon was the Away team?
### Context:
CREATE TABLE table_name_35 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_35 WHERE away_team = "essendon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Venue was used when the Home team was geelong?
### Context:
CREATE TABLE table_name_47 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_47 WHERE home_team = "geelong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 scored in the 2010 east asian football championship?
### Context:
CREATE TABLE table_name_66 (scored INTEGER, competition VARCHAR) [/INST]
### Response:
SELECT MAX(scored) FROM table_name_66 WHERE competition = "2010 east asian football championship" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which country is Wellington located in?
### Context:
CREATE TABLE table_name_48 (country VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_48 WHERE city = "wellington" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What label is in download format in the United States?
### Context:
CREATE TABLE table_name_42 (label VARCHAR, region VARCHAR, format VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_42 WHERE region = "united states" AND format = "download" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What label is in download format in the United States?
### Context:
CREATE TABLE table_name_88 (label VARCHAR, region VARCHAR, format VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_88 WHERE region = "united states" AND format = "download" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What label has RTRADLP 346 as catalogue?
### Context:
CREATE TABLE table_name_90 (label VARCHAR, catalogue VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_90 WHERE catalogue = "rtradlp 346" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What label has 22 January 2008 date?
### Context:
CREATE TABLE table_name_8 (label VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_8 WHERE date = "22 january 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 label for catalogue of RT-346-5?
### Context:
CREATE TABLE table_name_93 (label VARCHAR, catalogue VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_93 WHERE catalogue = "rt-346-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 position is mentioned for Rice school?
### Context:
CREATE TABLE table_name_34 (position VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_34 WHERE school_club_team = "rice" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round for Wisconsin when the overall is larger than 238 and there is a defensive end?
### Context:
CREATE TABLE table_name_87 (round INTEGER, school_club_team VARCHAR, overall VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_87 WHERE overall > 238 AND position = "defensive end" AND school_club_team = "wisconsin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round when there is a defensive back and an overall smaller than 199?
### Context:
CREATE TABLE table_name_49 (round INTEGER, position VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_49 WHERE position = "defensive back" AND overall < 199 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date of game with a score of 42-6?
### Context:
CREATE TABLE table_name_23 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_23 WHERE score = "42-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 stadium was the game played at when the result was hunter mariners def. sheffield eagles?
### Context:
CREATE TABLE table_name_43 (stadium VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT stadium FROM table_name_43 WHERE result = "hunter mariners def. sheffield eagles" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What city has a Result of brisbane broncos def. halifax blue sox?
### Context:
CREATE TABLE table_name_22 (city VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_22 WHERE result = "brisbane broncos def. halifax blue sox" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player was drafted after round 9 and number 464 overall?
### Context:
CREATE TABLE table_name_83 (player VARCHAR, round VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_83 WHERE round > 9 AND overall = 464 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 James Reed's draft round number?
### Context:
CREATE TABLE table_name_90 (round VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_90 WHERE player = "james reed" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall draft number of Tom Fleming, a wide receiver?
### Context:
CREATE TABLE table_name_28 (overall VARCHAR, position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(overall) FROM table_name_28 WHERE position = "wide receiver" AND player = "tom fleming" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player is from Dartmouth?
### Context:
CREATE TABLE table_name_41 (player VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_41 WHERE school_club_team = "dartmouth" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position does the player from tulsa play?
### Context:
CREATE TABLE table_name_17 (position VARCHAR, school_country VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_17 WHERE school_country = "tulsa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of Magnitude on february 12, 1953?
### Context:
CREATE TABLE table_name_44 (magnitude INTEGER, date VARCHAR) [/INST]
### Response:
SELECT SUM(magnitude) FROM table_name_44 WHERE date = "february 12, 1953" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the final score of a baseball game that happened before 2005?
### Context:
CREATE TABLE table_name_41 (final_score VARCHAR, sport VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT final_score FROM table_name_41 WHERE sport = "baseball" AND year < 2005 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What venue did Richmond play as the away team?
### Context:
CREATE TABLE table_name_29 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_29 WHERE away_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the team of Essendon's score in the game where they were the home team?
### Context:
CREATE TABLE table_name_92 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_92 WHERE home_team = "essendon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away side when st kilda is the home side?
### Context:
CREATE TABLE table_name_59 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_59 WHERE home_team = "st kilda" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away side score when footscray is the home side?
### Context:
CREATE TABLE table_name_38 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_38 WHERE home_team = "footscray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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's score at kardinia park?
### Context:
CREATE TABLE table_name_85 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_85 WHERE venue = "kardinia 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 was the lowest crowd seen at a game that Richmond was the Away team in?
### Context:
CREATE TABLE table_name_57 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_57 WHERE away_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 highest crowd count seen in the Windy Hill venue?
### Context:
CREATE TABLE table_name_48 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_48 WHERE venue = "windy hill" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Away team that played against the Home team of Fitzroy?
### Context:
CREATE TABLE table_name_10 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_10 WHERE home_team = "fitzroy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was the lowest overall that Wisconsin's team managed?
### Context:
CREATE TABLE table_name_78 (overall INTEGER, school_club_team VARCHAR) [/INST]
### Response:
SELECT MIN(overall) FROM table_name_78 WHERE school_club_team = "wisconsin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which team was Roy de Walt a player on?
### Context:
CREATE TABLE table_name_20 (school_club_team VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_name_20 WHERE player = "roy de walt" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 which round did Paul McDonald have an overall greater than 109?
### Context:
CREATE TABLE table_name_22 (round INTEGER, player VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_22 WHERE player = "paul mcdonald" AND overall > 109 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in round 1, in which Charles White was a player?
### Context:
CREATE TABLE table_name_2 (overall INTEGER, player VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT SUM(overall) FROM table_name_2 WHERE player = "charles white" AND round < 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 name of a running back in a round before round 3?
### Context:
CREATE TABLE table_name_4 (player VARCHAR, round VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_4 WHERE round < 3 AND position = "running back" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 win/loss percentage with wins of 63 and losses smaller than 76?
### Context:
CREATE TABLE table_name_77 (w_l__percentage VARCHAR, wins VARCHAR, losses VARCHAR) [/INST]
### Response:
SELECT w_l__percentage FROM table_name_77 WHERE wins = 63 AND losses < 76 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team score when the home team is Geelong?
### Context:
CREATE TABLE table_name_25 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_25 WHERE home_team = "geelong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 highest order amount in weeks prier to 15 and a major less than 1?
### Context:
CREATE TABLE table_name_55 (order INTEGER, weeks VARCHAR, majors VARCHAR) [/INST]
### Response:
SELECT MAX(order) FROM table_name_55 WHERE weeks < 15 AND majors < 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 player from Temple?
### Context:
CREATE TABLE table_name_7 (position VARCHAR, school_country VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_7 WHERE school_country = "temple" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player is associated with Temple?
### Context:
CREATE TABLE table_name_22 (player VARCHAR, school_country VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_22 WHERE school_country = "temple" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is associated with Temple?
### Context:
CREATE TABLE table_name_72 (nationality VARCHAR, school_country VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_72 WHERE school_country = "temple" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goals were achieved when Chievo was the club and the debut year was before 2002?
### Context:
CREATE TABLE table_name_71 (goals VARCHAR, current_club VARCHAR, debut_year VARCHAR) [/INST]
### Response:
SELECT COUNT(goals) FROM table_name_71 WHERE current_club = "chievo" AND debut_year < 2002 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goals occurred with Diego Milito in a debut year later than 2008?
### Context:
CREATE TABLE table_name_40 (goals VARCHAR, name VARCHAR, debut_year VARCHAR) [/INST]
### Response:
SELECT COUNT(goals) FROM table_name_40 WHERE name = "diego milito" AND debut_year > 2008 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 at the Punt Road Oval?
### Context:
CREATE TABLE table_name_99 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_99 WHERE venue = "punt road oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team at Windy Hill?
### Context:
CREATE TABLE table_name_69 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_69 WHERE venue = "windy hill" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the game that had a crowd larger than 25,000?
### Context:
CREATE TABLE table_name_3 (date VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT date FROM table_name_3 WHERE crowd > 25 OFFSET 000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 South Melbourne's score as the home team?
### Context:
CREATE TABLE table_name_19 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_19 WHERE home_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 largest crowd of a game where Collingwood was the away team?
### Context:
CREATE TABLE table_name_52 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_52 WHERE away_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round with the opponent John Howard that had a method of Decision (unanimous)?
### Context:
CREATE TABLE table_name_21 (round INTEGER, method VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_21 WHERE method = "decision (unanimous)" AND opponent = "john howard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time for the match with a record of 2-0?
### Context:
CREATE TABLE table_name_74 (time VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_74 WHERE record = "2-0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was the match with a method of submission (standing guillotine choke)?
### Context:
CREATE TABLE table_name_92 (location VARCHAR, method VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_92 WHERE method = "submission (standing guillotine choke)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What language is the moviein that is on UMP movies network through Sky service?
### Context:
CREATE TABLE table_name_87 (language VARCHAR, network VARCHAR, genre VARCHAR, service VARCHAR) [/INST]
### Response:
SELECT language FROM table_name_87 WHERE genre = "movies" AND service = "sky" AND network = "ump movies" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What language is the movie in that is on SAB network through Sky service?
### Context:
CREATE TABLE table_name_97 (language VARCHAR, network VARCHAR, service VARCHAR) [/INST]
### Response:
SELECT language FROM table_name_97 WHERE network = "sab" AND service = "sky" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall pick for the player who was a guard and had a round less than 9?
### Context:
CREATE TABLE table_name_4 (overall INTEGER, position VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT AVG(overall) FROM table_name_4 WHERE position = "guard" AND round < 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 was the lowest round number that had an overall pick up 92?
### Context:
CREATE TABLE table_name_9 (round INTEGER, overall VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_9 WHERE overall = 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 open source movie has a CC License of by-nc-sa 1.0?
### Context:
CREATE TABLE table_name_90 (open_source_movie VARCHAR, cc_license VARCHAR) [/INST]
### Response:
SELECT open_source_movie FROM table_name_90 WHERE cc_license = "by-nc-sa 1.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:
Which venue had the result 7-1?
### Context:
CREATE TABLE table_name_50 (venue VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_50 WHERE result = "7-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 date was the Competition of rothmans cup?
### Context:
CREATE TABLE table_name_67 (date VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_67 WHERE competition = "rothmans cup" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result of the Competition of friendly?
### Context:
CREATE TABLE table_name_61 (result VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_61 WHERE competition = "friendly" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which competition was played on 8 June 2005?
### Context:
CREATE TABLE table_name_90 (competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_90 WHERE date = "8 june 2005" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which competition had the score 1-0?
### Context:
CREATE TABLE table_name_4 (competition VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_4 WHERE score = "1-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:
Timsah arena is in what country?
### Context:
CREATE TABLE table_name_32 (country VARCHAR, stadium VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_32 WHERE stadium = "timsah arena" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country is Relax-Gam from?
### Context:
CREATE TABLE table_name_83 (country VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_83 WHERE team = "relax-gam" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Gerolsteiner's cyclist?
### Context:
CREATE TABLE table_name_89 (cyclist VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT cyclist FROM table_name_89 WHERE team = "gerolsteiner" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Davide Rebellin' UCI ProTour Points?
### Context:
CREATE TABLE table_name_33 (uci_protour_points VARCHAR, cyclist VARCHAR) [/INST]
### Response:
SELECT uci_protour_points FROM table_name_33 WHERE cyclist = "davide rebellin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 North Melbourne's score when they were the home team?
### Context:
CREATE TABLE table_name_22 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_22 WHERE home_team = "north melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where did Footscray play as the away team?
### Context:
CREATE TABLE table_name_76 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_76 WHERE away_team = "footscray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team's score in the match at Lake Oval?
### Context:
CREATE TABLE table_name_77 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_77 WHERE venue = "lake oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sum of the crowds that watched Fitzroy play as the away team?
### Context:
CREATE TABLE table_name_81 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_81 WHERE away_team = "fitzroy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank with years 1996–2012 and apps greater than 340?
### Context:
CREATE TABLE table_name_15 (rank INTEGER, years VARCHAR, apps VARCHAR) [/INST]
### Response:
SELECT SUM(rank) FROM table_name_15 WHERE years = "1996–2012" AND apps > 340 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team that faced Carlton?
### Context:
CREATE TABLE table_name_6 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_6 WHERE home_team = "carlton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 crowd size that saw Geelong play as the away team?
### Context:
CREATE TABLE table_name_17 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_17 WHERE away_team = "geelong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wins did Hobbs had a 15th finish at poles 0?
### Context:
CREATE TABLE table_name_89 (wins VARCHAR, poles VARCHAR, final_placing VARCHAR) [/INST]
### Response:
SELECT wins FROM table_name_89 WHERE poles = "0" AND final_placing = "15th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points for the GP3 series with 2 podiums?
### Context:
CREATE TABLE table_name_92 (points VARCHAR, series VARCHAR, podiums VARCHAR) [/INST]
### Response:
SELECT points FROM table_name_92 WHERE series = "gp3 series" AND podiums = "2" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.