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 2006 census population when the area is 159?
### Context:
CREATE TABLE table_28891101_3 (census_2006_population VARCHAR, area__km_2__ VARCHAR) [/INST]
### Response:
SELECT COUNT(census_2006_population) FROM table_28891101_3 WHERE area__km_2__ = 159 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 area when the Iga name is Ahoada East?
### Context:
CREATE TABLE table_28891101_3 (area__km_2__ INTEGER, lga_name VARCHAR) [/INST]
### Response:
SELECT MAX(area__km_2__) FROM table_28891101_3 WHERE lga_name = "Ahoada East" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What NHL team picked richard borgo?
### Context:
CREATE TABLE table_2897457_2 (nhl_team VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nhl_team FROM table_2897457_2 WHERE player = "Richard Borgo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 draft pick player who plays centre position and is going to Calgary Flames?
### Context:
CREATE TABLE table_2897457_2 (nationality VARCHAR, position VARCHAR, nhl_team VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_2897457_2 WHERE position = "Centre" AND nhl_team = "Calgary Flames" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What player came from Cornell University (NCAA)?
### Context:
CREATE TABLE table_2897457_2 (player VARCHAR, college_junior_club_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_2897457_2 WHERE college_junior_club_team = "Cornell University (NCAA)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 draft picks is player byron dafoe?
### Context:
CREATE TABLE table_2897457_2 (pick__number VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(pick__number) FROM table_2897457_2 WHERE player = "Byron Dafoe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the nationality of the player picked to go to Washington Capitals?
### Context:
CREATE TABLE table_2897457_2 (nationality VARCHAR, nhl_team VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_2897457_2 WHERE nhl_team = "Washington Capitals" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What player attended avon old farms (ushs-ct)?
### Context:
CREATE TABLE table_2897457_5 (player VARCHAR, college_junior_club_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_2897457_5 WHERE college_junior_club_team = "Avon Old Farms (USHS-CT)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What pick number was marc deschamps?
### Context:
CREATE TABLE table_2897457_5 (pick__number VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT pick__number FROM table_2897457_5 WHERE player = "Marc Deschamps" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What nationality is keith carney?
### Context:
CREATE TABLE table_2897457_5 (nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_2897457_5 WHERE player = "Keith Carney" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position did the #94 pick play?
### Context:
CREATE TABLE table_2897457_5 (position VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT position FROM table_2897457_5 WHERE pick__number = 94 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 episode number saw 1.312 million U.S. Wviewers?
### Context:
CREATE TABLE table_29085880_1 (no VARCHAR, us_viewers__million_ VARCHAR) [/INST]
### Response:
SELECT no FROM table_29085880_1 WHERE us_viewers__million_ = "1.312" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the episode directed by Rich Correll and written by Dennis Rinsler?
### Context:
CREATE TABLE table_29102100_1 (title VARCHAR, directed_by VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT title FROM table_29102100_1 WHERE directed_by = "Rich Correll" AND written_by = "Dennis Rinsler" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What number episode in the season had a production code of 334?
### Context:
CREATE TABLE table_29102100_1 (season__number INTEGER, prod_code VARCHAR) [/INST]
### Response:
SELECT MAX(season__number) FROM table_29102100_1 WHERE prod_code = 334 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 production code of the episode directed by Rondell Sheridan?
### Context:
CREATE TABLE table_29102100_1 (prod_code INTEGER, directed_by VARCHAR) [/INST]
### Response:
SELECT MAX(prod_code) FROM table_29102100_1 WHERE directed_by = "Rondell Sheridan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 how many dates the opponen in the final was rushmi chakravarthi
### Context:
CREATE TABLE table_29127804_3 (date VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT COUNT(date) FROM table_29127804_3 WHERE opponent_in_the_final = "Rushmi Chakravarthi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament where outcome is runner-up
### Context:
CREATE TABLE table_29127804_3 (tournament VARCHAR, outcome VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_29127804_3 WHERE outcome = "Runner-up" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 material of the surface in the dehradun , uttarakhand, india location
### Context:
CREATE TABLE table_29127804_3 (surface VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT surface FROM table_29127804_3 WHERE location = "Dehradun , Uttarakhand, India" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 material of the surface in noida , uttar pradesh, india
### Context:
CREATE TABLE table_29127804_3 (surface VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT surface FROM table_29127804_3 WHERE location = "Noida , Uttar Pradesh, India" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game played in the bangalore , karnataka, india location
### Context:
CREATE TABLE table_29127804_3 (date VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT date FROM table_29127804_3 WHERE location = "Bangalore , Karnataka, India" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 destination when the train number is 16526?
### Context:
CREATE TABLE table_29202276_2 (destination VARCHAR, train_number VARCHAR) [/INST]
### Response:
SELECT destination FROM table_29202276_2 WHERE train_number = 16526 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 origin when the destination is Mumbai?
### Context:
CREATE TABLE table_29202276_2 (origin VARCHAR, destination VARCHAR) [/INST]
### Response:
SELECT origin FROM table_29202276_2 WHERE destination = "Mumbai" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 route/via when the destination is listed as Madurai?
### Context:
CREATE TABLE table_29202276_2 (route_via VARCHAR, destination VARCHAR) [/INST]
### Response:
SELECT route_via FROM table_29202276_2 WHERE destination = "Madurai" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 route/via when the train name is Parasuram Express?
### Context:
CREATE TABLE table_29202276_2 (route_via VARCHAR, train_name VARCHAR) [/INST]
### Response:
SELECT route_via FROM table_29202276_2 WHERE train_name = "Parasuram Express" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 train number when the time is 10:38?
### Context:
CREATE TABLE table_29202276_2 (train_number INTEGER, time VARCHAR) [/INST]
### Response:
SELECT MAX(train_number) FROM table_29202276_2 WHERE time = "10: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:
What is the Thurs 2 June time for the rider with a Fri 3 June time of 17' 36.58 128.554mph?
### Context:
CREATE TABLE table_29218221_1 (thurs_2_june VARCHAR, fri_3_june VARCHAR) [/INST]
### Response:
SELECT thurs_2_june FROM table_29218221_1 WHERE fri_3_june = "17' 36.58 128.554mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Mon 30 May time for the rider whose Fri 3 June time was 17' 13.46 131.431mph?
### Context:
CREATE TABLE table_29218221_1 (mon_30_may VARCHAR, fri_3_june VARCHAR) [/INST]
### Response:
SELECT mon_30_may FROM table_29218221_1 WHERE fri_3_june = "17' 13.46 131.431mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Fri 3 June time for the rider whose Tues 31 May time was 19' 18.80 117.215mph?
### Context:
CREATE TABLE table_29218221_1 (fri_3_june VARCHAR, tues_31_may VARCHAR) [/INST]
### Response:
SELECT fri_3_june FROM table_29218221_1 WHERE tues_31_may = "19' 18.80 117.215mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Fri 3 June time for the rider with a Weds 1 June time of 18' 22.66 123.182mph?
### Context:
CREATE TABLE table_29218221_2 (fri_3_june VARCHAR, wed_1_june VARCHAR) [/INST]
### Response:
SELECT fri_3_june FROM table_29218221_2 WHERE wed_1_june = "18' 22.66 123.182mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the rank of the rider whose Tues 31 May time was 19' 02.34 118.903mph?
### Context:
CREATE TABLE table_29218221_2 (rank VARCHAR, tues_31_may VARCHAR) [/INST]
### Response:
SELECT rank FROM table_29218221_2 WHERE tues_31_may = "19' 02.34 118.903mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of riders that had a Tues 31 May time of 18' 55.91 124.236mph?
### Context:
CREATE TABLE table_29218221_2 (rider VARCHAR, tues_31_may VARCHAR) [/INST]
### Response:
SELECT COUNT(rider) FROM table_29218221_2 WHERE tues_31_may = "18' 55.91 124.236mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rider with a Fri 3 June time of 18' 19.68 123.516mph?
### Context:
CREATE TABLE table_29218221_2 (rider VARCHAR, fri_3_june VARCHAR) [/INST]
### Response:
SELECT rider FROM table_29218221_2 WHERE fri_3_june = "18' 19.68 123.516mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 matches did the player that played 23 matches win
### Context:
CREATE TABLE table_29302711_12 (matches_won INTEGER, matches_played VARCHAR) [/INST]
### Response:
SELECT MIN(matches_won) FROM table_29302711_12 WHERE matches_played = 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:
how many countries had 21 points
### Context:
CREATE TABLE table_29302711_12 (country VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(country) FROM table_29302711_12 WHERE points = 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:
how much prize money (in USD) did bob lutz win
### Context:
CREATE TABLE table_29302711_12 (prize_money__usd_ INTEGER, name VARCHAR) [/INST]
### Response:
SELECT MAX(prize_money__usd_) FROM table_29302711_12 WHERE name = "Bob Lutz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 matches did colin dibley win
### Context:
CREATE TABLE table_29302711_12 (matches_won VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT matches_won FROM table_29302711_12 WHERE name = "Colin Dibley" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 hired Renato Gaúcho?
### Context:
CREATE TABLE table_29414946_3 (team VARCHAR, replaced_by VARCHAR) [/INST]
### Response:
SELECT team FROM table_29414946_3 WHERE replaced_by = "Renato Gaúcho" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many times did Silas leave as a team manager?
### Context:
CREATE TABLE table_29414946_3 (manner_of_departure VARCHAR, outgoing_manager VARCHAR) [/INST]
### Response:
SELECT COUNT(manner_of_departure) FROM table_29414946_3 WHERE outgoing_manager = "Silas" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Why did Geninho leave as manager?
### Context:
CREATE TABLE table_29414946_3 (manner_of_departure VARCHAR, outgoing_manager VARCHAR) [/INST]
### Response:
SELECT manner_of_departure FROM table_29414946_3 WHERE outgoing_manager = "Geninho" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 new Santos manager?
### Context:
CREATE TABLE table_29414946_3 (replaced_by VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT replaced_by FROM table_29414946_3 WHERE team = "Santos" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 replaced as manager on June 20?
### Context:
CREATE TABLE table_29414946_3 (outgoing_manager VARCHAR, date_of_appointment VARCHAR) [/INST]
### Response:
SELECT outgoing_manager FROM table_29414946_3 WHERE date_of_appointment = "June 20" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the s color commentator when the pregame host is jon sciambi?
### Context:
CREATE TABLE table_2941848_10 (s_color_commentator VARCHAR, pregame_hosts VARCHAR) [/INST]
### Response:
SELECT s_color_commentator FROM table_2941848_10 WHERE pregame_hosts = "Jon Sciambi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pregame host when the pregame analysts is Dave Campbell and the year is 2001?
### Context:
CREATE TABLE table_2941848_10 (pregame_hosts VARCHAR, pregame_analysts VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT pregame_hosts FROM table_2941848_10 WHERE pregame_analysts = "Dave Campbell" AND year = 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:
How many networks are listed when the year is 2008?
### Context:
CREATE TABLE table_2941848_10 (network VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT COUNT(network) FROM table_2941848_10 WHERE year = 2008 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the original air date of the episode with production code is 319?
### Context:
CREATE TABLE table_29436059_1 (original_air_date VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT original_air_date FROM table_29436059_1 WHERE production_code = 319 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode 10?
### Context:
CREATE TABLE table_29436059_1 (title VARCHAR, no_in_season VARCHAR) [/INST]
### Response:
SELECT title FROM table_29436059_1 WHERE no_in_season = 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 was the position of the player with 57 goals?
### Context:
CREATE TABLE table_29483890_1 (position VARCHAR, goals VARCHAR) [/INST]
### Response:
SELECT position FROM table_29483890_1 WHERE goals = 57 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 book number 7?
### Context:
CREATE TABLE table_2950964_1 (title VARCHAR, _number VARCHAR) [/INST]
### Response:
SELECT title FROM table_2950964_1 WHERE _number = "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 title of book number 8?
### Context:
CREATE TABLE table_2950964_1 (title VARCHAR, _number VARCHAR) [/INST]
### Response:
SELECT title FROM table_2950964_1 WHERE _number = "8" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the publication date of the book that is narrated by Michael Maloney?
### Context:
CREATE TABLE table_2950964_1 (published VARCHAR, audiobook_narrator VARCHAR) [/INST]
### Response:
SELECT published FROM table_2950964_1 WHERE audiobook_narrator = "Michael Maloney" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ISBN 1-84990-243-7?
### Context:
CREATE TABLE table_2950964_1 (title VARCHAR, isbn VARCHAR) [/INST]
### Response:
SELECT title FROM table_2950964_1 WHERE isbn = "isbn 1-84990-243-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:
Who are the featuring companions of number 3?
### Context:
CREATE TABLE table_2950964_1 (featuring_companion VARCHAR, _number VARCHAR) [/INST]
### Response:
SELECT featuring_companion FROM table_2950964_1 WHERE _number = "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 was the time of the games that took place at the cassell coliseum • blacksburg, va?
### Context:
CREATE TABLE table_29535057_4 (time VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT time FROM table_29535057_4 WHERE location = "Cassell Coliseum • Blacksburg, VA" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 challenge leaders were there of the games won by virginia (87-79)?
### Context:
CREATE TABLE table_29535057_4 (challenge_leader VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT COUNT(challenge_leader) FROM table_29535057_4 WHERE winner = "Virginia (87-79)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 challenge leaders of the games won by boston college (88-76)?
### Context:
CREATE TABLE table_29535057_4 (challenge_leader VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT challenge_leader FROM table_29535057_4 WHERE winner = "Boston College (88-76)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where did the games that had Wake Forest as Acc Team take place?
### Context:
CREATE TABLE table_29535057_4 (location VARCHAR, acc_team VARCHAR) [/INST]
### Response:
SELECT location FROM table_29535057_4 WHERE acc_team = "Wake Forest" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where did the games that had Wisconsin as big ten team take place?
### Context:
CREATE TABLE table_29535057_4 (location VARCHAR, big_ten_team VARCHAR) [/INST]
### Response:
SELECT location FROM table_29535057_4 WHERE big_ten_team = "Wisconsin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had the most assists and how many did they have on January 5?
### Context:
CREATE TABLE table_29556461_7 (high_assists VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT high_assists FROM table_29556461_7 WHERE date = "January 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 team was Temple playing on January 19?
### Context:
CREATE TABLE table_29556461_7 (team VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT team FROM table_29556461_7 WHERE date = "January 19" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many different combinations of team colors are there in all the schools in Maroa, Illinois?
### Context:
CREATE TABLE table_29612224_1 (colors VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT COUNT(colors) FROM table_29612224_1 WHERE location = "Maroa, Illinois" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the website of the school in Macon, Illinois?
### Context:
CREATE TABLE table_29612224_1 (school_website VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT school_website FROM table_29612224_1 WHERE location = "Macon, Illinois" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team colors from Tolono, Illinois?
### Context:
CREATE TABLE table_29612224_1 (colors VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT colors FROM table_29612224_1 WHERE location = "Tolono, Illinois" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the name of the city or town of the school that operates the http://www.mfschools.org/high/ website?
### Context:
CREATE TABLE table_29612224_1 (institution VARCHAR, school_website VARCHAR) [/INST]
### Response:
SELECT institution FROM table_29612224_1 WHERE school_website = "http://www.mfschools.org/high/" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had the fastest lap(s) when stefan wilson had the pole?
### Context:
CREATE TABLE table_29690363_3 (fastest_lap VARCHAR, pole_position VARCHAR) [/INST]
### Response:
SELECT fastest_lap FROM table_29690363_3 WHERE pole_position = "Stefan Wilson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had the fastest lap(s) when josef newgarden led the most laps at edmonton?
### Context:
CREATE TABLE table_29690363_3 (fastest_lap VARCHAR, most_laps_led VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT fastest_lap FROM table_29690363_3 WHERE most_laps_led = "Josef Newgarden" AND race = "Edmonton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had the pole(s) when esteban guerrieri led the most laps round 8a and josef newgarden had the fastest lap?
### Context:
CREATE TABLE table_29690363_3 (pole_position VARCHAR, rd VARCHAR, most_laps_led VARCHAR, fastest_lap VARCHAR) [/INST]
### Response:
SELECT pole_position FROM table_29690363_3 WHERE most_laps_led = "Esteban Guerrieri" AND fastest_lap = "Josef Newgarden" AND rd = "8A" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 led the most laps when brandon wagner had the fastest lap?
### Context:
CREATE TABLE table_29690363_3 (most_laps_led VARCHAR, fastest_lap VARCHAR) [/INST]
### Response:
SELECT most_laps_led FROM table_29690363_3 WHERE fastest_lap = "Brandon Wagner" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What race did josef newgarden have the fastest lap and lead the most laps?
### Context:
CREATE TABLE table_29690363_3 (race VARCHAR, fastest_lap VARCHAR, most_laps_led VARCHAR) [/INST]
### Response:
SELECT race FROM table_29690363_3 WHERE fastest_lap = "Josef Newgarden" AND most_laps_led = "Josef Newgarden" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall amount of shutouts?
### Context:
CREATE TABLE table_29743928_4 (shutouts INTEGER) [/INST]
### Response:
SELECT MIN(shutouts) FROM table_29743928_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:
When chase harrison category:articles with hcards is the name what is the year?
### Context:
CREATE TABLE table_29743928_4 (years VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT years FROM table_29743928_4 WHERE name = "Chase Harrison 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:
When chris konopka category:articles with hcards is the name what is the year?
### Context:
CREATE TABLE table_29743928_4 (years VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT years FROM table_29743928_4 WHERE name = "Chris Konopka 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:
When 2010 is the year what is the game?
### Context:
CREATE TABLE table_29743928_4 (games VARCHAR, years VARCHAR) [/INST]
### Response:
SELECT games FROM table_29743928_4 WHERE years = "2010" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 song was chosen during the audition week?
### Context:
CREATE TABLE table_29756040_1 (song_choice VARCHAR, week__number VARCHAR) [/INST]
### Response:
SELECT song_choice FROM table_29756040_1 WHERE week__number = "Audition" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 all the order #s from the week "top 6"?
### Context:
CREATE TABLE table_29756040_1 (order__number VARCHAR, week__number VARCHAR) [/INST]
### Response:
SELECT order__number FROM table_29756040_1 WHERE week__number = "Top 6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which artists have order # 1?
### Context:
CREATE TABLE table_29756040_1 (original_artist VARCHAR, order__number VARCHAR) [/INST]
### Response:
SELECT original_artist FROM table_29756040_1 WHERE order__number = "1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which artists have order number 6?
### Context:
CREATE TABLE table_29756040_1 (original_artist VARCHAR, order__number VARCHAR) [/INST]
### Response:
SELECT original_artist FROM table_29756040_1 WHERE order__number = "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 name of the episode directed by james bobin
### Context:
CREATE TABLE table_29803475_3 (title VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT title FROM table_29803475_3 WHERE directed_by = "James Bobin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 directed the episode that have 0.25 million u.s viewers
### Context:
CREATE TABLE table_29803475_3 (directed_by VARCHAR, us_viewers__million_ VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_29803475_3 WHERE us_viewers__million_ = "0.25" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 official rating 16-39 for the episode with a 16-39 share of 22,77%?
### Context:
CREATE TABLE table_29804176_23 (official_rating_16_39 VARCHAR, share_16_39 VARCHAR) [/INST]
### Response:
SELECT official_rating_16_39 FROM table_29804176_23 WHERE share_16_39 = "22,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:
What university was Kevan George affiliated with?
### Context:
CREATE TABLE table_29836557_2 (affiliation VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT affiliation FROM table_29836557_2 WHERE player = "Kevan George" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What pick number did Real Salt Lake get?
### Context:
CREATE TABLE table_29836557_2 (pick__number INTEGER, mls_team VARCHAR) [/INST]
### Response:
SELECT MIN(pick__number) FROM table_29836557_2 WHERE mls_team = "Real Salt Lake" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What pick number is Kevan George?
### Context:
CREATE TABLE table_29836557_2 (pick__number VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT pick__number FROM table_29836557_2 WHERE player = "Kevan George" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pick number 34?
### Context:
CREATE TABLE table_29836557_2 (player VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT player FROM table_29836557_2 WHERE pick__number = 34 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What MLS team picked Babayele Sodade?
### Context:
CREATE TABLE table_29836557_2 (mls_team VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT mls_team FROM table_29836557_2 WHERE player = "Babayele Sodade" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 international use of the 1 единица flag?
### Context:
CREATE TABLE table_29997112_3 (international_use VARCHAR, flag_name VARCHAR) [/INST]
### Response:
SELECT international_use FROM table_29997112_3 WHERE flag_name = "1 единица" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the flag that means decimal digit 2?
### Context:
CREATE TABLE table_29997112_3 (flag_name VARCHAR, meaning VARCHAR) [/INST]
### Response:
SELECT flag_name FROM table_29997112_3 WHERE meaning = "Decimal Digit 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 different descriptions are there for the flag that means decimal digit 2?
### Context:
CREATE TABLE table_29997112_3 (description VARCHAR, meaning VARCHAR) [/INST]
### Response:
SELECT COUNT(description) FROM table_29997112_3 WHERE meaning = "Decimal Digit 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 are the meanings of the flag whose name transliterates to dvojka?
### Context:
CREATE TABLE table_29997112_3 (meaning VARCHAR, transliteration VARCHAR) [/INST]
### Response:
SELECT meaning FROM table_29997112_3 WHERE transliteration = "dvojka" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 meanings of the flag whose name transliterates to semërka?
### Context:
CREATE TABLE table_29997112_3 (meaning VARCHAR, transliteration VARCHAR) [/INST]
### Response:
SELECT meaning FROM table_29997112_3 WHERE transliteration = "semërka" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 3rd runner up values does Turkey have?
### Context:
CREATE TABLE table_30007801_1 (country_territory VARCHAR) [/INST]
### Response:
SELECT COUNT(3 AS rd_runner_up) FROM table_30007801_1 WHERE country_territory = "Turkey" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1st runner up value?
### Context:
CREATE TABLE table_30007801_1 (Id VARCHAR) [/INST]
### Response:
SELECT MIN(1 AS st_runner_up) FROM table_30007801_1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the number of 1st runner up values for Jamaica?
### Context:
CREATE TABLE table_30007801_1 (country_territory VARCHAR) [/INST]
### Response:
SELECT COUNT(1 AS st_runner_up) FROM table_30007801_1 WHERE country_territory = "Jamaica" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 US air date when the director is ken girotti?
### Context:
CREATE TABLE table_30012404_4 (us_air_date VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT us_air_date FROM table_30012404_4 WHERE directed_by = "Ken Girotti" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 canadian air date when the US air date is 24 august 2012?
### Context:
CREATE TABLE table_30012404_4 (canadian_air_date VARCHAR, us_air_date VARCHAR) [/INST]
### Response:
SELECT canadian_air_date FROM table_30012404_4 WHERE us_air_date = "24 August 2012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the series # when the US air date is 20 July 2012?
### Context:
CREATE TABLE table_30012404_4 (series__number INTEGER, us_air_date VARCHAR) [/INST]
### Response:
SELECT MIN(series__number) FROM table_30012404_4 WHERE us_air_date = "20 July 2012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many games had they won or lost in a row on May 9?
### Context:
CREATE TABLE table_30047613_13 (streak VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT streak FROM table_30047613_13 WHERE date = "May 9" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 every entry for Tuesday August 23 when Thursday August 25 is 24' 31.87 92.282mph?
### Context:
CREATE TABLE table_30058355_3 (tues_23_aug VARCHAR, thurs_25_aug VARCHAR) [/INST]
### Response:
SELECT tues_23_aug FROM table_30058355_3 WHERE thurs_25_aug = "24' 31.87 92.282mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 every value on Thursday August 25 for rank 3?
### Context:
CREATE TABLE table_30058355_3 (thurs_25_aug VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT thurs_25_aug FROM table_30058355_3 WHERE rank = 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 every entry on Monday August 22 when the entry for Wednesday August 24 is 22' 50.05 99.141mph?
### Context:
CREATE TABLE table_30058355_3 (mon_22_aug VARCHAR, wed_24_aug VARCHAR) [/INST]
### Response:
SELECT mon_22_aug FROM table_30058355_3 WHERE wed_24_aug = "22' 50.05 99.141mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 every entry for Friday August 26 if the entry for Monday August 22 is 32' 25.72 69.809mph?
### Context:
CREATE TABLE table_30058355_3 (fri_26_aug VARCHAR, mon_22_aug VARCHAR) [/INST]
### Response:
SELECT fri_26_aug FROM table_30058355_3 WHERE mon_22_aug = "32' 25.72 69.809mph" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.