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 LOSS WITH AN AVERAGE OF 89.9?
### Context:
CREATE TABLE table_name_18 (loss INTEGER, avg_g VARCHAR) [/INST]
### Response:
SELECT SUM(loss) FROM table_name_18 WHERE avg_g = 89.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 NUMBER OF LOSSES WITH A LONG SMALLER THAN 24, AND GAIN BIGGER THAN 116?
### Context:
CREATE TABLE table_name_15 (loss VARCHAR, long VARCHAR, gain VARCHAR) [/INST]
### Response:
SELECT COUNT(loss) FROM table_name_15 WHERE long < 24 AND gain > 116 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rounds did Brett go against Kevin Asplund?
### Context:
CREATE TABLE table_name_72 (round VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_72 WHERE opponent = "kevin asplund" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rounds did Brett go for the Strikeforce: Shamrock vs. Diaz match?
### Context:
CREATE TABLE table_name_84 (round VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_84 WHERE event = "strikeforce: shamrock vs. diaz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Opponent has a Record of 22-10?
### Context:
CREATE TABLE table_name_36 (opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_36 WHERE record = "22-10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Score has an Opponent of @ seattle?
### Context:
CREATE TABLE table_name_71 (score VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_71 WHERE opponent = "@ seattle" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Record has a Result of loss, and an Opponent of @ la clippers?
### Context:
CREATE TABLE table_name_53 (record VARCHAR, result VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_53 WHERE result = "loss" AND opponent = "@ la clippers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Score has an Opponent of @ la lakers, and a Record of 8-6?
### Context:
CREATE TABLE table_name_84 (score VARCHAR, opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_84 WHERE opponent = "@ la lakers" AND record = "8-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 Opponent has a Result of win, and a Date of march 17?
### Context:
CREATE TABLE table_name_45 (opponent VARCHAR, result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_45 WHERE result = "win" AND date = "march 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:
Which Score has a Date of may 4?
### Context:
CREATE TABLE table_name_60 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_60 WHERE date = "may 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:
Which PD per game has a Rank smaller than 4, a Winning % of 78.6%, a Streak of w1, and a PA per game smaller than 81.5?
### Context:
CREATE TABLE table_name_49 (pd_per_game INTEGER, pa_per_game VARCHAR, streak VARCHAR, rank VARCHAR, winning__percentage VARCHAR) [/INST]
### Response:
SELECT MIN(pd_per_game) FROM table_name_49 WHERE rank < 4 AND winning__percentage = "78.6%" AND streak = "w1" AND pa_per_game < 81.5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Loss has a Last 5 of 4-1, a Streak of w2, and a PA per game smaller than 88.43?
### Context:
CREATE TABLE table_name_80 (loss INTEGER, pa_per_game VARCHAR, last_5 VARCHAR, streak VARCHAR) [/INST]
### Response:
SELECT AVG(loss) FROM table_name_80 WHERE last_5 = "4-1" AND streak = "w2" AND pa_per_game < 88.43 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Last 5 has a Rank of 7?
### Context:
CREATE TABLE table_name_31 (last_5 VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT last_5 FROM table_name_31 WHERE rank = 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:
Which Played has a PD per game larger than 6.28, and a Loss smaller than 4?
### Context:
CREATE TABLE table_name_97 (played INTEGER, pd_per_game VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT MIN(played) FROM table_name_97 WHERE pd_per_game > 6.28 AND loss < 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:
Which PF per game has a Rank of 5?
### Context:
CREATE TABLE table_name_22 (pf_per_game INTEGER, rank VARCHAR) [/INST]
### Response:
SELECT MIN(pf_per_game) FROM table_name_22 WHERE rank = 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 was the score in Round 3?
### Context:
CREATE TABLE table_name_32 (record VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_32 WHERE round = "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 record for opponent Matt Serra?
### Context:
CREATE TABLE table_name_36 (record VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_36 WHERE opponent = "matt serra" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 event for round 1 against Lance Wipf?
### Context:
CREATE TABLE table_name_9 (event VARCHAR, round VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_9 WHERE round = "1" AND opponent = "lance wipf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of Area (km²), when Population (2007) is 6,176?
### Context:
CREATE TABLE table_name_13 (area__km²_ VARCHAR, population__2007_ VARCHAR) [/INST]
### Response:
SELECT COUNT(area__km²_) FROM table_name_13 WHERE population__2007_ = 6 OFFSET 176 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many laps did car 23 do?
### Context:
CREATE TABLE table_name_17 (laps VARCHAR, car_no VARCHAR) [/INST]
### Response:
SELECT laps FROM table_name_17 WHERE car_no = "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 laps did the car do that had a final position of 17?
### Context:
CREATE TABLE table_name_79 (laps VARCHAR, fin_pos VARCHAR) [/INST]
### Response:
SELECT laps FROM table_name_79 WHERE fin_pos = "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:
What grid did the team racing professionals race on?
### Context:
CREATE TABLE table_name_84 (grid VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT grid FROM table_name_84 WHERE team = "racing professionals" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What car number had a race time of +0.3844?
### Context:
CREATE TABLE table_name_43 (car_no VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT car_no FROM table_name_43 WHERE time_retired = "+0.3844" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 scored by car number 10 that ended with a collision?
### Context:
CREATE TABLE table_name_20 (points VARCHAR, time_retired VARCHAR, car_no VARCHAR) [/INST]
### Response:
SELECT points FROM table_name_20 WHERE time_retired = "collision" AND car_no = "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 was the driver who had a final position of 14?
### Context:
CREATE TABLE table_name_19 (driver VARCHAR, fin_pos VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_19 WHERE fin_pos = "14" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the money ($) for player justin leonard?
### Context:
CREATE TABLE table_name_99 (money___$__ VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT money___$__ FROM table_name_99 WHERE player = "justin leonard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 place when the score is 76-69-71-70=286?
### Context:
CREATE TABLE table_name_34 (place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_34 WHERE score = 76 - 69 - 71 - 70 = 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:
what is the place for costantino rocca?
### Context:
CREATE TABLE table_name_13 (place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_13 WHERE player = "costantino rocca" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 money ($) for bernhard langer?
### Context:
CREATE TABLE table_name_22 (money___ INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MAX(money___) AS $__ FROM table_name_22 WHERE player = "bernhard langer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 FIFA report on October 13, 2007?
### Context:
CREATE TABLE table_name_97 (score VARCHAR, report VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_97 WHERE report = "fifa" AND date = "october 13, 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a EAFF report on June 24, 2007?
### Context:
CREATE TABLE table_name_31 (venue VARCHAR, report VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_31 WHERE report = "eaff" AND date = "june 24, 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue on October 13, 2007?
### Context:
CREATE TABLE table_name_60 (venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_60 WHERE date = "october 13, 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
At what Site was the Result W13-7?
### Context:
CREATE TABLE table_name_59 (site VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT site FROM table_name_59 WHERE result = "w13-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 was the Attendance on 11/09/1946?
### Context:
CREATE TABLE table_name_88 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_88 WHERE date = "11/09/1946" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Site had an Attendance of 45,000?
### Context:
CREATE TABLE table_name_20 (site VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT site FROM table_name_20 WHERE attendance = "45,000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the Result on 11/02/1946?
### Context:
CREATE TABLE table_name_84 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_84 WHERE date = "11/02/1946" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What mark has over 813 points in the United States, and a 0.152 react?
### Context:
CREATE TABLE table_name_51 (mark VARCHAR, react VARCHAR, points VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT mark FROM table_name_51 WHERE points > 813 AND country = "united states" AND react > 0.152 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest Total, when Year(s) Won is "1968 , 1971", and when To Par is less than 11?
### Context:
CREATE TABLE table_name_79 (total INTEGER, year_s__won VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT MIN(total) FROM table_name_79 WHERE year_s__won = "1968 , 1971" AND to_par < 11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest To Par, when Player is "Johnny Miller"?
### Context:
CREATE TABLE table_name_76 (to_par INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MIN(to_par) FROM table_name_76 WHERE player = "johnny miller" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Player, when Total is greater than 148, and when To Par is "12"?
### Context:
CREATE TABLE table_name_83 (player VARCHAR, total VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_83 WHERE total > 148 AND to_par = 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 sum of To Par, when Year(s) Won is "1978 , 1985"?
### Context:
CREATE TABLE table_name_35 (to_par INTEGER, year_s__won VARCHAR) [/INST]
### Response:
SELECT SUM(to_par) FROM table_name_35 WHERE year_s__won = "1978 , 1985" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To Par, when Year(s) Won is "1968 , 1971"?
### Context:
CREATE TABLE table_name_99 (to_par VARCHAR, year_s__won VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_99 WHERE year_s__won = "1968 , 1971" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Points difference has Points against of 786?
### Context:
CREATE TABLE table_name_20 (points_difference VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT points_difference FROM table_name_20 WHERE points_against = "786" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Played has a Points difference of +261?
### Context:
CREATE TABLE table_name_50 (played VARCHAR, points_difference VARCHAR) [/INST]
### Response:
SELECT played FROM table_name_50 WHERE points_difference = "+261" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Points against has a Lost of 13, and Points for of 671?
### Context:
CREATE TABLE table_name_9 (points_against VARCHAR, lost VARCHAR, points_for VARCHAR) [/INST]
### Response:
SELECT points_against FROM table_name_9 WHERE lost = "13" AND points_for = "671" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Points difference has Played of 32, and Points for of 840?
### Context:
CREATE TABLE table_name_23 (points_difference VARCHAR, played VARCHAR, points_for VARCHAR) [/INST]
### Response:
SELECT points_difference FROM table_name_23 WHERE played = "32" AND points_for = "840" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Drawn has Points for of 782?
### Context:
CREATE TABLE table_name_2 (drawn VARCHAR, points_for VARCHAR) [/INST]
### Response:
SELECT drawn FROM table_name_2 WHERE points_for = "782" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Lost has a Club of club?
### Context:
CREATE TABLE table_name_33 (lost VARCHAR) [/INST]
### Response:
SELECT lost FROM table_name_33 WHERE "club" = "club" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Can you tell me the Record that has the Date of january 29?
### Context:
CREATE TABLE table_name_57 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_57 WHERE date = "january 29" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Can you tell me the Record that has the Visitor of vancouver?
### Context:
CREATE TABLE table_name_67 (record VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_67 WHERE visitor = "vancouver" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date has the opponent competing in the final of john mcenroe?
### Context:
CREATE TABLE table_name_94 (date VARCHAR, opponent_in_final VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_94 WHERE opponent_in_final = "john mcenroe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Lightning play the NY Rangers at 7:00 pm?
### Context:
CREATE TABLE table_name_96 (location VARCHAR, opponent VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_96 WHERE opponent = "ny rangers" AND time = "7:00 pm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the Lightning play at the Mellon Arena?
### Context:
CREATE TABLE table_name_97 (opponent VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_97 WHERE location = "mellon arena" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final score for the game played at 7:00 pm?
### Context:
CREATE TABLE table_name_16 (result VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_16 WHERE time = "7:00 pm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was the game which ended in a 4-1 w?
### Context:
CREATE TABLE table_name_64 (location VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_64 WHERE result = "4-1 w" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a game played at 7:00 pm?
### Context:
CREATE TABLE table_name_65 (date VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_65 WHERE time = "7:00 pm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Top Speed has a Model Name of d14/4 supreme d14/4 sports & bushman?
### Context:
CREATE TABLE table_name_69 (top_speed VARCHAR, model_name VARCHAR) [/INST]
### Response:
SELECT top_speed FROM table_name_69 WHERE model_name = "d14/4 supreme d14/4 sports & bushman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Electrics has an Engine of 175cc, bhp (kw), and a Model Name of d10 sports & bushman?
### Context:
CREATE TABLE table_name_28 (electrics VARCHAR, engine VARCHAR, model_name VARCHAR) [/INST]
### Response:
SELECT electrics FROM table_name_28 WHERE engine = "175cc, bhp (kw)" AND model_name = "d10 sports & bushman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does pádraig harrington play for?
### Context:
CREATE TABLE table_name_72 (country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_72 WHERE player = "pádraig harrington" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 stadium has Seongnam Ilhwa Chunma?
### Context:
CREATE TABLE table_name_77 (stadium VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT stadium FROM table_name_77 WHERE club = "seongnam ilhwa chunma" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is Gwang-Yang stadium in?
### Context:
CREATE TABLE table_name_2 (city VARCHAR, stadium VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_2 WHERE stadium = "gwang-yang stadium" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 stadium has FC Seoul?
### Context:
CREATE TABLE table_name_65 (stadium VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT stadium FROM table_name_65 WHERE club = "fc seoul" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What stadium is in Seoul?
### Context:
CREATE TABLE table_name_56 (stadium VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT stadium FROM table_name_56 WHERE city = "seoul" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1993 value of the French open?
### Context:
CREATE TABLE table_name_68 (tournament VARCHAR) [/INST]
### Response:
SELECT 1993 FROM table_name_68 WHERE tournament = "french open" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1990 value with a 24 in 1995?
### Context:
CREATE TABLE table_name_87 (Id VARCHAR) [/INST]
### Response:
SELECT 1990 FROM table_name_87 WHERE 1995 = "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 is the 1993 value with a 1r in 1991 and sf in 1990?
### Context:
CREATE TABLE table_name_75 (Id VARCHAR) [/INST]
### Response:
SELECT 1993 FROM table_name_75 WHERE 1991 = "1r" AND 1990 = "sf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1994 value with a 2r in 1996, A in 1993, and 2r in 1991?
### Context:
CREATE TABLE table_name_42 (Id VARCHAR) [/INST]
### Response:
SELECT 1994 FROM table_name_42 WHERE 1996 = "2r" AND 1993 = "a" AND 1991 = "2r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1993 value of the 1994 atp masters series?
### Context:
CREATE TABLE table_name_59 (Id VARCHAR) [/INST]
### Response:
SELECT 1993 FROM table_name_59 WHERE 1994 = "atp masters series" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1993 value of the 1996 atp masters series?
### Context:
CREATE TABLE table_name_15 (Id VARCHAR) [/INST]
### Response:
SELECT 1993 FROM table_name_15 WHERE 1996 = "atp masters series" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Team has a Location Attendance of staples center 18,997, and a Series of 1–0?
### Context:
CREATE TABLE table_name_29 (team VARCHAR, location_attendance VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_29 WHERE location_attendance = "staples center 18,997" AND series = "1–0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which High points have High rebounds of lamar odom (15), and a Date of april 27?
### Context:
CREATE TABLE table_name_80 (high_points VARCHAR, high_rebounds VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT high_points FROM table_name_80 WHERE high_rebounds = "lamar odom (15)" AND date = "april 27" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Date has High rebounds of pau gasol (9)?
### Context:
CREATE TABLE table_name_42 (date VARCHAR, high_rebounds VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_42 WHERE high_rebounds = "pau gasol (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 was the score of game 2?
### Context:
CREATE TABLE table_name_5 (score VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_5 WHERE game = 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 was steve elkington's to par?
### Context:
CREATE TABLE table_name_57 (to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_57 WHERE player = "steve elkington" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 show has a season premiere with a Average series rating of 1.85 million viewers?
### Context:
CREATE TABLE table_name_33 (season VARCHAR, average_series_rating VARCHAR) [/INST]
### Response:
SELECT season AS premiere FROM table_name_33 WHERE average_series_rating = "1.85 million viewers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most recent year founded that has a nickname of bruins?
### Context:
CREATE TABLE table_name_7 (founded INTEGER, nickname VARCHAR) [/INST]
### Response:
SELECT MAX(founded) FROM table_name_7 WHERE nickname = "bruins" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most recent year founded with an enrollment of 42,708?
### Context:
CREATE TABLE table_name_81 (founded INTEGER, enrollment VARCHAR) [/INST]
### Response:
SELECT MAX(founded) FROM table_name_81 WHERE enrollment = 42 OFFSET 708 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 New York Rangers Home team with a Record of 8–27–5?
### Context:
CREATE TABLE table_name_48 (score VARCHAR, home VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_48 WHERE home = "new york rangers" AND record = "8–27–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:
On what Date was the Home team Detroit Red Wings with a Record of 10–41–6?
### Context:
CREATE TABLE table_name_61 (date VARCHAR, home VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_61 WHERE home = "detroit red wings" AND record = "10–41–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 Visitor in the game with a Record of 11–49–7?
### Context:
CREATE TABLE table_name_98 (visitor VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_98 WHERE record = "11–49–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 Record of the Chicago Black Hawks Home game with the New York Rangers and a Score of 3–2?
### Context:
CREATE TABLE table_name_28 (record VARCHAR, score VARCHAR, home VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_28 WHERE home = "chicago black hawks" AND visitor = "new york rangers" AND score = "3–2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Home team on October 17 with a Score of 1–2?
### Context:
CREATE TABLE table_name_21 (home VARCHAR, score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_21 WHERE score = "1–2" AND date = "october 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:
What is the Record of the game on January 31 with Visitors Detroit Red Wings?
### Context:
CREATE TABLE table_name_74 (record VARCHAR, visitor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_74 WHERE visitor = "detroit red wings" AND date = "january 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:
Name the Report of 7 february with an Away team of new zealand breakers?
### Context:
CREATE TABLE table_name_35 (report VARCHAR, date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT report FROM table_name_35 WHERE date = "7 february" AND away_team = "new zealand breakers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Date has a Crowd smaller than 4,485?
### Context:
CREATE TABLE table_name_72 (date VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT date FROM table_name_72 WHERE crowd < 4 OFFSET 485 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lowest Crowd of hisense arena on 8 february?
### Context:
CREATE TABLE table_name_29 (crowd INTEGER, venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_29 WHERE venue = "hisense arena" AND date = "8 february" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Box Score which has an Away team of new zealand breakers on 7 february?
### Context:
CREATE TABLE table_name_68 (Box VARCHAR, away_team VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT Box AS score FROM table_name_68 WHERE away_team = "new zealand breakers" AND date = "7 february" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Year, when Venue is Rio De Janeiro, Brazil?
### Context:
CREATE TABLE table_name_42 (year INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_42 WHERE venue = "rio de janeiro, brazil" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Event, when Year is 2008?
### Context:
CREATE TABLE table_name_59 (event VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_59 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 latest date in March when the opponent was the Boston Bruins and the game number was smaller than 66?
### Context:
CREATE TABLE table_name_94 (march INTEGER, opponent VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT MAX(march) FROM table_name_94 WHERE opponent = "boston bruins" AND game < 66 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 method of the match with chris ade as the opponent?
### Context:
CREATE TABLE table_name_70 (method VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_70 WHERE opponent = "chris ade" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pole for a race lower than 16 with a Flap higher than 8 and a podium higher than 11?
### Context:
CREATE TABLE table_name_26 (pole INTEGER, podium VARCHAR, race VARCHAR, flap VARCHAR) [/INST]
### Response:
SELECT AVG(pole) FROM table_name_26 WHERE race < 16 AND flap > 8 AND podium > 11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many podiums had a race higher than 14 in 1996 and a Flap lower than 9?
### Context:
CREATE TABLE table_name_91 (podium VARCHAR, flap VARCHAR, race VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT COUNT(podium) FROM table_name_91 WHERE race > 14 AND season = "1996" AND flap < 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:
How many races had 4 podiums, 5 poles and more than 3 Flaps?
### Context:
CREATE TABLE table_name_64 (race INTEGER, flap VARCHAR, podium VARCHAR, pole VARCHAR) [/INST]
### Response:
SELECT SUM(race) FROM table_name_64 WHERE podium = 4 AND pole = 5 AND flap > 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 are the fewest podiums in 2005 with fewer than 0 poles?
### Context:
CREATE TABLE table_name_30 (podium INTEGER, season VARCHAR, pole VARCHAR) [/INST]
### Response:
SELECT MIN(podium) FROM table_name_30 WHERE season = "2005" AND pole < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Player has a To par of +9?
### Context:
CREATE TABLE table_name_8 (player VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_8 WHERE to_par = "+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 years did raymond floyd win?
### Context:
CREATE TABLE table_name_43 (year_s__won VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT year_s__won FROM table_name_43 WHERE player = "raymond floyd" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total has a To par of +9?
### Context:
CREATE TABLE table_name_65 (total VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT COUNT(total) FROM table_name_65 WHERE to_par = "+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 Total has a Country of united states, and a Player of andy north?
### Context:
CREATE TABLE table_name_12 (total INTEGER, country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT AVG(total) FROM table_name_12 WHERE country = "united states" AND player = "andy north" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest grid for Aprilia vehicles, laps over 5, and a retirement finish?
### Context:
CREATE TABLE table_name_43 (grid INTEGER, laps VARCHAR, manufacturer VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_43 WHERE manufacturer = "aprilia" AND time = "retirement" AND laps > 5 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.