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:
On what date were less than 10 built with a locomotive number of 31-35?
### Context:
CREATE TABLE table_name_48 (date VARCHAR, no_built VARCHAR, loco_nos VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_48 WHERE no_built < 10 AND loco_nos = "31-35" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many spectators watched when the away team was Collingwood?
### Context:
CREATE TABLE table_name_8 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_8 WHERE away_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What did Essendon score when they were the away team?
### Context:
CREATE TABLE table_name_37 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_37 WHERE away_team = "essendon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the home team at Brunswick Street Oval?
### Context:
CREATE TABLE table_name_65 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_65 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 was South Melbourne's away team score?
### Context:
CREATE TABLE table_name_7 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_7 WHERE away_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the away team at Brunswick Street Oval?
### Context:
CREATE TABLE table_name_89 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_89 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:
Tell me the lowest height for class of hewitt and prom less than 148
### Context:
CREATE TABLE table_name_37 (height__m_ INTEGER, class VARCHAR, prom__m_ VARCHAR) [/INST]
### Response:
SELECT MIN(height__m_) FROM table_name_37 WHERE class = "hewitt" AND prom__m_ < 148 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the total number of prom for height less than 615
### Context:
CREATE TABLE table_name_59 (prom__m_ VARCHAR, height__m_ INTEGER) [/INST]
### Response:
SELECT COUNT(prom__m_) FROM table_name_59 WHERE height__m_ < 615 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 peak which is prom less than 147 and height less than 619
### Context:
CREATE TABLE table_name_10 (peak VARCHAR, prom__m_ VARCHAR, height__m_ VARCHAR) [/INST]
### Response:
SELECT peak FROM table_name_10 WHERE prom__m_ < 147 AND height__m_ < 619 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the peak for prom being less than 147
### Context:
CREATE TABLE table_name_26 (peak VARCHAR, prom__m_ INTEGER) [/INST]
### Response:
SELECT peak FROM table_name_26 WHERE prom__m_ < 147 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the lowest prom for class of hewitt and peak of cushat law and height more than 615
### Context:
CREATE TABLE table_name_62 (prom__m_ INTEGER, height__m_ VARCHAR, class VARCHAR, peak VARCHAR) [/INST]
### Response:
SELECT MIN(prom__m_) FROM table_name_62 WHERE class = "hewitt" AND peak = "cushat law" AND height__m_ > 615 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 peak for height more than 619 and class of hewitt with prom being 148
### Context:
CREATE TABLE table_name_14 (peak VARCHAR, prom__m_ VARCHAR, height__m_ VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT peak FROM table_name_14 WHERE height__m_ > 619 AND class = "hewitt" AND prom__m_ = 148 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 percentage democrats with 2/4 democrat/republican?
### Context:
CREATE TABLE table_name_57 (percentage_democrats VARCHAR, democratic__republican VARCHAR) [/INST]
### Response:
SELECT percentage_democrats FROM table_name_57 WHERE democratic__republican = "2/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 percentage democrats with democratic plurality of -3, and 2/5 democrat/republican?
### Context:
CREATE TABLE table_name_45 (percentage_democrats VARCHAR, democratic_seat_plurality VARCHAR, democratic__republican VARCHAR) [/INST]
### Response:
SELECT percentage_democrats FROM table_name_45 WHERE democratic_seat_plurality = "-3" AND democratic__republican = "2/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 percent of republicans with 7/6 democrat/republican?
### Context:
CREATE TABLE table_name_62 (percentage_republicans VARCHAR, democratic__republican VARCHAR) [/INST]
### Response:
SELECT percentage_republicans FROM table_name_62 WHERE democratic__republican = "7/6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the democratic seat plurality with 29% democrat?
### Context:
CREATE TABLE table_name_94 (democratic_seat_plurality VARCHAR, percentage_democrats VARCHAR) [/INST]
### Response:
SELECT democratic_seat_plurality FROM table_name_94 WHERE percentage_democrats = "29%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 democratic seat plurality with partisan order of New Hampshire?
### Context:
CREATE TABLE table_name_91 (democratic_seat_plurality VARCHAR, state_ranked_in_partisan_order VARCHAR) [/INST]
### Response:
SELECT democratic_seat_plurality FROM table_name_91 WHERE state_ranked_in_partisan_order = "new hampshire" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of the game with Pacers as the Visitor?
### Context:
CREATE TABLE table_name_32 (score VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_32 WHERE visitor = "pacers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Home on December 5, 2007?
### Context:
CREATE TABLE table_name_11 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_11 WHERE date = "december 5, 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Japanese orthography for the abbreviation of ndmc?
### Context:
CREATE TABLE table_name_39 (japanese_orthography VARCHAR, abbreviation VARCHAR) [/INST]
### Response:
SELECT japanese_orthography FROM table_name_39 WHERE abbreviation = "ndmc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of the ministry of defense with an abbreviation of nda bōei-dai(防衛大)?
### Context:
CREATE TABLE table_name_31 (english_name VARCHAR, provider_national_government_ VARCHAR, abbreviation VARCHAR) [/INST]
### Response:
SELECT english_name FROM table_name_31 WHERE provider_national_government_ = "ministry of defense" AND abbreviation = "nda bōei-dai(防衛大)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team score when playing at home in victoria park?
### Context:
CREATE TABLE table_name_18 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_18 WHERE venue = "victoria 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 did st kilda score at home?
### Context:
CREATE TABLE table_name_95 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_95 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:
Which team plays home in western oval venue?
### Context:
CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_16 WHERE venue = "western 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:
When the driver is innes ireland and they drove under 53 laps, what was the Time/Retired?
### Context:
CREATE TABLE table_name_10 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_10 WHERE laps < 53 AND driver = "innes ireland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does peter arundell have?
### Context:
CREATE TABLE table_name_65 (laps VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT laps FROM table_name_65 WHERE driver = "peter arundell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver has a grid value larger than 11, and drove more than 52 laps?
### Context:
CREATE TABLE table_name_38 (driver VARCHAR, grid VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_38 WHERE grid > 11 AND laps > 52 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 crowd for away team of north melbourne?
### Context:
CREATE TABLE table_name_16 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_16 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 the date when the away team is essendon?
### Context:
CREATE TABLE table_name_93 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_93 WHERE away_team = "essendon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the visitor from vancouver on february 24
### Context:
CREATE TABLE table_name_81 (visitor VARCHAR, home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_81 WHERE home = "vancouver" AND date = "february 24" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which description is dated 1962?
### Context:
CREATE TABLE table_name_56 (description VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT description FROM table_name_56 WHERE date = "1962" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Moorabbin oval is home to what team?
### Context:
CREATE TABLE table_name_53 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_53 WHERE venue = "moorabbin oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the leader at the summit for the race in 2005?
### Context:
CREATE TABLE table_name_23 (leader_at_the_summit VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT leader_at_the_summit FROM table_name_23 WHERE year = 2005 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of the stages for category 1 races after the year 2003?
### Context:
CREATE TABLE table_name_73 (stage INTEGER, category VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT SUM(stage) FROM table_name_73 WHERE category = "1" AND year > 2003 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the stadium of melbourne?
### Context:
CREATE TABLE table_name_40 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_40 WHERE home_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 was the record in the game where the decision was Backstrom and there were more than 18,568 in attendance?
### Context:
CREATE TABLE table_name_42 (record VARCHAR, decision VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_42 WHERE decision = "backstrom" AND attendance > 18 OFFSET 568 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Getafe CF, what is the highest number of goals scored?
### Context:
CREATE TABLE table_name_74 (goals INTEGER, team VARCHAR) [/INST]
### Response:
SELECT MAX(goals) FROM table_name_74 WHERE team = "getafe cf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 players with fewer than 41 goals for CA Osasuna and averages under 1.06, what is the average number of matches?
### Context:
CREATE TABLE table_name_5 (matches INTEGER, average VARCHAR, goals VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT AVG(matches) FROM table_name_5 WHERE goals < 41 AND team = "ca osasuna" AND average < 1.06 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 averages of 1.58 and matches under 38, what is the average number of goals?
### Context:
CREATE TABLE table_name_79 (goals INTEGER, average VARCHAR, matches VARCHAR) [/INST]
### Response:
SELECT AVG(goals) FROM table_name_79 WHERE average = 1.58 AND matches < 38 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Ranking has a Season of 2009?
### Context:
CREATE TABLE table_name_14 (ranking VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT ranking FROM table_name_14 WHERE season = "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 Champions have a Runner-up of tobol, and a Coeff of 1.125?
### Context:
CREATE TABLE table_name_95 (champions VARCHAR, runner_up VARCHAR, coeff VARCHAR) [/INST]
### Response:
SELECT champions FROM table_name_95 WHERE runner_up = "tobol" AND coeff = "1.125" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Champion has a Coeff of 1.000?
### Context:
CREATE TABLE table_name_85 (champions VARCHAR, coeff VARCHAR) [/INST]
### Response:
SELECT champions FROM table_name_85 WHERE coeff = "1.000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the game for 23 april when batting 2nd is england 5/113 (19)?
### Context:
CREATE TABLE table_name_62 (game INTEGER, date VARCHAR, batting_2nd VARCHAR) [/INST]
### Response:
SELECT MIN(game) FROM table_name_62 WHERE date = "23 april" AND batting_2nd = "england 5/113 (19)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the game when batting 2nd is new zealand 6/133 (18)?
### Context:
CREATE TABLE table_name_17 (game INTEGER, batting_2nd VARCHAR) [/INST]
### Response:
SELECT MIN(game) FROM table_name_17 WHERE batting_2nd = "new zealand 6/133 (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 game when the result is new zealand by 4 wickets?
### Context:
CREATE TABLE table_name_25 (game INTEGER, result VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_name_25 WHERE result = "new zealand by 4 wickets" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 batting 1st in game 8?
### Context:
CREATE TABLE table_name_20 (batting_1st VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT batting_1st FROM table_name_20 WHERE game = 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 playoffs 2 result of season 2010-11?
### Context:
CREATE TABLE table_name_18 (playoffs_2 VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT playoffs_2 FROM table_name_18 WHERE season = "2010-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:
What is the playoffs 1 result of season 2004-05?
### Context:
CREATE TABLE table_name_41 (playoffs_1 VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT playoffs_1 FROM table_name_41 WHERE season = "2004-05" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Grid did Alain Prost drive on?
### Context:
CREATE TABLE table_name_39 (grid INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT SUM(grid) FROM table_name_39 WHERE driver = "alain prost" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Riccardo Patrese's time/retired?
### Context:
CREATE TABLE table_name_44 (time_retired VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_44 WHERE driver = "riccardo patrese" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rounds did geoff lees drive with chassis of n180?
### Context:
CREATE TABLE table_name_15 (rounds VARCHAR, chassis VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT rounds FROM table_name_15 WHERE chassis = "n180" AND driver = "geoff lees" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tyres for Didier pironi?
### Context:
CREATE TABLE table_name_10 (tyres VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT tyres FROM table_name_10 WHERE driver = "didier pironi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constructor of the car that Jan Lammers made 7-14 rounds in?
### Context:
CREATE TABLE table_name_25 (constructor VARCHAR, driver VARCHAR, rounds VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_25 WHERE driver = "jan lammers" AND rounds = "7-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 engine was used during the race driven by Jan Lammers using a chassis of d3 d4, making a tyre of g and rounds of 4-6?
### Context:
CREATE TABLE table_name_1 (engine VARCHAR, rounds VARCHAR, driver VARCHAR, tyres VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_1 WHERE tyres = "g" AND chassis = "d3 d4" AND driver = "jan lammers" AND rounds = "4-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 Competition has a Venue of Seoul, and Result of 4-1?
### Context:
CREATE TABLE table_name_36 (competition VARCHAR, venue VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_36 WHERE venue = "seoul" AND result = "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's the Result listed that has a Date of June 12, 1997?
### Context:
CREATE TABLE table_name_76 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_76 WHERE date = "june 12, 1997" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Score listed that has a Result of 1-0?
### Context:
CREATE TABLE table_name_70 (score VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_70 WHERE result = "1-0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the Result for the Competition of 1994 FIFA World Cup Qualification, with the Date of May 15, 1993?
### Context:
CREATE TABLE table_name_14 (result VARCHAR, competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_14 WHERE competition = "1994 fifa world cup qualification" AND date = "may 15, 1993" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Competition had a Result of 3-0 and VEnue of Suwon?
### Context:
CREATE TABLE table_name_75 (competition VARCHAR, result VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_75 WHERE result = "3-0" AND venue = "suwon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Result of the Competition of 1998 FIFA World Cup Qualification with the Venue of Bangkok?
### Context:
CREATE TABLE table_name_66 (result VARCHAR, competition VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_66 WHERE competition = "1998 fifa world cup qualification" AND venue = "bangkok" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had the decision with boston at home?
### Context:
CREATE TABLE table_name_34 (decision VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT decision FROM table_name_34 WHERE home = "boston" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the home team that played at MCG?
### Context:
CREATE TABLE table_name_19 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_19 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:
What is the score of the away team that played richmond?
### Context:
CREATE TABLE table_name_27 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_27 WHERE home_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score for the game that Colin Fleming Scott Lipsky played in?
### Context:
CREATE TABLE table_name_5 (score VARCHAR, opponents VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_5 WHERE opponents = "colin fleming scott lipsky" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which tournament was Dieter Kindlmann a partner?
### Context:
CREATE TABLE table_name_51 (tournament VARCHAR, partner VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_51 WHERE partner = "dieter kindlmann" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When the Apps were smaller than 22, what's the lowest amount of goals scored in a game?
### Context:
CREATE TABLE table_name_33 (goals INTEGER, apps INTEGER) [/INST]
### Response:
SELECT MIN(goals) FROM table_name_33 WHERE apps < 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's the total number of all divisions during the 2006/07 season where they scored more than 1 goal?
### Context:
CREATE TABLE table_name_54 (division VARCHAR, season VARCHAR, goals VARCHAR) [/INST]
### Response:
SELECT COUNT(division) FROM table_name_54 WHERE season = "2006/07" AND goals > 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 crowd at victoria park?
### Context:
CREATE TABLE table_name_1 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_1 WHERE venue = "victoria park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Away team score with north melbourne as home team?
### Context:
CREATE TABLE table_name_50 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_50 WHERE home_team = "north melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had the general classification when the trofeo fast team was Mapei-Bricobi, the points classification went to Mariano Piccoli and the mountains classification went to Marco Pantani in stage 22?
### Context:
CREATE TABLE table_name_12 (general_classification VARCHAR, stage VARCHAR, mountains_classification VARCHAR, trofeo_fast_team VARCHAR, points_classification VARCHAR) [/INST]
### Response:
SELECT general_classification FROM table_name_12 WHERE trofeo_fast_team = "mapei-bricobi" AND points_classification = "mariano piccoli" AND mountains_classification = "marco pantani" AND stage = "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:
Who was the winner in stage 3?
### Context:
CREATE TABLE table_name_49 (winner VARCHAR, stage VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_49 WHERE stage = "3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which state was first elected in 1914, and a Member of edward jolley?
### Context:
CREATE TABLE table_name_97 (state VARCHAR, first_elected VARCHAR, member VARCHAR) [/INST]
### Response:
SELECT state FROM table_name_97 WHERE first_elected = "1914" AND member = "edward jolley" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 state is frederick bamford a member of?
### Context:
CREATE TABLE table_name_24 (state VARCHAR, member VARCHAR) [/INST]
### Response:
SELECT state FROM table_name_24 WHERE member = "frederick bamford" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 first election for the labor party is James Sharpe a part of?
### Context:
CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, member VARCHAR) [/INST]
### Response:
SELECT first_elected FROM table_name_28 WHERE party = "labor" AND member = "james sharpe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is sydney sampson a member of?
### Context:
CREATE TABLE table_name_10 (party VARCHAR, member VARCHAR) [/INST]
### Response:
SELECT party FROM table_name_10 WHERE member = "sydney sampson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position for doug gibson with 2 wins?
### Context:
CREATE TABLE table_name_32 (position VARCHAR, win__number VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_32 WHERE win__number = 2 AND winner = "doug gibson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 receptions does Chris Watton with yards of less than 1?
### Context:
CREATE TABLE table_name_84 (rec VARCHAR, player VARCHAR, yards VARCHAR) [/INST]
### Response:
SELECT COUNT(rec) FROM table_name_84 WHERE player = "chris watton" AND yards < 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 American locations with less than 114 years and more than 1 tied with more than 1022 total games?
### Context:
CREATE TABLE table_name_36 (the_american VARCHAR, total_games VARCHAR, years VARCHAR, tied VARCHAR) [/INST]
### Response:
SELECT the_american FROM table_name_36 WHERE years < 114 AND tied > 1 AND total_games > 1022 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team when Melbourne was the home team?
### Context:
CREATE TABLE table_name_35 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_35 WHERE home_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 team score for Away team North Melbourne?
### Context:
CREATE TABLE table_name_13 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_13 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:
Which Away team is associated with the Richmond Home team?
### Context:
CREATE TABLE table_name_13 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_13 WHERE home_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the birth date of the member with the Defining characteristic of pink hair?
### Context:
CREATE TABLE table_name_63 (birthdate VARCHAR, defining_characteristics VARCHAR) [/INST]
### Response:
SELECT birthdate FROM table_name_63 WHERE defining_characteristics = "pink hair" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 person with the defining characteristic of the shortest band member?
### Context:
CREATE TABLE table_name_95 (Real VARCHAR, defining_characteristics VARCHAR) [/INST]
### Response:
SELECT Real AS name FROM table_name_95 WHERE defining_characteristics = "shortest band member" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 member with a costume Role of monster?
### Context:
CREATE TABLE table_name_9 (name VARCHAR, costume_role VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_9 WHERE costume_role = "monster" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the final score for the match played in Venue H and the opponent was Newcastle United?
### Context:
CREATE TABLE table_name_33 (result VARCHAR, venue VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_33 WHERE venue = "h" AND opponent = "newcastle united" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fewest bronze medals for a team with fewer than 1 silver and rank lower than 5?
### Context:
CREATE TABLE table_name_75 (bronze INTEGER, silver VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MIN(bronze) FROM table_name_75 WHERE silver < 1 AND 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:
How many bronze medals for the nation with fewer than 3 gold, 1 silver and rank of 3?
### Context:
CREATE TABLE table_name_29 (bronze VARCHAR, rank VARCHAR, total VARCHAR, gold VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT COUNT(bronze) FROM table_name_29 WHERE gold < 3 AND silver = 1 AND total < 3 AND rank = 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest total for a nation with 1 bronze and more than 1 silver?
### Context:
CREATE TABLE table_name_92 (total INTEGER, bronze VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT MAX(total) FROM table_name_92 WHERE bronze = 1 AND silver > 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 smallest total for a nation with more than 1 silver?
### Context:
CREATE TABLE table_name_75 (total INTEGER, silver INTEGER) [/INST]
### Response:
SELECT MIN(total) FROM table_name_75 WHERE silver > 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the aggregate for a team #2 of Okk Beograd?
### Context:
CREATE TABLE table_name_45 (agg VARCHAR, team__number2 VARCHAR) [/INST]
### Response:
SELECT agg FROM table_name_45 WHERE team__number2 = "okk beograd" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2nd leg score for Chemie Halle?
### Context:
CREATE TABLE table_name_73 (team__number1 VARCHAR) [/INST]
### Response:
SELECT 2 AS nd_leg FROM table_name_73 WHERE team__number1 = "chemie halle" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was South Melbourne's score as the away team?
### Context:
CREATE TABLE table_name_50 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_50 WHERE away_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance when Geelong played as the away team?
### Context:
CREATE TABLE table_name_70 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_70 WHERE away_team = "geelong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where did Footscray play as the away team?
### Context:
CREATE TABLE table_name_27 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_27 WHERE away_team = "footscray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance when the Arden Street Oval?
### Context:
CREATE TABLE table_name_54 (crowd VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_54 WHERE venue = "arden 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 mean pick when the play is Marc Lewis (lhp) and the round is less than 20?
### Context:
CREATE TABLE table_name_76 (pick INTEGER, player VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT AVG(pick) FROM table_name_76 WHERE player = "marc lewis (lhp)" AND round < 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:
Which pick's player was Marc Lewis (lhp)?
### Context:
CREATE TABLE table_name_76 (pick VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT pick FROM table_name_76 WHERE player = "marc lewis (lhp)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is the biggest pick for Naperville Central High School?
### Context:
CREATE TABLE table_name_29 (pick INTEGER, school VARCHAR) [/INST]
### Response:
SELECT MAX(pick) FROM table_name_29 WHERE school = "naperville central high school" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the media market ranking for new york, new york?
### Context:
CREATE TABLE table_name_54 (media_market_ranking VARCHAR, metropolitan_area VARCHAR) [/INST]
### Response:
SELECT media_market_ranking FROM table_name_54 WHERE metropolitan_area = "new york, new york" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Is it home or away when opponent is Pride with a W 11-10 result?
### Context:
CREATE TABLE table_name_49 (home_away VARCHAR, opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT home_away FROM table_name_49 WHERE opponent = "pride" AND result = "w 11-10" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.