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 shows for 2006, when 2013 is 2–4?
### Context:
CREATE TABLE table_name_64 (Id VARCHAR) [/INST]
### Response:
SELECT 2006 FROM table_name_64 WHERE 2013 = "2–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 shows for 2013 when the 2012 is 2r, and a 2009 is 2r?
### Context:
CREATE TABLE table_name_29 (Id VARCHAR) [/INST]
### Response:
SELECT 2013 FROM table_name_29 WHERE 2012 = "2r" AND 2009 = "2r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the 2006 when the 2013 is 1r, and the 2012 is 1r?
### Context:
CREATE TABLE table_name_89 (Id VARCHAR) [/INST]
### Response:
SELECT 2006 FROM table_name_89 WHERE 2013 = "1r" AND 2012 = "1r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the 2006 when the 2013 is 2r, and a Tournament was the us open?
### Context:
CREATE TABLE table_name_91 (tournament VARCHAR) [/INST]
### Response:
SELECT 2006 FROM table_name_91 WHERE 2013 = "2r" AND tournament = "us 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 Tournament when the 2013 is 2r, and a 2006 is 1r?
### Context:
CREATE TABLE table_name_26 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_26 WHERE 2013 = "2r" AND 2006 = "1r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tournament when the 2013 is 1r?
### Context:
CREATE TABLE table_name_54 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_54 WHERE 2013 = "1r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in 2008 that has a 2007 of f?
### Context:
CREATE TABLE table_name_30 (Id VARCHAR) [/INST]
### Response:
SELECT 2008 FROM table_name_30 WHERE 2007 = "f" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tournament has a 2007 of 19–4?
### Context:
CREATE TABLE table_name_3 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_3 WHERE 2007 = "19–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 in 2005 has a Win % of 82.61?
### Context:
CREATE TABLE table_name_59 (win__percentage VARCHAR) [/INST]
### Response:
SELECT 2005 FROM table_name_59 WHERE win__percentage = "82.61" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What in 2007 has a 2008 of sf, and a 2010 of f?
### Context:
CREATE TABLE table_name_95 (Id VARCHAR) [/INST]
### Response:
SELECT 2007 FROM table_name_95 WHERE 2008 = "sf" AND 2010 = "f" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What in 2013 has a 2009 of 3r?
### Context:
CREATE TABLE table_name_29 (Id VARCHAR) [/INST]
### Response:
SELECT 2013 FROM table_name_29 WHERE 2009 = "3r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What in 2007 has a 2010 of qf, and a 2012 of w?
### Context:
CREATE TABLE table_name_92 (Id VARCHAR) [/INST]
### Response:
SELECT 2007 FROM table_name_92 WHERE 2010 = "qf" AND 2012 = "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 name of Team 2 with a Team 1 of Al Qadsia?
### Context:
CREATE TABLE table_name_4 (team_2 VARCHAR, team_1 VARCHAR) [/INST]
### Response:
SELECT team_2 FROM table_name_4 WHERE team_1 = "al qadsia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1st leg of the Al Fahaheel Team 1?
### Context:
CREATE TABLE table_name_11 (team_1 VARCHAR) [/INST]
### Response:
SELECT 1 AS st_leg FROM table_name_11 WHERE team_1 = "al fahaheel" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Ground with an Away that is central blues?
### Context:
CREATE TABLE table_name_7 (ground VARCHAR, away VARCHAR) [/INST]
### Response:
SELECT ground FROM table_name_7 WHERE away = "central blues" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Away with a Time that is 14:00?
### Context:
CREATE TABLE table_name_28 (away VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT away FROM table_name_28 WHERE time = "14:00" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a Time that is 18:45?
### Context:
CREATE TABLE table_name_6 (date VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_6 WHERE time = "18:45" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a Date that is 2008-06-28?
### Context:
CREATE TABLE table_name_35 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_35 WHERE date = "2008-06-28" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player was in the Omonia Nicosia club?
### Context:
CREATE TABLE table_name_5 (player VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_5 WHERE club = "omonia nicosia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 league's nationality was Italy when there were 62 points?
### Context:
CREATE TABLE table_name_20 (league VARCHAR, nationality VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_20 WHERE nationality = "italy" AND points = "62" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 value for the item "Lost" when the value "Tries" is 47?
### Context:
CREATE TABLE table_name_86 (lost VARCHAR, tries_for VARCHAR) [/INST]
### Response:
SELECT lost FROM table_name_86 WHERE tries_for = "47" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 value for the item "Tries" when the value of the item "Played" is 18 and the value of the item "Points" is 375?
### Context:
CREATE TABLE table_name_16 (tries_for VARCHAR, played VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT tries_for FROM table_name_16 WHERE played = "18" AND points_against = "375" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 value of the item "Points" when the value of the item "Points against" is 272?
### Context:
CREATE TABLE table_name_62 (points_for VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT points_for FROM table_name_62 WHERE points_against = "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:
Which Height (cm) has a Birthplace of bloomfield hills, michigan?
### Context:
CREATE TABLE table_name_52 (height__cm_ INTEGER, birthplace VARCHAR) [/INST]
### Response:
SELECT AVG(height__cm_) FROM table_name_52 WHERE birthplace = "bloomfield hills, michigan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Height (cm) has a Birthplace of new canaan, connecticut?
### Context:
CREATE TABLE table_name_52 (height__cm_ VARCHAR, birthplace VARCHAR) [/INST]
### Response:
SELECT COUNT(height__cm_) FROM table_name_52 WHERE birthplace = "new canaan, connecticut" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Class has a Number at Lincoln smaller than 1 and a Wheel Arrangement of 0-6-0?
### Context:
CREATE TABLE table_name_60 (class VARCHAR, number_at_lincoln VARCHAR, wheel_arrangement VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_60 WHERE number_at_lincoln < 1 AND wheel_arrangement = "0-6-0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Class has a Number at Lincoln larger than 0 and a Number at Doncaster of 8?
### Context:
CREATE TABLE table_name_88 (class VARCHAR, number_at_lincoln VARCHAR, number_at_doncaster VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_88 WHERE number_at_lincoln > 0 AND number_at_doncaster = 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 loss for Boris Picano-Nacci?
### Context:
CREATE TABLE table_name_94 (loss VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_94 WHERE name = "boris picano-nacci" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Score has smaller than 1994, and a Partner of elizabeth sayers smylie?
### Context:
CREATE TABLE table_name_54 (score VARCHAR, year VARCHAR, partner VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_54 WHERE year < 1994 AND partner = "elizabeth sayers smylie" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Partner that was a winner, a Year smaller than 1993, and a Score of 6–4, 6–2?
### Context:
CREATE TABLE table_name_94 (partner VARCHAR, score VARCHAR, outcome VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT partner FROM table_name_94 WHERE outcome = "winner" AND year < 1993 AND score = "6–4, 6–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 tournament had a victory of a 1 stroke margin and the final winning score 69-75-71-70?
### Context:
CREATE TABLE table_name_1 (tournament VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_1 WHERE margin_of_victory = "1 stroke" AND winning_score = "69-75-71-70" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Loera has a Source of surveyusa, and a Date of may 16–may 18, 2008?
### Context:
CREATE TABLE table_name_47 (loera VARCHAR, source VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT loera FROM table_name_47 WHERE source = "surveyusa" AND date = "may 16–may 18, 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:
Which Goberman has a Date of april 28–april 30, 2008?
### Context:
CREATE TABLE table_name_63 (goberman VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT goberman FROM table_name_63 WHERE date = "april 28–april 30, 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:
Which Neville has a Novick of 23%?
### Context:
CREATE TABLE table_name_62 (neville VARCHAR, novick VARCHAR) [/INST]
### Response:
SELECT neville FROM table_name_62 WHERE novick = "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:
Which Goberman has an Obrist of 2%, and a Merkley of 34%?
### Context:
CREATE TABLE table_name_9 (goberman VARCHAR, obrist VARCHAR, merkley VARCHAR) [/INST]
### Response:
SELECT goberman FROM table_name_9 WHERE obrist = "2%" AND merkley = "34%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Novick has a Source of surveyusa, and a Neville of 8%?
### Context:
CREATE TABLE table_name_59 (novick VARCHAR, source VARCHAR, neville VARCHAR) [/INST]
### Response:
SELECT novick FROM table_name_59 WHERE source = "surveyusa" AND neville = "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:
Which Date has a Novick of 26%?
### Context:
CREATE TABLE table_name_48 (date VARCHAR, novick VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_48 WHERE novick = "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 Coach with a Big Ten that is 2nd (79)?
### Context:
CREATE TABLE table_name_72 (coach VARCHAR, big_ten VARCHAR) [/INST]
### Response:
SELECT coach FROM table_name_72 WHERE big_ten = "2nd (79)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Season with a Big Ten that is 2nd (386)?
### Context:
CREATE TABLE table_name_6 (season VARCHAR, big_ten VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_6 WHERE big_ten = "2nd (386)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Coach with a Big Ten that is 3rd (278)?
### Context:
CREATE TABLE table_name_92 (coach VARCHAR, big_ten VARCHAR) [/INST]
### Response:
SELECT coach FROM table_name_92 WHERE big_ten = "3rd (278)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Coach with a Big Ten that is 1st (148)?
### Context:
CREATE TABLE table_name_39 (coach VARCHAR, big_ten VARCHAR) [/INST]
### Response:
SELECT coach FROM table_name_39 WHERE big_ten = "1st (148)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 First Season games with 1537 Wins and a Season greater than 109?
### Context:
CREATE TABLE table_name_71 (first_season INTEGER, wins VARCHAR, seasons VARCHAR) [/INST]
### Response:
SELECT SUM(first_season) FROM table_name_71 WHERE wins = 1537 AND seasons > 109 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wins were there for Washington State College with losses greater than 980 and a first season before 1906 and rank greater than 42?
### Context:
CREATE TABLE table_name_29 (wins VARCHAR, rank VARCHAR, college VARCHAR, losses VARCHAR, first_season VARCHAR) [/INST]
### Response:
SELECT COUNT(wins) FROM table_name_29 WHERE losses > 980 AND first_season < 1906 AND college = "washington state" AND rank > 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 total number of rank with losses less than 992, North Carolina State College and a season greater than 101?
### Context:
CREATE TABLE table_name_87 (rank VARCHAR, seasons VARCHAR, losses VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT COUNT(rank) FROM table_name_87 WHERE losses < 992 AND college = "north carolina state" AND seasons > 101 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 bronzes associated with 1 silver, ranks under 6 and under 6 golds?
### Context:
CREATE TABLE table_name_77 (bronze INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT SUM(bronze) FROM table_name_77 WHERE silver = 1 AND rank < 6 AND gold < 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number of bronzes for teams ranked number 7 with more than 0 silver?
### Context:
CREATE TABLE table_name_77 (bronze INTEGER, silver VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MAX(bronze) FROM table_name_77 WHERE silver > 0 AND rank = 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average total for teams with more than 1 gold, ranked over 3 and more than 3 bronze?
### Context:
CREATE TABLE table_name_39 (total INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT AVG(total) FROM table_name_39 WHERE gold > 1 AND rank > 3 AND bronze > 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 sum of bronzes for teams with more than 2 gold, ranked under 3, and less than 22 silver?
### Context:
CREATE TABLE table_name_82 (bronze INTEGER, silver VARCHAR, gold VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT SUM(bronze) FROM table_name_82 WHERE gold > 2 AND rank < 3 AND silver < 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 sum of silvers for teams with ranks over 3 and totals under 2?
### Context:
CREATE TABLE table_name_98 (silver INTEGER, rank VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT SUM(silver) FROM table_name_98 WHERE rank > 3 AND total < 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 number of Games for the Maccabi Tel Aviv Team with less than 208 Rebounds?
### Context:
CREATE TABLE table_name_47 (games INTEGER, team VARCHAR, rebounds VARCHAR) [/INST]
### Response:
SELECT AVG(games) FROM table_name_47 WHERE team = "maccabi tel aviv" AND rebounds < 208 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rebounds did Novica Veličković get in less than 22 Games?
### Context:
CREATE TABLE table_name_6 (rebounds INTEGER, name VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT SUM(rebounds) FROM table_name_6 WHERE name = "novica veličković" AND games < 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:
How many Games for Terence Morris?
### Context:
CREATE TABLE table_name_57 (games VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT games FROM table_name_57 WHERE name = "terence morris" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Games for Partizan Belgrade player Nikola Peković with a Rank of more than 4?
### Context:
CREATE TABLE table_name_25 (games INTEGER, rank VARCHAR, team VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT MIN(games) FROM table_name_25 WHERE team = "partizan belgrade" AND name = "nikola peković" AND rank > 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which year's rank was #4 when the country was the US?
### Context:
CREATE TABLE table_name_55 (year VARCHAR, rank VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_55 WHERE rank = "#4" AND country = "us" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 publication happened in the UK?
### Context:
CREATE TABLE table_name_75 (publication VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT publication FROM table_name_75 WHERE country = "uk" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank's country is the US when the accolade is 40 best albums of the year?
### Context:
CREATE TABLE table_name_96 (rank VARCHAR, country VARCHAR, accolade VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_96 WHERE country = "us" AND accolade = "40 best albums of the year" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the nationality of the HMS Cheshire?
### Context:
CREATE TABLE table_name_32 (nationality VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_32 WHERE name = "hms cheshire" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the final score with Guillermo Vilas as the opponent in the final, that happened after 1972?
### Context:
CREATE TABLE table_name_81 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score_in_the_final FROM table_name_81 WHERE opponent_in_the_final = "guillermo vilas" AND date > 1972 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which points has the driver Paul Tracy?
### Context:
CREATE TABLE table_name_56 (points VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT points FROM table_name_56 WHERE driver = "paul tracy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What grid has 78 laps, and Ronnie Bremer as driver?
### Context:
CREATE TABLE table_name_54 (grid VARCHAR, laps VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT grid FROM table_name_54 WHERE laps = 78 AND driver = "ronnie bremer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 scored with a grid of 10 and the highest amount of laps?
### Context:
CREATE TABLE table_name_21 (laps INTEGER, grid VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_21 WHERE grid = 10 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was Fourth in the 2008 Telstra Men's Pro Event?
### Context:
CREATE TABLE table_name_93 (fourth VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT fourth FROM table_name_93 WHERE event = "2008 telstra men's pro" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winner when Selby Riddle came in Fourth?
### Context:
CREATE TABLE table_name_26 (winner VARCHAR, fourth VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_26 WHERE fourth = "selby riddle" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in Second Place with Isabelle Brayley came in Fourth?
### Context:
CREATE TABLE table_name_31 (second VARCHAR, fourth VARCHAR) [/INST]
### Response:
SELECT second FROM table_name_31 WHERE fourth = "isabelle brayley" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Total Freshwater Withdrawal (km 3 /yr), when Industrial Use (m 3 /p/yr)(in %) is 337(63%), and when Per Capita Withdrawal (m 3 /p/yr) is greater than 535?
### Context:
CREATE TABLE table_name_5 (total_freshwater_withdrawal__km_3__yr_ INTEGER, industrial_use__m_3__p_yr__in__percentage_ VARCHAR, per_capita_withdrawal__m_3__p_yr_ VARCHAR) [/INST]
### Response:
SELECT AVG(total_freshwater_withdrawal__km_3__yr_) FROM table_name_5 WHERE industrial_use__m_3__p_yr__in__percentage_ = "337(63%)" AND per_capita_withdrawal__m_3__p_yr_ > 535 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Per Capita Withdrawal (m 3 /p/yr), when Agricultural Use (m 3 /p/yr)(in %) is 1363(92%), and when Total Freshwater Withdrawal (km 3 /yr) is less than 42.7?
### Context:
CREATE TABLE table_name_22 (per_capita_withdrawal__m_3__p_yr_ INTEGER, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR, total_freshwater_withdrawal__km_3__yr_ VARCHAR) [/INST]
### Response:
SELECT MAX(per_capita_withdrawal__m_3__p_yr_) FROM table_name_22 WHERE agricultural_use__m_3__p_yr__in__percentage_ = "1363(92%)" AND total_freshwater_withdrawal__km_3__yr_ < 42.7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Agricultural Use (m 3 /p/yr)(in %), when Per Capita Withdrawal (m 3 /p/yr) is greater than 923, and when Domestic Use (m 3 /p/yr)(in %) is 73(7%)?
### Context:
CREATE TABLE table_name_7 (agricultural_use__m_3__p_yr__in__percentage_ VARCHAR, per_capita_withdrawal__m_3__p_yr_ VARCHAR, domestic_use__m_3__p_yr__in__percentage_ VARCHAR) [/INST]
### Response:
SELECT agricultural_use__m_3__p_yr__in__percentage_ FROM table_name_7 WHERE per_capita_withdrawal__m_3__p_yr_ > 923 AND domestic_use__m_3__p_yr__in__percentage_ = "73(7%)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Industrial Use (m 3 /p/yr)(in %), when Total Freshwater Withdrawal (km 3/yr) is less than 82.75, and when Agricultural Use (m 3 /p/yr)(in %) is 1363(92%)?
### Context:
CREATE TABLE table_name_32 (industrial_use__m_3__p_yr__in__percentage_ VARCHAR, total_freshwater_withdrawal__km_3__yr_ VARCHAR, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR) [/INST]
### Response:
SELECT industrial_use__m_3__p_yr__in__percentage_ FROM table_name_32 WHERE total_freshwater_withdrawal__km_3__yr_ < 82.75 AND agricultural_use__m_3__p_yr__in__percentage_ = "1363(92%)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 leading score in the game at the Warriors?
### Context:
CREATE TABLE table_name_54 (leading_scorer VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT leading_scorer FROM table_name_54 WHERE home = "warriors" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many average cuts made when 11 is the Top-10?
### Context:
CREATE TABLE table_name_38 (cuts_made INTEGER, top_10 VARCHAR) [/INST]
### Response:
SELECT AVG(cuts_made) FROM table_name_38 WHERE top_10 = 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:
When the wins are less than 0 and the Top-5 1 what is the average cuts?
### Context:
CREATE TABLE table_name_31 (cuts_made INTEGER, top_5 VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT AVG(cuts_made) FROM table_name_31 WHERE top_5 = 1 AND wins < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Top-10 with a greater than 11 Top-25 and a less than 2 wins?
### Context:
CREATE TABLE table_name_15 (top_10 INTEGER, top_25 VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT AVG(top_10) FROM table_name_15 WHERE top_25 > 11 AND wins < 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 of wins when the cuts made is 76 and the events greater than 115?
### Context:
CREATE TABLE table_name_3 (wins INTEGER, cuts_made VARCHAR, events VARCHAR) [/INST]
### Response:
SELECT SUM(wins) FROM table_name_3 WHERE cuts_made = 76 AND events > 115 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the largest cuts made when the events are less than 21?
### Context:
CREATE TABLE table_name_11 (cuts_made INTEGER, events INTEGER) [/INST]
### Response:
SELECT MAX(cuts_made) FROM table_name_11 WHERE events < 21 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest Top-25 that has 3 Events and Wins greater than 0?
### Context:
CREATE TABLE table_name_94 (top_25 INTEGER, events VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT MIN(top_25) FROM table_name_94 WHERE events = 3 AND wins > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Wins of the Top-25 of 1 and 7 Events?
### Context:
CREATE TABLE table_name_66 (wins VARCHAR, top_25 VARCHAR, events VARCHAR) [/INST]
### Response:
SELECT wins FROM table_name_66 WHERE top_25 = 1 AND events = 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest Top-25 with Wins less than 0?
### Context:
CREATE TABLE table_name_2 (top_25 INTEGER, wins INTEGER) [/INST]
### Response:
SELECT MIN(top_25) FROM table_name_2 WHERE wins < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of cuts made of tournaments with 2 Events?
### Context:
CREATE TABLE table_name_81 (cuts_made VARCHAR, events VARCHAR) [/INST]
### Response:
SELECT COUNT(cuts_made) FROM table_name_81 WHERE events = 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 Bleeding has a Condition of congenital afibrinogenemia?
### Context:
CREATE TABLE table_name_75 (bleeding_time VARCHAR, condition VARCHAR) [/INST]
### Response:
SELECT bleeding_time FROM table_name_75 WHERE condition = "congenital afibrinogenemia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Partial thromboplastin time has a Condition of liver failure , early?
### Context:
CREATE TABLE table_name_61 (partial_thromboplastin_time VARCHAR, condition VARCHAR) [/INST]
### Response:
SELECT partial_thromboplastin_time FROM table_name_61 WHERE condition = "liver failure , early" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Condition has an unaffected Partial thromboplastin time, Platelet count, and a Prothrombin time?
### Context:
CREATE TABLE table_name_46 (condition VARCHAR, prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, platelet_count VARCHAR) [/INST]
### Response:
SELECT condition FROM table_name_46 WHERE partial_thromboplastin_time = "unaffected" AND platelet_count = "unaffected" AND prothrombin_time = "unaffected" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Condition has an unaffected Prothrombin time and a Bleeding time, and a Partial thromboplastin time of prolonged?
### Context:
CREATE TABLE table_name_73 (condition VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR) [/INST]
### Response:
SELECT condition FROM table_name_73 WHERE prothrombin_time = "unaffected" AND bleeding_time = "unaffected" AND partial_thromboplastin_time = "prolonged" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What margin was in after 1981, and was Roberto De Vicenzo runner-up?
### Context:
CREATE TABLE table_name_88 (margin VARCHAR, year VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT margin FROM table_name_88 WHERE year > 1981 AND runner_s__up = "roberto de vicenzo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What championship was in 1985?
### Context:
CREATE TABLE table_name_30 (championship VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT championship FROM table_name_30 WHERE year = 1985 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the number of bronze medals when the total medals were 78 and there were less than 12 golds?
### Context:
CREATE TABLE table_name_39 (bronze INTEGER, total VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT SUM(bronze) FROM table_name_39 WHERE total = 78 AND gold < 12 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average number of gold medals when the total was 1335 medals, with more than 469 bronzes and more than 14 silvers?
### Context:
CREATE TABLE table_name_89 (gold INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT AVG(gold) FROM table_name_89 WHERE silver > 14 AND total = 1335 AND bronze > 469 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 amount of gold medals when there were more than 20 silvers and there were 135 bronze medals?
### Context:
CREATE TABLE table_name_22 (gold VARCHAR, silver VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT COUNT(gold) FROM table_name_22 WHERE silver > 20 AND bronze = 135 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of bronze medals for total of all nations?
### Context:
CREATE TABLE table_name_85 (bronze INTEGER, nation VARCHAR) [/INST]
### Response:
SELECT AVG(bronze) FROM table_name_85 WHERE nation = "total" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gold medals for a rank of 14?
### Context:
CREATE TABLE table_name_95 (gold INTEGER, rank VARCHAR) [/INST]
### Response:
SELECT SUM(gold) FROM table_name_95 WHERE rank = "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 rank has 1 silver medal and more than 1 gold medal?
### Context:
CREATE TABLE table_name_38 (rank VARCHAR, silver VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_38 WHERE silver = 1 AND gold > 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Clubs when there are 4 for the number of fixtures?
### Context:
CREATE TABLE table_name_3 (clubs VARCHAR, number_of_fixtures VARCHAR) [/INST]
### Response:
SELECT clubs FROM table_name_3 WHERE number_of_fixtures = 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 is the sum of Number of fixtures when the rounds shows quarter-finals?
### Context:
CREATE TABLE table_name_65 (number_of_fixtures INTEGER, round VARCHAR) [/INST]
### Response:
SELECT SUM(number_of_fixtures) FROM table_name_65 WHERE round = "quarter-finals" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 New entries this round when the round is the semi-finals?
### Context:
CREATE TABLE table_name_18 (new_entries_this_round VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT new_entries_this_round FROM table_name_18 WHERE round = "semi-finals" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Round when the number of fixtures is more than 2, and the Main date of 7 and 28 november 2007?
### Context:
CREATE TABLE table_name_31 (round VARCHAR, number_of_fixtures VARCHAR, main_date VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_31 WHERE number_of_fixtures > 2 AND main_date = "7 and 28 november 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the event average for a top-25 smaller than 0?
### Context:
CREATE TABLE table_name_84 (events INTEGER, top_25 INTEGER) [/INST]
### Response:
SELECT AVG(events) FROM table_name_84 WHERE top_25 < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the highest wins with cuts smaller than 6, events of 4 and a top-5 smaller than 0?
### Context:
CREATE TABLE table_name_74 (wins INTEGER, top_5 VARCHAR, cuts_made VARCHAR, events VARCHAR) [/INST]
### Response:
SELECT MAX(wins) FROM table_name_74 WHERE cuts_made < 6 AND events = 4 AND top_5 < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the lowest top-5 with a top-25 larger than 4, 29 cuts and a top-10 larger than 18?
### Context:
CREATE TABLE table_name_62 (top_5 INTEGER, top_10 VARCHAR, top_25 VARCHAR, cuts_made VARCHAR) [/INST]
### Response:
SELECT MIN(top_5) FROM table_name_62 WHERE top_25 > 4 AND cuts_made = 29 AND top_10 > 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 lowest for top-25 with events smaller than 42 in a U.S. Open with a top-10 smaller than 5?
### Context:
CREATE TABLE table_name_5 (top_25 INTEGER, top_10 VARCHAR, events VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT MIN(top_25) FROM table_name_5 WHERE events < 42 AND tournament = "u.s. open" AND top_10 < 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which birthplace's height in inches was more than 192 when the position was d and the birthday was April 5, 1983?
### Context:
CREATE TABLE table_name_70 (birthplace VARCHAR, birthdate VARCHAR, height__in_ VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT birthplace FROM table_name_70 WHERE height__in_ > 192 AND position = "d" AND birthdate = "april 5, 1983" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What nationality has steve kerr as the player?
### Context:
CREATE TABLE table_name_95 (nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_95 WHERE player = "steve kerr" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.