text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the album for years after 2007
### Context:
CREATE TABLE table_name_45 (album VARCHAR, year INTEGER) [/INST]
### Response:
SELECT album FROM table_name_45 WHERE year > 2007 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score on october 17, 2007?
### Context:
CREATE TABLE table_name_33 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_33 WHERE date = "october 17, 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the competition for score of 3-0
### Context:
CREATE TABLE table_name_71 (competition VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_71 WHERE score = "3-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:
I want the date for nihat kahveci
### Context:
CREATE TABLE table_name_93 (date VARCHAR, turkey_scorers VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_93 WHERE turkey_scorers = "nihat kahveci" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick with a Reg GP less than 0?
### Context:
CREATE TABLE table_name_8 (pick__number INTEGER, reg_gp INTEGER) [/INST]
### Response:
SELECT MIN(pick__number) FROM table_name_8 WHERE reg_gp < 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 of pick numbers with a Reg GP larger than 0?
### Context:
CREATE TABLE table_name_80 (pick__number VARCHAR, reg_gp INTEGER) [/INST]
### Response:
SELECT COUNT(pick__number) FROM table_name_80 WHERE reg_gp > 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 points when there is a refusal fault and the rider is H.R.H. Prince Abdullah Al-Soud?
### Context:
CREATE TABLE table_name_85 (points INTEGER, faults VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_85 WHERE faults = "refusal" AND rider = "h.r.h. prince abdullah al-soud" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total points when the horse is Chippison?
### Context:
CREATE TABLE table_name_96 (points VARCHAR, horse VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_96 WHERE horse = "chippison" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time (s) for the horse Pinot Grigio?
### Context:
CREATE TABLE table_name_53 (total_time___s__ VARCHAR, horse VARCHAR) [/INST]
### Response:
SELECT total_time___s__ FROM table_name_53 WHERE horse = "pinot grigio" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 amount of points when the time (s) is 81.78?
### Context:
CREATE TABLE table_name_93 (points INTEGER, time___s__ VARCHAR) [/INST]
### Response:
SELECT AVG(points) FROM table_name_93 WHERE time___s__ = "81.78" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Glades Day School?
### Context:
CREATE TABLE table_name_59 (position VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_59 WHERE school = "glades day 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 is the position of the player who went to college of notre dame?
### Context:
CREATE TABLE table_name_78 (position VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_78 WHERE college = "notre dame" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 school of the player who went to the college of michigan and originally comes from Wheaton, Illinois?
### Context:
CREATE TABLE table_name_2 (school VARCHAR, college VARCHAR, hometown VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_2 WHERE college = "michigan" AND hometown = "wheaton, illinois" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Chassis was driven by Otto Stuppacher?
### Context:
CREATE TABLE table_name_12 (chassis VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_12 WHERE driver = "otto stuppacher" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 drove the car with the n175 chassis in round 13?
### Context:
CREATE TABLE table_name_1 (driver VARCHAR, chassis VARCHAR, rounds VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_1 WHERE chassis = "n175" AND rounds = "13" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What chassis did John Watson drive?
### Context:
CREATE TABLE table_name_4 (chassis VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_4 WHERE driver = "john watson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 right ascension (j2000) when the constellation is sextans and the declination (j2000) is °28′01″?
### Context:
CREATE TABLE table_name_53 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, declination___j2000__ VARCHAR) [/INST]
### Response:
SELECT right_ascension___j2000__ FROM table_name_53 WHERE constellation = "sextans" AND declination___j2000__ = "°28′01″" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constellation when the Right ascension ( J2000 ) is 10h18m58.4s?
### Context:
CREATE TABLE table_name_10 (constellation VARCHAR, right_ascension___j2000__ VARCHAR) [/INST]
### Response:
SELECT constellation FROM table_name_10 WHERE right_ascension___j2000__ = "10h18m58.4s" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ngc number when the declination (j2000) is °25′26″?
### Context:
CREATE TABLE table_name_51 (ngc_number INTEGER, declination___j2000__ VARCHAR) [/INST]
### Response:
SELECT MAX(ngc_number) FROM table_name_51 WHERE declination___j2000__ = "°25′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 score for Collingwood as the home team?
### Context:
CREATE TABLE table_name_85 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_85 WHERE home_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 did the home team score at Princes Park?
### Context:
CREATE TABLE table_name_15 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_15 WHERE venue = "princes 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's the sum of the population for the place simplified 上杭县 with an area smaller than 2,879?
### Context:
CREATE TABLE table_name_68 (population INTEGER, simplified VARCHAR, area VARCHAR) [/INST]
### Response:
SELECT SUM(population) FROM table_name_68 WHERE simplified = "上杭县" AND area < 2 OFFSET 879 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of density for the place with a population over 393,390?
### Context:
CREATE TABLE table_name_57 (density VARCHAR, population INTEGER) [/INST]
### Response:
SELECT COUNT(density) FROM table_name_57 WHERE population > 393 OFFSET 390 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average area for the xinluo district?
### Context:
CREATE TABLE table_name_20 (area INTEGER, english_name VARCHAR) [/INST]
### Response:
SELECT AVG(area) FROM table_name_20 WHERE english_name = "xinluo district" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance on July 30?
### Context:
CREATE TABLE table_name_77 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_77 WHERE date = "july 30" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 have a Result of 0 – 4?
### Context:
CREATE TABLE table_name_26 (goals INTEGER, result VARCHAR) [/INST]
### Response:
SELECT AVG(goals) FROM table_name_26 WHERE result = "0 – 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:
How many goals have a Result of 12 – 0?
### Context:
CREATE TABLE table_name_33 (goals VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT goals FROM table_name_33 WHERE result = "12 – 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 Result has a Date of 9 october 2009?
### Context:
CREATE TABLE table_name_77 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_77 WHERE date = "9 october 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 Goals have a Date of 7 february 2010?
### Context:
CREATE TABLE table_name_45 (goals INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MAX(goals) FROM table_name_45 WHERE date = "7 february 2010" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first year to have a Chassis of Jordan 193?
### Context:
CREATE TABLE table_name_89 (year INTEGER, chassis VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_89 WHERE chassis = "jordan 193" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 School's Mascot is Raiders?
### Context:
CREATE TABLE table_name_28 (school VARCHAR, mascot VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_28 WHERE mascot = "raiders" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 North Valleys School Mascot?
### Context:
CREATE TABLE table_name_51 (mascot VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT mascot FROM table_name_51 WHERE school = "north valleys" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Enrollment where Cougars is a Mascot?
### Context:
CREATE TABLE table_name_66 (enrollment INTEGER, mascot VARCHAR) [/INST]
### Response:
SELECT SUM(enrollment) FROM table_name_66 WHERE mascot = "cougars" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 League is the Reed School?
### Context:
CREATE TABLE table_name_87 (league VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_87 WHERE school = "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 Mascot has an Enrollment greater than 2,464?
### Context:
CREATE TABLE table_name_23 (mascot VARCHAR, enrollment INTEGER) [/INST]
### Response:
SELECT mascot FROM table_name_23 WHERE enrollment > 2 OFFSET 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:
Who was the runner-up in the tournament in which Omar Camporese held third place?
### Context:
CREATE TABLE table_name_60 (runner_up VARCHAR, third_place VARCHAR) [/INST]
### Response:
SELECT runner_up FROM table_name_60 WHERE third_place = "omar camporese" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the runner-up in the tournament in London?
### Context:
CREATE TABLE table_name_86 (runner_up VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT runner_up FROM table_name_86 WHERE tournament = "london" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score in the tournament in which Michael Stich took third place?
### Context:
CREATE TABLE table_name_32 (score VARCHAR, third_place VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_32 WHERE third_place = "michael stich" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 holds third place in the tournament with a score of 2–6, 7–6(3), [10–5]?
### Context:
CREATE TABLE table_name_16 (third_place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT third_place FROM table_name_16 WHERE score = "2–6, 7–6(3), [10–5]" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the least number of goals for when the goals against is 70 and the ties less than 0?
### Context:
CREATE TABLE table_name_32 (goals_for INTEGER, goals_against VARCHAR, ties VARCHAR) [/INST]
### Response:
SELECT MIN(goals_for) FROM table_name_32 WHERE goals_against = 70 AND ties < 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 losses when the wins is 9 and ties more than 0?
### Context:
CREATE TABLE table_name_10 (losses INTEGER, wins VARCHAR, ties VARCHAR) [/INST]
### Response:
SELECT AVG(losses) FROM table_name_10 WHERE wins = 9 AND ties > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the lowest number of ties when the losses is 7 and games played is less than 10?
### Context:
CREATE TABLE table_name_10 (ties INTEGER, losses VARCHAR, games_played VARCHAR) [/INST]
### Response:
SELECT MIN(ties) FROM table_name_10 WHERE losses = 7 AND games_played < 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 sum of games played when the losses is less than 7, the wins is 6 and the goals for is more than 76?
### Context:
CREATE TABLE table_name_31 (games_played INTEGER, goals_for VARCHAR, losses VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT SUM(games_played) FROM table_name_31 WHERE losses < 7 AND wins = 6 AND goals_for > 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 total number of games played when the goals for is less than 30?
### Context:
CREATE TABLE table_name_8 (games_played VARCHAR, goals_for INTEGER) [/INST]
### Response:
SELECT COUNT(games_played) FROM table_name_8 WHERE goals_for < 30 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wins for the ottawa hockey club when the games played is less than 10?
### Context:
CREATE TABLE table_name_53 (wins INTEGER, team VARCHAR, games_played VARCHAR) [/INST]
### Response:
SELECT SUM(wins) FROM table_name_53 WHERE team = "ottawa hockey club" AND games_played < 10 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people attended the game on February 3, 2008?
### Context:
CREATE TABLE table_name_34 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_34 WHERE date = "february 3, 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 name of the home team that played against Collingwood?
### Context:
CREATE TABLE table_name_17 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_17 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:
Which Away team played at the Windy Hill Venue?
### Context:
CREATE TABLE table_name_50 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_50 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:
How large of a crowd can the Glenferrie oval hold?
### Context:
CREATE TABLE table_name_9 (crowd VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_9 WHERE venue = "glenferrie 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:
How large of a crowd can the Brunswick Street Oval hold?
### Context:
CREATE TABLE table_name_48 (crowd VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_48 WHERE venue = "brunswick street 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 is the lowest number of goals scored by a player in the normal league games where more than 8 total goals were scored?
### Context:
CREATE TABLE table_name_67 (league INTEGER, total INTEGER) [/INST]
### Response:
SELECT MIN(league) FROM table_name_67 WHERE total > 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average number of goals scored in the FA Cup by Whelan where he had more than 7 total goals?
### Context:
CREATE TABLE table_name_72 (fa_cup INTEGER, name VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT AVG(fa_cup) FROM table_name_72 WHERE name = "whelan" AND total > 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Uyghur Latin with a population of 69,361?
### Context:
CREATE TABLE table_name_14 (uyghur_latin___uly__ VARCHAR, population__2010_census_ VARCHAR) [/INST]
### Response:
SELECT uyghur_latin___uly__ FROM table_name_14 WHERE population__2010_census_ = "69,361" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Hanyu Pinyin with an area of 400?
### Context:
CREATE TABLE table_name_94 (hanyu_pinyin VARCHAR, area__km²_ VARCHAR) [/INST]
### Response:
SELECT hanyu_pinyin FROM table_name_94 WHERE area__km²_ = "400" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Hanyu Pinyin with a density of 39.63?
### Context:
CREATE TABLE table_name_32 (hanyu_pinyin VARCHAR, density___km²_ VARCHAR) [/INST]
### Response:
SELECT hanyu_pinyin FROM table_name_32 WHERE density___km²_ = "39.63" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were in attendance when the visiting team was the Nuggets and the leading scorer was J.R. Smith (28)?
### Context:
CREATE TABLE table_name_71 (attendance INTEGER, visitor VARCHAR, leading_scorer VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_71 WHERE visitor = "nuggets" AND leading_scorer = "j.r. smith (28)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the leading scorer on 23 February 2008?
### Context:
CREATE TABLE table_name_78 (leading_scorer VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT leading_scorer FROM table_name_78 WHERE date = "23 february 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:
Name what was nominated in years before 2002 for most popular comedy performer at the national television awards
### Context:
CREATE TABLE table_name_95 (nominated_for VARCHAR, category VARCHAR, year VARCHAR, award VARCHAR) [/INST]
### Response:
SELECT nominated_for FROM table_name_95 WHERE year < 2002 AND award = "national television awards" AND category = "most popular comedy performer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result for the bafta tv awards
### Context:
CREATE TABLE table_name_83 (result VARCHAR, award VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_83 WHERE award = "bafta tv awards" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 category for nominated at the british comedy awards
### Context:
CREATE TABLE table_name_26 (category VARCHAR, result VARCHAR, award VARCHAR) [/INST]
### Response:
SELECT category FROM table_name_26 WHERE result = "nominated" AND award = "british comedy awards" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year that Birds of a feather category for most popular actress was nominated
### Context:
CREATE TABLE table_name_57 (year INTEGER, category VARCHAR, nominated_for VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_57 WHERE category = "most popular actress" AND nominated_for = "birds of a feather" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What dates did Ferrari win races?
### Context:
CREATE TABLE table_name_40 (date VARCHAR, constructor VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_40 WHERE constructor = "ferrari" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 original air date of the episode with production code 2395120?
### Context:
CREATE TABLE table_name_55 (original_air_date VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT original_air_date FROM table_name_55 WHERE production_code = "2395120" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the ferrari v12 engine and ferrari 1512 chassis, after 1965?
### Context:
CREATE TABLE table_name_85 (pts INTEGER, year VARCHAR, engine VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT MAX(pts) FROM table_name_85 WHERE engine = "ferrari v12" AND chassis = "ferrari 1512" AND year > 1965 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the crowd was larger than 30,495?
### Context:
CREATE TABLE table_name_58 (date VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT date FROM table_name_58 WHERE crowd > 30 OFFSET 495 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team when Carlton was the away team?
### Context:
CREATE TABLE table_name_59 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_59 WHERE away_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 was the score for the away team when they played at lake oval?
### Context:
CREATE TABLE table_name_70 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_70 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 score of the away team when hawthorn was the home team?
### Context:
CREATE TABLE table_name_43 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_43 WHERE home_team = "hawthorn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 golds for nations ranked below 4, over 5 medals, and under 6 silvers?
### Context:
CREATE TABLE table_name_26 (gold VARCHAR, silver VARCHAR, rank VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT COUNT(gold) FROM table_name_26 WHERE rank > 4 AND total > 5 AND silver < 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 rank had the Labour party winning in 2003, a swing to gain that was larger than 2.13, a lab hold as a result, and which took place in the Linlithgow constituency?
### Context:
CREATE TABLE table_name_21 (rank VARCHAR, constituency VARCHAR, result VARCHAR, winning_party_2003 VARCHAR, swing_to_gain VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_21 WHERE winning_party_2003 = "labour" AND swing_to_gain > 2.13 AND result = "lab hold" AND constituency = "linlithgow" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 won in 2003, that had a swing to gain of less than 2.92 and which resulted in a ld hold?
### Context:
CREATE TABLE table_name_26 (winning_party_2003 VARCHAR, swing_to_gain VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT winning_party_2003 FROM table_name_26 WHERE swing_to_gain < 2.92 AND result = "ld hold" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constituency had the conservative party win in 2003?
### Context:
CREATE TABLE table_name_72 (constituency VARCHAR, winning_party_2003 VARCHAR) [/INST]
### Response:
SELECT constituency FROM table_name_72 WHERE winning_party_2003 = "conservative" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final score when the visiting team is the Washington Redskins and the date is September 4?
### Context:
CREATE TABLE table_name_82 (final_score VARCHAR, visiting_team VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT final_score FROM table_name_82 WHERE visiting_team = "washington redskins" AND date = "september 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 stadium when the date of the game is December 14?
### Context:
CREATE TABLE table_name_12 (stadium VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT stadium FROM table_name_12 WHERE date = "december 14" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the stadium when the visiting team is the Denver Broncos?
### Context:
CREATE TABLE table_name_6 (stadium VARCHAR, visiting_team VARCHAR) [/INST]
### Response:
SELECT stadium FROM table_name_6 WHERE visiting_team = "denver broncos" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 smallest crowd when Melbourne was the away team?
### Context:
CREATE TABLE table_name_74 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_74 WHERE away_team = "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 is the Away when the Club is Neath?
### Context:
CREATE TABLE table_name_5 (away VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT away FROM table_name_5 WHERE club = "neath" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has area of 7,914 m²?
### Context:
CREATE TABLE table_name_64 (country VARCHAR, area_in_m² VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_64 WHERE area_in_m² = "7,914" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was completed in 1910-1978?
### Context:
CREATE TABLE table_name_23 (city VARCHAR, completion VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_23 WHERE completion = "1910-1978" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 area of 3,170 in m²?
### Context:
CREATE TABLE table_name_17 (country VARCHAR, area_in_m² VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_17 WHERE area_in_m² = "3,170" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time/retired for grid of 17
### Context:
CREATE TABLE table_name_17 (time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_17 WHERE grid = 17 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the opponent when the field is mitchel athletic complex
### Context:
CREATE TABLE table_name_69 (opponent VARCHAR, field VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_69 WHERE field = "mitchel athletic complex" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the date for when the home/away is away and the opponent is bayhawks
### Context:
CREATE TABLE table_name_81 (date VARCHAR, home_away VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_81 WHERE home_away = "away" AND opponent = "bayhawks" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Say the field with a result of w 12-11
### Context:
CREATE TABLE table_name_43 (field VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT field FROM table_name_43 WHERE result = "w 12-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:
Name the opponent when the result is w 16-15 and has home/away of home
### Context:
CREATE TABLE table_name_37 (opponent VARCHAR, home_away VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_37 WHERE home_away = "home" AND result = "w 16-15" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the opponent when the resultwas w 12-11
### Context:
CREATE TABLE table_name_45 (opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_45 WHERE result = "w 12-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:
Name the opponent which has a home/away of home and date of july 27
### Context:
CREATE TABLE table_name_9 (opponent VARCHAR, home_away VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_9 WHERE home_away = "home" AND date = "july 27" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want to know the home team for mcg venue
### Context:
CREATE TABLE table_name_71 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_71 WHERE venue = "mcg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Konchesky move to?
### Context:
CREATE TABLE table_name_34 (moving_to VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT moving_to FROM table_name_34 WHERE name = "konchesky" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Essendon's home team?
### Context:
CREATE TABLE table_name_94 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_94 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:
What is the away team score for North Melbourne's home team?
### Context:
CREATE TABLE table_name_5 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_5 WHERE away_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:
What is Geelong's home team score?
### Context:
CREATE TABLE table_name_89 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_89 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 home team score for St Kilda's home team?
### Context:
CREATE TABLE table_name_27 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_27 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:
Who was #16 rank constructor with a grid of more than 1?
### Context:
CREATE TABLE table_name_59 (constructor VARCHAR, grid VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_59 WHERE grid > 1 AND rank = 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who constructed Joe James car when his rank was more than 10?
### Context:
CREATE TABLE table_name_12 (constructor VARCHAR, rank VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_12 WHERE rank > 10 AND driver = "joe james" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank of the car who had more than 182 laps, gris less than 3, with a qual time of more than 134.14 and a time/retired of +14:21.72?
### Context:
CREATE TABLE table_name_78 (rank INTEGER, grid VARCHAR, time_retired VARCHAR, laps VARCHAR, qual VARCHAR) [/INST]
### Response:
SELECT MIN(rank) FROM table_name_78 WHERE laps > 182 AND qual > 134.14 AND time_retired = "+14:21.72" AND grid < 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many laps did Chuck Stevenson have with a grid of less than 11?
### Context:
CREATE TABLE table_name_35 (laps VARCHAR, driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT COUNT(laps) FROM table_name_35 WHERE driver = "chuck stevenson" AND grid < 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 Week has an Opponent of san francisco 49ers?
### Context:
CREATE TABLE table_name_46 (week INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT MAX(week) FROM table_name_46 WHERE opponent = "san francisco 49ers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 snatch for the Clean & jerk of 145.0, and a Bodyweight larger than 76.22?
### Context:
CREATE TABLE table_name_50 (snatch INTEGER, bodyweight VARCHAR, clean_ VARCHAR, _jerk VARCHAR) [/INST]
### Response:
SELECT AVG(snatch) FROM table_name_50 WHERE clean_ & _jerk = "145.0" AND bodyweight > 76.22 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Clean & jerk for the snatch less than 150 and a Bodyweight of 76.18?
### Context:
CREATE TABLE table_name_82 (clean_ VARCHAR, _jerk VARCHAR, snatch VARCHAR, bodyweight VARCHAR) [/INST]
### Response:
SELECT clean_ & _jerk FROM table_name_82 WHERE snatch < 150 AND bodyweight = 76.18 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.