text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Round number of Player Adrien Clarke?
### Context:
CREATE TABLE table_name_8 (round INTEGER, player VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_8 WHERE player = "adrien clarke" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round number of a Pick after 209.
### Context:
CREATE TABLE table_name_31 (round INTEGER, pick INTEGER) [/INST]
### Response:
SELECT MAX(round) FROM table_name_31 WHERE pick > 209 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score when the Blue Jays had a record of 39-20?
### Context:
CREATE TABLE table_name_56 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_56 WHERE record = "39-20" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player has a to par of e and a score of 67-73=140?
### Context:
CREATE TABLE table_name_15 (player VARCHAR, to_par VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_15 WHERE to_par = "e" AND score = 67 - 73 = 140 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country is Adam Scott from?
### Context:
CREATE TABLE table_name_19 (country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_19 WHERE player = "adam scott" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Canada's score?
### Context:
CREATE TABLE table_name_81 (score VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_81 WHERE country = "canada" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country has a score of 70-66=136?
### Context:
CREATE TABLE table_name_31 (country VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_31 WHERE score = 70 - 66 = 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:
Which player is from Sweden?
### Context:
CREATE TABLE table_name_3 (player VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_3 WHERE country = "sweden" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 field goals of Denan Kemp, who has more than 4 tries, more than 32 points, and 0 goals?
### Context:
CREATE TABLE table_name_4 (Field VARCHAR, player VARCHAR, goals VARCHAR, tries VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(Field) AS goals FROM table_name_4 WHERE tries > 4 AND points > 32 AND goals = 0 AND player = "denan kemp" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the number of goals Dave Taylor, who has more than 1 tries, has?
### Context:
CREATE TABLE table_name_65 (goals INTEGER, player VARCHAR, tries VARCHAR) [/INST]
### Response:
SELECT SUM(goals) FROM table_name_65 WHERE player = "dave taylor" AND tries > 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many goals did the player with less than 4 points have?
### Context:
CREATE TABLE table_name_74 (goals VARCHAR, points INTEGER) [/INST]
### Response:
SELECT COUNT(goals) FROM table_name_74 WHERE points < 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:
When doeas Mascot of blue devils in Gary Froebel School?
### Context:
CREATE TABLE table_name_74 (joined VARCHAR, mascot VARCHAR) [/INST]
### Response:
SELECT joined FROM table_name_74 WHERE mascot = "blue devils" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 conference held at School of whiting?
### Context:
CREATE TABLE table_name_49 (previous_conference VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT previous_conference FROM table_name_49 WHERE school = "whiting" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lifespan of Joseph Vance, a democratic-republican from Ohio?
### Context:
CREATE TABLE table_name_96 (lifespan VARCHAR, party VARCHAR, state VARCHAR, representative VARCHAR) [/INST]
### Response:
SELECT lifespan FROM table_name_96 WHERE state = "ohio" AND representative = "joseph vance" AND party = "democratic-republican" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the loss on may 22
### Context:
CREATE TABLE table_name_29 (loss VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_29 WHERE date = "may 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:
Who was the Blue Jays opponent when their record was 84-69?
### Context:
CREATE TABLE table_name_18 (opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_18 WHERE record = "84-69" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date of the game when their record was 84-69?
### Context:
CREATE TABLE table_name_56 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_56 WHERE record = "84-69" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many laps does the one ranked 16 have?
### Context:
CREATE TABLE table_name_1 (laps VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT laps FROM table_name_1 WHERE rank = "16" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the start of the race with 676 laps?
### Context:
CREATE TABLE table_name_29 (start VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT start FROM table_name_29 WHERE laps = "676" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the ranking 1?
### Context:
CREATE TABLE table_name_47 (year VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_47 WHERE rank = "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 finish qualified at 141.071?
### Context:
CREATE TABLE table_name_74 (finish VARCHAR, qual VARCHAR) [/INST]
### Response:
SELECT finish FROM table_name_74 WHERE qual = "141.071" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What ranking that had a start of 19?
### Context:
CREATE TABLE table_name_72 (rank VARCHAR, start VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_72 WHERE start = "19" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many laps was qualifier of 138.212?
### Context:
CREATE TABLE table_name_4 (laps VARCHAR, qual VARCHAR) [/INST]
### Response:
SELECT laps FROM table_name_4 WHERE qual = "138.212" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the place for score of 67-70=137 and stuart appleby
### Context:
CREATE TABLE table_name_55 (place VARCHAR, player VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_55 WHERE score = 67 - 70 = 137 AND player = "stuart appleby" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the player for fiji
### Context:
CREATE TABLE table_name_29 (player VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_29 WHERE country = "fiji" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the score for fiji
### Context:
CREATE TABLE table_name_99 (score VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_99 WHERE country = "fiji" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the score for vijay singh
### Context:
CREATE TABLE table_name_8 (score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_8 WHERE player = "vijay singh" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What division was Ukraine in 2006/07?
### Context:
CREATE TABLE table_name_66 (division VARCHAR, country VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT division FROM table_name_66 WHERE country = "ukraine" AND season = "2006/07" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Airdate of the episode that ranked #29 and had a share greater than 10?
### Context:
CREATE TABLE table_name_88 (airdate VARCHAR, share VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT airdate FROM table_name_88 WHERE share = 10 AND rank = "#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 city is fuhlsbüttel airport in?
### Context:
CREATE TABLE table_name_1 (city VARCHAR, airport VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_1 WHERE airport = "fuhlsbüttel airport" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 IATA for Ringway Airport in the United Kingdom?
### Context:
CREATE TABLE table_name_1 (iata VARCHAR, country VARCHAR, airport VARCHAR) [/INST]
### Response:
SELECT iata FROM table_name_1 WHERE country = "united kingdom" AND airport = "ringway airport" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city has the IATA SSG?
### Context:
CREATE TABLE table_name_40 (city VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_40 WHERE iata = "ssg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 IATA of galeão airport?
### Context:
CREATE TABLE table_name_58 (iata VARCHAR, airport VARCHAR) [/INST]
### Response:
SELECT iata FROM table_name_58 WHERE airport = "galeão airport" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ICAO of Douala city?
### Context:
CREATE TABLE table_name_13 (icao VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT icao FROM table_name_13 WHERE city = "douala" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ICAO of Lohausen airport?
### Context:
CREATE TABLE table_name_2 (icao VARCHAR, airport VARCHAR) [/INST]
### Response:
SELECT icao FROM table_name_2 WHERE airport = "lohausen airport" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score of the game when their record was 62-67
### Context:
CREATE TABLE table_name_46 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_46 WHERE record = "62-67" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Does Trinity (valhalla) have HDMI?
### Context:
CREATE TABLE table_name_29 (hdmi VARCHAR, codename VARCHAR) [/INST]
### Response:
SELECT hdmi FROM table_name_29 WHERE codename = "trinity (valhalla)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Is Jasper being producted?
### Context:
CREATE TABLE table_name_66 (in_production VARCHAR, codename VARCHAR) [/INST]
### Response:
SELECT in_production FROM table_name_66 WHERE codename = "jasper" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the result of Courtney Walsh ?
### Context:
CREATE TABLE table_name_36 (result VARCHAR, home_captain VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_36 WHERE home_captain = "courtney walsh" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When did a Venue of Antigua Recreation Ground happen?
### Context:
CREATE TABLE table_name_40 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_40 WHERE venue = "antigua recreation ground" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Venue which has a Wi by 8 wkts?
### Context:
CREATE TABLE table_name_9 (venue VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_9 WHERE result = "wi by 8 wkts" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Home captain has Date of 25,26,27,29,30 march 1994?
### Context:
CREATE TABLE table_name_6 (home_captain VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home_captain FROM table_name_6 WHERE date = "25,26,27,29,30 march 1994" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Home Captain has Venue of Bourda?
### Context:
CREATE TABLE table_name_42 (home_captain VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_captain FROM table_name_42 WHERE venue = "bourda" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Home Captain has Eng by 208 runs?
### Context:
CREATE TABLE table_name_28 (home_captain VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT home_captain FROM table_name_28 WHERE result = "eng by 208 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's the Highest Goal Ratio with a League of 88 and an FA Cup less than 7?
### Context:
CREATE TABLE table_name_68 (goal_ratio INTEGER, league VARCHAR, fa_cup VARCHAR) [/INST]
### Response:
SELECT MAX(goal_ratio) FROM table_name_68 WHERE league = 88 AND fa_cup < 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the lowest year that the engine Ilmor 2175a 3.5 v10 was used?
### Context:
CREATE TABLE table_name_64 (year INTEGER, engine VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_64 WHERE engine = "ilmor 2175a 3.5 v10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 engine did dr ing f porsche kg use with the porsche rsk (f2) chassis?
### Context:
CREATE TABLE table_name_77 (engine VARCHAR, entrant VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_77 WHERE entrant = "dr ing f porsche kg" AND chassis = "porsche rsk (f2)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What chassis did the porsche flat-4 use before 1958?
### Context:
CREATE TABLE table_name_44 (chassis VARCHAR, engine VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_44 WHERE engine = "porsche flat-4" AND year < 1958 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What engine did the porsche 718 chassis use?
### Context:
CREATE TABLE table_name_52 (engine VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_52 WHERE chassis = "porsche 718" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had more than 0 points?
### Context:
CREATE TABLE table_name_67 (year VARCHAR, points INTEGER) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_67 WHERE points > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position is 1999?
### Context:
CREATE TABLE table_name_83 (position VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_83 WHERE year = 1999 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where were the Mediterranean games after 2005?
### Context:
CREATE TABLE table_name_79 (venue VARCHAR, competition VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_79 WHERE competition = "mediterranean games" AND year > 2005 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 notes for bydgoszcz, Poland?
### Context:
CREATE TABLE table_name_37 (notes VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT notes FROM table_name_37 WHERE venue = "bydgoszcz, poland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the least lane for kasey giteau and rank less than 18
### Context:
CREATE TABLE table_name_31 (lane INTEGER, name VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MIN(lane) FROM table_name_31 WHERE name = "kasey giteau" AND rank < 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:
Name the total number of lane for brooke bennett and rank less than 1
### Context:
CREATE TABLE table_name_15 (lane VARCHAR, name VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT COUNT(lane) FROM table_name_15 WHERE name = "brooke bennett" AND rank < 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the average rank with larger than 3 and heat more than 5
### Context:
CREATE TABLE table_name_24 (rank INTEGER, lane VARCHAR, heat VARCHAR) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_24 WHERE lane > 3 AND heat > 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:
Who was the player associated with Ole Miss in years after 2008 with a Mississippi St. name of Eric Moulds?
### Context:
CREATE TABLE table_name_90 (ole_miss VARCHAR, year VARCHAR, mississippi_st VARCHAR) [/INST]
### Response:
SELECT ole_miss FROM table_name_90 WHERE year > 2008 AND mississippi_st = "eric moulds" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Ole Miss player associated with Chuck Dicus?
### Context:
CREATE TABLE table_name_65 (ole_miss VARCHAR, arkansas VARCHAR) [/INST]
### Response:
SELECT ole_miss FROM table_name_65 WHERE arkansas = "chuck dicus" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Alabama player associated with Walt Harris?
### Context:
CREATE TABLE table_name_76 (alabama VARCHAR, mississippi_st VARCHAR) [/INST]
### Response:
SELECT alabama FROM table_name_76 WHERE mississippi_st = "walt 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:
Who was the Mississippi State player associated with Cornelius Bennett?
### Context:
CREATE TABLE table_name_55 (mississippi_st VARCHAR, alabama VARCHAR) [/INST]
### Response:
SELECT mississippi_st FROM table_name_55 WHERE alabama = "cornelius bennett" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the Arkansas player associated with Ken Stabler?
### Context:
CREATE TABLE table_name_22 (arkansas VARCHAR, alabama VARCHAR) [/INST]
### Response:
SELECT arkansas FROM table_name_22 WHERE alabama = "ken stabler" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 roll of Bishop Viard College (An Integrated College), which has a decile larger than 1?
### Context:
CREATE TABLE table_name_69 (roll VARCHAR, name VARCHAR, decile VARCHAR, authority VARCHAR) [/INST]
### Response:
SELECT COUNT(roll) FROM table_name_69 WHERE decile > 1 AND authority = "integrated" AND name = "bishop viard college" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 decile of Samuel Marsden Collegiate School in Whitby, when it had a roll higher than 163?
### Context:
CREATE TABLE table_name_55 (decile VARCHAR, roll VARCHAR, area VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT COUNT(decile) FROM table_name_55 WHERE area = "whitby" AND name = "samuel marsden collegiate school" AND roll > 163 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What integrated school had a decile of 2 and a roll larger than 55?
### Context:
CREATE TABLE table_name_69 (name VARCHAR, roll VARCHAR, decile VARCHAR, authority VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_69 WHERE decile = 2 AND authority = "integrated" AND roll > 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:
Who was the 4 lane person from Canada?
### Context:
CREATE TABLE table_name_9 (heat INTEGER, lane VARCHAR, nationality VARCHAR) [/INST]
### Response:
SELECT MIN(heat) FROM table_name_9 WHERE lane = 4 AND nationality = "canada" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In 1939, what was the finish?
### Context:
CREATE TABLE table_name_89 (finish VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT finish FROM table_name_89 WHERE year = "1939" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In 1937, what was the finish?
### Context:
CREATE TABLE table_name_37 (finish VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT finish FROM table_name_37 WHERE year = "1937" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The Qual of 120.006 took place in what year?
### Context:
CREATE TABLE table_name_62 (year VARCHAR, qual VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_62 WHERE qual = "120.006" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
With a Rank of 19, and a Start of 14, what was the finish?
### Context:
CREATE TABLE table_name_41 (finish VARCHAR, rank VARCHAR, start VARCHAR) [/INST]
### Response:
SELECT finish FROM table_name_41 WHERE rank = "19" AND start = "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 company made the chassis when Ferrari made the engine and there were 25 points?
### Context:
CREATE TABLE table_name_73 (chassis VARCHAR, engine VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_73 WHERE engine = "ferrari" AND points = 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 most points when Maserati made the engine, and a Entrant of owen racing organisation?
### Context:
CREATE TABLE table_name_70 (points INTEGER, engine VARCHAR, entrant VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_70 WHERE engine = "maserati" AND entrant = "owen racing organisation" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What company made the chassis when there were 8 points?
### Context:
CREATE TABLE table_name_8 (chassis VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_8 WHERE points = 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 entrant earlier than 1956 with a Vanwall Special chassis?
### Context:
CREATE TABLE table_name_19 (entrant VARCHAR, year VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_name_19 WHERE year < 1956 AND chassis = "vanwall special" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wins that is in the Top 10 and larger than 13?
### Context:
CREATE TABLE table_name_73 (wins INTEGER, top_10 INTEGER) [/INST]
### Response:
SELECT SUM(wins) FROM table_name_73 WHERE top_10 > 13 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average number of cuts made in the Top 25 smaller than 5?
### Context:
CREATE TABLE table_name_63 (cuts_made INTEGER, top_25 INTEGER) [/INST]
### Response:
SELECT AVG(cuts_made) FROM table_name_63 WHERE top_25 < 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 lowest top 5 winners with less than 0?
### Context:
CREATE TABLE table_name_30 (top_5 INTEGER, wins INTEGER) [/INST]
### Response:
SELECT MIN(top_5) FROM table_name_30 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:
How many points for the cooper car company after 1959?
### Context:
CREATE TABLE table_name_90 (points INTEGER, entrant VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_90 WHERE entrant = "cooper car company" AND year > 1959 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average 3620 value that has a 5432 of 1277 and a 15122 less than 1540?
### Context:
CREATE TABLE table_name_66 (Id VARCHAR) [/INST]
### Response:
SELECT AVG(3620) FROM table_name_66 WHERE 5432 = 1277 AND 15122 < 1540 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 5432 value with a 11502 larger than 1163, a 15122 less than 15122, and a 3620 less than 624?
### Context:
CREATE TABLE table_name_12 (Id VARCHAR) [/INST]
### Response:
SELECT AVG(5432) FROM table_name_12 WHERE 11502 > 1163 AND 15122 < 15122 AND 3620 < 624 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 3620 value with a 5432 of 5432 and a 15122 greater than 15122?
### Context:
CREATE TABLE table_name_34 (Id VARCHAR) [/INST]
### Response:
SELECT MAX(3620) FROM table_name_34 WHERE 5432 = 5432 AND 15122 > 15122 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 representative was the Ambassador Extraordinary and Plenipotentiary and had a Termination of Mission date September 20, 1996?
### Context:
CREATE TABLE table_name_83 (representative VARCHAR, title VARCHAR, termination_of_mission VARCHAR) [/INST]
### Response:
SELECT representative FROM table_name_83 WHERE title = "ambassador extraordinary and plenipotentiary" AND termination_of_mission = "september 20, 1996" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 representative has a Termination of MIssion date Mar 25, 1976?
### Context:
CREATE TABLE table_name_59 (representative VARCHAR, termination_of_mission VARCHAR) [/INST]
### Response:
SELECT representative FROM table_name_59 WHERE termination_of_mission = "mar 25, 1976" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Termination of Mission date for the ambassador who was appointed by Barack Obama?
### Context:
CREATE TABLE table_name_40 (termination_of_mission VARCHAR, appointed_by VARCHAR) [/INST]
### Response:
SELECT termination_of_mission FROM table_name_40 WHERE appointed_by = "barack obama" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Termination of Mission date for Marsha E. Barnes, the Ambassador Extraordinary and Plenipotentiary?
### Context:
CREATE TABLE table_name_34 (termination_of_mission VARCHAR, title VARCHAR, representative VARCHAR) [/INST]
### Response:
SELECT termination_of_mission FROM table_name_34 WHERE title = "ambassador extraordinary and plenipotentiary" AND representative = "marsha e. barnes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 appointed the representative that had a Presentation of Credentials on March 25, 1976?
### Context:
CREATE TABLE table_name_72 (appointed_by VARCHAR, presentation_of_credentials VARCHAR) [/INST]
### Response:
SELECT appointed_by FROM table_name_72 WHERE presentation_of_credentials = "march 25, 1976" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 character first appeared in Amazing Fantasy #15?
### Context:
CREATE TABLE table_name_89 (character_s_ VARCHAR, first_appearance VARCHAR) [/INST]
### Response:
SELECT character_s_ FROM table_name_89 WHERE first_appearance = "amazing fantasy #15" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Action Comics #1's estimated value?
### Context:
CREATE TABLE table_name_79 (estimated_value VARCHAR, first_appearance VARCHAR) [/INST]
### Response:
SELECT estimated_value FROM table_name_79 WHERE first_appearance = "action comics #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:
Who publishes Wolverine?
### Context:
CREATE TABLE table_name_67 (publisher VARCHAR, character_s_ VARCHAR) [/INST]
### Response:
SELECT publisher FROM table_name_67 WHERE character_s_ = "wolverine" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What player's original team are the Oakland Raiders?
### Context:
CREATE TABLE table_name_96 (player VARCHAR, original_nfl_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_96 WHERE original_nfl_team = "oakland raiders" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What player's original team are the Buffalo Bills?
### Context:
CREATE TABLE table_name_31 (player VARCHAR, original_nfl_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_31 WHERE original_nfl_team = "buffalo bills" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 to par has a prize less than $800?
### Context:
CREATE TABLE table_name_10 (to_par VARCHAR, money___$__ VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_10 WHERE money___$__ = 800 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country has a prize smaller than $250 and the player Henry Picard?
### Context:
CREATE TABLE table_name_27 (country VARCHAR, money___$__ VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_27 WHERE money___$__ < 250 AND player = "henry picard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which score has a prize of $400?
### Context:
CREATE TABLE table_name_77 (score VARCHAR, money___$__ VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_77 WHERE money___$__ = 400 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 May 29 which team had the loss?
### Context:
CREATE TABLE table_name_85 (loss VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_85 WHERE date = "may 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 was the score of the game played on May 9?
### Context:
CREATE TABLE table_name_43 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_43 WHERE date = "may 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:
On what date was their record 26-19?
### Context:
CREATE TABLE table_name_70 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_70 WHERE record = "26-19" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team did they lose to when they had a 28-22 record?
### Context:
CREATE TABLE table_name_71 (loss VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_71 WHERE record = "28-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 year of the tournament played at Melbourne, Australia?
### Context:
CREATE TABLE table_name_89 (year INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_89 WHERE venue = "melbourne, australia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 earliest year that had a 50km event with a 2nd place result played in London, United Kingdom?
### Context:
CREATE TABLE table_name_8 (year INTEGER, venue VARCHAR, event VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_8 WHERE event = "50km" AND result = "2nd" AND venue = "london, united kingdom" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the result of the World Race Walking Cup tournament played before the year 2010?
### Context:
CREATE TABLE table_name_20 (result VARCHAR, year VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_20 WHERE year > 2010 AND tournament = "world race walking cup" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.