text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many picks had less than 11 rounds and a player of Charley Casey?
### Context:
CREATE TABLE table_name_29 (pick INTEGER, round VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT SUM(pick) FROM table_name_29 WHERE round < 11 AND player = "charley casey" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a position of kicker?
### Context:
CREATE TABLE table_name_13 (round INTEGER, position VARCHAR) [/INST]
### Response:
SELECT SUM(round) FROM table_name_13 WHERE position = "kicker" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which position had a pick larger than 80 and Walt Mainer as a player?
### Context:
CREATE TABLE table_name_7 (position VARCHAR, pick VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_7 WHERE pick > 80 AND player = "walt mainer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 match with deportes savio as the away team?
### Context:
CREATE TABLE table_name_57 (score VARCHAR, away VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_57 WHERE away = "deportes savio" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance of the match with a 1:2 score?
### Context:
CREATE TABLE table_name_92 (attendance VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_92 WHERE score = "1:2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the home team of the match on 21 September 2008 with an attendance less than 2248 and a 2:0 score?
### Context:
CREATE TABLE table_name_60 (home VARCHAR, date VARCHAR, attendance VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_60 WHERE attendance < 2248 AND score = "2:0" AND date = "21 september 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 highest attendance of the match with a 2:0 score and vida as the away team?
### Context:
CREATE TABLE table_name_59 (attendance INTEGER, score VARCHAR, away VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_59 WHERE score = "2:0" AND away = "vida" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team olimpia?
### Context:
CREATE TABLE table_name_14 (score VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_14 WHERE home = "olimpia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 match with an attendance of 2248?
### Context:
CREATE TABLE table_name_66 (score VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_66 WHERE attendance = 2248 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Seats up for election have an Election result larger than 8, and Staying councillors of 24?
### Context:
CREATE TABLE table_name_96 (seats_up_for_election INTEGER, election_result VARCHAR, staying_councillors VARCHAR) [/INST]
### Response:
SELECT MAX(seats_up_for_election) FROM table_name_96 WHERE election_result > 8 AND staying_councillors = 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:
Which New council has an Election result larger than 24?
### Context:
CREATE TABLE table_name_33 (new_council INTEGER, election_result INTEGER) [/INST]
### Response:
SELECT AVG(new_council) FROM table_name_33 WHERE election_result > 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:
Which Staying councillors have a New council of 7, and a Previous council larger than 8?
### Context:
CREATE TABLE table_name_22 (staying_councillors INTEGER, new_council VARCHAR, previous_council VARCHAR) [/INST]
### Response:
SELECT AVG(staying_councillors) FROM table_name_22 WHERE new_council = 7 AND previous_council > 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record when they played in the Miami Arena, before game 24?
### Context:
CREATE TABLE table_name_67 (record VARCHAR, game VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_67 WHERE game < 24 AND location = "miami 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:
Who was the opponent when they played after Game 26 and their record was 23-4?
### Context:
CREATE TABLE table_name_2 (opponent VARCHAR, game VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_2 WHERE game > 26 AND record = "23-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:
On what date did they play in Boston Garden with a record of 22-4?
### Context:
CREATE TABLE table_name_24 (date VARCHAR, location VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_24 WHERE location = "boston garden" AND record = "22-4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was their record on Wed. Dec. 5, when they played in Boston Garden?
### Context:
CREATE TABLE table_name_11 (record VARCHAR, location VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_11 WHERE location = "boston garden" AND date = "wed. dec. 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 place in Lon Hinkle in?
### Context:
CREATE TABLE table_name_18 (place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_18 WHERE player = "lon hinkle" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country does Mark Hayes play for?
### Context:
CREATE TABLE table_name_33 (country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_33 WHERE player = "mark hayes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Country is "United States", and when Year(s) Won is "1973"?
### Context:
CREATE TABLE table_name_23 (to_par INTEGER, country VARCHAR, year_s__won VARCHAR) [/INST]
### Response:
SELECT SUM(to_par) FROM table_name_23 WHERE country = "united states" AND year_s__won = "1973" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 288, and when Country is "South Africa"?
### Context:
CREATE TABLE table_name_54 (player VARCHAR, total VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_54 WHERE total > 288 AND country = "south africa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Year(s) Won, when To Par is greater than 13?
### Context:
CREATE TABLE table_name_24 (year_s__won VARCHAR, to_par INTEGER) [/INST]
### Response:
SELECT year_s__won FROM table_name_24 WHERE to_par > 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 residence has representative Quincy Murphy?
### Context:
CREATE TABLE table_name_49 (residence VARCHAR, representative VARCHAR) [/INST]
### Response:
SELECT residence FROM table_name_49 WHERE representative = "quincy murphy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home captain when the venue is adelaide oval?
### Context:
CREATE TABLE table_name_81 (home_captain VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_captain FROM table_name_81 WHERE venue = "adelaide oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score in the September 20 game?
### Context:
CREATE TABLE table_name_57 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_57 WHERE date = "september 20" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was the September 22 game played?
### Context:
CREATE TABLE table_name_23 (location VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_23 WHERE date = "september 22" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score in the September 26 game?
### Context:
CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_76 WHERE date = "september 26" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opposing team in the game(s) that started at 7:30pm?
### Context:
CREATE TABLE table_name_97 (opponent VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_97 WHERE time = "7:30pm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 7:00pm game at Scotiabank Place against the Philadelphia Flyers?
### Context:
CREATE TABLE table_name_12 (score VARCHAR, opponent VARCHAR, time VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_12 WHERE time = "7:00pm" AND location = "scotiabank place" AND opponent = "philadelphia flyers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the attendance of the match on October 26?
### Context:
CREATE TABLE table_name_16 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_16 WHERE date = "october 26" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponent number of the match with a w27-16 result?
### Context:
CREATE TABLE table_name_78 (opponent_number VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent_number FROM table_name_78 WHERE result = "w27-16" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the result of the match with an attendance of 73,855?
### Context:
CREATE TABLE table_name_9 (result VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_9 WHERE attendance = "73,855" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the rank of the match on October 19?
### Context:
CREATE TABLE table_name_72 (rank__number VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT rank__number FROM table_name_72 WHERE date = "october 19" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the scorer when the opponent was aberdeen?
### Context:
CREATE TABLE table_name_63 (scorers VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT scorers FROM table_name_63 WHERE opponent = "aberdeen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 scorer mccoist (3), johnston, butcher, steven?
### Context:
CREATE TABLE table_name_48 (date VARCHAR, scorers VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_48 WHERE scorers = "mccoist (3), johnston, butcher, steven" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Score, when Visitor is "Pittsburgh", and when Points is greater than 18?
### Context:
CREATE TABLE table_name_7 (score VARCHAR, visitor VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_7 WHERE visitor = "pittsburgh" AND points > 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Points, when Home is "Pittsburgh", when Date is "December 21", and when Attendance is greater than 5,307?
### Context:
CREATE TABLE table_name_84 (points INTEGER, attendance VARCHAR, home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_84 WHERE home = "pittsburgh" AND date = "december 21" AND attendance > 5 OFFSET 307 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Points, when Home is "Boston"?
### Context:
CREATE TABLE table_name_81 (points INTEGER, home VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_81 WHERE home = "boston" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team when the high points is by charlie villanueva (24)?
### Context:
CREATE TABLE table_name_48 (team VARCHAR, high_points VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_48 WHERE high_points = "charlie villanueva (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 location attendance when the high assists is by ramon sessions (8) on march 30?
### Context:
CREATE TABLE table_name_82 (location_attendance VARCHAR, high_assists VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT location_attendance FROM table_name_82 WHERE high_assists = "ramon sessions (8)" AND date = "march 30" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had the high rebounds when the score was l 85–102 (ot)?
### Context:
CREATE TABLE table_name_55 (high_rebounds VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT high_rebounds FROM table_name_55 WHERE score = "l 85–102 (ot)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the location attendance when the score is w 86–77 (ot)?
### Context:
CREATE TABLE table_name_42 (location_attendance VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT location_attendance FROM table_name_42 WHERE score = "w 86–77 (ot)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when ramon sessions (8) had the high assists, richard jefferson (29) had the high points and the score was w 107–78 (ot)?
### Context:
CREATE TABLE table_name_32 (date VARCHAR, score VARCHAR, high_assists VARCHAR, high_points VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_32 WHERE high_assists = "ramon sessions (8)" AND high_points = "richard jefferson (29)" AND score = "w 107–78 (ot)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
who had the high rebounds when the team was @ toronto?
### Context:
CREATE TABLE table_name_9 (high_rebounds VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT high_rebounds FROM table_name_9 WHERE team = "@ toronto" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest pole with a Flap larger than 5, and a before race 155?
### Context:
CREATE TABLE table_name_49 (pole INTEGER, flap VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT MIN(pole) FROM table_name_49 WHERE flap > 5 AND race < 155 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Fred Couples' score?
### Context:
CREATE TABLE table_name_15 (score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(score) FROM table_name_15 WHERE player = "fred couples" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Payne Stewart of the United States scored higher than 69, what was the To Par?
### Context:
CREATE TABLE table_name_43 (to_par VARCHAR, player VARCHAR, country VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_43 WHERE country = "united states" AND score > 69 AND player = "payne stewart" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2008 population in 함흥 (Ham Hyung)?
### Context:
CREATE TABLE table_name_55 (population__2008_ INTEGER, korean VARCHAR) [/INST]
### Response:
SELECT SUM(population__2008_) FROM table_name_55 WHERE korean = "함흥" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 mountain peak when the location is 53.1370°n 119.2667°w?
### Context:
CREATE TABLE table_name_74 (mountain_peak VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT mountain_peak FROM table_name_74 WHERE location = "53.1370°n 119.2667°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:
what is the region when the location is 49.7462°n 117.1419°w?
### Context:
CREATE TABLE table_name_96 (region VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT region FROM table_name_96 WHERE location = "49.7462°n 117.1419°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:
what is the rank when the mountain peak is isthmus peak?
### Context:
CREATE TABLE table_name_63 (rank VARCHAR, mountain_peak VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_63 WHERE mountain_peak = "isthmus peak" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 mountain range when the region is british columbia and mountain pea is mount edziza?
### Context:
CREATE TABLE table_name_90 (mountain_range VARCHAR, region VARCHAR, mountain_peak VARCHAR) [/INST]
### Response:
SELECT mountain_range FROM table_name_90 WHERE region = "british columbia" AND mountain_peak = "mount edziza" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Born-Died dates of Xhafer Bej Ypi?
### Context:
CREATE TABLE table_name_39 (born_died VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT born_died FROM table_name_39 WHERE name = "xhafer bej ypi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Prime Minister with a Born-Died of 1873–1933?
### Context:
CREATE TABLE table_name_34 (name VARCHAR, born_died VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_34 WHERE born_died = "1873–1933" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Term Start date of the Progressive Party Prime Minister?
### Context:
CREATE TABLE table_name_45 (term_start VARCHAR, political_party VARCHAR) [/INST]
### Response:
SELECT term_start FROM table_name_45 WHERE political_party = "progressive party" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the percentage for Brown when the lead margin is 26?
### Context:
CREATE TABLE table_name_35 (republican VARCHAR, lead_margin VARCHAR) [/INST]
### Response:
SELECT republican AS :_roy_brown FROM table_name_35 WHERE lead_margin = 26 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 percentage for Schweitzer when the lead margin is 29?
### Context:
CREATE TABLE table_name_12 (democrat VARCHAR, lead_margin VARCHAR) [/INST]
### Response:
SELECT democrat AS :_brian_schweitzer FROM table_name_12 WHERE lead_margin = 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:
What is Record, when Date is "November 22"?
### Context:
CREATE TABLE table_name_72 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_72 WHERE date = "november 22" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the attendance before week 1?
### Context:
CREATE TABLE table_name_75 (attendance VARCHAR, week INTEGER) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_75 WHERE week < 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 was the date of the match with a winning score of –7 (67-72-69-69=277)?
### Context:
CREATE TABLE table_name_10 (date VARCHAR, winning_score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_10 WHERE winning_score = –7(67 - 72 - 69 - 69 = 277) </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the home team in the match with an away team of Millwall?
### Context:
CREATE TABLE table_name_6 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_6 WHERE away_team = "millwall" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the match that had a home team of Kidderminster Harriers?
### Context:
CREATE TABLE table_name_42 (score VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_42 WHERE home_team = "kidderminster harriers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 match with a home team of Huddersfield Town and was a replay tie?
### Context:
CREATE TABLE table_name_93 (date VARCHAR, tie_no VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_93 WHERE tie_no = "replay" AND home_team = "huddersfield town" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the home team for tie number 11?
### Context:
CREATE TABLE table_name_26 (home_team VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_26 WHERE tie_no = "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:
Who was the rider with 120.953 mph speed?
### Context:
CREATE TABLE table_name_79 (rider VARCHAR, speed VARCHAR) [/INST]
### Response:
SELECT rider FROM table_name_79 WHERE speed = "120.953 mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What time did rider steve plater have?
### Context:
CREATE TABLE table_name_27 (time VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_27 WHERE rider = "steve plater" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the rank of rider gary johnson, who had a speed of 120.979 mph?
### Context:
CREATE TABLE table_name_28 (rank VARCHAR, speed VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_28 WHERE speed = "120.979 mph" AND rider = "gary johnson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What club has less than 8 draws, 37 points, and less than 71 goals?
### Context:
CREATE TABLE table_name_88 (club VARCHAR, goals_for VARCHAR, draws VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT club FROM table_name_88 WHERE draws < 8 AND points = 37 AND goals_for < 71 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of goals when there are 3 draws, more than 18 losses, and played is smaller than 38?
### Context:
CREATE TABLE table_name_40 (goals_for VARCHAR, played VARCHAR, draws VARCHAR, losses VARCHAR) [/INST]
### Response:
SELECT COUNT(goals_for) FROM table_name_40 WHERE draws = 3 AND losses > 18 AND played < 38 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the number of goals against when the played is more than 38?
### Context:
CREATE TABLE table_name_19 (goals_against VARCHAR, played INTEGER) [/INST]
### Response:
SELECT COUNT(goals_against) FROM table_name_19 WHERE played > 38 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the number of draws when played is less than 38?
### Context:
CREATE TABLE table_name_53 (draws VARCHAR, played INTEGER) [/INST]
### Response:
SELECT COUNT(draws) FROM table_name_53 WHERE played < 38 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the points when played is less than 38?
### Context:
CREATE TABLE table_name_6 (points INTEGER, played INTEGER) [/INST]
### Response:
SELECT SUM(points) FROM table_name_6 WHERE played < 38 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Transfer window has a Name of tofas?
### Context:
CREATE TABLE table_name_27 (transfer_window VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT transfer_window FROM table_name_27 WHERE name = "tofas" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Type has a Transfer fee of free, and a Name of kapetanos?
### Context:
CREATE TABLE table_name_63 (type VARCHAR, transfer_fee VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_63 WHERE transfer_fee = "free" AND name = "kapetanos" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Type has a Name of edson ratinho?
### Context:
CREATE TABLE table_name_14 (type VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_14 WHERE name = "edson ratinho" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Name has a Type of loan, and a Moving to of apollon kalamaria?
### Context:
CREATE TABLE table_name_97 (name VARCHAR, type VARCHAR, moving_to VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_97 WHERE type = "loan" AND moving_to = "apollon kalamaria" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Location, when Circuit is August 16?
### Context:
CREATE TABLE table_name_1 (location VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_1 WHERE circuit = "august 16" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Location, when Fastest Lap is Ben Spies, when Pole Position is Ben Spies, when Winner is Ben Spies, and when Date is Tooele, Utah?
### Context:
CREATE TABLE table_name_77 (location VARCHAR, date VARCHAR, winner VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_77 WHERE fastest_lap = "ben spies" AND pole_position = "ben spies" AND winner = "ben spies" AND date = "tooele, utah" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Fastest Lap, when Date is Leeds, Alabama, and when Circuit is April 19?
### Context:
CREATE TABLE table_name_18 (fastest_lap VARCHAR, date VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT fastest_lap FROM table_name_18 WHERE date = "leeds, alabama" AND circuit = "april 19" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Winner, when Circuit is June 8?
### Context:
CREATE TABLE table_name_33 (winner VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_33 WHERE circuit = "june 8" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Pole Position, when Fastest Lap is Ben Spies, and when Location is Barber Motorsports Park?
### Context:
CREATE TABLE table_name_84 (pole_position VARCHAR, fastest_lap VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT pole_position FROM table_name_84 WHERE fastest_lap = "ben spies" AND location = "barber motorsports 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:
What is Winner, when Pole Position is Ben Spies, and when Date is Elkhart Lake, Wisconsin?
### Context:
CREATE TABLE table_name_41 (winner VARCHAR, pole_position VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_41 WHERE pole_position = "ben spies" AND date = "elkhart lake, wisconsin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Surface of the court in the match with a Score of 4–6, 6–4, 3–6?
### Context:
CREATE TABLE table_name_16 (surface VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_16 WHERE score = "4–6, 6–4, 3–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 Team has a Year larger than 2010?
### Context:
CREATE TABLE table_name_47 (team VARCHAR, year INTEGER) [/INST]
### Response:
SELECT team FROM table_name_47 WHERE year > 2010 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Laps has a Year of 2007?
### Context:
CREATE TABLE table_name_80 (laps INTEGER, year VARCHAR) [/INST]
### Response:
SELECT AVG(laps) FROM table_name_80 WHERE year = 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 was the tie number with the home team of Swindon Town?
### Context:
CREATE TABLE table_name_13 (tie_no VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_13 WHERE home_team = "swindon town" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tie number with the away team of Sheffield Wednesday?
### Context:
CREATE TABLE table_name_63 (tie_no VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_63 WHERE away_team = "sheffield wednesday" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the match with tie number 23?
### Context:
CREATE TABLE table_name_76 (score VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_76 WHERE tie_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:
Who was the home team for the match against Arsenal?
### Context:
CREATE TABLE table_name_2 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_2 WHERE away_team = "arsenal" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which place is payne stewart, the player in?
### Context:
CREATE TABLE table_name_40 (place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_40 WHERE player = "payne stewart" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What player has +7 as the to par, and 69-69-75-74=287 as the score?
### Context:
CREATE TABLE table_name_55 (player VARCHAR, to_par VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_55 WHERE to_par = "+7" AND score = 69 - 69 - 75 - 74 = 287 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tournaments was Ryan Palmer in as a runner-up?
### Context:
CREATE TABLE table_name_40 (tournament VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_40 WHERE runner_s__up = "ryan palmer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 margin of victory for the Players Championship tournament?
### Context:
CREATE TABLE table_name_70 (margin_of_victory VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT margin_of_victory FROM table_name_70 WHERE tournament = "the players 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:
What tournament was Kirk Triplett a runner-up in?
### Context:
CREATE TABLE table_name_38 (tournament VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_38 WHERE runner_s__up = "kirk triplett" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winning score for the B.C. Open 1 tournament?
### Context:
CREATE TABLE table_name_40 (winning_score VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT winning_score FROM table_name_40 WHERE tournament = "b.c. open 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 country is Lee Janzen from?
### Context:
CREATE TABLE table_name_46 (country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_46 WHERE player = "lee janzen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tom Watson placed t6, what was the 2 par?
### Context:
CREATE TABLE table_name_35 (to_par VARCHAR, place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_35 WHERE place = "t6" AND player = "tom watson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 score of 70-69-70=209?
### Context:
CREATE TABLE table_name_50 (player VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_50 WHERE score = 70 - 69 - 70 = 209 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opponent in the Tarragona Tournament?
### Context:
CREATE TABLE table_name_9 (opponent VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_9 WHERE tournament = "tarragona" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Tournament's Score was 6–2, 4–6, 6–4?
### Context:
CREATE TABLE table_name_14 (tournament VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_14 WHERE score = "6–2, 4–6, 6–4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what Date was the match with a Score of 6-2, 6-4?
### Context:
CREATE TABLE table_name_64 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_64 WHERE score = "6-2, 6-4" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.