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:
How many seats does leader Raymond McCartney have?
### Context:
CREATE TABLE table_name_2 (number_of_seats INTEGER, leader VARCHAR) [/INST]
### Response:
SELECT SUM(number_of_seats) FROM table_name_2 WHERE leader = "raymond mccartney" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 leader of the Democratic Unionist party has more than 8 seats?
### Context:
CREATE TABLE table_name_35 (leader VARCHAR, number_of_seats VARCHAR, party VARCHAR) [/INST]
### Response:
SELECT leader FROM table_name_35 WHERE number_of_seats > 8 AND party = "democratic unionist party" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Anuya Bhagvath was nominated for what award?
### Context:
CREATE TABLE table_name_60 (award VARCHAR, outcome VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT award FROM table_name_60 WHERE outcome = "nominated" AND name = "anuya bhagvath" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 award has film lyricist in the category?
### Context:
CREATE TABLE table_name_11 (award VARCHAR, category VARCHAR) [/INST]
### Response:
SELECT award FROM table_name_11 WHERE category = "film lyricist" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 category Anuya Bhagvath was nominated for at vijay award?
### Context:
CREATE TABLE table_name_39 (ceremony VARCHAR, name VARCHAR, award VARCHAR, outcome VARCHAR) [/INST]
### Response:
SELECT ceremony FROM table_name_39 WHERE award = "vijay award" AND outcome = "nominated" AND name = "anuya bhagvath" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ceremony has the best lyricist category?
### Context:
CREATE TABLE table_name_67 (ceremony VARCHAR, category VARCHAR) [/INST]
### Response:
SELECT ceremony FROM table_name_67 WHERE category = "best lyricist" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 best 3-year period has a best 15-year period of smyslov; kasparov, and a Position of 5?
### Context:
CREATE TABLE table_name_61 (best_3_year_period VARCHAR, best_15_year_period VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT best_3_year_period FROM table_name_61 WHERE best_15_year_period = "smyslov; kasparov" AND position = 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 best 5-year period has a best 15-year period of alekhine; lasker?
### Context:
CREATE TABLE table_name_37 (best_5_year_period VARCHAR, best_15_year_period VARCHAR) [/INST]
### Response:
SELECT best_5_year_period FROM table_name_37 WHERE best_15_year_period = "alekhine; lasker" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 best 10-year period has a best 2-year period of petrosian?
### Context:
CREATE TABLE table_name_32 (best_10_year_period VARCHAR, best_2_year_period VARCHAR) [/INST]
### Response:
SELECT best_10_year_period FROM table_name_32 WHERE best_2_year_period = "petrosian" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Position has a best 3-year period of petrosian?
### Context:
CREATE TABLE table_name_69 (position INTEGER, best_3_year_period VARCHAR) [/INST]
### Response:
SELECT MAX(position) FROM table_name_69 WHERE best_3_year_period = "petrosian" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 High Rebounds, when Score is 61-59?
### Context:
CREATE TABLE table_name_6 (high_rebounds VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT high_rebounds FROM table_name_6 WHERE score = "61-59" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Score, when High Rebounds is "Nolan (10)"?
### Context:
CREATE TABLE table_name_61 (score VARCHAR, high_rebounds VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_61 WHERE high_rebounds = "nolan (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 Opponent, when High Rebounds is "Pierson (6)"?
### Context:
CREATE TABLE table_name_67 (opponent VARCHAR, high_rebounds VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_67 WHERE high_rebounds = "pierson (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 sum of Game(s), when High Rebounds is "Pierson (6)"?
### Context:
CREATE TABLE table_name_6 (game INTEGER, high_rebounds VARCHAR) [/INST]
### Response:
SELECT SUM(game) FROM table_name_6 WHERE high_rebounds = "pierson (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:
How many Laps did Bob Wollek have?
### Context:
CREATE TABLE table_name_5 (laps INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT AVG(laps) FROM table_name_5 WHERE driver = "bob wollek" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Team Primagaz Competition have?
### Context:
CREATE TABLE table_name_14 (laps VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT laps FROM table_name_14 WHERE team = "primagaz competition" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had 40 Laps in C1 Class?
### Context:
CREATE TABLE table_name_46 (team VARCHAR, class VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_46 WHERE class = "c1" AND laps = 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:
What Team has Bob Wollek as a Driver with 76 Laps in C1 Class?
### Context:
CREATE TABLE table_name_63 (team VARCHAR, driver VARCHAR, class VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_63 WHERE class = "c1" AND laps = 76 AND driver = "bob wollek" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many Laps does GP Motorsport Team have?
### Context:
CREATE TABLE table_name_43 (laps INTEGER, team VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_43 WHERE team = "gp motorsport" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the location when the score is w 105-99?
### Context:
CREATE TABLE table_name_58 (location VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_58 WHERE score = "w 105-99" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the location on november 23?
### Context:
CREATE TABLE table_name_58 (location VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_58 WHERE date = "november 23" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Ends Lost which has an Shot % larger than 78, and a Ends Won smaller than 38?
### Context:
CREATE TABLE table_name_63 (ends_lost INTEGER, shot__percentage VARCHAR, ends_won VARCHAR) [/INST]
### Response:
SELECT MAX(ends_lost) FROM table_name_63 WHERE shot__percentage > 78 AND ends_won < 38 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the Country which has Stolen Ends larger than 7, and a Skip of david murdoch?
### Context:
CREATE TABLE table_name_67 (country VARCHAR, stolen_ends VARCHAR, skip VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_67 WHERE stolen_ends > 7 AND skip = "david murdoch" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 average Stolen Ends which has an Ends Lost smaller than 35?
### Context:
CREATE TABLE table_name_89 (stolen_ends INTEGER, ends_lost INTEGER) [/INST]
### Response:
SELECT AVG(stolen_ends) FROM table_name_89 WHERE ends_lost < 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:
Name the average Blank Ends which has a Shot % smaller than 78, and a Ends Won larger than 43?
### Context:
CREATE TABLE table_name_80 (blank_ends INTEGER, shot__percentage VARCHAR, ends_won VARCHAR) [/INST]
### Response:
SELECT AVG(blank_ends) FROM table_name_80 WHERE shot__percentage < 78 AND ends_won > 43 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank has skyfall as the title?
### Context:
CREATE TABLE table_name_35 (rank VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_35 WHERE title = "skyfall" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 director(s) have the intouchables as the title?
### Context:
CREATE TABLE table_name_67 (director_s_ VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT director_s_ FROM table_name_67 WHERE title = "the intouchables" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 studio has 6 as the rank?
### Context:
CREATE TABLE table_name_32 (studio VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT studio FROM table_name_32 WHERE rank = 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:
How many ranks have $1,084,439,099 as the worldwide gross?
### Context:
CREATE TABLE table_name_91 (rank INTEGER, worldwide_gross VARCHAR) [/INST]
### Response:
SELECT SUM(rank) FROM table_name_91 WHERE worldwide_gross = "$1,084,439,099" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1981 value of the Macedonian population with a 1971 number greater than 192 and a 1991 of 1748?
### Context:
CREATE TABLE table_name_54 (number_1971 VARCHAR) [/INST]
### Response:
SELECT 1981 FROM table_name_54 WHERE number_1971 > 192 AND 1991 = 1748 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1971 number of the Macedonian population with a 2002 value greater than 133 and a 1991 value less than 171?
### Context:
CREATE TABLE table_name_15 (number_1971 INTEGER) [/INST]
### Response:
SELECT MIN(number_1971) FROM table_name_15 WHERE 2002 > 133 AND 1991 < 171 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1961 number of the plandište Macedonian population with a 1981 value greater than 1027?
### Context:
CREATE TABLE table_name_47 (macedonian_population_in_vojvodina VARCHAR) [/INST]
### Response:
SELECT COUNT(1961) FROM table_name_47 WHERE macedonian_population_in_vojvodina = "plandište" AND 1981 > 1027 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1961 total of the Macedonian population with a 1971 number of 3325 and a 1991 value greater than 3177?
### Context:
CREATE TABLE table_name_15 (number_1971 VARCHAR) [/INST]
### Response:
SELECT COUNT(1961) FROM table_name_15 WHERE number_1971 = 3325 AND 1991 > 3177 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 airport is in Muscat?
### Context:
CREATE TABLE table_name_60 (airport VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT airport FROM table_name_60 WHERE city = "muscat" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country is Bandar Abbas in?
### Context:
CREATE TABLE table_name_8 (country VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_8 WHERE city = "bandar abbas" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city in India with an airport named Sardar Vallabhbhai Patel International Airport?
### Context:
CREATE TABLE table_name_58 (city VARCHAR, country VARCHAR, airport VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_58 WHERE country = "india" AND airport = "sardar vallabhbhai patel international airport" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 airport is in China with an ICAO of zbaa?
### Context:
CREATE TABLE table_name_55 (airport VARCHAR, country VARCHAR, icao VARCHAR) [/INST]
### Response:
SELECT airport FROM table_name_55 WHERE country = "china" AND icao = "zbaa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 airport is in Toronto?
### Context:
CREATE TABLE table_name_87 (airport VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT airport FROM table_name_87 WHERE city = "toronto" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country has an ICAO of ypph?
### Context:
CREATE TABLE table_name_67 (country VARCHAR, icao VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_67 WHERE icao = "ypph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When the mark is 8.54, the reaction time was over 0.23800000000000002 seconds, what's the highest amount of points recorded?
### Context:
CREATE TABLE table_name_79 (points INTEGER, mark VARCHAR, react VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_79 WHERE mark = "8.54" AND react > 0.23800000000000002 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a reaction time of under 0.242 seconds and over 1041 points?
### Context:
CREATE TABLE table_name_58 (country VARCHAR, react VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_58 WHERE react < 0.242 AND points > 1041 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
If a country has 1008 points what's their reaction time?
### Context:
CREATE TABLE table_name_84 (react INTEGER, points VARCHAR) [/INST]
### Response:
SELECT MAX(react) FROM table_name_84 WHERE points = 1008 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wicket had 580 runs?
### Context:
CREATE TABLE table_name_85 (wicket VARCHAR, runs VARCHAR) [/INST]
### Response:
SELECT wicket FROM table_name_85 WHERE runs = "580" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fielded against the 8th wicket?
### Context:
CREATE TABLE table_name_81 (fielding_team VARCHAR, wicket VARCHAR) [/INST]
### Response:
SELECT fielding_team FROM table_name_81 WHERE wicket = "8th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many runs did Vijay Hazare and Gul Mohammad score?
### Context:
CREATE TABLE table_name_98 (runs VARCHAR, batting_partners VARCHAR) [/INST]
### Response:
SELECT runs FROM table_name_98 WHERE batting_partners = "vijay hazare and gul mohammad" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were the batting partners in Colombo?
### Context:
CREATE TABLE table_name_99 (batting_partners VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT batting_partners FROM table_name_99 WHERE venue = "colombo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 batting team in the 2006 season?
### Context:
CREATE TABLE table_name_61 (batting_team VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT batting_team FROM table_name_61 WHERE season = "2006" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 season was 577 runs scored?
### Context:
CREATE TABLE table_name_33 (season VARCHAR, runs VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_33 WHERE runs = "577" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opposing team has 20 against?
### Context:
CREATE TABLE table_name_7 (opposing_team VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT opposing_team FROM table_name_7 WHERE against = 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:
Venue for Hawke's bay?
### Context:
CREATE TABLE table_name_14 (venue VARCHAR, opposing_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_14 WHERE opposing_team = "hawke's bay" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 December, when Game is "36"?
### Context:
CREATE TABLE table_name_39 (december INTEGER, game VARCHAR) [/INST]
### Response:
SELECT AVG(december) FROM table_name_39 WHERE game = 36 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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, when December is greater than 13, and when Score is "5 - 0"?
### Context:
CREATE TABLE table_name_22 (game INTEGER, december VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT MIN(game) FROM table_name_22 WHERE december > 13 AND score = "5 - 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 the sum of December, when Game is greater than 31, and when Score is "5 - 2"?
### Context:
CREATE TABLE table_name_61 (december INTEGER, game VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT SUM(december) FROM table_name_61 WHERE game > 31 AND score = "5 - 2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Record, when Game is "36"?
### Context:
CREATE TABLE table_name_79 (record VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_79 WHERE game = 36 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team Leatherhead?
### Context:
CREATE TABLE table_name_53 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_53 WHERE home_team = "leatherhead" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 match played against away team Arsenal?
### Context:
CREATE TABLE table_name_96 (score VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_96 WHERE away_team = "arsenal" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Can you tell me the highest Total votes that has the % of popular vote of 0.86%, and the # of seats won larger than 0?
### Context:
CREATE TABLE table_name_48 (total_votes INTEGER, _percentage_of_popular_vote VARCHAR, _number_of_seats_won VARCHAR) [/INST]
### Response:
SELECT MAX(total_votes) FROM table_name_48 WHERE _percentage_of_popular_vote = "0.86%" AND _number_of_seats_won > 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:
Can you tell me the average Total votes that has the # of seats won smaller than 0?
### Context:
CREATE TABLE table_name_75 (total_votes INTEGER, _number_of_seats_won INTEGER) [/INST]
### Response:
SELECT AVG(total_votes) FROM table_name_75 WHERE _number_of_seats_won < 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:
Can you tell me the total number of Total votes that has the Election larger than 2009, and the Candidates fielded larger than 61?
### Context:
CREATE TABLE table_name_71 (total_votes VARCHAR, election VARCHAR, candidates_fielded VARCHAR) [/INST]
### Response:
SELECT COUNT(total_votes) FROM table_name_71 WHERE election > 2009 AND candidates_fielded > 61 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the opponent Guillermo Carry play?
### Context:
CREATE TABLE table_name_60 (tournament VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_60 WHERE opponent = "guillermo carry" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on April 21, 2008?
### Context:
CREATE TABLE table_name_44 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_44 WHERE date = "april 21, 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:
Who is the opponent on November 22, 2009, clay surface?
### Context:
CREATE TABLE table_name_46 (opponent VARCHAR, surface VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_46 WHERE surface = "clay" AND date = "november 22, 2009" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Laps have a Grid larger than 8, and a Rider of anthony west?
### Context:
CREATE TABLE table_name_60 (laps INTEGER, grid VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_60 WHERE grid > 8 AND rider = "anthony west" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time has a Rider of anthony west?
### Context:
CREATE TABLE table_name_66 (time VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_66 WHERE rider = "anthony west" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Grid is the highest one that has a Rider of colin edwards, and Laps smaller than 28?
### Context:
CREATE TABLE table_name_86 (grid INTEGER, rider VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_86 WHERE rider = "colin edwards" AND laps < 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:
Which Laps have a Rider of andrea dovizioso?
### Context:
CREATE TABLE table_name_2 (laps INTEGER, rider VARCHAR) [/INST]
### Response:
SELECT MIN(laps) FROM table_name_2 WHERE rider = "andrea dovizioso" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 college/junior/club team had a player selected in round 6?
### Context:
CREATE TABLE table_name_4 (college_junior_club_team__league_ VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT college_junior_club_team__league_ FROM table_name_4 WHERE round = 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 round of the draft was Stan Adams selected?
### Context:
CREATE TABLE table_name_59 (round INTEGER, player VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_59 WHERE player = "stan adams" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the t7-7 result?
### Context:
CREATE TABLE table_name_17 (attendance VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_17 WHERE result = "t7-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:
What is the date for 45,000 in attendance?
### Context:
CREATE TABLE table_name_32 (date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_32 WHERE attendance = "45,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:
How many strokes under par was the player who scored 71?
### Context:
CREATE TABLE table_name_43 (to_par VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_43 WHERE score = 71 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What place is Jay Hebert?
### Context:
CREATE TABLE table_name_60 (place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_60 WHERE player = "jay hebert" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Games lost has Points against of 61, and Points difference smaller than 42?
### Context:
CREATE TABLE table_name_74 (games_lost INTEGER, points_against VARCHAR, points_difference VARCHAR) [/INST]
### Response:
SELECT SUM(games_lost) FROM table_name_74 WHERE points_against = 61 AND points_difference < 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:
Which Games won has Bonus points larger than 1, a Points difference smaller than 50, Points against of 106, and Points for smaller than 152?
### Context:
CREATE TABLE table_name_58 (games_won VARCHAR, points_for VARCHAR, points_against VARCHAR, bonus_points VARCHAR, points_difference VARCHAR) [/INST]
### Response:
SELECT COUNT(games_won) FROM table_name_58 WHERE bonus_points > 1 AND points_difference < 50 AND points_against = 106 AND points_for < 152 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Score has a Record of 1-2?
### Context:
CREATE TABLE table_name_40 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_40 WHERE record = "1-2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Record for April 15?
### Context:
CREATE TABLE table_name_45 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_45 WHERE date = "april 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 is the Record for April 13?
### Context:
CREATE TABLE table_name_14 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_14 WHERE date = "april 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:
On April 15 who is the Home team?
### Context:
CREATE TABLE table_name_80 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_80 WHERE date = "april 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:
Which Attendance has a Date of december 22, 1985, and a Week smaller than 16?
### Context:
CREATE TABLE table_name_65 (attendance INTEGER, date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_65 WHERE date = "december 22, 1985" AND week < 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Attendance has a Result of w 23-21, and a Week smaller than 5?
### Context:
CREATE TABLE table_name_75 (attendance INTEGER, result VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_75 WHERE result = "w 23-21" AND week < 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 Week has a Result of w 20-13?
### Context:
CREATE TABLE table_name_20 (week INTEGER, result VARCHAR) [/INST]
### Response:
SELECT AVG(week) FROM table_name_20 WHERE result = "w 20-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:
What are the Japanese characters for the Chinese word 叉焼?
### Context:
CREATE TABLE table_name_28 (japanese VARCHAR, chinese VARCHAR) [/INST]
### Response:
SELECT japanese FROM table_name_28 WHERE chinese = "叉焼" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 language did the word that means mahjong first come from?
### Context:
CREATE TABLE table_name_28 (source_language VARCHAR, meaning VARCHAR) [/INST]
### Response:
SELECT source_language FROM table_name_28 WHERE meaning = "mahjong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Romanization of the Mandarin word whose Rōmaji is ūroncha
### Context:
CREATE TABLE table_name_81 (romanization VARCHAR, source_language VARCHAR, rōmaji VARCHAR) [/INST]
### Response:
SELECT romanization FROM table_name_81 WHERE source_language = "mandarin" AND rōmaji = "ūroncha" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 language did the word mahjong originate from?
### Context:
CREATE TABLE table_name_31 (source_language VARCHAR, meaning VARCHAR) [/INST]
### Response:
SELECT source_language FROM table_name_31 WHERE meaning = "mahjong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Chinese characters for the word that has a Rōmaji of chāshū?
### Context:
CREATE TABLE table_name_61 (chinese VARCHAR, rōmaji VARCHAR) [/INST]
### Response:
SELECT chinese FROM table_name_61 WHERE rōmaji = "chāshū" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 category of Richard Nixon as President in a year prior to 2009?
### Context:
CREATE TABLE table_name_3 (category VARCHAR, president VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT category FROM table_name_3 WHERE president = "richard nixon" AND year < 2009 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the film that Raymond Massey was nominated for?
### Context:
CREATE TABLE table_name_94 (film VARCHAR, nominee VARCHAR) [/INST]
### Response:
SELECT film FROM table_name_94 WHERE nominee = "raymond massey" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 film of Richard Nixon as President in a year newer than 1996?
### Context:
CREATE TABLE table_name_49 (film VARCHAR, president VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT film FROM table_name_49 WHERE president = "richard nixon" AND year > 1996 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Partner has a Outcome of winner, and a Opponents in the final of rick leach jim pugh?
### Context:
CREATE TABLE table_name_3 (partner VARCHAR, outcome VARCHAR, opponents_in_the_final VARCHAR) [/INST]
### Response:
SELECT partner FROM table_name_3 WHERE outcome = "winner" AND opponents_in_the_final = "rick leach jim pugh" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Score in the final has a Surface of hard on august 20, 1989?
### Context:
CREATE TABLE table_name_47 (score_in_the_final VARCHAR, surface VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score_in_the_final FROM table_name_47 WHERE surface = "hard" AND date = "august 20, 1989" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Outcome which has a Score in the final of 4–6, 4–6 on october 21, 1990?
### Context:
CREATE TABLE table_name_15 (outcome VARCHAR, score_in_the_final VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_15 WHERE score_in_the_final = "4–6, 4–6" AND date = "october 21, 1990" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Score in the final of 7–5, 6–4?
### Context:
CREATE TABLE table_name_2 (tournament VARCHAR, score_in_the_final VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_2 WHERE score_in_the_final = "7–5, 6–4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the Score which has a Partner of jorge lozano, an Outcome of runner-up, and Opponents in the final of udo riglewski michael stich?
### Context:
CREATE TABLE table_name_85 (score_in_the_final VARCHAR, opponents_in_the_final VARCHAR, partner VARCHAR, outcome VARCHAR) [/INST]
### Response:
SELECT score_in_the_final FROM table_name_85 WHERE partner = "jorge lozano" AND outcome = "runner-up" AND opponents_in_the_final = "udo riglewski 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 Date which has Opponents in the final of patrick mcenroe tim wilkison?
### Context:
CREATE TABLE table_name_12 (date VARCHAR, opponents_in_the_final VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_12 WHERE opponents_in_the_final = "patrick mcenroe tim wilkison" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goals that have games under 11, debut round over 15, and age of 20 years, 71 days?
### Context:
CREATE TABLE table_name_86 (goals__2008_ VARCHAR, age_at_debut VARCHAR, games__2008_ VARCHAR, debut_round VARCHAR) [/INST]
### Response:
SELECT COUNT(goals__2008_) FROM table_name_86 WHERE games__2008_ < 11 AND debut_round > 15 AND age_at_debut = "20 years, 71 days" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 that has a debut round over 14, games under 2, and a club of Melbourne?
### Context:
CREATE TABLE table_name_93 (name VARCHAR, club VARCHAR, debut_round VARCHAR, games__2008_ VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_93 WHERE debut_round > 14 AND games__2008_ < 2 AND club = "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 name of team 2 that has 1-2 as the score?
### Context:
CREATE TABLE table_name_91 (team_2 VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT team_2 FROM table_name_91 WHERE score = "1-2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In the 2005 season with a score of 0-4 what is the team 1?
### Context:
CREATE TABLE table_name_9 (team_1 VARCHAR, season VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT team_1 FROM table_name_9 WHERE season = "2005" AND score = "0-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:
Team 2 of Yokohama F. Marinos in the n/a venue had what score?
### Context:
CREATE TABLE table_name_90 (score VARCHAR, venue VARCHAR, team_2 VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_90 WHERE venue = "n/a" AND team_2 = "yokohama f. marinos" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.