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 9/3/97, what was the score that resulted in a w?
### Context:
CREATE TABLE table_name_72 (score VARCHAR, result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_72 WHERE result = "w" AND date = "9/3/97" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who has a roll value of 422?
### Context:
CREATE TABLE table_name_35 (name VARCHAR, roll VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_35 WHERE roll = 422 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 area is the decile value 10?
### Context:
CREATE TABLE table_name_44 (area VARCHAR, decile VARCHAR) [/INST]
### Response:
SELECT area FROM table_name_44 WHERE decile = 10 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest decile value with a roll greater than 301 in Hauraki?
### Context:
CREATE TABLE table_name_46 (decile INTEGER, roll VARCHAR, area VARCHAR) [/INST]
### Response:
SELECT MAX(decile) FROM table_name_46 WHERE roll > 301 AND area = "hauraki" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Points classification has a Trofeo Fast Team of metauro mobili-pinarello, and a Stage of 6?
### Context:
CREATE TABLE table_name_85 (points_classification VARCHAR, trofeo_fast_team VARCHAR, stage VARCHAR) [/INST]
### Response:
SELECT points_classification FROM table_name_85 WHERE trofeo_fast_team = "metauro mobili-pinarello" AND stage = "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 stage has a Winner of lucien van impe?
### Context:
CREATE TABLE table_name_19 (stage VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT stage FROM table_name_19 WHERE winner = "lucien van impe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Trofeo Fast Team has a Winner of alessandro paganessi?
### Context:
CREATE TABLE table_name_10 (trofeo_fast_team VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT trofeo_fast_team FROM table_name_10 WHERE winner = "alessandro paganessi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 General classification has a Stage of 7?
### Context:
CREATE TABLE table_name_95 (general_classification VARCHAR, stage VARCHAR) [/INST]
### Response:
SELECT general_classification FROM table_name_95 WHERE stage = "7" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Winner has a Trofeo Fast Team of metauro mobili-pinarello, and a General classification of giuseppe saronni?
### Context:
CREATE TABLE table_name_78 (winner VARCHAR, trofeo_fast_team VARCHAR, general_classification VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_78 WHERE trofeo_fast_team = "metauro mobili-pinarello" AND general_classification = "giuseppe saronni" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 report for the mosport park circuit?
### Context:
CREATE TABLE table_name_67 (report VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT report FROM table_name_67 WHERE circuit = "mosport 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:
Who has the pole position for the nürburgring circuit?
### Context:
CREATE TABLE table_name_13 (pole_position VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT pole_position FROM table_name_13 WHERE circuit = "nürburgring" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was pedro rodríguez the winning driver?
### Context:
CREATE TABLE table_name_77 (date VARCHAR, winning_driver VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_77 WHERE winning_driver = "pedro rodríguez" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 report for the mexican grand prix?
### Context:
CREATE TABLE table_name_92 (report VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT report FROM table_name_92 WHERE race = "mexican grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nigel mansell's time/retired?
### Context:
CREATE TABLE table_name_6 (time_retired VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_6 WHERE driver = "nigel mansell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the away team at Junction Oval?
### Context:
CREATE TABLE table_name_20 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_20 WHERE venue = "junction 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 home team when the visiting team is the Mavericks?
### Context:
CREATE TABLE table_name_26 (home VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_26 WHERE visitor = "mavericks" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average year for a coin that had a mintage smaller than 10,000?
### Context:
CREATE TABLE table_name_13 (year INTEGER, mintage INTEGER) [/INST]
### Response:
SELECT AVG(year) FROM table_name_13 WHERE mintage < 10 OFFSET 000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is he Atsushi Aoki when the Black Tiger V is ibushi (16:35)?
### Context:
CREATE TABLE table_name_96 (atsushi_aoki VARCHAR, black_tiger_v VARCHAR) [/INST]
### Response:
SELECT atsushi_aoki FROM table_name_96 WHERE black_tiger_v = "ibushi (16: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:
What is the Akira when Tiger Mask IV is Akira (10:05)?
### Context:
CREATE TABLE table_name_94 (akira VARCHAR, tiger_mask_iv VARCHAR) [/INST]
### Response:
SELECT akira FROM table_name_94 WHERE tiger_mask_iv = "akira (10: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:
What is the corresponding Akira when Milano Collection A.T is Milano (10:29)?
### Context:
CREATE TABLE table_name_58 (akira VARCHAR, milano_collection_at VARCHAR) [/INST]
### Response:
SELECT akira FROM table_name_58 WHERE milano_collection_at = "milano (10: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 Block A when Prince Devitt is Devitt (9:53)?
### Context:
CREATE TABLE table_name_49 (block_a VARCHAR, prince_devitt VARCHAR) [/INST]
### Response:
SELECT block_a FROM table_name_49 WHERE prince_devitt = "devitt (9:53)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Akira when Prince Devitt is Devitt (7:20)?
### Context:
CREATE TABLE table_name_99 (akira VARCHAR, prince_devitt VARCHAR) [/INST]
### Response:
SELECT akira FROM table_name_99 WHERE prince_devitt = "devitt (7: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 is the Prince Devitt when Block A is Yamato?
### Context:
CREATE TABLE table_name_49 (prince_devitt VARCHAR, block_a VARCHAR) [/INST]
### Response:
SELECT prince_devitt FROM table_name_49 WHERE block_a = "yamato" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the league one/second division for club of millwall
### Context:
CREATE TABLE table_name_80 (league_one_second_division VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT league_one_second_division FROM table_name_80 WHERE club = "millwall" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score of the home team when they played carlton?
### Context:
CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_77 WHERE away_team = "carlton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many points did the visiting team score at south melbourne?
### Context:
CREATE TABLE table_name_94 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_94 WHERE home_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total Crowd number for the Away team of Hawthorn?
### Context:
CREATE TABLE table_name_15 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_15 WHERE away_team = "hawthorn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What did the team score when playing against home in geelong?
### Context:
CREATE TABLE table_name_72 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_72 WHERE away_team = "geelong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people watched when st kilda played at home?
### Context:
CREATE TABLE table_name_79 (crowd VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_79 WHERE home_team = "st kilda" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the away team when the crowd was larger than 41,451?
### Context:
CREATE TABLE table_name_69 (away_team VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT away_team FROM table_name_69 WHERE crowd > 41 OFFSET 451 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when the venue was Junction Oval?
### Context:
CREATE TABLE table_name_82 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_82 WHERE venue = "junction 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:
I want to know the time which has attendance of 66,772
### Context:
CREATE TABLE table_name_82 (time VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_82 WHERE attendance = "66,772" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the opponent that has attendance of 76,965
### Context:
CREATE TABLE table_name_86 (opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_86 WHERE attendance = "76,965" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week that has an attendance of 78,301
### Context:
CREATE TABLE table_name_89 (week VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT week FROM table_name_89 WHERE attendance = "78,301" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent that ha a week of 3
### Context:
CREATE TABLE table_name_61 (opponent VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_61 WHERE week = "3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many were in attendance on 14 April 2007?
### Context:
CREATE TABLE table_name_50 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_50 WHERE date = "14 april 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 catcher Josh Donaldson's pick number?
### Context:
CREATE TABLE table_name_11 (pick VARCHAR, position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT pick FROM table_name_11 WHERE position = "catcher" AND player = "josh donaldson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 players plays at Akron College?
### Context:
CREATE TABLE table_name_25 (player VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_25 WHERE college = "akron" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 college does the player jon hameister-ries play for?
### Context:
CREATE TABLE table_name_93 (college VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_93 WHERE player = "jon hameister-ries" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the nationality of the player with a pick larger than 21 from the College of the Sequoias?
### Context:
CREATE TABLE table_name_14 (nationality VARCHAR, pick VARCHAR, college_high_school_club VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_14 WHERE pick > 21 AND college_high_school_club = "college of the sequoias" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the result for goals which has goals of deacon 6/6
### Context:
CREATE TABLE table_name_52 (result VARCHAR, goals VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_52 WHERE goals = "deacon 6/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 was at wilderspool?
### Context:
CREATE TABLE table_name_28 (competition VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_28 WHERE venue = "wilderspool" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue for score of 82-0
### Context:
CREATE TABLE table_name_58 (venue VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_58 WHERE score = "82-0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the date with the venue of mcalpine stadium
### Context:
CREATE TABLE table_name_68 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_68 WHERE venue = "mcalpine stadium" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goals for score of 38-28
### Context:
CREATE TABLE table_name_54 (goals VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT goals FROM table_name_54 WHERE score = "38-28" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the least Grid with points more than 11 and drivers being sébastien bourdais with laps less than 67
### Context:
CREATE TABLE table_name_96 (grid INTEGER, laps VARCHAR, points VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT MIN(grid) FROM table_name_96 WHERE points > 11 AND driver = "sébastien bourdais" AND laps < 67 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 most laps for grid more than 9 and the driver being jan heylen
### Context:
CREATE TABLE table_name_9 (laps INTEGER, grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_9 WHERE grid > 9 AND driver = "jan heylen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grid when the laps were 24?
### Context:
CREATE TABLE table_name_69 (grid VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_69 WHERE laps = 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:
Who constructed Chris Amon's car?
### Context:
CREATE TABLE table_name_77 (constructor VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_77 WHERE driver = "chris amon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Jack Brabham's highest grid when his laps were more than 90?
### Context:
CREATE TABLE table_name_76 (grid INTEGER, driver VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_76 WHERE driver = "jack brabham" AND laps > 90 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 CHris Amon's highest lap when his grid was 4?
### Context:
CREATE TABLE table_name_31 (laps INTEGER, driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_31 WHERE driver = "chris amon" AND grid < 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:
Where did Hawthorn have their away match against North Melbourne?
### Context:
CREATE TABLE table_name_50 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_50 WHERE away_team = "hawthorn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the home team score at Richmond's away game against Footscray?
### Context:
CREATE TABLE table_name_17 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_17 WHERE away_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the size of the crowd for the home team of Footscray?
### Context:
CREATE TABLE table_name_28 (crowd VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_28 WHERE home_team = "footscray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Time/Retired for the car going 42 Laps?
### Context:
CREATE TABLE table_name_2 (time_retired VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_2 WHERE laps = 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:
How many laps for alexander wurz with a grid under 12?
### Context:
CREATE TABLE table_name_22 (laps VARCHAR, grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT COUNT(laps) FROM table_name_22 WHERE grid < 12 AND driver = "alexander wurz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest evening gown score a contestant with an average less than 8.23, an interview score of 8.11, and a swimsuit larger than 7.84 has?
### Context:
CREATE TABLE table_name_17 (evening_gown INTEGER, swimsuit VARCHAR, average VARCHAR, interview VARCHAR) [/INST]
### Response:
SELECT MIN(evening_gown) FROM table_name_17 WHERE average < 8.23 AND interview = 8.11 AND swimsuit > 7.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:
What is the total interview score a contestant from Indiana with an average smaller than 8.3 has?
### Context:
CREATE TABLE table_name_36 (interview VARCHAR, state VARCHAR, average VARCHAR) [/INST]
### Response:
SELECT COUNT(interview) FROM table_name_36 WHERE state = "indiana" AND average < 8.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 highest swimsuit a contestant from Kansas with an average larger than 8.48, an interview higher than 8.58, and an evening gown higher than 8.82 has?
### Context:
CREATE TABLE table_name_69 (swimsuit INTEGER, state VARCHAR, evening_gown VARCHAR, average VARCHAR, interview VARCHAR) [/INST]
### Response:
SELECT MAX(swimsuit) FROM table_name_69 WHERE average > 8.48 AND interview > 8.58 AND evening_gown > 8.82 AND state = "kansas" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 interview score of a contestant from Louisiana with an evening gown smaller than 8.82?
### Context:
CREATE TABLE table_name_29 (interview INTEGER, evening_gown VARCHAR, state VARCHAR) [/INST]
### Response:
SELECT AVG(interview) FROM table_name_29 WHERE evening_gown < 8.82 AND state = "louisiana" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What prefix has Haloalkane as the chemical class?
### Context:
CREATE TABLE table_name_4 (prefix VARCHAR, chemical_class VARCHAR) [/INST]
### Response:
SELECT prefix FROM table_name_4 WHERE chemical_class = "haloalkane" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 example has rx as the formula?
### Context:
CREATE TABLE table_name_36 (example VARCHAR, formula VARCHAR) [/INST]
### Response:
SELECT example FROM table_name_36 WHERE formula = "rx" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 chemical class uses the example Chloroethane (ethyl chloride)?
### Context:
CREATE TABLE table_name_90 (chemical_class VARCHAR, example VARCHAR) [/INST]
### Response:
SELECT chemical_class FROM table_name_90 WHERE example = "chloroethane (ethyl chloride)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What prefix has Bromo as the group?
### Context:
CREATE TABLE table_name_78 (prefix VARCHAR, group VARCHAR) [/INST]
### Response:
SELECT prefix FROM table_name_78 WHERE group = "bromo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 chemical class for ri?
### Context:
CREATE TABLE table_name_33 (chemical_class VARCHAR, formula VARCHAR) [/INST]
### Response:
SELECT chemical_class FROM table_name_33 WHERE formula = "ri" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What prefix has chemical class Iodoalkane?
### Context:
CREATE TABLE table_name_73 (prefix VARCHAR, chemical_class VARCHAR) [/INST]
### Response:
SELECT prefix FROM table_name_73 WHERE chemical_class = "iodoalkane" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lee Trevino, who had less than 27 wins?
### Context:
CREATE TABLE table_name_89 (rank INTEGER, player VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT SUM(rank) FROM table_name_89 WHERE player = "lee trevino" AND wins < 27 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date did the show with a series larger than 40, production code smaller than 213, and a season number larger than 11 air?
### Context:
CREATE TABLE table_name_14 (original_air_date VARCHAR, season_no VARCHAR, series_no VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT original_air_date FROM table_name_14 WHERE series_no > 40 AND production_code < 213 AND season_no > 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:
Who wrote the series number 49 with a season larger than 4?
### Context:
CREATE TABLE table_name_27 (written_by VARCHAR, season_no VARCHAR, series_no VARCHAR) [/INST]
### Response:
SELECT written_by FROM table_name_27 WHERE season_no > 4 AND series_no = 49 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total count of net gross in 1957?
### Context:
CREATE TABLE table_name_90 (nett_gross VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT COUNT(nett_gross) FROM table_name_90 WHERE year = 1957 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 End term with a Title of prince regent of bavaria?
### Context:
CREATE TABLE table_name_88 (end_term INTEGER, title VARCHAR) [/INST]
### Response:
SELECT SUM(end_term) FROM table_name_88 WHERE title = "prince regent of bavaria" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 End term with a Start term of 1913, and a Name of ludwig iii?
### Context:
CREATE TABLE table_name_39 (end_term INTEGER, start_term VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT MIN(end_term) FROM table_name_39 WHERE start_term = 1913 AND name = "ludwig iii" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Title has an 1825 end term?
### Context:
CREATE TABLE table_name_78 (title VARCHAR, end_term VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_78 WHERE end_term = 1825 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Start term with a 1912 end term?
### Context:
CREATE TABLE table_name_58 (start_term INTEGER, end_term VARCHAR) [/INST]
### Response:
SELECT AVG(start_term) FROM table_name_58 WHERE end_term = 1912 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date were the high rebounds Evans (14)?
### Context:
CREATE TABLE table_name_74 (date VARCHAR, high_rebounds VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_74 WHERE high_rebounds = "evans (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:
Which game has a high rebound of Evans (7) and a high assist of Evans, Ollie (3)?
### Context:
CREATE TABLE table_name_11 (game INTEGER, high_rebounds VARCHAR, high_assists VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_name_11 WHERE high_rebounds = "evans (7)" AND high_assists = "evans, ollie (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 division has the highest FA Cup Goals, but a Total Goal score less than 5, and a Total Apps of 52?
### Context:
CREATE TABLE table_name_85 (fa_cup_goals INTEGER, total_apps__sub_ VARCHAR, total_goals VARCHAR) [/INST]
### Response:
SELECT MAX(fa_cup_goals) FROM table_name_85 WHERE total_apps__sub_ = "52" AND total_goals < 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 average FL Cup Apps, with a FL Cup Goals greater than 0, but a Other Apps less than 0?
### Context:
CREATE TABLE table_name_93 (fl_cup_apps__sub_ INTEGER, fl_cup_goals VARCHAR, other_apps VARCHAR) [/INST]
### Response:
SELECT AVG(fl_cup_apps__sub_) FROM table_name_93 WHERE fl_cup_goals > 0 AND other_apps < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Division One's total number of FL Cup Goals, with an Other Apps greater than 3, and a FA Cup Goals greater than 0?
### Context:
CREATE TABLE table_name_28 (fl_cup_goals VARCHAR, fa_cup_goals VARCHAR, division VARCHAR, other_apps VARCHAR) [/INST]
### Response:
SELECT COUNT(fl_cup_goals) FROM table_name_28 WHERE division = "one" AND other_apps > 3 AND fa_cup_goals > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Division One's average Other Apps, with a League Goal less than 1?
### Context:
CREATE TABLE table_name_76 (other_apps INTEGER, division VARCHAR, league_goals VARCHAR) [/INST]
### Response:
SELECT AVG(other_apps) FROM table_name_76 WHERE division = "one" AND league_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:
Who plays at Victoria Park?
### Context:
CREATE TABLE table_name_14 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_14 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 score against the indians after game 2?
### Context:
CREATE TABLE table_name_76 (score VARCHAR, game VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_76 WHERE game > 2 AND opponent = "indians" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grid for piers courage?
### Context:
CREATE TABLE table_name_96 (grid INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT AVG(grid) FROM table_name_96 WHERE driver = "piers courage" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who drove 53 laps?
### Context:
CREATE TABLE table_name_66 (driver VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_66 WHERE laps = 53 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lap total for george eaton, with a grid under 17 retiring due to gearbox?
### Context:
CREATE TABLE table_name_72 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_72 WHERE time_retired = "gearbox" AND driver = "george eaton" AND grid < 17 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many laps for denny hulme with under 4 on the grid?
### Context:
CREATE TABLE table_name_13 (laps INTEGER, driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_13 WHERE driver = "denny hulme" AND grid < 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 was the score of the home team when there were more than 5,500 people in the crowd?
### Context:
CREATE TABLE table_name_39 (home_team VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT home_team AS score FROM table_name_39 WHERE crowd > 5 OFFSET 500 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Crowd when Essendon was the home team?
### Context:
CREATE TABLE table_name_33 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_33 WHERE home_team = "essendon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the home team score when North Melbourne was the away team?
### Context:
CREATE TABLE table_name_8 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_8 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 U.S. Hot 100 chart number of the single off of the 2002 album west coast bad boyz, vol. 3: poppin' collars?
### Context:
CREATE TABLE table_name_29 (us_hot_100 VARCHAR, year VARCHAR, album VARCHAR) [/INST]
### Response:
SELECT us_hot_100 FROM table_name_29 WHERE year = 2002 AND album = "west coast bad boyz, vol. 3: poppin' collars" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 U.S. Rap chart number of the album west coast bad boyz, vol. 3: poppin' collars?
### Context:
CREATE TABLE table_name_98 (us_rap VARCHAR, album VARCHAR) [/INST]
### Response:
SELECT us_rap FROM table_name_98 WHERE album = "west coast bad boyz, vol. 3: poppin' collars" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 top round for the baltimore bullets with a Pick larger than 6?
### Context:
CREATE TABLE table_name_46 (round INTEGER, team VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_46 WHERE team = "baltimore bullets" AND pick > 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 team was the away team when they played at lake oval?
### Context:
CREATE TABLE table_name_84 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_84 WHERE venue = "lake oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people were in the crowd when North Melbourne was the home team?
### Context:
CREATE TABLE table_name_3 (crowd VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_3 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:
What is Craig Whelihan's average when his yards are smaller than 0?
### Context:
CREATE TABLE table_name_76 (avg INTEGER, player VARCHAR, yards VARCHAR) [/INST]
### Response:
SELECT SUM(avg) FROM table_name_76 WHERE player = "craig whelihan" AND yards < 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 largest average had 1229 yards?
### Context:
CREATE TABLE table_name_83 (avg INTEGER, yards VARCHAR) [/INST]
### Response:
SELECT MAX(avg) FROM table_name_83 WHERE yards = 1229 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constructor where the circuit is Silverstone?
### Context:
CREATE TABLE table_name_8 (constructor VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_8 WHERE circuit = "silverstone" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winning Driver in the race viii gran premio di siracusa?
### Context:
CREATE TABLE table_name_42 (winning_driver VARCHAR, race_name VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_name_42 WHERE race_name = "viii gran premio di siracusa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that the winner driver is Stirling Moss in the race named vi grand prix de caen?
### Context:
CREATE TABLE table_name_91 (date VARCHAR, winning_driver VARCHAR, race_name VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_91 WHERE winning_driver = "stirling moss" AND race_name = "vi grand prix de caen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the location of 39.1178°n 106.4454°w in?
### Context:
CREATE TABLE table_name_55 (state VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT state FROM table_name_55 WHERE location = "39.1178°n 106.4454°w" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.