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 is the Candidate when the Riding is Hochelaga?
### Context:
CREATE TABLE table_name_13 (candidate VARCHAR, riding VARCHAR) [/INST]
### Response:
SELECT candidate FROM table_name_13 WHERE riding = "hochelaga" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Placement when the Candidate is Jean-Patrick Berthiaume?
### Context:
CREATE TABLE table_name_96 (placement VARCHAR, candidate VARCHAR) [/INST]
### Response:
SELECT placement FROM table_name_96 WHERE candidate = "jean-patrick berthiaume" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the value for the League Cup when the FA Cup value is 0 13 0 (49)?
### Context:
CREATE TABLE table_name_20 (league VARCHAR, fa_cup VARCHAR) [/INST]
### Response:
SELECT league AS Cup FROM table_name_20 WHERE fa_cup = "0 13 0 (49)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 League Cup value for 1991–present?
### Context:
CREATE TABLE table_name_13 (league VARCHAR, years VARCHAR) [/INST]
### Response:
SELECT league AS Cup FROM table_name_13 WHERE years = "1991–present" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What league has a value of 0 29 (152) for Europe?
### Context:
CREATE TABLE table_name_43 (league VARCHAR, europe VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_43 WHERE europe = "0 29 (152)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was there a w 23–14 result?
### Context:
CREATE TABLE table_name_1 (week VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT week FROM table_name_1 WHERE result = "w 23–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:
Name the score for hawthorn opponent
### Context:
CREATE TABLE table_name_64 (score VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_64 WHERE opponent = "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:
Name the score at mcg venue and footscray opponent
### Context:
CREATE TABLE table_name_13 (score VARCHAR, venue VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_13 WHERE venue = "mcg" AND opponent = "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:
Name the venue with opponent of collingwood
### Context:
CREATE TABLE table_name_19 (venue VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_19 WHERE opponent = "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:
When has Result of 2–0, and a Score of 2 – 0?
### Context:
CREATE TABLE table_name_38 (date VARCHAR, result VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_38 WHERE result = "2–0" AND score = "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:
Which Venue has a Goal larger than 3, and a Competition of 2011 afc asian cup?
### Context:
CREATE TABLE table_name_3 (venue VARCHAR, goal VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_3 WHERE goal > 3 AND competition = "2011 afc asian cup" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the casualities for nation of incident of hostile on 2006-06-26
### Context:
CREATE TABLE table_name_43 (casualties VARCHAR, nature_of_incident VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT casualties FROM table_name_43 WHERE nature_of_incident = "hostile" AND date = "2006-06-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:
Name the casualities for kabul area
### Context:
CREATE TABLE table_name_74 (casualties VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT casualties FROM table_name_74 WHERE location = "kabul area" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 location on 2006-04-07 for direct fire
### Context:
CREATE TABLE table_name_9 (location VARCHAR, date VARCHAR, circumstances VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_9 WHERE date = "2006-04-07" AND circumstances = "direct fire" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Date of 20,21,22,23,24 november 1998?
### Context:
CREATE TABLE table_name_57 (venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_57 WHERE date = "20,21,22,23,24 november 1998" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Away captain has a Date of 26,27,28,29 december 1998?
### Context:
CREATE TABLE table_name_12 (away_captain VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT away_captain FROM table_name_12 WHERE date = "26,27,28,29 december 1998" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which venue has a Result of draw?
### Context:
CREATE TABLE table_name_92 (venue VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_92 WHERE result = "draw" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Home captain has a Venue of melbourne cricket ground?
### Context:
CREATE TABLE table_name_53 (home_captain VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_captain FROM table_name_53 WHERE venue = "melbourne cricket ground" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 captain has a Date of 2,3,4,5 january 1999?
### Context:
CREATE TABLE table_name_69 (away_captain VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT away_captain FROM table_name_69 WHERE date = "2,3,4,5 january 1999" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 margin of victory for the win with a score of 71-69-71-70=281?
### Context:
CREATE TABLE table_name_38 (margin_of_victory VARCHAR, winning_score VARCHAR) [/INST]
### Response:
SELECT margin_of_victory FROM table_name_38 WHERE winning_score = 71 - 69 - 71 - 70 = 281 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 to par value for the game with a winning score of 71-69-71-70=281?
### Context:
CREATE TABLE table_name_49 (to_par VARCHAR, winning_score VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_49 WHERE winning_score = 71 - 69 - 71 - 70 = 281 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For what tournament was Bubba Watson the runner-up?
### Context:
CREATE TABLE table_name_29 (tournament VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_29 WHERE runner_s__up = "bubba 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:
When John Senden was the runner-up, what was the To Par?
### Context:
CREATE TABLE table_name_76 (to_par VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_76 WHERE runner_s__up = "john senden" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1988, what Metro Champion had a Runner-up of Memphis State?
### Context:
CREATE TABLE table_name_73 (metro_champion VARCHAR, runner_up VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT metro_champion FROM table_name_73 WHERE runner_up = "memphis state" AND year = 1988 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the latest year a ride opened that was manufactured by Zamperla, was a convoy ride, and had a name of Tiny Truckers?
### Context:
CREATE TABLE table_name_93 (opened_in INTEGER, ride_name VARCHAR, manufacture VARCHAR, type VARCHAR) [/INST]
### Response:
SELECT MAX(opened_in) FROM table_name_93 WHERE manufacture = "zamperla" AND type = "convoy ride" AND ride_name = "tiny truckers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 manufacturer of the mini jet red baron ride that opened before 2001?
### Context:
CREATE TABLE table_name_33 (manufacture VARCHAR, opened_in VARCHAR, type VARCHAR) [/INST]
### Response:
SELECT manufacture FROM table_name_33 WHERE opened_in < 2001 AND type = "mini jet red baron" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 least year for les triplettes de belleville
### Context:
CREATE TABLE table_name_45 (year INTEGER, original_title VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_45 WHERE original_title = "les triplettes de belleville" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 english title for zhang yimou
### Context:
CREATE TABLE table_name_18 (english_title VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT english_title FROM table_name_18 WHERE director = "zhang yimou" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country for 2002
### Context:
CREATE TABLE table_name_81 (country VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_81 WHERE 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:
Name the english title for mexico/spain/usa
### Context:
CREATE TABLE table_name_24 (english_title VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT english_title FROM table_name_24 WHERE country = "mexico/spain/usa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country with year more than 2008
### Context:
CREATE TABLE table_name_95 (country VARCHAR, year INTEGER) [/INST]
### Response:
SELECT country FROM table_name_95 WHERE 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:
What year did the Cosworth v8 engine participate in?
### Context:
CREATE TABLE table_name_37 (year INTEGER, engine VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_37 WHERE engine = "cosworth v8" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year did the team receive more than 0 points?
### Context:
CREATE TABLE table_name_65 (year INTEGER, points INTEGER) [/INST]
### Response:
SELECT AVG(year) FROM table_name_65 WHERE points > 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 chassis was used in 1971?
### Context:
CREATE TABLE table_name_1 (chassis VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_1 WHERE year = 1971 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time for Jean Luc Razakarivony with less than 3 heat and more than 2 lanes?
### Context:
CREATE TABLE table_name_44 (time VARCHAR, name VARCHAR, heat VARCHAR, lane VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_44 WHERE heat < 3 AND lane > 2 AND name = "jean luc razakarivony" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Domenico Fioravanti's time on lane 5?
### Context:
CREATE TABLE table_name_66 (time VARCHAR, lane VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_66 WHERE lane = 5 AND name = "domenico fioravanti" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nationality with less than 9 heat, and a time of 1:01.87?
### Context:
CREATE TABLE table_name_3 (nationality VARCHAR, heat VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_3 WHERE heat < 9 AND time = "1:01.87" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On which dates played Home Captain Courtney Walsh at the Queen's Park Oval?
### Context:
CREATE TABLE table_name_35 (date VARCHAR, home_captain VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_35 WHERE home_captain = "courtney walsh" AND venue = "queen's park 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:
On what dates did the draw at the Antigua Recreation Ground happen?
### Context:
CREATE TABLE table_name_25 (date VARCHAR, result VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_25 WHERE result = "draw" AND venue = "antigua recreation ground" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Home Captain at Sabina Park?
### Context:
CREATE TABLE table_name_65 (home_captain VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_captain FROM table_name_65 WHERE venue = "sabina 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:
When did the draw happen?
### Context:
CREATE TABLE table_name_76 (date VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_76 WHERE result = "draw" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When did Northeastern University join?
### Context:
CREATE TABLE table_name_59 (joined INTEGER, institution VARCHAR) [/INST]
### Response:
SELECT SUM(joined) FROM table_name_59 WHERE institution = "northeastern university" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which type of institution is in Amherst, MA?
### Context:
CREATE TABLE table_name_1 (type VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_1 WHERE location = "amherst, ma" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tenure of the person whose courtesy title is yamashiro-no-kami?
### Context:
CREATE TABLE table_name_96 (tenure VARCHAR, courtesy_title VARCHAR) [/INST]
### Response:
SELECT tenure FROM table_name_96 WHERE courtesy_title = "yamashiro-no-kami" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 courtesy title of the person whose tenure goes from 1766–1794?
### Context:
CREATE TABLE table_name_1 (courtesy_title VARCHAR, tenure VARCHAR) [/INST]
### Response:
SELECT courtesy_title FROM table_name_1 WHERE tenure = "1766–1794" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 bronze value associated with ranks over 5?
### Context:
CREATE TABLE table_name_2 (bronze VARCHAR, rank INTEGER) [/INST]
### Response:
SELECT bronze FROM table_name_2 WHERE rank > 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 highest number of bronzes for countries ranking over 5 with 0 golds?
### Context:
CREATE TABLE table_name_74 (bronze INTEGER, rank VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT MAX(bronze) FROM table_name_74 WHERE rank > 5 AND gold < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the loss for june 22
### Context:
CREATE TABLE table_name_8 (loss VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_8 WHERE date = "june 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:
Name the loss for june 30
### Context:
CREATE TABLE table_name_96 (loss VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_96 WHERE date = "june 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:
Name the score on august 21, 2007
### Context:
CREATE TABLE table_name_46 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_46 WHERE date = "august 21, 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:
Name the competition on august 25, 2007
### Context:
CREATE TABLE table_name_83 (competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_83 WHERE date = "august 25, 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:
Name the competition that was on august 25, 2007
### Context:
CREATE TABLE table_name_48 (competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_48 WHERE date = "august 25, 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:
Name the result for january 14, 2008
### Context:
CREATE TABLE table_name_19 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_19 WHERE date = "january 14, 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:
How many matches played are associated with 20 losses?
### Context:
CREATE TABLE table_name_38 (played VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT played FROM table_name_38 WHERE lost = "20" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 matches have Rhymney RFC played?
### Context:
CREATE TABLE table_name_24 (played VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT played FROM table_name_24 WHERE club = "rhymney rfc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many losses does Abercarn RFC have?
### Context:
CREATE TABLE table_name_90 (lost VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT lost FROM table_name_90 WHERE club = "abercarn rfc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When did a Position of 21st (q) happen?
### Context:
CREATE TABLE table_name_67 (year VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_67 WHERE position = "21st (q)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Venue before 2003 with Notes of 57.73 m?
### Context:
CREATE TABLE table_name_63 (venue VARCHAR, year VARCHAR, notes VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_63 WHERE year < 2003 AND notes = "57.73 m" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What notes have the 8th position?
### Context:
CREATE TABLE table_name_39 (notes VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT notes FROM table_name_39 WHERE position = "8th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 European Championships held with notes of 61.46 m?
### Context:
CREATE TABLE table_name_52 (venue VARCHAR, competition VARCHAR, notes VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_52 WHERE competition = "european championships" AND notes = "61.46 m" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 0–100km/h (62mph) when the max power is s diesel engine all direct injection (dci)?
### Context:
CREATE TABLE table_name_16 (max_power VARCHAR) [/INST]
### Response:
SELECT 0 AS _100km_h__62mph_ FROM table_name_16 WHERE max_power = "s diesel engine all direct injection (dci)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 original name for last days of the victim
### Context:
CREATE TABLE table_name_97 (original_name VARCHAR, film_title_used_in_nomination VARCHAR) [/INST]
### Response:
SELECT original_name FROM table_name_97 WHERE film_title_used_in_nomination = "last days of the victim" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 film title for okkar á milli: í hita og þunga dagsins
### Context:
CREATE TABLE table_name_98 (film_title_used_in_nomination VARCHAR, original_name VARCHAR) [/INST]
### Response:
SELECT film_title_used_in_nomination FROM table_name_98 WHERE original_name = "okkar á milli: í hita og þunga dagsins" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 film title that was norwegian
### Context:
CREATE TABLE table_name_40 (film_title_used_in_nomination VARCHAR, language VARCHAR) [/INST]
### Response:
SELECT film_title_used_in_nomination FROM table_name_40 WHERE language = "norwegian" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 film title for german
### Context:
CREATE TABLE table_name_8 (film_title_used_in_nomination VARCHAR, language VARCHAR) [/INST]
### Response:
SELECT film_title_used_in_nomination FROM table_name_8 WHERE language = "german" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 original name for the one from bulgaria
### Context:
CREATE TABLE table_name_4 (original_name VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT original_name FROM table_name_4 WHERE country = "bulgaria" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
who was the opponent when the attendance was larger than 54,766?
### Context:
CREATE TABLE table_name_27 (opponent VARCHAR, attendance INTEGER) [/INST]
### Response:
SELECT opponent FROM table_name_27 WHERE attendance > 54 OFFSET 766 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the series was at 0-1?
### Context:
CREATE TABLE table_name_2 (attendance VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_2 WHERE series = "0-1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent when the series was at 1-3?
### Context:
CREATE TABLE table_name_86 (opponent VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_86 WHERE series = "1-3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what was the score in the loss to tapani (0-1)?
### Context:
CREATE TABLE table_name_39 (score VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_39 WHERE loss = "tapani (0-1)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What id the team with a smaller Time than 18?
### Context:
CREATE TABLE table_name_76 (team__number1 VARCHAR, time___cest__ INTEGER) [/INST]
### Response:
SELECT team__number1 FROM table_name_76 WHERE time___cest__ < 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the location of the match with the record 10-8-1?
### Context:
CREATE TABLE table_name_84 (location VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_84 WHERE record = "10-8-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 method of the match in the Road fc 12 at 5:00 with less than 3 rounds, and a loss result?
### Context:
CREATE TABLE table_name_72 (method VARCHAR, event VARCHAR, res VARCHAR, time VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_72 WHERE time = "5:00" AND round < 3 AND res = "loss" AND event = "road fc 12" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the record of the match at 6:00?
### Context:
CREATE TABLE table_name_84 (record VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_84 WHERE time = "6:00" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the method of the match with a 3-4 record?
### Context:
CREATE TABLE table_name_69 (method VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_69 WHERE record = "3-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 location of the match with a round bigger than 1 where the opponent was Yoshihiro Akiyama?
### Context:
CREATE TABLE table_name_62 (location VARCHAR, round VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_62 WHERE round > 1 AND opponent = "yoshihiro akiyama" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the match with a draw result and a record of 4-4-1?
### Context:
CREATE TABLE table_name_26 (round INTEGER, res VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_26 WHERE res = "draw" AND record = "4-4-1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average round of the match in the Hero's 9 event with a time of 5:00?
### Context:
CREATE TABLE table_name_7 (round INTEGER, time VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_7 WHERE time = "5:00" AND event = "hero's 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 shows as the First US Tour Cast when the Original Broadway Cast was Sarah Bolt?
### Context:
CREATE TABLE table_name_16 (first_us_tour_cast VARCHAR, original_broadway_cast VARCHAR) [/INST]
### Response:
SELECT first_us_tour_cast FROM table_name_16 WHERE original_broadway_cast = "sarah bolt" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 person in the First UK Tour Cast for the Character of Sister Mary Robert?
### Context:
CREATE TABLE table_name_54 (first_uk_tour_cast VARCHAR, character VARCHAR) [/INST]
### Response:
SELECT first_uk_tour_cast FROM table_name_54 WHERE character = "sister mary robert" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What character did Katie Rowley Jones play in the Original West End Cast?
### Context:
CREATE TABLE table_name_22 (character VARCHAR, original_west_end_cast VARCHAR) [/INST]
### Response:
SELECT character FROM table_name_22 WHERE original_west_end_cast = "katie rowley jones" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Original West End Cast when the irst US Tour Cast was lael van keuren?
### Context:
CREATE TABLE table_name_55 (original_west_end_cast VARCHAR, first_us_tour_cast VARCHAR) [/INST]
### Response:
SELECT original_west_end_cast FROM table_name_55 WHERE first_us_tour_cast = "lael van keuren" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in the Original West End Cast when the Original Broadway Cast was audrie neenan?
### Context:
CREATE TABLE table_name_1 (original_west_end_cast VARCHAR, original_broadway_cast VARCHAR) [/INST]
### Response:
SELECT original_west_end_cast FROM table_name_1 WHERE original_broadway_cast = "audrie neenan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 person who was in the Original Broadway Cast that was Original West End Cast of sheila hancock?
### Context:
CREATE TABLE table_name_56 (original_broadway_cast VARCHAR, original_west_end_cast VARCHAR) [/INST]
### Response:
SELECT original_broadway_cast FROM table_name_56 WHERE original_west_end_cast = "sheila hancock" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Dave Douglas has what score?
### Context:
CREATE TABLE table_name_46 (score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_46 WHERE player = "dave douglas" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who has more than 70 score with +1 to par?
### Context:
CREATE TABLE table_name_13 (player VARCHAR, score VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_13 WHERE score > 70 AND to_par = "+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 game did they lose by 6 - 5?
### Context:
CREATE TABLE table_name_67 (loss VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_67 WHERE score = "6 - 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 original title of the film from years after 1985 from the UK?
### Context:
CREATE TABLE table_name_75 (original_title VARCHAR, year VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT original_title FROM table_name_75 WHERE year > 1985 AND country = "uk" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 English title for years after 1981 originating from Argentina?
### Context:
CREATE TABLE table_name_93 (english_title VARCHAR, year VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT english_title FROM table_name_93 WHERE year > 1981 AND country = "argentina" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 English title for 1984 from Sweden?
### Context:
CREATE TABLE table_name_68 (english_title VARCHAR, year VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT english_title FROM table_name_68 WHERE year = 1984 AND country = "sweden" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 English title for the film directed by George Miller?
### Context:
CREATE TABLE table_name_19 (english_title VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT english_title FROM table_name_19 WHERE director = "george miller" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of origin for the film directed by George Miller?
### Context:
CREATE TABLE table_name_3 (country VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_3 WHERE director = "george miller" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 west germany with over 8 total?
### Context:
CREATE TABLE table_name_11 (gold INTEGER, nation VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MIN(gold) FROM table_name_11 WHERE nation = "west germany" AND 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:
How many golds for nations with under 1 bronze?
### Context:
CREATE TABLE table_name_41 (gold INTEGER, bronze INTEGER) [/INST]
### Response:
SELECT SUM(gold) FROM table_name_41 WHERE bronze < 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many total medals for the nation ranked 7 with 1 silver and under 4 bronzes?
### Context:
CREATE TABLE table_name_56 (total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT AVG(total) FROM table_name_56 WHERE bronze < 4 AND silver = 1 AND rank = "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:
Name the city of license when founded was may 1995
### Context:
CREATE TABLE table_name_92 (city_of_license VARCHAR, founded VARCHAR) [/INST]
### Response:
SELECT city_of_license FROM table_name_92 WHERE founded = "may 1995" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city of license for when founded is october 2010
### Context:
CREATE TABLE table_name_3 (city_of_license VARCHAR, founded VARCHAR) [/INST]
### Response:
SELECT city_of_license FROM table_name_3 WHERE founded = "october 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:
Name the coverage area for licesne of hillsboro, west virginia
### Context:
CREATE TABLE table_name_25 (coverage_area VARCHAR, city_of_license VARCHAR) [/INST]
### Response:
SELECT coverage_area FROM table_name_25 WHERE city_of_license = "hillsboro, west virginia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city of license which has age Watt of 160 watts
### Context:
CREATE TABLE table_name_56 (city_of_license VARCHAR, age_watt VARCHAR) [/INST]
### Response:
SELECT city_of_license FROM table_name_56 WHERE age_watt = "160 watts" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city of license with frequency of 103.5 mhz
### Context:
CREATE TABLE table_name_80 (city_of_license VARCHAR, frequency VARCHAR) [/INST]
### Response:
SELECT city_of_license FROM table_name_80 WHERE frequency = "103.5 mhz" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.