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:
What is the rank of player Jason Dunstall?
### Context:
CREATE TABLE table_name_55 (rank VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_55 WHERE player = "jason dunstall" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player has 1299 goals?
### Context:
CREATE TABLE table_name_6 (player VARCHAR, goals VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_6 WHERE goals = "1299" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what club(s) does Tony Lockett play?
### Context:
CREATE TABLE table_name_11 (club_clubs VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT club_clubs FROM table_name_11 WHERE player = "tony lockett" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 manager has Manchester City as the team?
### Context:
CREATE TABLE table_name_14 (manager VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT manager FROM table_name_14 WHERE team = "manchester city" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 manager has sheffield wednesday as the team?
### Context:
CREATE TABLE table_name_7 (manager VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT manager FROM table_name_7 WHERE team = "sheffield wednesday" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has george graham as the manager?
### Context:
CREATE TABLE table_name_77 (team VARCHAR, manager VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_77 WHERE manager = "george graham" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 kit manufacturer that has billy bonds as the manager?
### Context:
CREATE TABLE table_name_36 (kit_manufacturer VARCHAR, manager VARCHAR) [/INST]
### Response:
SELECT kit_manufacturer FROM table_name_36 WHERE manager = "billy bonds" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 captain has billy bonds as the manager?
### Context:
CREATE TABLE table_name_34 (captain VARCHAR, manager VARCHAR) [/INST]
### Response:
SELECT captain FROM table_name_34 WHERE manager = "billy bonds" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 captain has howard wilkinson as the manager?
### Context:
CREATE TABLE table_name_52 (captain VARCHAR, manager VARCHAR) [/INST]
### Response:
SELECT captain FROM table_name_52 WHERE manager = "howard wilkinson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 loss of the Brewers game when the record was 46-48?
### Context:
CREATE TABLE table_name_90 (loss VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_90 WHERE record = "46-48" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at the game that had a score of 7-10?
### Context:
CREATE TABLE table_name_76 (record VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_76 WHERE score = "7-10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which chassis is more recent than 1972 and has more than 0 Pts. ?
### Context:
CREATE TABLE table_name_53 (chassis VARCHAR, year VARCHAR, pts VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_53 WHERE year > 1972 AND pts > 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 engine from 1973 has a Brabham bt37 chassis?
### Context:
CREATE TABLE table_name_92 (engine VARCHAR, year VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_92 WHERE year = 1973 AND chassis = "brabham bt37" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What score to highest to par did Mike Weir achieve?
### Context:
CREATE TABLE table_name_33 (to_par INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MAX(to_par) FROM table_name_33 WHERE player = "mike weir" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a score of 70-73-69=212?
### Context:
CREATE TABLE table_name_91 (player VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_91 WHERE score = 70 - 73 - 69 = 212 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What player was place of t1 in To Par and had a score of 70-73-69=212?
### Context:
CREATE TABLE table_name_81 (to_par VARCHAR, place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_81 WHERE place = "t1" AND score = 70 - 73 - 69 = 212 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What score to par did Mike Weir have?
### Context:
CREATE TABLE table_name_69 (to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_69 WHERE player = "mike weir" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What place was the scorer of 67-74-73=214?
### Context:
CREATE TABLE table_name_92 (place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_92 WHERE score = 67 - 74 - 73 = 214 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country does Rocco Mediate play for?
### Context:
CREATE TABLE table_name_77 (country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_77 WHERE player = "rocco mediate" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rocco Mediate's par?
### Context:
CREATE TABLE table_name_17 (to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_17 WHERE player = "rocco mediate" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country is Chad Campbell from?
### Context:
CREATE TABLE table_name_49 (country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_49 WHERE player = "chad campbell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score for Spain?
### Context:
CREATE TABLE table_name_28 (score VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_28 WHERE country = "spain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where is Fred Couples from?
### Context:
CREATE TABLE table_name_71 (country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_71 WHERE player = "fred couples" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record on july 10?
### Context:
CREATE TABLE table_name_65 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_65 WHERE date = "july 10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which kingdom has Suin as its capital?
### Context:
CREATE TABLE table_name_65 (name_of_kingdom VARCHAR, capital VARCHAR) [/INST]
### Response:
SELECT name_of_kingdom FROM table_name_65 WHERE capital = "suin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What week did the September 9, 1967 game occur on?
### Context:
CREATE TABLE table_name_25 (week INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MIN(week) FROM table_name_25 WHERE date = "september 9, 1967" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date of the game after week 5 against the Houston Oilers?
### Context:
CREATE TABLE table_name_87 (date VARCHAR, week VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_87 WHERE week > 5 AND opponent = "houston oilers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the game on December 14, 1967?
### Context:
CREATE TABLE table_name_27 (week VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT week FROM table_name_27 WHERE date = "december 14, 1967" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 after week 9 with an attendance of 44,020?
### Context:
CREATE TABLE table_name_96 (opponent VARCHAR, week VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_96 WHERE week > 9 AND attendance = "44,020" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team played against Al-Ismaily (team 1)?
### Context:
CREATE TABLE table_name_79 (team_2 VARCHAR, team_1 VARCHAR) [/INST]
### Response:
SELECT team_2 FROM table_name_79 WHERE team_1 = "al-ismaily" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Kabwe Warriors (team 1) played, what was the result of the 1st leg?
### Context:
CREATE TABLE table_name_66 (team_1 VARCHAR) [/INST]
### Response:
SELECT 1 AS st_leg FROM table_name_66 WHERE team_1 = "kabwe warriors" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team played against Hafia FC (team 2)?
### Context:
CREATE TABLE table_name_36 (team_1 VARCHAR, team_2 VARCHAR) [/INST]
### Response:
SELECT team_1 FROM table_name_36 WHERE team_2 = "hafia fc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the game that was played on week 2, what is the record?
### Context:
CREATE TABLE table_name_24 (record VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_24 WHERE week = 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result of the game that was played on week 15?
### Context:
CREATE TABLE table_name_95 (result VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_95 WHERE week = 15 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many carries have an average under 8.7 and touchdowns of 72?
### Context:
CREATE TABLE table_name_37 (carries VARCHAR, average VARCHAR, touchdowns VARCHAR) [/INST]
### Response:
SELECT COUNT(carries) FROM table_name_37 WHERE average < 8.7 AND touchdowns = 72 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average number of carries that have more than 72 touchdowns?
### Context:
CREATE TABLE table_name_36 (carries INTEGER, touchdowns INTEGER) [/INST]
### Response:
SELECT AVG(carries) FROM table_name_36 WHERE touchdowns > 72 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most number of touchdowns that have fewer than 105 points, averages over 4.7, and fewer than 487 rushing yards?
### Context:
CREATE TABLE table_name_77 (touchdowns INTEGER, rushing_yards VARCHAR, points VARCHAR, average VARCHAR) [/INST]
### Response:
SELECT MAX(touchdowns) FROM table_name_77 WHERE points < 105 AND average > 4.7 AND rushing_yards < 487 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 carries associated with 80 points and fewer than 16 touchdowns?
### Context:
CREATE TABLE table_name_98 (carries INTEGER, points VARCHAR, touchdowns VARCHAR) [/INST]
### Response:
SELECT SUM(carries) FROM table_name_98 WHERE points = 80 AND touchdowns < 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of rushing yards associated with averages over 8.4 and fewer than 54 carries?
### Context:
CREATE TABLE table_name_27 (rushing_yards VARCHAR, average VARCHAR, carries VARCHAR) [/INST]
### Response:
SELECT COUNT(rushing_yards) FROM table_name_27 WHERE average > 8.4 AND carries < 54 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which record is dated April 8?
### Context:
CREATE TABLE table_name_60 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_60 WHERE date = "april 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 score for the game that has an attendance of 5,298?
### Context:
CREATE TABLE table_name_9 (score VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_9 WHERE attendance = "5,298" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date for the game that had an attendance of 10,101?
### Context:
CREATE TABLE table_name_45 (date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_45 WHERE attendance = "10,101" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the game with an attendance of 11,141?
### Context:
CREATE TABLE table_name_26 (record VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_26 WHERE attendance = "11,141" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the lowest number of points with fewer than 8 losses and fewer than 24 games for the vancouver burrards?
### Context:
CREATE TABLE table_name_66 (points INTEGER, games VARCHAR, losses VARCHAR, team_name VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_66 WHERE losses < 8 AND team_name = "vancouver burrards" AND games < 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:
What's the total number of points when the vancouver carlings have fewer than 12 losses and more than 32 games?
### Context:
CREATE TABLE table_name_1 (points VARCHAR, games VARCHAR, losses VARCHAR, team_name VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_1 WHERE losses < 12 AND team_name = "vancouver carlings" AND games > 32 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points when the vancouver burrards have fewer than 9 losses and more than 24 games?
### Context:
CREATE TABLE table_name_18 (points VARCHAR, team_name VARCHAR, losses VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_18 WHERE losses < 9 AND games > 24 AND team_name = "vancouver burrards" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the sum of points for the 1963 season when there are more than 30 games?
### Context:
CREATE TABLE table_name_8 (points INTEGER, season VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_8 WHERE season = "1963" AND games > 30 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the total number of games with more than 20 points for the 1976 season?
### Context:
CREATE TABLE table_name_89 (games VARCHAR, season VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(games) FROM table_name_89 WHERE season = "1976" AND points > 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:
What's the total losses for the vancouver burrards in the 1947 season with fewer than 24 games?
### Context:
CREATE TABLE table_name_8 (losses VARCHAR, games VARCHAR, team_name VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT COUNT(losses) FROM table_name_8 WHERE team_name = "vancouver burrards" AND season = "1947" AND games < 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:
How many tries against did the club with 1 drawn and 41 points have?
### Context:
CREATE TABLE table_name_19 (tries_against VARCHAR, drawn VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT tries_against FROM table_name_19 WHERE drawn = "1" AND points = "41" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 club has 275 points?
### Context:
CREATE TABLE table_name_16 (club VARCHAR, points_for VARCHAR) [/INST]
### Response:
SELECT club FROM table_name_16 WHERE points_for = "275" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many points against did the club with a losing bonus of 3 and 84 tries have?
### Context:
CREATE TABLE table_name_68 (points_against VARCHAR, losing_bonus VARCHAR, tries_for VARCHAR) [/INST]
### Response:
SELECT points_against FROM table_name_68 WHERE losing_bonus = "3" AND tries_for = "84" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 club has 40 tries for?
### Context:
CREATE TABLE table_name_2 (club VARCHAR, tries_for VARCHAR) [/INST]
### Response:
SELECT club FROM table_name_2 WHERE tries_for = "40" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tries did the club with a try bonus of correct as of 2 June 2009 have?
### Context:
CREATE TABLE table_name_45 (tries_for VARCHAR, try_bonus VARCHAR) [/INST]
### Response:
SELECT tries_for FROM table_name_45 WHERE try_bonus = "correct as of 2 june 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:
How many tries did the club Croesyceiliog rfc have?
### Context:
CREATE TABLE table_name_24 (tries_for VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT tries_for FROM table_name_24 WHERE club = "croesyceiliog 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:
What is the value of D 42 β, when the value of D 45 O is d 32 β?
### Context:
CREATE TABLE table_name_47 (d_42_β VARCHAR, d_45_o VARCHAR) [/INST]
### Response:
SELECT d_42_β FROM table_name_47 WHERE d_45_o = "d 32 β" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of D 45 O when the value of D 44 O is β majority?
### Context:
CREATE TABLE table_name_67 (d_45_o VARCHAR, d_44_o VARCHAR) [/INST]
### Response:
SELECT d_45_o FROM table_name_67 WHERE d_44_o = "β majority" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of D 43 β when the value of D 42 β is d 42 β?
### Context:
CREATE TABLE table_name_58 (d_43_β VARCHAR, d_42_β VARCHAR) [/INST]
### Response:
SELECT d_43_β FROM table_name_58 WHERE d_42_β = "d 42 β" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of D 45 O, when the value of D 41 β is r 41 β?
### Context:
CREATE TABLE table_name_60 (d_45_o VARCHAR, d_41_β VARCHAR) [/INST]
### Response:
SELECT d_45_o FROM table_name_60 WHERE d_41_β = "r 41 β" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average number of wins of drivers from Sweden?
### Context:
CREATE TABLE table_name_51 (driver_wins INTEGER, nation VARCHAR) [/INST]
### Response:
SELECT AVG(driver_wins) FROM table_name_51 WHERE nation = "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:
How many gold are a rank 1 and larger than 16?
### Context:
CREATE TABLE table_name_56 (gold VARCHAR, rank VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT COUNT(gold) FROM table_name_56 WHERE rank = "1" AND total > 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many total gold are less than 4?
### Context:
CREATE TABLE table_name_14 (gold VARCHAR, total INTEGER) [/INST]
### Response:
SELECT COUNT(gold) FROM table_name_14 WHERE total < 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 total gold that has bronze less than 2, a silver of 1 and total more than 4?
### Context:
CREATE TABLE table_name_32 (gold INTEGER, total VARCHAR, bronze VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT SUM(gold) FROM table_name_32 WHERE bronze < 2 AND silver = 1 AND total > 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:
Name the least runners with dist of 10.5
### Context:
CREATE TABLE table_name_34 (runners INTEGER, dist__f_ VARCHAR) [/INST]
### Response:
SELECT MIN(runners) FROM table_name_34 WHERE dist__f_ = 10.5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the runners for longchamp
### Context:
CREATE TABLE table_name_88 (runners VARCHAR, course VARCHAR) [/INST]
### Response:
SELECT runners FROM table_name_88 WHERE course = "longchamp" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year with 116 laps?
### Context:
CREATE TABLE table_name_48 (year VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_48 WHERE laps = 116 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a finish of 19?
### Context:
CREATE TABLE table_name_92 (year VARCHAR, finish VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_92 WHERE finish = "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:
How many Silver medals were won in total by all those with more than 3 bronze and exactly 16 gold?
### Context:
CREATE TABLE table_name_50 (silver INTEGER, bronze VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT SUM(silver) FROM table_name_50 WHERE bronze > 3 AND gold = 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which opponent has a loss of wells (1-3)?
### Context:
CREATE TABLE table_name_95 (opponent VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_95 WHERE loss = "wells (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 is the largest attendance that has tigers as the opponent and a loss of leiter (0-1)?
### Context:
CREATE TABLE table_name_75 (attendance INTEGER, opponent VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_75 WHERE opponent = "tigers" AND loss = "leiter (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:
Which party has Peter A. Quinn as a representative?
### Context:
CREATE TABLE table_name_44 (party VARCHAR, representative VARCHAR) [/INST]
### Response:
SELECT party FROM table_name_44 WHERE representative = "peter a. quinn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does Jimmy Quillen represent?
### Context:
CREATE TABLE table_name_32 (state VARCHAR, representative VARCHAR) [/INST]
### Response:
SELECT state FROM table_name_32 WHERE representative = "jimmy quillen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lifespan of the democratic party in New York, for which Terence J. Quinn is a representative?
### Context:
CREATE TABLE table_name_21 (lifespan VARCHAR, representative VARCHAR, party VARCHAR, state VARCHAR) [/INST]
### Response:
SELECT lifespan FROM table_name_21 WHERE party = "democratic" AND state = "new york" AND representative = "terence j. quinn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 what the notes are for South Australia
### Context:
CREATE TABLE table_1000181_1 (notes VARCHAR, current_slogan VARCHAR) [/INST]
### Response:
SELECT notes FROM table_1000181_1 WHERE current_slogan = "SOUTH AUSTRALIA" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the current series where the new series began in June 2011?
### Context:
CREATE TABLE table_1000181_1 (current_series VARCHAR, notes VARCHAR) [/INST]
### Response:
SELECT current_series FROM table_1000181_1 WHERE notes = "New series began in June 2011" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the format for South Australia?
### Context:
CREATE TABLE table_1000181_1 (format VARCHAR, state_territory VARCHAR) [/INST]
### Response:
SELECT format FROM table_1000181_1 WHERE state_territory = "South Australia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the background colour for the Australian Capital Territory
### Context:
CREATE TABLE table_1000181_1 (text_background_colour VARCHAR, state_territory VARCHAR) [/INST]
### Response:
SELECT text_background_colour FROM table_1000181_1 WHERE state_territory = "Australian Capital Territory" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 times is the fuel propulsion is cng?
### Context:
CREATE TABLE table_10007452_3 (fleet_series__quantity_ VARCHAR, fuel_propulsion VARCHAR) [/INST]
### Response:
SELECT COUNT(fleet_series__quantity_) FROM table_10007452_3 WHERE fuel_propulsion = "CNG" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fuel propulsion where the fleet series (quantity) is 310-329 (20)?
### Context:
CREATE TABLE table_10007452_3 (fuel_propulsion VARCHAR, fleet_series__quantity_ VARCHAR) [/INST]
### Response:
SELECT fuel_propulsion FROM table_10007452_3 WHERE fleet_series__quantity_ = "310-329 (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:
who is the manufacturer for the order year 1998?
### Context:
CREATE TABLE table_10007452_3 (manufacturer VARCHAR, order_year VARCHAR) [/INST]
### Response:
SELECT manufacturer FROM table_10007452_3 WHERE order_year = "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:
how many times is the model ge40lfr?
### Context:
CREATE TABLE table_10007452_3 (manufacturer VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT COUNT(manufacturer) FROM table_10007452_3 WHERE model = "GE40LFR" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 times is the fleet series (quantity) is 468-473 (6)?
### Context:
CREATE TABLE table_10007452_3 (order_year VARCHAR, fleet_series__quantity_ VARCHAR) [/INST]
### Response:
SELECT COUNT(order_year) FROM table_10007452_3 WHERE fleet_series__quantity_ = "468-473 (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 powertrain (engine/transmission) when the order year is 2000?
### Context:
CREATE TABLE table_10007452_3 (powertrain__engine_transmission_ VARCHAR, order_year VARCHAR) [/INST]
### Response:
SELECT powertrain__engine_transmission_ FROM table_10007452_3 WHERE order_year = "2000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What if the description of a ch-47d chinook?
### Context:
CREATE TABLE table_10006830_1 (description VARCHAR, aircraft VARCHAR) [/INST]
### Response:
SELECT description FROM table_10006830_1 WHERE aircraft = "CH-47D Chinook" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 max gross weight of the Robinson R-22?
### Context:
CREATE TABLE table_10006830_1 (max_gross_weight VARCHAR, aircraft VARCHAR) [/INST]
### Response:
SELECT max_gross_weight FROM table_10006830_1 WHERE aircraft = "Robinson R-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 school did player number 6 come from?
### Context:
CREATE TABLE table_10015132_1 (school_club_team VARCHAR, no VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_10015132_1 WHERE no = "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 school did the player that has been in Toronto from 2012-present come from?
### Context:
CREATE TABLE table_10015132_1 (school_club_team VARCHAR, years_in_toronto VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_10015132_1 WHERE years_in_toronto = "2012-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 school did the player that has been in Toronto from 2010-2012 go to?
### Context:
CREATE TABLE table_10015132_1 (school_club_team VARCHAR, years_in_toronto VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_10015132_1 WHERE years_in_toronto = "2010-2012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position did the player from Baylor play?
### Context:
CREATE TABLE table_10015132_1 (position VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT position FROM table_10015132_1 WHERE school_club_team = "Baylor" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who played in the Toronto Raptors from 1995-96?
### Context:
CREATE TABLE table_10015132_14 (player VARCHAR, years_in_toronto VARCHAR) [/INST]
### Response:
SELECT player FROM table_10015132_14 WHERE years_in_toronto = "1995-96" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number was Patrick O'Bryant?
### Context:
CREATE TABLE table_10015132_14 (no VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT no FROM table_10015132_14 WHERE player = "Patrick O'Bryant" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What school did Patrick O'Bryant play for?
### Context:
CREATE TABLE table_10015132_14 (school_club_team VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_10015132_14 WHERE player = "Patrick O'Bryant" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number does Fordham school have?
### Context:
CREATE TABLE table_10015132_14 (no VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT COUNT(no) FROM table_10015132_14 WHERE school_club_team = "Fordham" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which school was in Toronto in 2001-02?
### Context:
CREATE TABLE table_10015132_14 (school_club_team VARCHAR, years_in_toronto VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_10015132_14 WHERE years_in_toronto = "2001-02" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which school did the player that played 2004-05 attend?
### Context:
CREATE TABLE table_10015132_21 (school_club_team VARCHAR, years_in_toronto VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_10015132_21 WHERE years_in_toronto = "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 position does Loren Woods play?
### Context:
CREATE TABLE table_10015132_21 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_10015132_21 WHERE player = "Loren Woods" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What number is the player that played 1998-2001
### Context:
CREATE TABLE table_10015132_21 (no INTEGER, years_in_toronto VARCHAR) [/INST]
### Response:
SELECT MIN(no) FROM table_10015132_21 WHERE years_in_toronto = "1998-2001" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which country is the player that went to Georgetown from?
### Context:
CREATE TABLE table_10015132_21 (nationality VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_10015132_21 WHERE school_club_team = "Georgetown" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which school did Herb Williams go to?
### Context:
CREATE TABLE table_10015132_21 (school_club_team VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_10015132_21 WHERE player = "Herb Williams" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player from Hawaii play for Toronto?
### Context:
CREATE TABLE table_10015132_3 (years_in_toronto VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT years_in_toronto FROM table_10015132_3 WHERE school_club_team = "Hawaii" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.