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 score of the copa libertadores group 3 competition round on 2 February 1994?
### Context:
CREATE TABLE table_name_11 (score VARCHAR, competition_round VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_11 WHERE competition_round = "copa libertadores group 3" AND date = "2 february 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:
What is the score of the copa libertadores group 4 competition round on 14 March 1972 with universitario as the away team?
### Context:
CREATE TABLE table_name_78 (score VARCHAR, date VARCHAR, competition_round VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_78 WHERE competition_round = "copa libertadores group 4" AND away_team = "universitario" AND date = "14 march 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:
What is the venue of season 1983, which had alianza lima as the home team?
### Context:
CREATE TABLE table_name_7 (venue VARCHAR, home_team VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_7 WHERE home_team = "alianza lima" AND season = 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 is the score of the match on 3 March 1988 at the estadio nacional?
### Context:
CREATE TABLE table_name_73 (score VARCHAR, venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_73 WHERE venue = "estadio nacional" AND date = "3 march 1988" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What were the Points on December 13?
### Context:
CREATE TABLE table_name_63 (points INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_63 WHERE date = "december 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 year established of North Jersey Phoenix?
### Context:
CREATE TABLE table_name_74 (established VARCHAR, institution VARCHAR) [/INST]
### Response:
SELECT established FROM table_name_74 WHERE institution = "north jersey phoenix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nickname of the school established in 2009?
### Context:
CREATE TABLE table_name_8 (nickname VARCHAR, established VARCHAR) [/INST]
### Response:
SELECT nickname FROM table_name_8 WHERE established = 2009 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the location of the school established in 2013?
### Context:
CREATE TABLE table_name_27 (location VARCHAR, established VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_27 WHERE established = 2013 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nickname of Columbia University?
### Context:
CREATE TABLE table_name_62 (nickname VARCHAR, institution VARCHAR) [/INST]
### Response:
SELECT nickname FROM table_name_62 WHERE institution = "columbia university" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 match against Valentijn Overeem had what method?
### Context:
CREATE TABLE table_name_11 (method VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_11 WHERE opponent = "valentijn overeem" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was the match held when the result was win, and tko as the method?
### Context:
CREATE TABLE table_name_32 (location VARCHAR, res VARCHAR, method VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_32 WHERE res = "win" AND method = "tko" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What round did the match go to when the event was Bars - Moscow vs St. Petersburg?
### Context:
CREATE TABLE table_name_92 (round VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_92 WHERE event = "bars - moscow vs st. petersburg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 method of tko (kick) what is the record of the match?
### Context:
CREATE TABLE table_name_73 (record VARCHAR, method VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_73 WHERE method = "tko (kick)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What round did the match go to when tko (cut) was the method?
### Context:
CREATE TABLE table_name_24 (round VARCHAR, method VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_24 WHERE method = "tko (cut)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the place when the score is 68-72-77-74=291?
### Context:
CREATE TABLE table_name_81 (place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_81 WHERE score = 68 - 72 - 77 - 74 = 291 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 times is the country united states and the score 72-71-73-73=289?
### Context:
CREATE TABLE table_name_93 (to_par VARCHAR, country VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT COUNT(to_par) FROM table_name_93 WHERE country = "united states" AND score = 72 - 71 - 73 - 73 = 289 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player when the to par is more than 11 and the score is 71-71-71-79=292?
### Context:
CREATE TABLE table_name_32 (player VARCHAR, to_par VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_32 WHERE to_par > 11 AND score = 71 - 71 - 71 - 79 = 292 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country when the player is bill nary?
### Context:
CREATE TABLE table_name_7 (country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_7 WHERE player = "bill nary" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the country is united states and the player is george fazio?
### Context:
CREATE TABLE table_name_4 (score VARCHAR, country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_4 WHERE country = "united states" AND player = "george fazio" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 DEATH WHEN BIRTH DATE IS 2 AUGUST 1424?
### Context:
CREATE TABLE table_name_96 (death VARCHAR, birth VARCHAR) [/INST]
### Response:
SELECT death FROM table_name_96 WHERE birth = "2 august 1424" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Ceased to be Duke of Girona THAT HAS PETER IV?
### Context:
CREATE TABLE table_name_91 (ceased_to_be_duke_of_girona VARCHAR, heir_of VARCHAR) [/INST]
### Response:
SELECT ceased_to_be_duke_of_girona FROM table_name_91 WHERE heir_of = "peter iv" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 BIRTH DATE THAT HAS Ceased to be Duke of Girona OF 21 NOVEMBER 1582?
### Context:
CREATE TABLE table_name_22 (birth VARCHAR, ceased_to_be_duke_of_girona VARCHAR) [/INST]
### Response:
SELECT birth FROM table_name_22 WHERE ceased_to_be_duke_of_girona = "21 november 1582" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 BIRTH DATE WITH A DEATH OF OCTOBER 1389?
### Context:
CREATE TABLE table_name_2 (birth VARCHAR, death VARCHAR) [/INST]
### Response:
SELECT birth FROM table_name_2 WHERE death = "october 1389" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Laps, when Ride is Aleix Espargaro?
### Context:
CREATE TABLE table_name_54 (laps VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT COUNT(laps) FROM table_name_54 WHERE rider = "aleix espargaro" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 County of Howard Street Tunnel?
### Context:
CREATE TABLE table_name_72 (county VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT county FROM table_name_72 WHERE name = "howard street tunnel" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Location of the Bridge Built in 1869?
### Context:
CREATE TABLE table_name_58 (location VARCHAR, built VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_58 WHERE built = "1869" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Listed of the B & O Bridge in Washington?
### Context:
CREATE TABLE table_name_77 (listed VARCHAR, county VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT listed FROM table_name_77 WHERE county = "washington" AND name = "b & o bridge" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Listed of the Bridge Built CA.1876?
### Context:
CREATE TABLE table_name_46 (listed VARCHAR, built VARCHAR) [/INST]
### Response:
SELECT listed FROM table_name_46 WHERE built = "ca.1876" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Listed of the Bridge Built in 1864?
### Context:
CREATE TABLE table_name_79 (listed VARCHAR, built VARCHAR) [/INST]
### Response:
SELECT listed FROM table_name_79 WHERE built = "1864" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Draw(s), when Televotes is greater than 1761, when Song is "Ils Sont LΓ ", and when Place is less than 2?
### Context:
CREATE TABLE table_name_9 (draw VARCHAR, place VARCHAR, televotes VARCHAR, song VARCHAR) [/INST]
### Response:
SELECT COUNT(draw) FROM table_name_9 WHERE televotes > 1761 AND song = "ils sont lΓ " AND place < 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 lowest Place, when Televotes is 15424?
### Context:
CREATE TABLE table_name_50 (place INTEGER, televotes VARCHAR) [/INST]
### Response:
SELECT MIN(place) FROM table_name_50 WHERE televotes = 15424 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Place, when Song is "Dis Oui"?
### Context:
CREATE TABLE table_name_14 (place INTEGER, song VARCHAR) [/INST]
### Response:
SELECT AVG(place) FROM table_name_14 WHERE song = "dis oui" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What club received a DF player for free?
### Context:
CREATE TABLE table_name_52 (to_club VARCHAR, transfer_fee VARCHAR, pos VARCHAR) [/INST]
### Response:
SELECT to_club FROM table_name_52 WHERE transfer_fee = "free" AND pos = "df" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 transferred to Reggina?
### Context:
CREATE TABLE table_name_99 (player VARCHAR, to_club VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_99 WHERE to_club = "reggina" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 exit date of the player transferred to Reggina for free?
### Context:
CREATE TABLE table_name_19 (exit_date VARCHAR, transfer_fee VARCHAR, to_club VARCHAR) [/INST]
### Response:
SELECT exit_date FROM table_name_19 WHERE transfer_fee = "free" AND to_club = "reggina" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position of pilot mario kiessling from Germany?
### Context:
CREATE TABLE table_name_23 (position INTEGER, country VARCHAR, pilot VARCHAR) [/INST]
### Response:
SELECT MIN(position) FROM table_name_23 WHERE country = "germany" AND pilot = "mario kiessling" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position of pilot petr krejcirik, who has less than 11 points?
### Context:
CREATE TABLE table_name_31 (position INTEGER, points VARCHAR, pilot VARCHAR) [/INST]
### Response:
SELECT AVG(position) FROM table_name_31 WHERE points < 11 AND pilot = "petr krejcirik" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 career SR with a 1r in 1985?
### Context:
CREATE TABLE table_name_43 (career_sr VARCHAR) [/INST]
### Response:
SELECT career_sr FROM table_name_43 WHERE 1985 = "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 tournament has a 3r in 1983?
### Context:
CREATE TABLE table_name_81 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_81 WHERE 1983 = "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 is the 1980 value with a 1r in 1984 and a 1r in 1981?
### Context:
CREATE TABLE table_name_48 (Id VARCHAR) [/INST]
### Response:
SELECT 1980 FROM table_name_48 WHERE 1984 = "1r" AND 1981 = "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 finish of Australia?
### Context:
CREATE TABLE table_name_52 (finish VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT finish FROM table_name_52 WHERE country = "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 the total with a +4 to par?
### Context:
CREATE TABLE table_name_63 (total VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT total FROM table_name_63 WHERE to_par = "+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 country has a +3 to par?
### Context:
CREATE TABLE table_name_57 (country VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_57 WHERE to_par = "+3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the first year that the artist of every little thing ranked lower than 10?
### Context:
CREATE TABLE table_name_56 (year INTEGER, artist VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_56 WHERE artist = "every little thing" AND rank < 10 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Championship was louise suggs the runner-up by 3 strokes?
### Context:
CREATE TABLE table_name_8 (championship VARCHAR, runner_s__up VARCHAR, margin VARCHAR) [/INST]
### Response:
SELECT championship FROM table_name_8 WHERE runner_s__up = "louise suggs" AND margin = "3 strokes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was the most recent year that kathy whitworth was the runner-up?
### Context:
CREATE TABLE table_name_49 (year INTEGER, runner_s__up VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_49 WHERE runner_s__up = "kathy whitworth" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winning score in the u.s. women's open that was won by 5 strokes?
### Context:
CREATE TABLE table_name_75 (winning_score VARCHAR, championship VARCHAR, margin VARCHAR) [/INST]
### Response:
SELECT winning_score FROM table_name_75 WHERE championship = "u.s. women's open" AND margin = "5 strokes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Record, when High Rebounds is "Marcus Camby (15)", and when High Assists is "Baron Davis (7)"?
### Context:
CREATE TABLE table_name_86 (record VARCHAR, high_rebounds VARCHAR, high_assists VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_86 WHERE high_rebounds = "marcus camby (15)" AND high_assists = "baron davis (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 Game, when Team is "Philadelphia"
### Context:
CREATE TABLE table_name_48 (game VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT game FROM table_name_48 WHERE team = "philadelphia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 High Assists, when Team is "@ Milwaukee"?
### Context:
CREATE TABLE table_name_83 (high_assists VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT high_assists FROM table_name_83 WHERE team = "@ milwaukee" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the tie number for the round against visiting opponent Chelsea?
### Context:
CREATE TABLE table_name_89 (tie_no INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT SUM(tie_no) FROM table_name_89 WHERE away_team = "chelsea" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the tie number for the round against visiting opponent Newcastle United?
### Context:
CREATE TABLE table_name_53 (tie_no VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_53 WHERE away_team = "newcastle united" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date was Millwall the home team?
### Context:
CREATE TABLE table_name_29 (date VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_29 WHERE home_team = "millwall" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date was Leeds United the away team?
### Context:
CREATE TABLE table_name_36 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_36 WHERE away_team = "leeds united" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Bolton Wanderers were the away team?
### Context:
CREATE TABLE table_name_38 (score VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_38 WHERE away_team = "bolton wanderers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 events when the tournament was U.S. Open and the Top-25 was less than 1?
### Context:
CREATE TABLE table_name_47 (events INTEGER, tournament VARCHAR, top_25 VARCHAR) [/INST]
### Response:
SELECT SUM(events) FROM table_name_47 WHERE tournament = "u.s. open" AND top_25 < 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 total wins have 3 as the Top-35 and less than 5 cuts made?
### Context:
CREATE TABLE table_name_40 (wins INTEGER, top_25 VARCHAR, cuts_made VARCHAR) [/INST]
### Response:
SELECT SUM(wins) FROM table_name_40 WHERE top_25 = 3 AND cuts_made < 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 minimum Top-10 when the Open Championship was the tournament and the wins greater than 0?
### Context:
CREATE TABLE table_name_32 (top_10 INTEGER, tournament VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT MIN(top_10) FROM table_name_32 WHERE tournament = "the open championship" 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:
With wins greater than 0 what is the minimum Top-10?
### Context:
CREATE TABLE table_name_43 (top_10 INTEGER, wins INTEGER) [/INST]
### Response:
SELECT MIN(top_10) FROM table_name_43 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 Top-25 when the events were less than 0?
### Context:
CREATE TABLE table_name_23 (top_25 INTEGER, events INTEGER) [/INST]
### Response:
SELECT SUM(top_25) FROM table_name_23 WHERE events < 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:
Who is the player from the United States with a score of 71-75=146?
### Context:
CREATE TABLE table_name_24 (player VARCHAR, country VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_24 WHERE country = "united states" AND score = 71 - 75 = 146 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player with a 77-68=145 score?
### Context:
CREATE TABLE table_name_56 (player VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_56 WHERE score = 77 - 68 = 145 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country with a 76-68=144 score?
### Context:
CREATE TABLE table_name_21 (country VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_21 WHERE score = 76 - 68 = 144 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player in t8 place with a 75-71=146 score?
### Context:
CREATE TABLE table_name_68 (player VARCHAR, place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_68 WHERE place = "t8" AND score = 75 - 71 = 146 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 to par of the player from the United States with a place of t1 and a 76-68=144 score?
### Context:
CREATE TABLE table_name_50 (to_par VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_50 WHERE country = "united states" AND place = "t1" AND score = 76 - 68 = 144 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country of player lee trevino, who has a to par of +2?
### Context:
CREATE TABLE table_name_32 (country VARCHAR, to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_32 WHERE to_par = "+2" AND player = "lee trevino" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pilot at lake dumbleyung?
### Context:
CREATE TABLE table_name_43 (pilot_s_ VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT pilot_s_ FROM table_name_43 WHERE location = "lake dumbleyung" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fast was the speed during the record set at Coniston Water that was piloted by Malcolm Campbell?
### Context:
CREATE TABLE table_name_87 (speed VARCHAR, location VARCHAR, pilot_s_ VARCHAR) [/INST]
### Response:
SELECT speed FROM table_name_87 WHERE location = "coniston water" AND pilot_s_ = "malcolm campbell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has an Away of 1β1?
### Context:
CREATE TABLE table_name_36 (home VARCHAR, away VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_36 WHERE away = "1β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:
Which Away has a Season of 2007β08?
### Context:
CREATE TABLE table_name_99 (away VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT away FROM table_name_99 WHERE season = "2007β08" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Season has an Away of 1β2?
### Context:
CREATE TABLE table_name_94 (season VARCHAR, away VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_94 WHERE away = "1β2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Away has a Home of 1β0?
### Context:
CREATE TABLE table_name_41 (away VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT away FROM table_name_41 WHERE home = "1β0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Season has a League of bezirksliga?
### Context:
CREATE TABLE table_name_77 (season VARCHAR, league VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_77 WHERE league = "bezirksliga" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Season has a Home of 0β1?
### Context:
CREATE TABLE table_name_24 (season VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_24 WHERE home = "0β1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the Venue in 2003?
### Context:
CREATE TABLE table_name_16 (venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_16 WHERE date = "2003" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Competition had a Score of 3β3?
### Context:
CREATE TABLE table_name_27 (competition VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_27 WHERE score = "3β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:
Name the lowest Round with Opponent of rolando delgado?
### Context:
CREATE TABLE table_name_18 (round INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_18 WHERE opponent = "rolando delgado" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Round in liverpool , england?
### Context:
CREATE TABLE table_name_73 (round VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_73 WHERE location = "liverpool , england" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Event is in chandigarh , india?
### Context:
CREATE TABLE table_name_62 (event VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_62 WHERE location = "chandigarh , india" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player with a year later than 2007 and the college/high school/club of Arizona?
### Context:
CREATE TABLE table_name_58 (player VARCHAR, year VARCHAR, college_high_school_club VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_58 WHERE year > 2007 AND college_high_school_club = "arizona" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 earliest year of c position player gary bergen?
### Context:
CREATE TABLE table_name_89 (year INTEGER, position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_89 WHERE position = "c" AND player = "gary bergen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What round is sf/sg player sly williams from a year after 1965 from?
### Context:
CREATE TABLE table_name_66 (round VARCHAR, player VARCHAR, position VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_66 WHERE position = "sf/sg" AND year > 1965 AND player = "sly williams" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the pf position player from 1996 and the college/high school/club mississippi state?
### Context:
CREATE TABLE table_name_37 (round VARCHAR, college_high_school_club VARCHAR, position VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_37 WHERE position = "pf" AND year = 1996 AND college_high_school_club = "mississippi state" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Score has a Visitor of montreal canadiens, and Points of 5?
### Context:
CREATE TABLE table_name_93 (score VARCHAR, visitor VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_93 WHERE visitor = "montreal canadiens" AND points = 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Date has a Home of montreal canadiens, and Points larger than 9, and a Decision of price?
### Context:
CREATE TABLE table_name_99 (date VARCHAR, decision VARCHAR, home VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_99 WHERE home = "montreal canadiens" AND points > 9 AND decision = "price" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score for the home team Notts County?
### Context:
CREATE TABLE table_name_97 (score VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_97 WHERE home_team = "notts county" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Episode has a Viewers (millions) larger than 11.26, a Weekly Rank of #8, and a Share of 12?
### Context:
CREATE TABLE table_name_62 (episode VARCHAR, share VARCHAR, viewers__millions_ VARCHAR, weekly_rank VARCHAR) [/INST]
### Response:
SELECT episode FROM table_name_62 WHERE viewers__millions_ > 11.26 AND weekly_rank = "#8" AND share = 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 2012 with a mini in 2009?
### Context:
CREATE TABLE table_name_3 (Id VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_3 WHERE 2009 = "mini" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2013 with virgin in 2009?
### Context:
CREATE TABLE table_name_5 (Id VARCHAR) [/INST]
### Response:
SELECT 2013 FROM table_name_5 WHERE 2009 = "virgin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank of the 2009 xbox?
### Context:
CREATE TABLE table_name_95 (rank INTEGER) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_95 WHERE 2009 = "xbox" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2010 with a rank higher than 15 and a 2011 maserati?
### Context:
CREATE TABLE table_name_72 (rank VARCHAR) [/INST]
### Response:
SELECT 2010 FROM table_name_72 WHERE rank > 15 AND 2011 = "maserati" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the record with 23 points and a visitor of Chicago?
### Context:
CREATE TABLE table_name_70 (record VARCHAR, points VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_70 WHERE points = 23 AND visitor = "chicago" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What venue had a tie?
### Context:
CREATE TABLE table_name_84 (tied VARCHAR) [/INST]
### Response:
SELECT tied FROM table_name_84 WHERE "venue" = "venue" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score in Spain T3?
### Context:
CREATE TABLE table_name_59 (score VARCHAR, place VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_59 WHERE place = "t3" AND country = "spain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What score did Lee Trevino get in T1?
### Context:
CREATE TABLE table_name_53 (score VARCHAR, place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_53 WHERE place = "t1" AND player = "lee trevino" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had the score 71-72=143 in Spain?
### Context:
CREATE TABLE table_name_45 (player VARCHAR, country VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_45 WHERE score = 71 - 72 = 143 AND country = "spain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 curtis strange had a to par +1, what was his score?
### Context:
CREATE TABLE table_name_42 (score VARCHAR, to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_42 WHERE to_par = "+1" AND player = "curtis strange" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player for Zimbabwe?
### Context:
CREATE TABLE table_name_45 (player VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_45 WHERE country = "zimbabwe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Greg Norman from?
### Context:
CREATE TABLE table_name_28 (country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_28 WHERE player = "greg norman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Bob Tway from?
### Context:
CREATE TABLE table_name_93 (country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_93 WHERE player = "bob tway" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.