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 was the date of the game at Princes Park?
### Context:
CREATE TABLE table_name_83 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_83 WHERE venue = "princes park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the home team at the game with a crowd larger than 32,576?
### Context:
CREATE TABLE table_name_20 (home_team VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT home_team AS score FROM table_name_20 WHERE crowd > 32 OFFSET 576 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Melbourne play as the home team?
### Context:
CREATE TABLE table_name_38 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_38 WHERE home_team = "melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what rounds did Scuderia Milano participate?
### Context:
CREATE TABLE table_name_48 (rounds VARCHAR, entrant VARCHAR) [/INST]
### Response:
SELECT rounds FROM table_name_48 WHERE entrant = "scuderia milano" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 entrant for Louis Chiron with a Chassis of T26C?
### Context:
CREATE TABLE table_name_95 (entrant VARCHAR, driver VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_name_95 WHERE driver = "louis chiron" AND chassis = "t26c" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rounds did Luigi Fagioli drive for Alfa Romeo SPA?
### Context:
CREATE TABLE table_name_69 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT rounds FROM table_name_69 WHERE entrant = "alfa romeo spa" AND driver = "luigi fagioli" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rounds did the P15 Chassis and tyre D participate?
### Context:
CREATE TABLE table_name_10 (rounds VARCHAR, tyre VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT rounds FROM table_name_10 WHERE tyre = "d" AND chassis = "p15" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 play an away game?
### Context:
CREATE TABLE table_name_6 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_6 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:
Where does Melbourne play home games?
### Context:
CREATE TABLE table_name_13 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_13 WHERE home_team = "melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score for the opponent against Richmond?
### Context:
CREATE TABLE table_name_48 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_48 WHERE home_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want to know the total number of national university of ireland with agricultural panel of 0 and labour panel more than 0
### Context:
CREATE TABLE table_name_34 (national_university_of_ireland VARCHAR, agricultural_panel VARCHAR, labour_panel VARCHAR) [/INST]
### Response:
SELECT COUNT(national_university_of_ireland) FROM table_name_34 WHERE agricultural_panel = 0 AND labour_panel > 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:
Tell me the total number of administrative panel with labour panel more than 2, nominated by taoiseach more than 6 and total of 28
### Context:
CREATE TABLE table_name_59 (administrative_panel VARCHAR, nominated_by_the_taoiseach VARCHAR, labour_panel VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT COUNT(administrative_panel) FROM table_name_59 WHERE labour_panel > 2 AND total = 28 AND nominated_by_the_taoiseach > 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 was the away team score at Western Oval?
### Context:
CREATE TABLE table_name_64 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_64 WHERE venue = "western oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of Richmond's home venue?
### Context:
CREATE TABLE table_name_45 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_45 WHERE home_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the away team score at Hawthorn's home game?
### Context:
CREATE TABLE table_name_28 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_28 WHERE home_team = "hawthorn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What score occurred on February 6?
### Context:
CREATE TABLE table_name_31 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_31 WHERE date = "february 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 lowest game number on February 20?
### Context:
CREATE TABLE table_name_69 (game INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MIN(game) FROM table_name_69 WHERE date = "february 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 had the high rebounds when the score was l 122β93?
### Context:
CREATE TABLE table_name_7 (high_rebounds VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT high_rebounds FROM table_name_7 WHERE score = "l 122β93" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which home team played at Princes Park?
### Context:
CREATE TABLE table_name_67 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_67 WHERE venue = "princes park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date was Richmond the home team?
### Context:
CREATE TABLE table_name_17 (date VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_17 WHERE home_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the largest crowd when Melbourne was the away team?
### Context:
CREATE TABLE table_name_37 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_37 WHERE away_team = "melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which gymnast had a balance beam larger than 8.687, had a total less than 38.049, had a floor exercise less than 9.462, and a vault less than 9.275?
### Context:
CREATE TABLE table_name_91 (gymnast VARCHAR, vault VARCHAR, floor_exercise VARCHAR, balance_beam VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT gymnast FROM table_name_91 WHERE balance_beam > 8.687 AND total < 38.049 AND floor_exercise < 9.462 AND vault < 9.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:
Which country is ranked 24?
### Context:
CREATE TABLE table_name_57 (country VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_57 WHERE rank = "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:
Name the highest year with rank of 22 and accolade of singles of 1999
### Context:
CREATE TABLE table_name_89 (year INTEGER, accolade VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_89 WHERE accolade = "singles of 1999" AND rank = "22" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest Grid with a Driver of piers courage?
### Context:
CREATE TABLE table_name_31 (grid INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_31 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:
Name the winner for majorca
### Context:
CREATE TABLE table_name_50 (winner VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_50 WHERE tournament = "majorca" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 third place for anders jΓ€rryd
### Context:
CREATE TABLE table_name_75 (third_place VARCHAR, runner_up VARCHAR) [/INST]
### Response:
SELECT third_place FROM table_name_75 WHERE runner_up = "anders jΓ€rryd" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the score for henri leconte and runner-up of michael stich
### Context:
CREATE TABLE table_name_85 (score VARCHAR, third_place VARCHAR, runner_up VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_85 WHERE third_place = "henri leconte" AND runner_up = "michael stich" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the winner for london tournament
### Context:
CREATE TABLE table_name_93 (winner VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_93 WHERE tournament = "london" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the runner-up for majorca
### Context:
CREATE TABLE table_name_30 (runner_up VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT runner_up FROM table_name_30 WHERE tournament = "majorca" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many laps did BRM have with a grid of 11?
### Context:
CREATE TABLE table_name_33 (laps VARCHAR, constructor VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT COUNT(laps) FROM table_name_33 WHERE constructor = "brm" AND grid = 11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the total grid of Bruce Mclaren?
### Context:
CREATE TABLE table_name_79 (grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_79 WHERE driver = "bruce mclaren" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 least amount of laps that George Eaton completed that has a time/retired engine and a grid larger than 8?
### Context:
CREATE TABLE table_name_20 (laps INTEGER, driver VARCHAR, time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT MIN(laps) FROM table_name_20 WHERE time_retired = "engine" AND grid > 8 AND driver = "george eaton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on 1 April 2008?
### Context:
CREATE TABLE table_name_52 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_52 WHERE date = "1 april 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record on 6 April 2008?
### Context:
CREATE TABLE table_name_20 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_20 WHERE date = "6 april 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the Grantee for san ysidro
### Context:
CREATE TABLE table_name_34 (grantee VARCHAR, concession VARCHAR) [/INST]
### Response:
SELECT grantee FROM table_name_34 WHERE concession = "san ysidro" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 county for mariano castro
### Context:
CREATE TABLE table_name_48 (county VARCHAR, grantee VARCHAR) [/INST]
### Response:
SELECT county FROM table_name_48 WHERE grantee = "mariano castro" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 grantee for las pulgas in 1795
### Context:
CREATE TABLE table_name_6 (grantee VARCHAR, date VARCHAR, concession VARCHAR) [/INST]
### Response:
SELECT grantee FROM table_name_6 WHERE date = 1795 AND concession = "las pulgas" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
A round of 4 is in what position?
### Context:
CREATE TABLE table_name_38 (position VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_38 WHERE round = 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 Club team with a Round larger than 5 have a defense position?
### Context:
CREATE TABLE table_name_9 (club_team VARCHAR, round VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT club_team FROM table_name_9 WHERE round > 5 AND position = "defense" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Club Team is Indiana Ice (ushl)?
### Context:
CREATE TABLE table_name_10 (player VARCHAR, club_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_10 WHERE club_team = "indiana ice (ushl)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Club Team of Quebec remparts (qmjhl)?
### Context:
CREATE TABLE table_name_53 (nationality VARCHAR, club_team VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_53 WHERE club_team = "quebec remparts (qmjhl)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The Position of Centre is what Player?
### Context:
CREATE TABLE table_name_4 (player VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_4 WHERE position = "centre" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Overall of 15 Club team with a Nationality of Canada?
### Context:
CREATE TABLE table_name_37 (club_team VARCHAR, nationality VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT club_team FROM table_name_37 WHERE nationality = "canada" AND overall = "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:
What are the additional major sponsors which correspond to the additional color black and a year 1984?
### Context:
CREATE TABLE table_name_58 (additional_major_sponsor_s_ VARCHAR, additional_colour_s_ VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT additional_major_sponsor_s_ FROM table_name_58 WHERE additional_colour_s_ = "black" AND year = 1984 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year of entries with additional color black?
### Context:
CREATE TABLE table_name_9 (year INTEGER, additional_colour_s_ VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_9 WHERE additional_colour_s_ = "black" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Grid 6?
### Context:
CREATE TABLE table_name_4 (time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_4 WHERE grid = 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 lowest Laps for mike spence, with a Grid smaller than 8?
### Context:
CREATE TABLE table_name_36 (laps INTEGER, driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT MIN(laps) FROM table_name_36 WHERE driver = "mike spence" AND grid < 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
how many laps have a time/retired of +1 lap and mark blundell is the driver?
### Context:
CREATE TABLE table_name_85 (laps INTEGER, time_retired VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT AVG(laps) FROM table_name_85 WHERE time_retired = "+1 lap" AND driver = "mark blundell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 grid when the time/retired is fuel pump and the laps is more than 26?
### Context:
CREATE TABLE table_name_95 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_95 WHERE time_retired = "fuel pump" AND laps > 26 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the least laps for driver gerhard berger with a grid more than 6?
### Context:
CREATE TABLE table_name_35 (laps INTEGER, driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT MIN(laps) FROM table_name_35 WHERE driver = "gerhard berger" AND grid > 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 Kapampangan word for the Malay word aku?
### Context:
CREATE TABLE table_name_8 (kapampangan VARCHAR, malay VARCHAR) [/INST]
### Response:
SELECT kapampangan FROM table_name_8 WHERE malay = "aku" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Lundu (Salako) word for the Siburan-Pandawan word Δku?
### Context:
CREATE TABLE table_name_36 (lundu__salako_ VARCHAR, siburan_padawan VARCHAR) [/INST]
### Response:
SELECT lundu__salako_ FROM table_name_36 WHERE siburan_padawan = "Δku" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Lundu (Salako) word for the Tagalog word pagkain?
### Context:
CREATE TABLE table_name_65 (lundu__salako_ VARCHAR, tagalog VARCHAR) [/INST]
### Response:
SELECT lundu__salako_ FROM table_name_65 WHERE tagalog = "pagkain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Siburan-Padawan word for the Tagalog word kanin?
### Context:
CREATE TABLE table_name_98 (siburan_padawan VARCHAR, tagalog VARCHAR) [/INST]
### Response:
SELECT siburan_padawan FROM table_name_98 WHERE tagalog = "kanin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were the total games in the Big Ten conference when Nebraska lost fewer than 488 games and had a Pct less than 0.7014?
### Context:
CREATE TABLE table_name_68 (total_games INTEGER, pct VARCHAR, team VARCHAR, conference VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT SUM(total_games) FROM table_name_68 WHERE conference = "big ten" AND lost < 488 AND team = "nebraska" AND pct < 0.7014 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Akron's highest Pct in 100 years?
### Context:
CREATE TABLE table_name_5 (pct VARCHAR, years VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT COUNT(pct) FROM table_name_5 WHERE years > 100 AND team = "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:
How many people attended the game at Lake Oval?
### Context:
CREATE TABLE table_name_42 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_42 WHERE venue = "lake oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the away score at the Princes Park game?
### Context:
CREATE TABLE table_name_28 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_28 WHERE venue = "princes park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the home score at the Princes Park game?
### Context:
CREATE TABLE table_name_95 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_95 WHERE venue = "princes park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of stations with a line that is u 6?
### Context:
CREATE TABLE table_name_86 (stations INTEGER, line VARCHAR) [/INST]
### Response:
SELECT SUM(stations) FROM table_name_86 WHERE line = "u 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 route has 21 stations?
### Context:
CREATE TABLE table_name_31 (route VARCHAR, stations VARCHAR) [/INST]
### Response:
SELECT route FROM table_name_31 WHERE stations = 21 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 line was green?
### Context:
CREATE TABLE table_name_95 (line VARCHAR, colour VARCHAR) [/INST]
### Response:
SELECT line FROM table_name_95 WHERE colour = "green" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team that played against Melbourne?
### Context:
CREATE TABLE table_name_96 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_96 WHERE home_team = "melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent when the score was 6β4, 6β7 (2β7) , 7β5?
### Context:
CREATE TABLE table_name_53 (opponent VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_53 WHERE score = "6β4, 6β7 (2β7) , 7β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:
Which tournament was andreas haider-maurer the opponent in?
### Context:
CREATE TABLE table_name_94 (tournament VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_94 WHERE opponent = "andreas haider-maurer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 have a vl type in a region greater than 3?
### Context:
CREATE TABLE table_name_49 (population INTEGER, type VARCHAR, region VARCHAR) [/INST]
### Response:
SELECT SUM(population) FROM table_name_49 WHERE type = "vl" AND region > 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 people are in regions greater than 3?
### Context:
CREATE TABLE table_name_18 (population INTEGER, region INTEGER) [/INST]
### Response:
SELECT SUM(population) FROM table_name_18 WHERE region > 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 average region that has an Area (km 2 ) of 451.79, and a Population under 496,257?
### Context:
CREATE TABLE table_name_43 (region INTEGER, area__km_2__ VARCHAR, population VARCHAR) [/INST]
### Response:
SELECT AVG(region) FROM table_name_43 WHERE area__km_2__ = 451.79 AND population < 496 OFFSET 257 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance on location for a record of 40β40?
### Context:
CREATE TABLE table_name_67 (location_attendance VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT location_attendance FROM table_name_67 WHERE record = "40β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:
Who had the high assist in a game number above 77 for Milwaukee?
### Context:
CREATE TABLE table_name_24 (high_assists VARCHAR, game VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT high_assists FROM table_name_24 WHERE game > 77 AND team = "milwaukee" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had the high assists in game 77?
### Context:
CREATE TABLE table_name_3 (high_assists VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT high_assists FROM table_name_3 WHERE game = 77 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the time/retired for Grid of 13
### Context:
CREATE TABLE table_name_59 (time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_59 WHERE grid = 13 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the highest Grid for Maurice Trintignant and laps less than 87
### Context:
CREATE TABLE table_name_14 (grid INTEGER, driver VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_14 WHERE driver = "maurice trintignant" AND laps < 87 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the lowest Laps for time/retired of engine and driver of charles de tornaco
### Context:
CREATE TABLE table_name_22 (laps INTEGER, time_retired VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT MIN(laps) FROM table_name_22 WHERE time_retired = "engine" AND driver = "charles de tornaco" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 May 2010, which party had a turnout of less than 3, but also the hightest turnout in May 2012?
### Context:
CREATE TABLE table_name_26 (may_2012 INTEGER, may_2010 INTEGER) [/INST]
### Response:
SELECT MAX(may_2012) FROM table_name_26 WHERE may_2010 < 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:
I want the location for round of 3 and time of 4:40
### Context:
CREATE TABLE table_name_4 (location VARCHAR, round VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_4 WHERE round = 3 AND time = "4: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 people were in attendance for the game with a score of 98β111?
### Context:
CREATE TABLE table_name_12 (attendance INTEGER, score VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_12 WHERE score = "98β111" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the record of the game with a score of 101β92?
### Context:
CREATE TABLE table_name_29 (record VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_29 WHERE score = "101β92" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date when the Lakers were the home team?
### Context:
CREATE TABLE table_name_1 (date VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_1 WHERE home = "lakers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people were in attendance when the home shows as Bulls?
### Context:
CREATE TABLE table_name_89 (attendance VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_89 WHERE home = "bulls" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest number of people in attendance when the record was 9β26?
### Context:
CREATE TABLE table_name_7 (attendance INTEGER, record VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_7 WHERE record = "9β26" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the First Class Team in which the player has a bowling style of left arm orthodox spin?
### Context:
CREATE TABLE table_name_15 (first_class_team VARCHAR, bowling_style VARCHAR) [/INST]
### Response:
SELECT first_class_team FROM table_name_15 WHERE bowling_style = "left arm orthodox spin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bowling style of the player whose first class team is Islamabad and has a date of birth of 28 February 1975?
### Context:
CREATE TABLE table_name_72 (bowling_style VARCHAR, first_class_team VARCHAR, date_of_birth VARCHAR) [/INST]
### Response:
SELECT bowling_style FROM table_name_72 WHERE first_class_team = "islamabad" AND date_of_birth = "28 february 1975" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 batting style does player Shahid Afridi have?
### Context:
CREATE TABLE table_name_88 (batting_style VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT batting_style FROM table_name_88 WHERE player = "shahid afridi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the away team at Victoria Park?
### Context:
CREATE TABLE table_name_85 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_85 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 was the crowd size when Geelong played at home?
### Context:
CREATE TABLE table_name_58 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_58 WHERE home_team = "geelong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the home score for the Home team Melbourne?
### Context:
CREATE TABLE table_name_63 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_63 WHERE home_team = "melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which studio analyst has Scott Oake for the ice level reporter?
### Context:
CREATE TABLE table_name_52 (studio_analysts VARCHAR, ice_level_reporters VARCHAR) [/INST]
### Response:
SELECT studio_analysts FROM table_name_52 WHERE ice_level_reporters = "scott oake" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ice level reporter has Harry Neale for the colour commentator after the year 2004?
### Context:
CREATE TABLE table_name_92 (ice_level_reporters VARCHAR, colour_commentator_s_ VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT ice_level_reporters FROM table_name_92 WHERE colour_commentator_s_ = "harry neale" AND year > 2004 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 long was his fight against kim kyoung-suk?
### Context:
CREATE TABLE table_name_27 (time VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_27 WHERE opponent = "kim kyoung-suk" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score for the away team at Collingwood?
### Context:
CREATE TABLE table_name_75 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_75 WHERE away_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the home team of South Melbourne?
### Context:
CREATE TABLE table_name_12 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_12 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:
Who built michael schumacher's car that went under 31 laps?
### Context:
CREATE TABLE table_name_24 (constructor VARCHAR, laps VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_24 WHERE laps < 31 AND driver = "michael schumacher" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 grids for heinz-harald frentzen with 61 laps?
### Context:
CREATE TABLE table_name_12 (grid VARCHAR, laps VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_12 WHERE laps = 61 AND driver = "heinz-harald frentzen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What did the home team score at Lake Oval?
### Context:
CREATE TABLE table_name_2 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_2 WHERE venue = "lake oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What did Footscray score at the home game?
### Context:
CREATE TABLE table_name_23 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_23 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 did Essendon score as the Away team?
### Context:
CREATE TABLE table_name_7 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_7 WHERE away_team = "essendon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the Trofeo Fast team for roberto visentini
### Context:
CREATE TABLE table_name_58 (trofeo_fast_team VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT trofeo_fast_team FROM table_name_58 WHERE winner = "roberto visentini" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 young rider classification for giuseppe saronni at stage 6
### Context:
CREATE TABLE table_name_16 (young_rider_classification VARCHAR, general_classification VARCHAR, stage VARCHAR) [/INST]
### Response:
SELECT young_rider_classification FROM table_name_16 WHERE general_classification = "giuseppe saronni" AND stage = "6" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.