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 bowler has a record of 4-15?
### Context:
CREATE TABLE table_name_97 (player VARCHAR, bowling VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_97 WHERE bowling = "4-15" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What ranking is james franklin?
### Context:
CREATE TABLE table_name_69 (rank VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_69 WHERE player = "james franklin" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what venue does tim southee bowl at?
### Context:
CREATE TABLE table_name_14 (venue VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_14 WHERE player = "tim southee" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 regular season for 2012?
### Context:
CREATE TABLE table_name_38 (regular_season VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT regular_season FROM table_name_38 WHERE year = "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 lowest division in the playoffs and did not qualify for the Open Cup in 2002?
### Context:
CREATE TABLE table_name_91 (division INTEGER, year VARCHAR, playoffs VARCHAR, open_cup VARCHAR) [/INST]
### Response:
SELECT MIN(division) FROM table_name_91 WHERE playoffs = "did not qualify" AND open_cup = "did not qualify" AND year = "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 chassis has more than 0 points?
### Context:
CREATE TABLE table_name_40 (chassis VARCHAR, points INTEGER) [/INST]
### Response:
SELECT chassis FROM table_name_40 WHERE points > 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:
How many points were there before 1955?
### Context:
CREATE TABLE table_name_95 (points VARCHAR, year INTEGER) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_95 WHERE year < 1955 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points held by the Epperly Indy roadster in 1959?
### Context:
CREATE TABLE table_name_5 (points INTEGER, chassis VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_5 WHERE chassis = "epperly indy roadster" AND year = 1959 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Chassis has more than 0 points?
### Context:
CREATE TABLE table_name_3 (chassis VARCHAR, points INTEGER) [/INST]
### Response:
SELECT chassis FROM table_name_3 WHERE points > 0 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date that 4,286 attended?
### Context:
CREATE TABLE table_name_15 (date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_15 WHERE attendance = "4,286" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where does CF Pachuca play?
### Context:
CREATE TABLE table_name_64 (game_site VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT game_site FROM table_name_64 WHERE opponent = "cf pachuca" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance of the Cup Quarterfinals game?
### Context:
CREATE TABLE table_name_21 (attendance VARCHAR, game_site VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_21 WHERE game_site = "cup quarterfinals" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What shows for 2000 when 2013 shows 3rd?
### Context:
CREATE TABLE table_name_19 (Id VARCHAR) [/INST]
### Response:
SELECT 2000 FROM table_name_19 WHERE 2013 = "3rd" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2004 when 2013 is 3rd?
### Context:
CREATE TABLE table_name_17 (Id VARCHAR) [/INST]
### Response:
SELECT 2004 FROM table_name_17 WHERE 2013 = "3rd" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2009 when the 2013 is 4th?
### Context:
CREATE TABLE table_name_39 (Id VARCHAR) [/INST]
### Response:
SELECT 2009 FROM table_name_39 WHERE 2013 = "4th" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What shows for 209 when the 2000 is –, and a Total of 3, and a 2004 of 9th?
### Context:
CREATE TABLE table_name_4 (total VARCHAR) [/INST]
### Response:
SELECT 2009 FROM table_name_4 WHERE 2000 = "–" AND total = 3 AND 2004 = "9th" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winning score in the PGA Championship?
### Context:
CREATE TABLE table_name_14 (winning_score VARCHAR, championship VARCHAR) [/INST]
### Response:
SELECT winning_score FROM table_name_14 WHERE championship = "pga championship" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 draws with 1 loss?
### Context:
CREATE TABLE table_name_55 (draws INTEGER, losses VARCHAR) [/INST]
### Response:
SELECT SUM(draws) FROM table_name_55 WHERE losses = 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:
How many losses does Alex Wilkinson have?
### Context:
CREATE TABLE table_name_98 (losses VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT COUNT(losses) FROM table_name_98 WHERE name = "alex wilkinson" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the type for headquarters principal activites.
### Context:
CREATE TABLE table_name_53 (type VARCHAR, principal_activities VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_53 WHERE principal_activities = "headquarters" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the incorporated for principal activites of travel agency
### Context:
CREATE TABLE table_name_73 (incorporated_in VARCHAR, principal_activities VARCHAR) [/INST]
### Response:
SELECT incorporated_in FROM table_name_73 WHERE principal_activities = "travel agency" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the title with presentation of credentials of april 24, 1884
### Context:
CREATE TABLE table_name_23 (title VARCHAR, presentation_of_credentials VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_23 WHERE presentation_of_credentials = "april 24, 1884" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the presentation of credentials for appointed by of grover cleveland and representative of charles w. buck
### Context:
CREATE TABLE table_name_45 (presentation_of_credentials VARCHAR, appointed_by VARCHAR, representative VARCHAR) [/INST]
### Response:
SELECT presentation_of_credentials FROM table_name_45 WHERE appointed_by = "grover cleveland" AND representative = "charles w. buck" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the title with presentation of credentials of april 10, 1907
### Context:
CREATE TABLE table_name_62 (title VARCHAR, presentation_of_credentials VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_62 WHERE presentation_of_credentials = "april 10, 1907" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the title with termination of mission of february 24, 1828
### Context:
CREATE TABLE table_name_65 (title VARCHAR, termination_of_mission VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_65 WHERE termination_of_mission = "february 24, 1828" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the title with termination of mission of april 10, 1939
### Context:
CREATE TABLE table_name_24 (title VARCHAR, termination_of_mission VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_24 WHERE termination_of_mission = "april 10, 1939" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the termination of mission for woodrow wilson appointed by and representative of benton mcmillin
### Context:
CREATE TABLE table_name_18 (termination_of_mission VARCHAR, appointed_by VARCHAR, representative VARCHAR) [/INST]
### Response:
SELECT termination_of_mission FROM table_name_18 WHERE appointed_by = "woodrow wilson" AND representative = "benton mcmillin" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points gained of the match where fans took 907 and there were more than 44.9 miles one way?
### Context:
CREATE TABLE table_name_57 (points_gained INTEGER, fans_took VARCHAR, miles_ VARCHAR, one_way VARCHAR) [/INST]
### Response:
SELECT MAX(points_gained) FROM table_name_57 WHERE fans_took = "907" AND miles_[one_way] > 44.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 the points gained of the match where fans took 403 [sunday]?
### Context:
CREATE TABLE table_name_36 (points_gained INTEGER, fans_took VARCHAR) [/INST]
### Response:
SELECT SUM(points_gained) FROM table_name_36 WHERE fans_took = "403 [sunday]" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had fans took of 288?
### Context:
CREATE TABLE table_name_71 (team VARCHAR, fans_took VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_71 WHERE fans_took = "288" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What years had a ranking of 1?
### Context:
CREATE TABLE table_name_99 (years VARCHAR, ranking VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_99 WHERE ranking = 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 nationality of the person with 50 goals and rank 3?
### Context:
CREATE TABLE table_name_25 (nationality VARCHAR, goals VARCHAR, ranking VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_25 WHERE goals = 50 AND ranking = 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 status of joon-hyung park 박준형?
### Context:
CREATE TABLE table_name_58 (status VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT status FROM table_name_58 WHERE name = "joon-hyung park 박준형" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had a ballet style with original cast?
### Context:
CREATE TABLE table_name_80 (name VARCHAR, style VARCHAR, status VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_80 WHERE style = "ballet" AND status = "original cast" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was the first performance with a replacement cast?
### Context:
CREATE TABLE table_name_80 (first_performance VARCHAR, status VARCHAR) [/INST]
### Response:
SELECT first_performance FROM table_name_80 WHERE status = "replacement cast" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 latest year for the Tyrrell 018 Chassis that has less than 3 points?
### Context:
CREATE TABLE table_name_43 (year INTEGER, chassis VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_43 WHERE chassis = "tyrrell 018" AND points < 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:
Which entrant has a Honda V6 engine and a Lotus 99t chassis?
### Context:
CREATE TABLE table_name_42 (entrant VARCHAR, engine VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_name_42 WHERE engine = "honda v6" AND chassis = "lotus 99t" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the best when runs of 1088 and matches more than 11
### Context:
CREATE TABLE table_name_4 (best VARCHAR, matches VARCHAR, runs VARCHAR) [/INST]
### Response:
SELECT best FROM table_name_4 WHERE matches > 11 AND runs = 1088 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the most runs for wickets of 66 and matches less than 13
### Context:
CREATE TABLE table_name_68 (runs INTEGER, wickets VARCHAR, matches VARCHAR) [/INST]
### Response:
SELECT MAX(runs) FROM table_name_68 WHERE wickets = 66 AND matches < 13 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of the game with the San Diego Padres as the opponent and a record of 11-23?
### Context:
CREATE TABLE table_name_29 (score VARCHAR, opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_29 WHERE opponent = "san diego padres" AND record = "11-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:
What is the date of the game with a record of 14-31?
### Context:
CREATE TABLE table_name_16 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_16 WHERE record = "14-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 is the date of the game with a 17-31 record?
### Context:
CREATE TABLE table_name_90 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_90 WHERE record = "17-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 is the record of the game on 13 May?
### Context:
CREATE TABLE table_name_70 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_70 WHERE date = "13 may" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average attendance during week 15?
### Context:
CREATE TABLE table_name_63 (attendance INTEGER, week VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_63 WHERE week = 15 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the smallest week that had a result of t 17–17?
### Context:
CREATE TABLE table_name_75 (week INTEGER, result VARCHAR) [/INST]
### Response:
SELECT MIN(week) FROM table_name_75 WHERE result = "t 17–17" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent in week 12?
### Context:
CREATE TABLE table_name_69 (opponent VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_69 WHERE week = 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 current club of the Forward who was born after 1983 and who has a height under 2.12?
### Context:
CREATE TABLE table_name_36 (current_club VARCHAR, position VARCHAR, year_born VARCHAR, height VARCHAR) [/INST]
### Response:
SELECT current_club FROM table_name_36 WHERE year_born > 1983 AND height < 2.12 AND position = "forward" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position of the player who is taller than 2.12?
### Context:
CREATE TABLE table_name_30 (position VARCHAR, height INTEGER) [/INST]
### Response:
SELECT position FROM table_name_30 WHERE height > 2.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:
How many no votes did North Dakota have?
### Context:
CREATE TABLE table_name_48 (no_vote VARCHAR, state VARCHAR) [/INST]
### Response:
SELECT no_vote FROM table_name_48 WHERE state = "north dakota" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date for Colorado?
### Context:
CREATE TABLE table_name_92 (date VARCHAR, state VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_92 WHERE state = "colorado" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 no votes from Alaska in 1998?
### Context:
CREATE TABLE table_name_31 (no_vote VARCHAR, date VARCHAR, state VARCHAR) [/INST]
### Response:
SELECT no_vote FROM table_name_31 WHERE date = "1998" AND state = "alaska" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 positive votes for Tennessee in 2006?
### Context:
CREATE TABLE table_name_73 (yes_vote VARCHAR, date VARCHAR, state VARCHAR) [/INST]
### Response:
SELECT yes_vote FROM table_name_73 WHERE date = "2006" AND state = "tennessee" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 song that is part of the opening theme and has a drama of the revolving doors of vengeance?
### Context:
CREATE TABLE table_name_82 (name_of_the_song VARCHAR, kind_of_the_song VARCHAR, drama VARCHAR) [/INST]
### Response:
SELECT name_of_the_song FROM table_name_82 WHERE kind_of_the_song = "opening theme" AND drama = "revolving doors of vengeance" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 floors are there at 32 n. main street?
### Context:
CREATE TABLE table_name_15 (floors INTEGER, street_address VARCHAR) [/INST]
### Response:
SELECT SUM(floors) FROM table_name_15 WHERE street_address = "32 n. main street" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the rank 9 building got completed?
### Context:
CREATE TABLE table_name_64 (completed VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT completed FROM table_name_64 WHERE rank = "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:
Which party has 24 governments?
### Context:
CREATE TABLE table_name_46 (party VARCHAR, governments VARCHAR) [/INST]
### Response:
SELECT party FROM table_name_46 WHERE governments = "24" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What governments did the minister with a term start on 24 September 1984 have?
### Context:
CREATE TABLE table_name_43 (governments VARCHAR, term_start VARCHAR) [/INST]
### Response:
SELECT governments FROM table_name_43 WHERE term_start = "24 september 1984" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When is the term end of Shlomo-Yisrael Ben-Meir of the National Religious Party?
### Context:
CREATE TABLE table_name_37 (term_end VARCHAR, party VARCHAR, minister VARCHAR) [/INST]
### Response:
SELECT term_end FROM table_name_37 WHERE party = "national religious party" AND minister = "shlomo-yisrael ben-meir" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 minister with a term end on 10 March 1974?
### Context:
CREATE TABLE table_name_71 (minister VARCHAR, term_end VARCHAR) [/INST]
### Response:
SELECT minister FROM table_name_71 WHERE term_end = "10 march 1974" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the points classification for predictor-lotto and stage 1
### Context:
CREATE TABLE table_name_65 (points_classification VARCHAR, team_classification VARCHAR, stage VARCHAR) [/INST]
### Response:
SELECT points_classification FROM table_name_65 WHERE team_classification = "predictor-lotto" AND stage = "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:
Name the points classification for quick step-innergetic with stage 7
### Context:
CREATE TABLE table_name_66 (points_classification VARCHAR, team_classification VARCHAR, stage VARCHAR) [/INST]
### Response:
SELECT points_classification FROM table_name_66 WHERE team_classification = "quick step-innergetic" AND stage = "7" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the stgae with winner of robbie mcewen
### Context:
CREATE TABLE table_name_22 (stage VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT stage FROM table_name_22 WHERE winner = "robbie mcewen" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the winner for nick nuyens for general classification and stage of 2
### Context:
CREATE TABLE table_name_96 (winner VARCHAR, general_classification VARCHAR, stage VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_96 WHERE general_classification = "nick nuyens" AND stage = "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:
Name the team classification for stage of 6
### Context:
CREATE TABLE table_name_47 (team_classification VARCHAR, stage VARCHAR) [/INST]
### Response:
SELECT team_classification FROM table_name_47 WHERE stage = "6" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Davao's power (kW)?
### Context:
CREATE TABLE table_name_44 (power__kw_ VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT power__kw_ FROM table_name_44 WHERE location = "davao" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 brand of DXRE?
### Context:
CREATE TABLE table_name_35 (branding VARCHAR, callsign VARCHAR) [/INST]
### Response:
SELECT branding FROM table_name_35 WHERE callsign = "dxre" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 power (kW) of Davao?
### Context:
CREATE TABLE table_name_74 (power__kw_ VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT power__kw_ FROM table_name_74 WHERE location = "davao" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 callsign of Cagayan de Oro with 5kW?
### Context:
CREATE TABLE table_name_81 (callsign VARCHAR, power__kw_ VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT callsign FROM table_name_81 WHERE power__kw_ = "5kw" AND location = "cagayan de oro" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 callsign of the 5kW Sonshine Radio Cotabato?
### Context:
CREATE TABLE table_name_23 (callsign VARCHAR, power__kw_ VARCHAR, branding VARCHAR) [/INST]
### Response:
SELECT callsign FROM table_name_23 WHERE power__kw_ = "5kw" AND branding = "sonshine radio cotabato" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average amount of Runs that has 40 innings, and Not outs larger than 6?
### Context:
CREATE TABLE table_name_70 (runs INTEGER, innings VARCHAR, not_outs VARCHAR) [/INST]
### Response:
SELECT AVG(runs) FROM table_name_70 WHERE innings = 40 AND not_outs > 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's the total Innings that has Runs of 1598, and Matches less than 41?
### Context:
CREATE TABLE table_name_68 (innings VARCHAR, runs VARCHAR, matches VARCHAR) [/INST]
### Response:
SELECT COUNT(innings) FROM table_name_68 WHERE runs = 1598 AND matches < 41 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What venue held the event in 2008 that has 2:13:10 in the notes?
### Context:
CREATE TABLE table_name_12 (venue VARCHAR, year VARCHAR, notes VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_12 WHERE year = 2008 AND notes = "2:13: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:
Who discovered the specimen at the Burpee Museum of Natural History?
### Context:
CREATE TABLE table_name_43 (discoverer VARCHAR, museum VARCHAR) [/INST]
### Response:
SELECT discoverer FROM table_name_43 WHERE museum = "burpee museum of natural history" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the city of the Museum that houses the specimen discovered by Jane Solem?
### Context:
CREATE TABLE table_name_28 (museum VARCHAR, discoverer VARCHAR) [/INST]
### Response:
SELECT museum AS city FROM table_name_28 WHERE discoverer = "jane solem" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What city has the museum that holds the Sue specimen?
### Context:
CREATE TABLE table_name_48 (museum VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT museum AS city FROM table_name_48 WHERE name = "sue" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
With what Name does the Roll of 637 belong?
### Context:
CREATE TABLE table_name_57 (name VARCHAR, roll VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_57 WHERE roll = "637" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is the Authority that has a Roll of 70?
### Context:
CREATE TABLE table_name_4 (authority VARCHAR, roll VARCHAR) [/INST]
### Response:
SELECT authority FROM table_name_4 WHERE roll = "70" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The Decile of 6 has which corresponding Years?
### Context:
CREATE TABLE table_name_91 (years VARCHAR, decile VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_91 WHERE decile = "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:
Name the award for candida scott knight
### Context:
CREATE TABLE table_name_78 (award VARCHAR, director_s_ VARCHAR) [/INST]
### Response:
SELECT award FROM table_name_78 WHERE director_s_ = "candida scott knight" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the recipient for jamaica and award of £6,947
### Context:
CREATE TABLE table_name_94 (recipient VARCHAR, award VARCHAR, film VARCHAR) [/INST]
### Response:
SELECT recipient FROM table_name_94 WHERE award = "£6,947" AND film = "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:
Name the film for award of £3,740
### Context:
CREATE TABLE table_name_98 (film VARCHAR, award VARCHAR) [/INST]
### Response:
SELECT film FROM table_name_98 WHERE award = "£3,740" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the director for maya vision international ltd
### Context:
CREATE TABLE table_name_81 (director_s_ VARCHAR, recipient VARCHAR) [/INST]
### Response:
SELECT director_s_ FROM table_name_81 WHERE recipient = "maya vision international ltd" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the film for award of £3,386
### Context:
CREATE TABLE table_name_66 (film VARCHAR, award VARCHAR) [/INST]
### Response:
SELECT film FROM table_name_66 WHERE award = "£3,386" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the venue for 2004 and position of 25th
### Context:
CREATE TABLE table_name_4 (venue VARCHAR, position VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_4 WHERE position = "25th" AND year = 2004 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the venue for 27th position
### Context:
CREATE TABLE table_name_1 (venue VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_1 WHERE position = "27th" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 draw in the 2005 FIFA Confederations Cup?
### Context:
CREATE TABLE table_name_24 (score VARCHAR, competition VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_24 WHERE competition = "2005 fifa confederations cup" AND result = "draw" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Peroutka with 46 others, and less than 15 electors?
### Context:
CREATE TABLE table_name_69 (peroutka INTEGER, others VARCHAR, electors VARCHAR) [/INST]
### Response:
SELECT MAX(peroutka) FROM table_name_69 WHERE others = 46 AND electors < 15 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who came in 3rd place in 1990?
### Context:
CREATE TABLE table_name_20 (year VARCHAR) [/INST]
### Response:
SELECT 3 AS rd_place FROM table_name_20 WHERE year = "1990" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which class Pos has a Team of jml team panoz?
### Context:
CREATE TABLE table_name_71 (class VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT class AS pos FROM table_name_71 WHERE team = "jml team panoz" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Class Pos has a Year larger than 1997, a Team of corvette racing, a Class of gt1, and 327 laps?
### Context:
CREATE TABLE table_name_25 (class VARCHAR, laps VARCHAR, year VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT class AS pos FROM table_name_25 WHERE year > 1997 AND team = "corvette racing" AND class = "gt1" AND laps = 327 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final result of the team that has Simara as No.5?
### Context:
CREATE TABLE table_name_11 (final VARCHAR, no5 VARCHAR) [/INST]
### Response:
SELECT final FROM table_name_11 WHERE no5 = "simara" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winning Driver has a Second Driver of jimmy bryan?
### Context:
CREATE TABLE table_name_25 (winning_driver VARCHAR, second_driver VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_name_25 WHERE second_driver = "jimmy bryan" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 average Cars Entered have a Third Driver of manny ayulo?
### Context:
CREATE TABLE table_name_53 (cars_entered INTEGER, third_driver VARCHAR) [/INST]
### Response:
SELECT AVG(cars_entered) FROM table_name_53 WHERE third_driver = "manny ayulo" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 largest Cars Entered with a Season of 1958?
### Context:
CREATE TABLE table_name_69 (cars_entered INTEGER, season VARCHAR) [/INST]
### Response:
SELECT MAX(cars_entered) FROM table_name_69 WHERE season = 1958 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest season with a Third Driver of jimmy davies?
### Context:
CREATE TABLE table_name_2 (season INTEGER, third_driver VARCHAR) [/INST]
### Response:
SELECT MAX(season) FROM table_name_2 WHERE third_driver = "jimmy davies" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 largest Cars Entered with a Winning Driver of rodger ward, and a Season smaller than 1959?
### Context:
CREATE TABLE table_name_33 (cars_entered INTEGER, winning_driver VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT MAX(cars_entered) FROM table_name_33 WHERE winning_driver = "rodger ward" AND season < 1959 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What engine with more than 2 points has Brabham bt58 as Chassis?
### Context:
CREATE TABLE table_name_66 (engine VARCHAR, chassis VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_66 WHERE chassis = "brabham bt58" AND points > 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 did Judd v8 has in 1989?
### Context:
CREATE TABLE table_name_71 (points VARCHAR, engine VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_71 WHERE engine = "judd v8" AND year = 1989 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many years has Sasol Jordan Yamaha as an Entrant?
### Context:
CREATE TABLE table_name_79 (year INTEGER, entrant VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_79 WHERE entrant = "sasol jordan yamaha" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game that had a loss of Williams (3-1)?
### Context:
CREATE TABLE table_name_30 (record VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_30 WHERE loss = "williams (3-1)" </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.