text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest laps that Vittorio Iannuzzo completed?
### Context:
CREATE TABLE table_name_1 (laps INTEGER, rider VARCHAR) [/INST]
### Response:
SELECT MIN(laps) FROM table_name_1 WHERE rider = "vittorio iannuzzo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time that it took for the driver to finish 14 laps?
### Context:
CREATE TABLE table_name_52 (time VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_52 WHERE laps = 14 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Grid of Régis Laconi's bike that is a Kawasaki zx-10r?
### Context:
CREATE TABLE table_name_50 (grid VARCHAR, bike VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT grid FROM table_name_50 WHERE bike = "kawasaki zx-10r" AND rider = "régis laconi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bike that has a grid number smaller than 9 with a time of +7.764?
### Context:
CREATE TABLE table_name_18 (bike VARCHAR, grid VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT bike FROM table_name_18 WHERE grid < 9 AND time = "+7.764" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 French Elector Elevated on 1288, May 16?
### Context:
CREATE TABLE table_name_92 (elector VARCHAR, nationality VARCHAR, elevated VARCHAR) [/INST]
### Response:
SELECT elector FROM table_name_92 WHERE nationality = "french" AND elevated = "1288, may 16" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Elector has the Title of Titulus S. Cecilia?
### Context:
CREATE TABLE table_name_13 (elector VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT elector FROM table_name_13 WHERE title = "titulus s. cecilia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Nationality of the Deacon of S. Maria in Via Lata?
### Context:
CREATE TABLE table_name_5 (nationality VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_5 WHERE title = "deacon of s. maria in via lata" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Title of Elector Giovanni Boccamazza?
### Context:
CREATE TABLE table_name_16 (title VARCHAR, elector VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_16 WHERE elector = "giovanni boccamazza" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the date above 27 and an opponent of the St. Louis Blues?
### Context:
CREATE TABLE table_name_33 (record VARCHAR, date VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_33 WHERE date > 27 AND opponent = "st. louis blues" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for a game over 31 and a date over 30?
### Context:
CREATE TABLE table_name_54 (opponent VARCHAR, game VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_54 WHERE game > 31 AND date > 30 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date did the song by jennifer lopez get issued?
### Context:
CREATE TABLE table_name_54 (issue_date_s_ VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT issue_date_s_ FROM table_name_54 WHERE artist = "jennifer lopez" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 gold medals when there were 2 bronze medals, a total of more than 3 medals and ranked 61?
### Context:
CREATE TABLE table_name_31 (gold VARCHAR, total VARCHAR, bronze VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT COUNT(gold) FROM table_name_31 WHERE bronze = 2 AND rank = "61" AND total > 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 total number of medals when there were 4 bronze, more than 2 silver, and less than 7 gold medals?
### Context:
CREATE TABLE table_name_26 (total INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT AVG(total) FROM table_name_26 WHERE bronze = 4 AND silver > 2 AND gold < 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 lowest episode number with an original airdate on 8 June 2008?
### Context:
CREATE TABLE table_name_31 (episode INTEGER, original_airdate VARCHAR) [/INST]
### Response:
SELECT MIN(episode) FROM table_name_31 WHERE original_airdate = "8 june 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 was number 4 when Natalie was number 9?
### Context:
CREATE TABLE table_name_38 (no_4 VARCHAR, no_9 VARCHAR) [/INST]
### Response:
SELECT no_4 FROM table_name_38 WHERE no_9 = "natalie" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number 7 when Olivia was number 5 and Emma was number 2?
### Context:
CREATE TABLE table_name_16 (no_7 VARCHAR, no_5 VARCHAR, no_2 VARCHAR) [/INST]
### Response:
SELECT no_7 FROM table_name_16 WHERE no_5 = "olivia" AND no_2 = "emma" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Chloe was number 8, Olivia was number 2, Emma was number 1, and Ava was number 4, who was number 5?
### Context:
CREATE TABLE table_name_76 (no_5 VARCHAR, no_4 VARCHAR, no_1 VARCHAR, no_8 VARCHAR, no_2 VARCHAR) [/INST]
### Response:
SELECT no_5 FROM table_name_76 WHERE no_8 = "chloe" AND no_2 = "olivia" AND no_1 = "emma" AND no_4 = "ava" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 platform is the company Surfstats Software?
### Context:
CREATE TABLE table_name_44 (platform VARCHAR, company VARCHAR) [/INST]
### Response:
SELECT platform FROM table_name_44 WHERE company = "surfstats software" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 USD price for Tealeaf?
### Context:
CREATE TABLE table_name_79 (price_in_usd VARCHAR, company VARCHAR) [/INST]
### Response:
SELECT price_in_usd FROM table_name_79 WHERE company = "tealeaf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 platform for the latest release 5.0.3?
### Context:
CREATE TABLE table_name_53 (platform VARCHAR, latest_stable_release VARCHAR) [/INST]
### Response:
SELECT platform FROM table_name_53 WHERE latest_stable_release = "5.0.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 platform for the latest release 8.4?
### Context:
CREATE TABLE table_name_28 (platform VARCHAR, latest_stable_release VARCHAR) [/INST]
### Response:
SELECT platform FROM table_name_28 WHERE latest_stable_release = "8.4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
WHAT IS THE TAMIL WITH A SUKRAVAR ?
### Context:
CREATE TABLE table_name_89 (tamil VARCHAR, hindi VARCHAR) [/INST]
### Response:
SELECT tamil FROM table_name_89 WHERE hindi = "sukravar" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 HINDI HAS A KANNADA OF SHANIVARA?
### Context:
CREATE TABLE table_name_36 (hindi VARCHAR, kannada VARCHAR) [/INST]
### Response:
SELECT hindi FROM table_name_36 WHERE kannada = "shanivara" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 MALAYAM WITH മലയാളം of വെള്ളി?
### Context:
CREATE TABLE table_name_61 (malayalam VARCHAR, മലയാളം VARCHAR) [/INST]
### Response:
SELECT malayalam FROM table_name_61 WHERE മലയാളം = "വെള്ളി" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 TAMIL HAS Kannada of budhavara?
### Context:
CREATE TABLE table_name_91 (tamil VARCHAR, kannada VARCHAR) [/INST]
### Response:
SELECT tamil FROM table_name_91 WHERE kannada = "budhavara" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 HINDI HAS Tamil of vyazhan?
### Context:
CREATE TABLE table_name_37 (hindi VARCHAR, tamil VARCHAR) [/INST]
### Response:
SELECT hindi FROM table_name_37 WHERE tamil = "vyazhan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 HINDI HAS Kannada of shukravara?
### Context:
CREATE TABLE table_name_54 (hindi VARCHAR, kannada VARCHAR) [/INST]
### Response:
SELECT hindi FROM table_name_54 WHERE kannada = "shukravara" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 amount of assists for more than 5 games?
### Context:
CREATE TABLE table_name_24 (assists INTEGER, games_played INTEGER) [/INST]
### Response:
SELECT MIN(assists) FROM table_name_24 WHERE games_played > 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest amount of points with less than 5 assists and less than 2 goals?
### Context:
CREATE TABLE table_name_5 (points INTEGER, assists VARCHAR, goals VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_5 WHERE assists < 5 AND goals < 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:
How many points on average are there for less than 5 games played?
### Context:
CREATE TABLE table_name_84 (points INTEGER, games_played INTEGER) [/INST]
### Response:
SELECT AVG(points) FROM table_name_84 WHERE games_played < 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 opponent has w 17-0 as the result?
### Context:
CREATE TABLE table_name_70 (opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_70 WHERE result = "w 17-0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which country has the Narita International Airport?
### Context:
CREATE TABLE table_name_20 (country VARCHAR, airport VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_20 WHERE airport = "narita 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 is the IATA when the ICAO is wipp?
### Context:
CREATE TABLE table_name_52 (iata VARCHAR, icao VARCHAR) [/INST]
### Response:
SELECT iata FROM table_name_52 WHERE icao = "wipp" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 airport's ICAO is rpvi?
### Context:
CREATE TABLE table_name_61 (airport VARCHAR, icao VARCHAR) [/INST]
### Response:
SELECT airport FROM table_name_61 WHERE icao = "rpvi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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's IATA is ika?
### Context:
CREATE TABLE table_name_72 (country VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_72 WHERE iata = "ika" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ICAO for the Yangon International Airport?
### Context:
CREATE TABLE table_name_52 (icao VARCHAR, airport VARCHAR) [/INST]
### Response:
SELECT icao FROM table_name_52 WHERE airport = "yangon 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 is the ICAO when the IATA is tgg?
### Context:
CREATE TABLE table_name_79 (icao VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT icao FROM table_name_79 WHERE iata = "tgg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what date did Universitario win the Torneo Apertura round after 2003 at Estadio Alejandro Villanueva?
### Context:
CREATE TABLE table_name_45 (date VARCHAR, winner VARCHAR, competition_round VARCHAR, venue VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_45 WHERE venue = "estadio alejandro villanueva" AND season > 2003 AND competition_round = "torneo apertura" AND winner = "universitario" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Director, when Primary Language(s) is "Azerbaijani", and when Original Title is "Buta"?
### Context:
CREATE TABLE table_name_90 (director VARCHAR, primary_language_s_ VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_90 WHERE primary_language_s_ = "azerbaijani" AND original_title = "buta" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Film Title Used In Nomination, when Primary Language(s) is "Azerbaijani, Russian"?
### Context:
CREATE TABLE table_name_83 (film_title_used_in_nomination VARCHAR, primary_language_s_ VARCHAR) [/INST]
### Response:
SELECT film_title_used_in_nomination FROM table_name_83 WHERE primary_language_s_ = "azerbaijani, russian" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Result, when Original Title is "Qala"?
### Context:
CREATE TABLE table_name_38 (result VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_38 WHERE original_title = "qala" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Primary Language(s), when Director is "Ilgar Safat Category:Articles With hCards"?
### Context:
CREATE TABLE table_name_59 (primary_language_s_ VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT primary_language_s_ FROM table_name_59 WHERE director = "ilgar safat category:articles with hcards" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Year (Ceremony), when Director is "Farid Gumbatov Category:Articles With hCards"?
### Context:
CREATE TABLE table_name_51 (year__ceremony_ VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT year__ceremony_ FROM table_name_51 WHERE director = "farid gumbatov category:articles with hcards" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Director, when Original Title is "Sahə"?
### Context:
CREATE TABLE table_name_64 (director VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_64 WHERE original_title = "sahə" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 that had a decider of Conklin?
### Context:
CREATE TABLE table_name_53 (home VARCHAR, decision VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_53 WHERE decision = "conklin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Game 71 was played against what team?
### Context:
CREATE TABLE table_name_99 (opponent VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_99 WHERE game = 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 is the maximum game that was played against the New York Knickerbockers?
### Context:
CREATE TABLE table_name_40 (game INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_name_40 WHERE opponent = "new york knickerbockers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of game that was played on March 19?
### Context:
CREATE TABLE table_name_53 (game VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT game FROM table_name_53 WHERE date = "march 19" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average rank for more than 12 points?
### Context:
CREATE TABLE table_name_24 (rank INTEGER, points INTEGER) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_24 WHERE points > 12 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the rank for less than 6 plays?
### Context:
CREATE TABLE table_name_47 (rank INTEGER, played INTEGER) [/INST]
### Response:
SELECT SUM(rank) FROM table_name_47 WHERE played < 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:
For the draft pick from round 3 out of Mercer College what is the nationality?
### Context:
CREATE TABLE table_name_94 (nationality VARCHAR, round VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_94 WHERE round = 3 AND college = "mercer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 draft pick that went to college at Oral Roberts?
### Context:
CREATE TABLE table_name_44 (player VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_44 WHERE college = "oral roberts" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest point total when the grid is larger than 5 and the time/retired is fire?
### Context:
CREATE TABLE table_name_52 (points INTEGER, grid VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_52 WHERE grid > 5 AND time_retired = "fire" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Nelson Philippe drove with a grid larger than 16, what was the timre/retired?
### Context:
CREATE TABLE table_name_2 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_2 WHERE grid > 16 AND driver = "nelson philippe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time of the race that was on a grid smaller than 9 with jeremy mcwilliams as the rider doing 21 laps?
### Context:
CREATE TABLE table_name_80 (time_retired VARCHAR, rider VARCHAR, grid VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_80 WHERE grid < 9 AND laps = 21 AND rider = "jeremy mcwilliams" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 grid number that a race took place doing more than 21 laps?
### Context:
CREATE TABLE table_name_54 (grid INTEGER, laps INTEGER) [/INST]
### Response:
SELECT MIN(grid) FROM table_name_54 WHERE laps > 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:
What is the total number of grids where there were races that had a time of 34:22.335?
### Context:
CREATE TABLE table_name_60 (grid VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_60 WHERE time_retired = "34:22.335" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank has final with 5:18.85?
### Context:
CREATE TABLE table_name_96 (rank VARCHAR, final VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_96 WHERE final = "5:18.85" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 final has rank of 10?
### Context:
CREATE TABLE table_name_59 (final VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT final FROM table_name_59 WHERE rank = "10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which final has a run of 1:19.49?
### Context:
CREATE TABLE table_name_18 (final VARCHAR, run_3 VARCHAR) [/INST]
### Response:
SELECT final FROM table_name_18 WHERE run_3 = "1:19.49" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which run 2 with final of 5:24.47?
### Context:
CREATE TABLE table_name_18 (run_2 VARCHAR, final VARCHAR) [/INST]
### Response:
SELECT run_2 FROM table_name_18 WHERE final = "5:24.47" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which team has run 1 of 1:17.44?
### Context:
CREATE TABLE table_name_36 (team VARCHAR, run_1 VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_36 WHERE run_1 = "1:17.44" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which team has run 3 of 1:20.77?
### Context:
CREATE TABLE table_name_18 (team VARCHAR, run_3 VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_18 WHERE run_3 = "1:20.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:
Who was the home team when Manchester City was the away team?
### Context:
CREATE TABLE table_name_89 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_89 WHERE away_team = "manchester city" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score when the home team was Stockport County?
### Context:
CREATE TABLE table_name_73 (score VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_73 WHERE home_team = "stockport county" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tie Number when Barnsley was the away team?
### Context:
CREATE TABLE table_name_40 (tie_no VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_40 WHERE away_team = "barnsley" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game that took place on october 22, 1976?
### Context:
CREATE TABLE table_name_53 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_53 WHERE date = "october 22, 1976" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game where the record was 2-2?
### Context:
CREATE TABLE table_name_76 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_76 WHERE record = "2-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:
Who was the home team in the game with a record of 2-4?
### Context:
CREATE TABLE table_name_50 (home VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_50 WHERE record = "2-4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the race for the world championship formula 1 at a venue of hungaroring?
### Context:
CREATE TABLE table_name_4 (race VARCHAR, notes VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT race FROM table_name_4 WHERE notes = "world championship formula 1" AND venue = "hungaroring" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winner for the match on October 7?
### Context:
CREATE TABLE table_name_20 (winner VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_20 WHERE date = "october 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 of the race for the new zealand grand prix?
### Context:
CREATE TABLE table_name_21 (date VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_21 WHERE race = "new zealand grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the winner for the world championship formula 1 at the venue, circuit de monaco?
### Context:
CREATE TABLE table_name_89 (winner VARCHAR, notes VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_89 WHERE notes = "world championship formula 1" AND venue = "circuit de monaco" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Result, when Opponent is New England Patriots?
### Context:
CREATE TABLE table_name_8 (result VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_8 WHERE opponent = "new england patriots" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 competition took place on 28/04/1906?
### Context:
CREATE TABLE table_name_11 (competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_11 WHERE date = "28/04/1906" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 runners-up in the game that was won by Cork City F.C. on 10/05/1998?
### Context:
CREATE TABLE table_name_48 (runners_up VARCHAR, winners VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT runners_up FROM table_name_48 WHERE winners = "cork city f.c." AND date = "10/05/1998" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score in the game that was won by Sligo Rovers F.C.?
### Context:
CREATE TABLE table_name_32 (score VARCHAR, winners VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_32 WHERE winners = "sligo rovers f.c." </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date did the Fai Cup with Derry City F.C. as runners-up take place?
### Context:
CREATE TABLE table_name_33 (date VARCHAR, competition VARCHAR, runners_up VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_33 WHERE competition = "fai cup" AND runners_up = "derry city f.c." </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Runner-up on April 11?
### Context:
CREATE TABLE table_name_36 (runner_up VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT runner_up FROM table_name_36 WHERE week = "april 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 was the Tournament on May 2?
### Context:
CREATE TABLE table_name_12 (tournament VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_12 WHERE week = "may 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 Left Office, when Took Office is "11 June 2001", and when Minister is "Mirko Tremaglia"?
### Context:
CREATE TABLE table_name_47 (left_office VARCHAR, took_office VARCHAR, minister VARCHAR) [/INST]
### Response:
SELECT left_office FROM table_name_47 WHERE took_office = "11 june 2001" AND minister = "mirko tremaglia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Minister, when Party is "AN"?
### Context:
CREATE TABLE table_name_89 (minister VARCHAR, party VARCHAR) [/INST]
### Response:
SELECT minister FROM table_name_89 WHERE party = "an" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Left Office, when Party is "UDC", and when Took Office is "11 June 2001"?
### Context:
CREATE TABLE table_name_16 (left_office VARCHAR, party VARCHAR, took_office VARCHAR) [/INST]
### Response:
SELECT left_office FROM table_name_16 WHERE party = "udc" AND took_office = "11 june 2001" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Party, when Left Office is "23 April 2005", when Portfolio is "Minister of Reforms and Devolutions"?
### Context:
CREATE TABLE table_name_17 (party VARCHAR, left_office VARCHAR, portfolio VARCHAR) [/INST]
### Response:
SELECT party FROM table_name_17 WHERE left_office = "23 april 2005" AND portfolio = "minister of reforms and devolutions" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Minister, when Portfolio is "Minister of Pubblic Administration", and when Took Office is "14 November 2002"?
### Context:
CREATE TABLE table_name_97 (minister VARCHAR, portfolio VARCHAR, took_office VARCHAR) [/INST]
### Response:
SELECT minister FROM table_name_97 WHERE portfolio = "minister of pubblic administration" AND took_office = "14 november 2002" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Party, when Minister is "Franco Frattini"?
### Context:
CREATE TABLE table_name_55 (party VARCHAR, minister VARCHAR) [/INST]
### Response:
SELECT party FROM table_name_55 WHERE minister = "franco frattini" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 event had the opponent Ryan Bow?
### Context:
CREATE TABLE table_name_89 (event VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_89 WHERE opponent = "ryan bow" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 location had the opponent Hiroyuki Abe?
### Context:
CREATE TABLE table_name_56 (location VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_56 WHERE opponent = "hiroyuki abe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the 2nd leg for 2004?
### Context:
CREATE TABLE table_name_29 (year VARCHAR) [/INST]
### Response:
SELECT 2 AS nd_leg FROM table_name_29 WHERE 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:
What is the 2nd leg when San Pedro was the winner?
### Context:
CREATE TABLE table_name_92 (winner VARCHAR) [/INST]
### Response:
SELECT 2 AS nd_leg FROM table_name_92 WHERE winner = "san pedro" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rate when there were more than 22 goals?
### Context:
CREATE TABLE table_name_9 (rate VARCHAR, goals INTEGER) [/INST]
### Response:
SELECT rate FROM table_name_9 WHERE goals > 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 largest against has the opposing team of fiji?
### Context:
CREATE TABLE table_name_44 (against INTEGER, opposing_team VARCHAR) [/INST]
### Response:
SELECT MAX(against) FROM table_name_44 WHERE opposing_team = "fiji" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Competition of european race walking cup?
### Context:
CREATE TABLE table_name_32 (position VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_32 WHERE competition = "european race walking cup" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Venue has a Competition of european championships, and a Position of 7th?
### Context:
CREATE TABLE table_name_22 (venue VARCHAR, competition VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_22 WHERE competition = "european championships" AND position = "7th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was the world race walking cup held before 2001?
### Context:
CREATE TABLE table_name_49 (venue VARCHAR, year VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_49 WHERE year < 2001 AND competition = "world race walking cup" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 COMPETITION HAS MARIAN SANDU?
### Context:
CREATE TABLE table_name_66 (competition VARCHAR, res VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_66 WHERE res = "marian sandu" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 WAS ON 1999-05-31?
### Context:
CREATE TABLE table_name_52 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_52 WHERE date = "1999-05-31" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 OPPONENT HAD A SCORE OF 5:5?
### Context:
CREATE TABLE table_name_47 (opponent VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_47 WHERE score = "5:5" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Competition on August 3, 2005 had a Score of 5-0?
### Context:
CREATE TABLE table_name_16 (competition VARCHAR, score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_16 WHERE score = "5-0" AND date = "august 3, 2005" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the Venue of the 2009 Gulf Cup of Nations?
### Context:
CREATE TABLE table_name_75 (venue VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_75 WHERE competition = "2009 gulf cup of nations" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.