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 was the score for the game that had an end result of 5-2?
### Context:
CREATE TABLE table_name_68 (score VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_68 WHERE result = "5-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 total number of losses that have 1 draw and games over 7?
### Context:
CREATE TABLE table_name_31 (lost VARCHAR, drawn VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT COUNT(lost) FROM table_name_31 WHERE drawn = 1 AND games > 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:
How many rounds had a pick number of more than 10 and Appalachian State as a college?
### Context:
CREATE TABLE table_name_73 (round VARCHAR, pick__number VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_73 WHERE pick__number > 10 AND college = "appalachian state" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest overall where the position was linebacker and the pick number was more than 9?
### Context:
CREATE TABLE table_name_32 (overall INTEGER, position VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT MAX(overall) FROM table_name_32 WHERE position = "linebacker" AND pick__number > 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 Score of the game earlier than 69 with a record of 4–56?
### Context:
CREATE TABLE table_name_41 (score VARCHAR, game VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_41 WHERE game < 69 AND record = "4–56" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game number with a score of 116–138?
### Context:
CREATE TABLE table_name_31 (game VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT COUNT(game) FROM table_name_31 WHERE score = "116–138" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 against the boston celtics?
### Context:
CREATE TABLE table_name_58 (score VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_58 WHERE opponent = "boston celtics" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Game held on february 9?
### Context:
CREATE TABLE table_name_17 (game VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT game FROM table_name_17 WHERE date = "february 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 Score of the game larger than 57 with a Record of 4–55?
### Context:
CREATE TABLE table_name_15 (score VARCHAR, game VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_15 WHERE game > 57 AND record = "4–55" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Reigon has a Village of Chassagne-Montrachet?
### Context:
CREATE TABLE table_name_82 (region VARCHAR, village VARCHAR) [/INST]
### Response:
SELECT region FROM table_name_82 WHERE village = "chassagne-montrachet" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Village has a Region of Côte De Nuits, Wine Styles of Red Wine, and a Grand Cru of Latricières-Chambertin?
### Context:
CREATE TABLE table_name_57 (village VARCHAR, grand_cru VARCHAR, region VARCHAR, wine_style VARCHAR) [/INST]
### Response:
SELECT village FROM table_name_57 WHERE region = "côte de nuits" AND wine_style = "red wine" AND grand_cru = "latricières-chambertin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Vineyeard surface (2010) with a Village of Gevrey-Chambertin, and Grand Cru of Latricières-Chambertin?
### Context:
CREATE TABLE table_name_94 (vineyard_surface__2010_ VARCHAR, village VARCHAR, grand_cru VARCHAR) [/INST]
### Response:
SELECT vineyard_surface__2010_ FROM table_name_94 WHERE village = "gevrey-chambertin" AND grand_cru = "latricières-chambertin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Grand Cru with a Wine Style of Red Wine and Village of Gevrey-Chambertin?
### Context:
CREATE TABLE table_name_33 (grand_cru VARCHAR, wine_style VARCHAR, village VARCHAR) [/INST]
### Response:
SELECT grand_cru FROM table_name_33 WHERE wine_style = "red wine" AND village = "gevrey-chambertin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average pick number of Pennsylvania?
### Context:
CREATE TABLE table_name_97 (pick INTEGER, school_club_team VARCHAR) [/INST]
### Response:
SELECT AVG(pick) FROM table_name_97 WHERE school_club_team = "pennsylvania" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 school/club team of the player with a pick larger than 83?
### Context:
CREATE TABLE table_name_26 (school_club_team VARCHAR, pick INTEGER) [/INST]
### Response:
SELECT school_club_team FROM table_name_26 WHERE pick > 83 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 schoo/club team of the player in round 3?
### Context:
CREATE TABLE table_name_92 (school_club_team VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_name_92 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 is the lowest round of the player from UCLA?
### Context:
CREATE TABLE table_name_87 (round INTEGER, school_club_team VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_87 WHERE school_club_team = "ucla" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 –16 (62-71-71-68=272) the winning score?
### Context:
CREATE TABLE table_name_20 (date VARCHAR, winning_score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_20 WHERE winning_score = –16(62 - 71 - 71 - 68 = 272) </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of the tournament played on Jun 17, 1973?
### Context:
CREATE TABLE table_name_3 (tournament VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_3 WHERE date = "jun 17, 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:
Howard Twitty was the runner-up of what tournament?
### Context:
CREATE TABLE table_name_14 (tournament VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_14 WHERE runner_s__up = "howard twitty" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 College/Junior/Club Team that has the Position of defence, and the Nationality of czechoslovakia?
### Context:
CREATE TABLE table_name_58 (college_junior_club_team VARCHAR, position VARCHAR, nationality VARCHAR) [/INST]
### Response:
SELECT college_junior_club_team FROM table_name_58 WHERE position = "defence" AND nationality = "czechoslovakia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Position that has the College/Junior/Club Team of hull olympiques (qmjhl)?
### Context:
CREATE TABLE table_name_81 (position VARCHAR, college_junior_club_team VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_81 WHERE college_junior_club_team = "hull olympiques (qmjhl)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Player that has the Round smaller than 6, and the College/Junior/Club Team of hull olympiques (qmjhl)?
### Context:
CREATE TABLE table_name_86 (player VARCHAR, round VARCHAR, college_junior_club_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_86 WHERE round < 6 AND college_junior_club_team = "hull olympiques (qmjhl)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Center?
### Context:
CREATE TABLE table_name_84 (name VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_84 WHERE position = "center" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Position has no College Hall of Fame?
### Context:
CREATE TABLE table_name_48 (position VARCHAR, college_hall_of_fame VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_48 WHERE college_hall_of_fame = "no" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What School has no no no Unanimously?
### Context:
CREATE TABLE table_name_96 (school VARCHAR, unanimous VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_96 WHERE unanimous = "no no no" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 School of the quarterback?
### Context:
CREATE TABLE table_name_43 (school VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_43 WHERE position = "quarterback" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What School is the Center from?
### Context:
CREATE TABLE table_name_97 (school VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_97 WHERE position = "center" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Unanimous of the Minnesota Southern California School?
### Context:
CREATE TABLE table_name_93 (unanimous VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT unanimous FROM table_name_93 WHERE school = "minnesota southern california" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Cache with a Capacity that is 600 gb?
### Context:
CREATE TABLE table_name_59 (cache VARCHAR, capacity VARCHAR) [/INST]
### Response:
SELECT cache FROM table_name_59 WHERE capacity = "600 gb" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Position has a College/Junior/Club Team (League) of estevan bruins (wchl), and a Round of 3?
### Context:
CREATE TABLE table_name_11 (position VARCHAR, college_junior_club_team__league_ VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_11 WHERE college_junior_club_team__league_ = "estevan bruins (wchl)" AND 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:
Which Nationality has a Player of larry wright?
### Context:
CREATE TABLE table_name_86 (nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_86 WHERE player = "larry wright" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What score has august 25 as the date?
### Context:
CREATE TABLE table_name_49 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_49 WHERE date = "august 25" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of episodes where jim sweeney was the 1st performer and steve steen was the 2nd performer?
### Context:
CREATE TABLE table_name_78 (episode VARCHAR, performer_1 VARCHAR, performer_2 VARCHAR) [/INST]
### Response:
SELECT COUNT(episode) FROM table_name_78 WHERE performer_1 = "jim sweeney" AND performer_2 = "steve steen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the episode numbers where chip esten is the 4th performer and christopher smith was the 2nd performer?
### Context:
CREATE TABLE table_name_37 (episode INTEGER, performer_4 VARCHAR, performer_2 VARCHAR) [/INST]
### Response:
SELECT SUM(episode) FROM table_name_37 WHERE performer_4 = "chip esten" AND performer_2 = "christopher smith" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the episodes where chip esten was the 4th performer and jim meskimen was the 1st performer?
### Context:
CREATE TABLE table_name_96 (episode INTEGER, performer_4 VARCHAR, performer_1 VARCHAR) [/INST]
### Response:
SELECT SUM(episode) FROM table_name_96 WHERE performer_4 = "chip esten" AND performer_1 = "jim meskimen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 3rd performer when christopher smith was the 2nd performer?
### Context:
CREATE TABLE table_name_19 (performer_3 VARCHAR, performer_2 VARCHAR) [/INST]
### Response:
SELECT performer_3 FROM table_name_19 WHERE performer_2 = "christopher smith" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Time of 4:50?
### Context:
CREATE TABLE table_name_58 (record VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_58 WHERE time = "4:50" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Event has a Resolution of loss, and a Record of 12–2?
### Context:
CREATE TABLE table_name_56 (event VARCHAR, res VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_56 WHERE res = "loss" AND record = "12–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:
Which Drawn has a Difference of 14?
### Context:
CREATE TABLE table_name_58 (drawn INTEGER, difference VARCHAR) [/INST]
### Response:
SELECT AVG(drawn) FROM table_name_58 WHERE difference = "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:
Which Played has a Lost larger than 2, and a Team of américa?
### Context:
CREATE TABLE table_name_4 (played VARCHAR, lost VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT played FROM table_name_4 WHERE lost > 2 AND team = "américa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the number of touchdowns that there are 0 field goals, less than 5 points, and had Joe Maddock playing?
### Context:
CREATE TABLE table_name_31 (touchdowns INTEGER, points VARCHAR, field_goals VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT SUM(touchdowns) FROM table_name_31 WHERE field_goals = 0 AND player = "joe maddock" AND points < 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the class of w269ax
### Context:
CREATE TABLE table_name_90 (class VARCHAR, call_sign VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_90 WHERE call_sign = "w269ax" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 match report of the match on 20 August?
### Context:
CREATE TABLE table_name_12 (match_report VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT match_report FROM table_name_12 WHERE date = "20 august" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the origin for the launch taking place in 2010?
### Context:
CREATE TABLE table_name_71 (origin VARCHAR, launch VARCHAR) [/INST]
### Response:
SELECT origin FROM table_name_71 WHERE launch = 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:
What is the origin for the item with an owner of Hunan Broadcasting System (HBS)?
### Context:
CREATE TABLE table_name_82 (origin VARCHAR, owner VARCHAR) [/INST]
### Response:
SELECT origin FROM table_name_82 WHERE owner = "hunan broadcasting system (hbs)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
If the college is Trinity, what position is listed?
### Context:
CREATE TABLE table_name_40 (position VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_40 WHERE college = "trinity" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the College of USC wind up getting?
### Context:
CREATE TABLE table_name_67 (pick__number VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT COUNT(pick__number) FROM table_name_67 WHERE college = "usc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For Pick #323, which round is it?
### Context:
CREATE TABLE table_name_41 (round VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_41 WHERE pick__number = 323 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What score has amblecote as the venue?
### Context:
CREATE TABLE table_name_97 (score VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_97 WHERE venue = "amblecote" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What city has riverside ground as the venue, with a year prior to 1998?
### Context:
CREATE TABLE table_name_16 (city VARCHAR, venue VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_16 WHERE venue = "riverside ground" AND year < 1998 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest year that has chester-le-street as the city, with 345 runs as the score?
### Context:
CREATE TABLE table_name_49 (year INTEGER, city VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_49 WHERE city = "chester-le-street" AND score = "345 runs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year has 385 runs as the score?
### Context:
CREATE TABLE table_name_38 (year VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_38 WHERE score = "385 runs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What score has 1998 as the year?
### Context:
CREATE TABLE table_name_82 (score VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_82 WHERE year = 1998 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the 2nd (m) value for Gregor Schlierenzauer?
### Context:
CREATE TABLE table_name_5 (name VARCHAR) [/INST]
### Response:
SELECT MIN(2 AS nd__m_) FROM table_name_5 WHERE name = "gregor schlierenzauer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament with a score of 199 (–17)?
### Context:
CREATE TABLE table_name_58 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_58 WHERE score = "199 (–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 was the amount of the 1st prize when paul azinger (9) was the winner?
### Context:
CREATE TABLE table_name_95 (winner VARCHAR) [/INST]
### Response:
SELECT AVG(1 AS st_prize___) AS $__ FROM table_name_95 WHERE winner = "paul azinger (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 name of the winner of the tour championship tournament?
### Context:
CREATE TABLE table_name_73 (winner VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_73 WHERE tournament = "the tour 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 is the Date of the at&t pebble beach national pro-am Tournament?
### Context:
CREATE TABLE table_name_91 (date VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_91 WHERE tournament = "at&t pebble beach national pro-am" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Site has a Sport of w swimming?
### Context:
CREATE TABLE table_name_38 (site VARCHAR, sport VARCHAR) [/INST]
### Response:
SELECT site FROM table_name_38 WHERE sport = "w swimming" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Series are on september 15, 2007?
### Context:
CREATE TABLE table_name_53 (series VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT series FROM table_name_53 WHERE date = "september 15, 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 position did the 2010-11 USA ír player have?
### Context:
CREATE TABLE table_name_5 (position VARCHAR, season VARCHAR, nationality VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_5 WHERE nationality = "usa" AND team = "ír" AND season = "2010-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 position did the kr team player play?
### Context:
CREATE TABLE table_name_15 (position VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_15 WHERE team = "kr" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team has Steinar Kaldal, a guard / forward?
### Context:
CREATE TABLE table_name_57 (team VARCHAR, position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_57 WHERE position = "guard / forward" AND player = "steinar kaldal" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team did the 2003-04 winner play for?
### Context:
CREATE TABLE table_name_68 (team VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_68 WHERE season = "2003-04" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 region has and eyeball label and catalogue 7200222?
### Context:
CREATE TABLE table_name_23 (region VARCHAR, label VARCHAR, catalogue VARCHAR) [/INST]
### Response:
SELECT region FROM table_name_23 WHERE label = "eyeball" AND catalogue = "7200222" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 catalogue is from Japan?
### Context:
CREATE TABLE table_name_31 (catalogue VARCHAR, region VARCHAR) [/INST]
### Response:
SELECT catalogue FROM table_name_31 WHERE region = "japan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 format for the United States dated July 23, 2002?
### Context:
CREATE TABLE table_name_84 (format VARCHAR, region VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT format FROM table_name_84 WHERE region = "united states" AND date = "july 23, 2002" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the label for catalogue 7200222?
### Context:
CREATE TABLE table_name_77 (label VARCHAR, catalogue VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_77 WHERE catalogue = "7200222" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Marc's Surname?
### Context:
CREATE TABLE table_name_38 (surname VARCHAR, first VARCHAR) [/INST]
### Response:
SELECT surname FROM table_name_38 WHERE first = "marc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 uni# of the person with the first name Todd?
### Context:
CREATE TABLE table_name_32 (uni_number INTEGER, first VARCHAR) [/INST]
### Response:
SELECT MAX(uni_number) FROM table_name_32 WHERE first = "todd" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does #14 play?
### Context:
CREATE TABLE table_name_2 (position VARCHAR, uni_number VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_2 WHERE uni_number = 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:
Which does the lhp player with the first name lachlan bat?
### Context:
CREATE TABLE table_name_9 (bats VARCHAR, position VARCHAR, first VARCHAR) [/INST]
### Response:
SELECT bats FROM table_name_9 WHERE position = "lhp" AND first = "lachlan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were in Attendance on December 11, 1954?
### Context:
CREATE TABLE table_name_14 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_14 WHERE date = "december 11, 1954" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Week 3?
### Context:
CREATE TABLE table_name_62 (result VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_62 WHERE week = 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:
On what Week was the Detroit Lions the Opponent?
### Context:
CREATE TABLE table_name_66 (week VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT week FROM table_name_66 WHERE opponent = "detroit lions" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rangers' record on Game 14?
### Context:
CREATE TABLE table_name_44 (record VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_44 WHERE game = 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 highest game number when the rangers had a record of 11-11-1 and the date was after November 29?
### Context:
CREATE TABLE table_name_44 (game INTEGER, record VARCHAR, november VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_name_44 WHERE record = "11-11-1" AND november > 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's Francis Harris' position?
### Context:
CREATE TABLE table_name_83 (position VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_83 WHERE name = "francis harris" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has more area (km 2) than 34.42?
### Context:
CREATE TABLE table_name_99 (place VARCHAR, area__km_2__ INTEGER) [/INST]
### Response:
SELECT place FROM table_name_99 WHERE area__km_2__ > 34.42 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 4 hoops, 2 clubs of the nation with a total of 38.25?
### Context:
CREATE TABLE table_name_66 (_2_clubs VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MIN(4 AS _hoops), _2_clubs FROM table_name_66 WHERE total = 38.25 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total of Greece, which is placed below 8?
### Context:
CREATE TABLE table_name_32 (total VARCHAR, nation VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT COUNT(total) FROM table_name_32 WHERE nation = "greece" AND place > 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest 4 hoops, 2 clubs of Belarus, which has a total less than 38.25?
### Context:
CREATE TABLE table_name_14 (_2_clubs VARCHAR, nation VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MAX(4 AS _hoops), _2_clubs FROM table_name_14 WHERE nation = "belarus" AND total < 38.25 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Nationality has a Name of janne happonen?
### Context:
CREATE TABLE table_name_33 (nationality VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_33 WHERE name = "janne happonen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Nationality has a Rank larger than 3, and a Name of tom hilde?
### Context:
CREATE TABLE table_name_71 (nationality VARCHAR, rank VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_71 WHERE rank > 3 AND name = "tom hilde" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Nationality of nor, and Points of 136?
### Context:
CREATE TABLE table_name_99 (name VARCHAR, nationality VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_99 WHERE nationality = "nor" AND points = 136 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average rank of Wolfgang Schwarz with greater than 13 places?
### Context:
CREATE TABLE table_name_56 (rank INTEGER, name VARCHAR, places VARCHAR) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_56 WHERE name = "wolfgang schwarz" AND places > 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 nation had 1399.3 points?
### Context:
CREATE TABLE table_name_35 (nation VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT nation FROM table_name_35 WHERE points = 1399.3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest round number for the fight that had a time of 1:09?
### Context:
CREATE TABLE table_name_12 (round INTEGER, time VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_12 WHERE time = "1:09" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Overall has a Pick # smaller than 20, and a Round smaller than 6?
### Context:
CREATE TABLE table_name_13 (overall INTEGER, pick__number VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT SUM(overall) FROM table_name_13 WHERE pick__number < 20 AND round < 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 average Round has a Pick # larger than 20, and a College of virginia, and an Overall larger than 127?
### Context:
CREATE TABLE table_name_43 (round INTEGER, overall VARCHAR, pick__number VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_43 WHERE pick__number > 20 AND college = "virginia" AND overall > 127 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does chad owens have?
### Context:
CREATE TABLE table_name_47 (pick__number VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT COUNT(pick__number) FROM table_name_47 WHERE name = "chad owens" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 value in April with New York Rangers as opponent for a game less than 82?
### Context:
CREATE TABLE table_name_90 (april INTEGER, opponent VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT MIN(april) FROM table_name_90 WHERE opponent = "new york rangers" AND game < 82 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 value in April with a record of 35–37–11 and more than 81 points?
### Context:
CREATE TABLE table_name_99 (april INTEGER, record VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MAX(april) FROM table_name_99 WHERE record = "35–37–11" AND points > 81 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winner when the Score was 274 (–14) in tennessee?
### Context:
CREATE TABLE table_name_40 (winner VARCHAR, score VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_40 WHERE score = "274 (–14)" AND location = "tennessee" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the winners name at the western open?
### Context:
CREATE TABLE table_name_23 (winner VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_23 WHERE tournament = "western 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 score of the Tournament named danny thomas memphis classic?
### Context:
CREATE TABLE table_name_23 (score VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_23 WHERE tournament = "danny thomas memphis classic" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Winner in north carolina at the greater greensboro open?
### Context:
CREATE TABLE table_name_71 (winner VARCHAR, location VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_71 WHERE location = "north carolina" AND tournament = "greater greensboro 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 Location of the byron nelson golf classic?
### Context:
CREATE TABLE table_name_94 (location VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_94 WHERE tournament = "byron nelson golf classic" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the position of player Tiffany Garofano (2)?
### Context:
CREATE TABLE table_name_59 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_59 WHERE player = "tiffany garofano (2)" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.