messages
listlengths 3
3
| text
stringlengths 266
592
|
---|---|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_36 (year INTEGER, notes VARCHAR)",
"role": "system"
},
{
"content": "What is the average of all the years when the notes are “electronics brand?”",
"role": "user"
},
{
"content": "SELECT AVG(year) FROM table_name_36 WHERE notes = \"electronics brand\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_36 (year INTEGER, notes VARCHAR)<|im_end|>
<|im_start|>user
What is the average of all the years when the notes are “electronics brand?”<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_38 (league VARCHAR, number VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What league has a number less than 122, and least wins as the record?",
"role": "user"
},
{
"content": "SELECT league FROM table_name_38 WHERE number < 122 AND record = \"least wins\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_38 (league VARCHAR, number VARCHAR, record VARCHAR)<|im_end|>
<|im_start|>user
What league has a number less than 122, and least wins as the record?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_2 (machine VARCHAR, rider VARCHAR)",
"role": "system"
},
{
"content": "What machine did Kenneth E. Herbert ride?",
"role": "user"
},
{
"content": "SELECT machine FROM table_name_2 WHERE rider = \"kenneth e. herbert\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_2 (machine VARCHAR, rider VARCHAR)<|im_end|>
<|im_start|>user
What machine did Kenneth E. Herbert ride?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1342013_4 (district VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "what district is Brooks Hays in",
"role": "user"
},
{
"content": "SELECT district FROM table_1342013_4 WHERE incumbent = \"Brooks Hays\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1342013_4 (district VARCHAR, incumbent VARCHAR)<|im_end|>
<|im_start|>user
what district is Brooks Hays in<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_12 (player VARCHAR, sets VARCHAR, event VARCHAR)",
"role": "system"
},
{
"content": "What Player in 2005 Wimbledon had less than 5 Sets?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_12 WHERE sets < 5 AND event = \"2005 wimbledon\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_12 (player VARCHAR, sets VARCHAR, event VARCHAR)<|im_end|>
<|im_start|>user
What Player in 2005 Wimbledon had less than 5 Sets?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (outgoing_manager VARCHAR, replaced_by VARCHAR)",
"role": "system"
},
{
"content": "What is the name of the manager that was replaced by Michael Oenning?",
"role": "user"
},
{
"content": "SELECT outgoing_manager FROM table_name_62 WHERE replaced_by = \"michael oenning\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_62 (outgoing_manager VARCHAR, replaced_by VARCHAR)<|im_end|>
<|im_start|>user
What is the name of the manager that was replaced by Michael Oenning?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11667521_17 (stage__winner_ VARCHAR, general_classification VARCHAR)",
"role": "system"
},
{
"content": "IN WHAT STAGE DID ALEXANDER VINOKOUROV WON THE GENERAL CLASSIFICATION?",
"role": "user"
},
{
"content": "SELECT stage__winner_ FROM table_11667521_17 WHERE general_classification = \"Alexander Vinokourov\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_11667521_17 (stage__winner_ VARCHAR, general_classification VARCHAR)<|im_end|>
<|im_start|>user
IN WHAT STAGE DID ALEXANDER VINOKOUROV WON THE GENERAL CLASSIFICATION?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_47 (date_to VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is Date To, when Name is \"Lee Cook\"?",
"role": "user"
},
{
"content": "SELECT date_to FROM table_name_47 WHERE name = \"lee cook\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_47 (date_to VARCHAR, name VARCHAR)<|im_end|>
<|im_start|>user
What is Date To, when Name is "Lee Cook"?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (team_2 VARCHAR, team_1 VARCHAR)",
"role": "system"
},
{
"content": "What team played against Al-Ismaily (team 1)?",
"role": "user"
},
{
"content": "SELECT team_2 FROM table_name_79 WHERE team_1 = \"al-ismaily\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_79 (team_2 VARCHAR, team_1 VARCHAR)<|im_end|>
<|im_start|>user
What team played against Al-Ismaily (team 1)?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_71 (name VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What is Name, when Venue is \"Motherwell\"?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_71 WHERE venue = \"motherwell\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_71 (name VARCHAR, venue VARCHAR)<|im_end|>
<|im_start|>user
What is Name, when Venue is "Motherwell"?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (bronze INTEGER, total VARCHAR, rank VARCHAR, silver VARCHAR, gold VARCHAR)",
"role": "system"
},
{
"content": "what is the bronze when silver is 1, gold is 0 the rank is 11 and the total is more than 1?",
"role": "user"
},
{
"content": "SELECT MAX(bronze) FROM table_name_74 WHERE silver = 1 AND gold = 0 AND rank = \"11\" AND total > 1",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_74 (bronze INTEGER, total VARCHAR, rank VARCHAR, silver VARCHAR, gold VARCHAR)<|im_end|>
<|im_start|>user
what is the bronze when silver is 1, gold is 0 the rank is 11 and the total is more than 1?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_66 (country VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Which Country has a Score of 69-74=143?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_66 WHERE score = 69 - 74 = 143",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_66 (country VARCHAR, score VARCHAR)<|im_end|>
<|im_start|>user
Which Country has a Score of 69-74=143?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_69 (nation VARCHAR, rank VARCHAR, bronze VARCHAR, total VARCHAR, silver VARCHAR)",
"role": "system"
},
{
"content": "Which nation has total medals under 63, less than 2 silver, more than 2 bronze, and a rank of 8?",
"role": "user"
},
{
"content": "SELECT nation FROM table_name_69 WHERE total < 63 AND silver < 2 AND bronze > 2 AND rank = \"8\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_69 (nation VARCHAR, rank VARCHAR, bronze VARCHAR, total VARCHAR, silver VARCHAR)<|im_end|>
<|im_start|>user
Which nation has total medals under 63, less than 2 silver, more than 2 bronze, and a rank of 8?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_88 (Id VARCHAR)",
"role": "system"
},
{
"content": "Name the 2008 with 1998 of a and 2002 of 1r with 2004 of 2r",
"role": "user"
},
{
"content": "SELECT 2008 FROM table_name_88 WHERE 1998 = \"a\" AND 2002 = \"1r\" AND 2004 = \"2r\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_88 (Id VARCHAR)<|im_end|>
<|im_start|>user
Name the 2008 with 1998 of a and 2002 of 1r with 2004 of 2r<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (score VARCHAR, loss VARCHAR)",
"role": "system"
},
{
"content": "What was the score of the game that had a loss of Cerutti (0-1)?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_91 WHERE loss = \"cerutti (0-1)\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_91 (score VARCHAR, loss VARCHAR)<|im_end|>
<|im_start|>user
What was the score of the game that had a loss of Cerutti (0-1)?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20297668_1 (ply__uk VARCHAR, _nz VARCHAR, _au_ VARCHAR, wraps_per_inch__wpi_ VARCHAR)",
"role": "system"
},
{
"content": "Name the ply uk, nz, au for wraps per inch 7 wpi",
"role": "user"
},
{
"content": "SELECT ply__uk, _nz, _au_ FROM table_20297668_1 WHERE wraps_per_inch__wpi_ = \"7 wpi\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_20297668_1 (ply__uk VARCHAR, _nz VARCHAR, _au_ VARCHAR, wraps_per_inch__wpi_ VARCHAR)<|im_end|>
<|im_start|>user
Name the ply uk, nz, au for wraps per inch 7 wpi<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_30057479_1 (researched_at VARCHAR, geometry VARCHAR)",
"role": "system"
},
{
"content": "Where was d: 25~70nm, l: 10~20 μm geometry researched?",
"role": "user"
},
{
"content": "SELECT researched_at FROM table_30057479_1 WHERE geometry = \"D: 25~70nm, L: 10~20 μm\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_30057479_1 (researched_at VARCHAR, geometry VARCHAR)<|im_end|>
<|im_start|>user
Where was d: 25~70nm, l: 10~20 μm geometry researched?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_40 (away_team VARCHAR)",
"role": "system"
},
{
"content": "How many points did the away team from Melbourne score?",
"role": "user"
},
{
"content": "SELECT away_team AS score FROM table_name_40 WHERE away_team = \"melbourne\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_40 (away_team VARCHAR)<|im_end|>
<|im_start|>user
How many points did the away team from Melbourne score?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17085724_1 (indianapolis_concerts VARCHAR, character VARCHAR)",
"role": "system"
},
{
"content": "Name the indanapolis concerts for dr. alexandre manette",
"role": "user"
},
{
"content": "SELECT indianapolis_concerts FROM table_17085724_1 WHERE character = \"Dr. Alexandre Manette\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_17085724_1 (indianapolis_concerts VARCHAR, character VARCHAR)<|im_end|>
<|im_start|>user
Name the indanapolis concerts for dr. alexandre manette<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18077713_1 (revenue__us_$million_ VARCHAR, net_profit__us_$m_ VARCHAR)",
"role": "system"
},
{
"content": "How many dollars is the revenue when the net profit is 55.4 million dollars?",
"role": "user"
},
{
"content": "SELECT revenue__us_$million_ FROM table_18077713_1 WHERE net_profit__us_$m_ = \"55.4\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_18077713_1 (revenue__us_$million_ VARCHAR, net_profit__us_$m_ VARCHAR)<|im_end|>
<|im_start|>user
How many dollars is the revenue when the net profit is 55.4 million dollars?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_36 (class VARCHAR, quantity_made VARCHAR, fleet_number_s_ VARCHAR)",
"role": "system"
},
{
"content": "What class had 1 made and fleet number of 406?",
"role": "user"
},
{
"content": "SELECT class FROM table_name_36 WHERE quantity_made = \"1\" AND fleet_number_s_ = \"406\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_36 (class VARCHAR, quantity_made VARCHAR, fleet_number_s_ VARCHAR)<|im_end|>
<|im_start|>user
What class had 1 made and fleet number of 406?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28190363_1 (network VARCHAR, judges VARCHAR, presenter_s_ VARCHAR)",
"role": "system"
},
{
"content": "How many networks are there whose version of the shows includes judges tba and the presenter is Arbana Osmani?",
"role": "user"
},
{
"content": "SELECT COUNT(network) FROM table_28190363_1 WHERE judges = \"TBA\" AND presenter_s_ = \"Arbana Osmani\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_28190363_1 (network VARCHAR, judges VARCHAR, presenter_s_ VARCHAR)<|im_end|>
<|im_start|>user
How many networks are there whose version of the shows includes judges tba and the presenter is Arbana Osmani?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_20 (away_team VARCHAR)",
"role": "system"
},
{
"content": "What was Melbourne's away team score?",
"role": "user"
},
{
"content": "SELECT away_team AS score FROM table_name_20 WHERE away_team = \"melbourne\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_20 (away_team VARCHAR)<|im_end|>
<|im_start|>user
What was Melbourne's away team score?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_51 (attendance INTEGER, home VARCHAR)",
"role": "system"
},
{
"content": "What was the attendance of the match with motagua as the home team?",
"role": "user"
},
{
"content": "SELECT AVG(attendance) FROM table_name_51 WHERE home = \"motagua\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_51 (attendance INTEGER, home VARCHAR)<|im_end|>
<|im_start|>user
What was the attendance of the match with motagua as the home team?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_28 (score INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest score that has alastair forsyth as the player?",
"role": "user"
},
{
"content": "SELECT MIN(score) FROM table_name_28 WHERE player = \"alastair forsyth\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_28 (score INTEGER, player VARCHAR)<|im_end|>
<|im_start|>user
What is the lowest score that has alastair forsyth as the player?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_44 (area_president__quorum_ VARCHAR, area_name VARCHAR)",
"role": "system"
},
{
"content": "Name the area president when the area name is south america south",
"role": "user"
},
{
"content": "SELECT area_president__quorum_ FROM table_name_44 WHERE area_name = \"south america south\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_44 (area_president__quorum_ VARCHAR, area_name VARCHAR)<|im_end|>
<|im_start|>user
Name the area president when the area name is south america south<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22839669_1 (outcome VARCHAR, score_in_the_final VARCHAR)",
"role": "system"
},
{
"content": "What was the outcome of the match with score 4–6, 3–6, 2–6?",
"role": "user"
},
{
"content": "SELECT outcome FROM table_22839669_1 WHERE score_in_the_final = \"4–6, 3–6, 2–6\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_22839669_1 (outcome VARCHAR, score_in_the_final VARCHAR)<|im_end|>
<|im_start|>user
What was the outcome of the match with score 4–6, 3–6, 2–6?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_87 (record VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the record of the game on 5 February 2008?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_87 WHERE date = \"5 february 2008\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_87 (record VARCHAR, date VARCHAR)<|im_end|>
<|im_start|>user
What is the record of the game on 5 February 2008?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26400438_1 (podiums VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "how many seasons did he race in team Carlin?",
"role": "user"
},
{
"content": "SELECT COUNT(podiums) FROM table_26400438_1 WHERE team = \"Carlin\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_26400438_1 (podiums VARCHAR, team VARCHAR)<|im_end|>
<|im_start|>user
how many seasons did he race in team Carlin?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_28 (to_par VARCHAR, player VARCHAR, total VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of To Par, when Player is \"Julius Boros\", and when Total is greater than 295?",
"role": "user"
},
{
"content": "SELECT COUNT(to_par) FROM table_name_28 WHERE player = \"julius boros\" AND total > 295",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_28 (to_par VARCHAR, player VARCHAR, total VARCHAR)<|im_end|>
<|im_start|>user
What is the total number of To Par, when Player is "Julius Boros", and when Total is greater than 295?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_9 (chassis___engine VARCHAR, laps VARCHAR)",
"role": "system"
},
{
"content": "Which chassis-engine had 77 laps?",
"role": "user"
},
{
"content": "SELECT chassis___engine FROM table_name_9 WHERE laps = 77",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_9 (chassis___engine VARCHAR, laps VARCHAR)<|im_end|>
<|im_start|>user
Which chassis-engine had 77 laps?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (year VARCHAR, note VARCHAR, album VARCHAR)",
"role": "system"
},
{
"content": "When was the note a vocals and the album north (original motion picture soundtrack)?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_62 WHERE note = \"vocals\" AND album = \"north (original motion picture soundtrack)\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_62 (year VARCHAR, note VARCHAR, album VARCHAR)<|im_end|>
<|im_start|>user
When was the note a vocals and the album north (original motion picture soundtrack)?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_40 (country VARCHAR, of_1 VARCHAR)",
"role": "system"
},
{
"content": "What country has OF-1 Locotenent?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_40 WHERE of_1 = \"locotenent\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_40 (country VARCHAR, of_1 VARCHAR)<|im_end|>
<|im_start|>user
What country has OF-1 Locotenent?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (operating_system_version VARCHAR, memory___ram__ VARCHAR)",
"role": "system"
},
{
"content": "Which operating system has 1GB (mobile ddr) memory (RAM)?",
"role": "user"
},
{
"content": "SELECT operating_system_version FROM table_name_27 WHERE memory___ram__ = \"1gb (mobile ddr)\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_27 (operating_system_version VARCHAR, memory___ram__ VARCHAR)<|im_end|>
<|im_start|>user
Which operating system has 1GB (mobile ddr) memory (RAM)?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_97 (icao VARCHAR, city VARCHAR)",
"role": "system"
},
{
"content": "Which ICAO is found in Vavuniya?",
"role": "user"
},
{
"content": "SELECT icao FROM table_name_97 WHERE city = \"vavuniya\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_97 (icao VARCHAR, city VARCHAR)<|im_end|>
<|im_start|>user
Which ICAO is found in Vavuniya?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE routes (dst_apid VARCHAR); CREATE TABLE airports (name VARCHAR, apid VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "Find the busiest destination airport that runs most number of routes in China.",
"role": "user"
},
{
"content": "SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY COUNT(*) DESC LIMIT 1",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE routes (dst_apid VARCHAR); CREATE TABLE airports (name VARCHAR, apid VARCHAR, country VARCHAR)<|im_end|>
<|im_start|>user
Find the busiest destination airport that runs most number of routes in China.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_28 (points INTEGER, engine VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "How many points did the Weslake v12 get in 1966?",
"role": "user"
},
{
"content": "SELECT MAX(points) FROM table_name_28 WHERE engine = \"weslake v12\" AND year < 1966",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_28 (points INTEGER, engine VARCHAR, year VARCHAR)<|im_end|>
<|im_start|>user
How many points did the Weslake v12 get in 1966?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_54 (starts INTEGER, avg_finish INTEGER)",
"role": "system"
},
{
"content": "How many starts for an average finish greater than 43?",
"role": "user"
},
{
"content": "SELECT SUM(starts) FROM table_name_54 WHERE avg_finish > 43",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_54 (starts INTEGER, avg_finish INTEGER)<|im_end|>
<|im_start|>user
How many starts for an average finish greater than 43?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_73 (club VARCHAR, founded VARCHAR, sport VARCHAR)",
"role": "system"
},
{
"content": "Name the Club which has a Founded larger than 1875, and a Sport of football?",
"role": "user"
},
{
"content": "SELECT club FROM table_name_73 WHERE founded > 1875 AND sport = \"football\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_73 (club VARCHAR, founded VARCHAR, sport VARCHAR)<|im_end|>
<|im_start|>user
Name the Club which has a Founded larger than 1875, and a Sport of football?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (played VARCHAR, try_bonus VARCHAR, club VARCHAR)",
"role": "system"
},
{
"content": "For Pontyberem RFC that has a Try Bonus of 2, what is the played?",
"role": "user"
},
{
"content": "SELECT played FROM table_name_56 WHERE try_bonus = \"2\" AND club = \"pontyberem rfc\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_56 (played VARCHAR, try_bonus VARCHAR, club VARCHAR)<|im_end|>
<|im_start|>user
For Pontyberem RFC that has a Try Bonus of 2, what is the played?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_88 (time_retired VARCHAR, grid VARCHAR)",
"role": "system"
},
{
"content": "What is the grid 13 time score?",
"role": "user"
},
{
"content": "SELECT time_retired FROM table_name_88 WHERE grid = 13",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_88 (time_retired VARCHAR, grid VARCHAR)<|im_end|>
<|im_start|>user
What is the grid 13 time score?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_89 (name VARCHAR, year_built VARCHAR)",
"role": "system"
},
{
"content": "What was built in 1857?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_89 WHERE year_built = 1857",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_89 (name VARCHAR, year_built VARCHAR)<|im_end|>
<|im_start|>user
What was built in 1857?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (to_par VARCHAR, total VARCHAR, player VARCHAR, country VARCHAR, year_won VARCHAR)",
"role": "system"
},
{
"content": "What is the to par for Paul Azinger from the United States after 1986 for a total bigger than 145?",
"role": "user"
},
{
"content": "SELECT COUNT(to_par) FROM table_name_72 WHERE country = \"united states\" AND year_won > 1986 AND player = \"paul azinger\" AND total > 145",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_72 (to_par VARCHAR, total VARCHAR, player VARCHAR, country VARCHAR, year_won VARCHAR)<|im_end|>
<|im_start|>user
What is the to par for Paul Azinger from the United States after 1986 for a total bigger than 145?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (goals_for INTEGER, draws VARCHAR, points VARCHAR, losses VARCHAR, wins VARCHAR)",
"role": "system"
},
{
"content": "What is the average number of goals for entries with more than 12 losses, more than 10 wins, more than 3 draws, and fewer than 29 points?",
"role": "user"
},
{
"content": "SELECT AVG(goals_for) FROM table_name_99 WHERE losses > 12 AND wins > 10 AND points < 29 AND draws > 3",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_99 (goals_for INTEGER, draws VARCHAR, points VARCHAR, losses VARCHAR, wins VARCHAR)<|im_end|>
<|im_start|>user
What is the average number of goals for entries with more than 12 losses, more than 10 wins, more than 3 draws, and fewer than 29 points?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_9 (class VARCHAR, weight VARCHAR)",
"role": "system"
},
{
"content": "What is the class of the player with a weight of 242 pounds?",
"role": "user"
},
{
"content": "SELECT class FROM table_name_9 WHERE weight = 242",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_9 (class VARCHAR, weight VARCHAR)<|im_end|>
<|im_start|>user
What is the class of the player with a weight of 242 pounds?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (time VARCHAR, event VARCHAR)",
"role": "system"
},
{
"content": "What is Time, when Event is \"GCM: Demolition 1\"?",
"role": "user"
},
{
"content": "SELECT time FROM table_name_85 WHERE event = \"gcm: demolition 1\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_85 (time VARCHAR, event VARCHAR)<|im_end|>
<|im_start|>user
What is Time, when Event is "GCM: Demolition 1"?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_2 (pick__number INTEGER, name VARCHAR, overall VARCHAR)",
"role": "system"
},
{
"content": "Which highest pick number's name was Adam Podlesh, when the overall was less than 101?",
"role": "user"
},
{
"content": "SELECT MAX(pick__number) FROM table_name_2 WHERE name = \"adam podlesh\" AND overall < 101",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_2 (pick__number INTEGER, name VARCHAR, overall VARCHAR)<|im_end|>
<|im_start|>user
Which highest pick number's name was Adam Podlesh, when the overall was less than 101?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24781886_3 (air_date VARCHAR, viewers VARCHAR)",
"role": "system"
},
{
"content": "When 7.08 is the amount of viewers what is the air date?",
"role": "user"
},
{
"content": "SELECT air_date FROM table_24781886_3 WHERE viewers = \"7.08\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_24781886_3 (air_date VARCHAR, viewers VARCHAR)<|im_end|>
<|im_start|>user
When 7.08 is the amount of viewers what is the air date?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_47 (viewers__m_ INTEGER, rating INTEGER)",
"role": "system"
},
{
"content": "What is the highest number of viewers for a rating greater than 9.4?",
"role": "user"
},
{
"content": "SELECT MAX(viewers__m_) FROM table_name_47 WHERE rating > 9.4",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_47 (viewers__m_ INTEGER, rating INTEGER)<|im_end|>
<|im_start|>user
What is the highest number of viewers for a rating greater than 9.4?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_52 (finish VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "What is the finish of Australia?",
"role": "user"
},
{
"content": "SELECT finish FROM table_name_52 WHERE country = \"australia\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_52 (finish VARCHAR, country VARCHAR)<|im_end|>
<|im_start|>user
What is the finish of Australia?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (grid INTEGER, driver VARCHAR)",
"role": "system"
},
{
"content": "I want the lowest Grid for Rolf Stommelen",
"role": "user"
},
{
"content": "SELECT MIN(grid) FROM table_name_48 WHERE driver = \"rolf stommelen\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_48 (grid INTEGER, driver VARCHAR)<|im_end|>
<|im_start|>user
I want the lowest Grid for Rolf Stommelen<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10360656_1 (choice INTEGER)",
"role": "system"
},
{
"content": "Who was the top picki n the draft?",
"role": "user"
},
{
"content": "SELECT MIN(choice) FROM table_10360656_1",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_10360656_1 (choice INTEGER)<|im_end|>
<|im_start|>user
Who was the top picki n the draft?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27539535_7 (record VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What was the teams record when they played the ottawa senators?",
"role": "user"
},
{
"content": "SELECT record FROM table_27539535_7 WHERE opponent = \"Ottawa Senators\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_27539535_7 (record VARCHAR, opponent VARCHAR)<|im_end|>
<|im_start|>user
What was the teams record when they played the ottawa senators?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_20 (home_team VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "What is the home team score with Away team Richmond?",
"role": "user"
},
{
"content": "SELECT home_team AS score FROM table_name_20 WHERE away_team = \"richmond\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_20 (home_team VARCHAR, away_team VARCHAR)<|im_end|>
<|im_start|>user
What is the home team score with Away team Richmond?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_34 (skip VARCHAR, third VARCHAR)",
"role": "system"
},
{
"content": "Which Skip has a Third of carlo alessandro zisa?",
"role": "user"
},
{
"content": "SELECT skip FROM table_name_34 WHERE third = \"carlo alessandro zisa\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_34 (skip VARCHAR, third VARCHAR)<|im_end|>
<|im_start|>user
Which Skip has a Third of carlo alessandro zisa?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13570_1 (nucleus VARCHAR, cytoplasm VARCHAR)",
"role": "system"
},
{
"content": "The pink cytoplasm will have a nucleus of what color?",
"role": "user"
},
{
"content": "SELECT nucleus FROM table_13570_1 WHERE cytoplasm = \"Pink\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_13570_1 (nucleus VARCHAR, cytoplasm VARCHAR)<|im_end|>
<|im_start|>user
The pink cytoplasm will have a nucleus of what color?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (average INTEGER, rank VARCHAR, celebrity VARCHAR)",
"role": "system"
},
{
"content": "What is the highest average of celebrity Natalia Lesz, who is ranked greater than 4?",
"role": "user"
},
{
"content": "SELECT MAX(average) FROM table_name_19 WHERE rank > 4 AND celebrity = \"natalia lesz\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_19 (average INTEGER, rank VARCHAR, celebrity VARCHAR)<|im_end|>
<|im_start|>user
What is the highest average of celebrity Natalia Lesz, who is ranked greater than 4?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_50 (rank INTEGER, silver VARCHAR, total VARCHAR, bronze VARCHAR)",
"role": "system"
},
{
"content": "What is the rank for total less than 5, 1 bronze and less than 1 silver?",
"role": "user"
},
{
"content": "SELECT AVG(rank) FROM table_name_50 WHERE total < 5 AND bronze = 1 AND silver < 1",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_50 (rank INTEGER, silver VARCHAR, total VARCHAR, bronze VARCHAR)<|im_end|>
<|im_start|>user
What is the rank for total less than 5, 1 bronze and less than 1 silver?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (money___ INTEGER, player VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Can you tell me the sum of Money ($) that has the Score of 69-72-67-71=279, and the Player of loren roberts?",
"role": "user"
},
{
"content": "SELECT SUM(money___) AS $__ FROM table_name_84 WHERE score = 69 - 72 - 67 - 71 = 279 AND player = \"loren roberts\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_84 (money___ INTEGER, player VARCHAR, score VARCHAR)<|im_end|>
<|im_start|>user
Can you tell me the sum of Money ($) that has the Score of 69-72-67-71=279, and the Player of loren roberts?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22883210_11 (high_points VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "When 5 is the game who has the highest amount of points?",
"role": "user"
},
{
"content": "SELECT high_points FROM table_22883210_11 WHERE game = 5",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_22883210_11 (high_points VARCHAR, game VARCHAR)<|im_end|>
<|im_start|>user
When 5 is the game who has the highest amount of points?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_87 (game INTEGER, date VARCHAR)",
"role": "system"
},
{
"content": "What average game was played on October 16?",
"role": "user"
},
{
"content": "SELECT AVG(game) FROM table_name_87 WHERE date = \"october 16\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_87 (game INTEGER, date VARCHAR)<|im_end|>
<|im_start|>user
What average game was played on October 16?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10966926_2 (height VARCHAR, weight VARCHAR)",
"role": "system"
},
{
"content": "What is the height of the person that weighs 320 pounds?",
"role": "user"
},
{
"content": "SELECT height FROM table_10966926_2 WHERE weight = 320",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_10966926_2 (height VARCHAR, weight VARCHAR)<|im_end|>
<|im_start|>user
What is the height of the person that weighs 320 pounds?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (laps VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Name the total number of Laps for year of 1961",
"role": "user"
},
{
"content": "SELECT COUNT(laps) FROM table_name_48 WHERE year = \"1961\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_48 (laps VARCHAR, year VARCHAR)<|im_end|>
<|im_start|>user
Name the total number of Laps for year of 1961<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2267465_1 (driver VARCHAR, race_time VARCHAR)",
"role": "system"
},
{
"content": "What driver achieved a 3:50:12 race time?",
"role": "user"
},
{
"content": "SELECT driver FROM table_2267465_1 WHERE race_time = \"3:50:12\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_2267465_1 (driver VARCHAR, race_time VARCHAR)<|im_end|>
<|im_start|>user
What driver achieved a 3:50:12 race time?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23308178_7 (score VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "List the results for all games which involved the detroit red wings.",
"role": "user"
},
{
"content": "SELECT score FROM table_23308178_7 WHERE opponent = \"Detroit Red Wings\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_23308178_7 (score VARCHAR, opponent VARCHAR)<|im_end|>
<|im_start|>user
List the results for all games which involved the detroit red wings.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_2 (rank INTEGER, gold INTEGER)",
"role": "system"
},
{
"content": "What's the total Rank that has a Gold that's smaller than 0?",
"role": "user"
},
{
"content": "SELECT SUM(rank) FROM table_name_2 WHERE gold < 0",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_2 (rank INTEGER, gold INTEGER)<|im_end|>
<|im_start|>user
What's the total Rank that has a Gold that's smaller than 0?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (appearances VARCHAR, goals VARCHAR)",
"role": "system"
},
{
"content": "What is the amount of apperances of the person who had 36 goals?",
"role": "user"
},
{
"content": "SELECT appearances FROM table_name_5 WHERE goals = 36",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_5 (appearances VARCHAR, goals VARCHAR)<|im_end|>
<|im_start|>user
What is the amount of apperances of the person who had 36 goals?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_70 (country VARCHAR, total INTEGER)",
"role": "system"
},
{
"content": "What is the country of the player who has a total larger than 300?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_70 WHERE total > 300",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_70 (country VARCHAR, total INTEGER)<|im_end|>
<|im_start|>user
What is the country of the player who has a total larger than 300?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (silver INTEGER, bronze INTEGER)",
"role": "system"
},
{
"content": "What is the average number of silvers for nations with over 1 bronze medal?",
"role": "user"
},
{
"content": "SELECT AVG(silver) FROM table_name_62 WHERE bronze > 1",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_62 (silver INTEGER, bronze INTEGER)<|im_end|>
<|im_start|>user
What is the average number of silvers for nations with over 1 bronze medal?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_34 (constructor VARCHAR, race_name VARCHAR)",
"role": "system"
},
{
"content": "What is the constructor for the VII Race of Champions?",
"role": "user"
},
{
"content": "SELECT constructor FROM table_name_34 WHERE race_name = \"vii race of champions\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_34 (constructor VARCHAR, race_name VARCHAR)<|im_end|>
<|im_start|>user
What is the constructor for the VII Race of Champions?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_16 (appearances INTEGER, team VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "How many appearances for psv eindhoven ranked above 11?",
"role": "user"
},
{
"content": "SELECT SUM(appearances) FROM table_name_16 WHERE team = \"psv eindhoven\" AND rank < 11",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_16 (appearances INTEGER, team VARCHAR, rank VARCHAR)<|im_end|>
<|im_start|>user
How many appearances for psv eindhoven ranked above 11?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_9 (bronze INTEGER, sport VARCHAR, silver VARCHAR)",
"role": "system"
},
{
"content": "What is the football Bronze with more than 1 Silver?",
"role": "user"
},
{
"content": "SELECT AVG(bronze) FROM table_name_9 WHERE sport = \"football\" AND silver > 1",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_9 (bronze INTEGER, sport VARCHAR, silver VARCHAR)<|im_end|>
<|im_start|>user
What is the football Bronze with more than 1 Silver?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Songs (Id VARCHAR)",
"role": "system"
},
{
"content": "How many songs are there?",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM Songs",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE Songs (Id VARCHAR)<|im_end|>
<|im_start|>user
How many songs are there?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_59 (position VARCHAR, school VARCHAR)",
"role": "system"
},
{
"content": "What is the position of the player from Glades Day School?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_59 WHERE school = \"glades day school\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_59 (position VARCHAR, school VARCHAR)<|im_end|>
<|im_start|>user
What is the position of the player from Glades Day School?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_92 (rank INTEGER, matches VARCHAR, goals VARCHAR)",
"role": "system"
},
{
"content": "What is the average rank for players with under 205 matches and under 100 goals?",
"role": "user"
},
{
"content": "SELECT AVG(rank) FROM table_name_92 WHERE matches < 205 AND goals < 100",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_92 (rank INTEGER, matches VARCHAR, goals VARCHAR)<|im_end|>
<|im_start|>user
What is the average rank for players with under 205 matches and under 100 goals?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE authorship (authid VARCHAR, instid VARCHAR); CREATE TABLE authors (fname VARCHAR, lname VARCHAR, authid VARCHAR); CREATE TABLE inst (instid VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Who belong to the institution \"University of Oxford\"? Show the first names and last names.",
"role": "user"
},
{
"content": "SELECT DISTINCT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"University of Oxford\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE authorship (authid VARCHAR, instid VARCHAR); CREATE TABLE authors (fname VARCHAR, lname VARCHAR, authid VARCHAR); CREATE TABLE inst (instid VARCHAR, name VARCHAR)<|im_end|>
<|im_start|>user
Who belong to the institution "University of Oxford"? Show the first names and last names.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (result VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "What was the result when the attendance was 25,418?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_99 WHERE attendance = \"25,418\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_99 (result VARCHAR, attendance VARCHAR)<|im_end|>
<|im_start|>user
What was the result when the attendance was 25,418?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (tournament VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "what is the tournament on august 17, 2008?",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_14 WHERE date = \"august 17, 2008\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_14 (tournament VARCHAR, date VARCHAR)<|im_end|>
<|im_start|>user
what is the tournament on august 17, 2008?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26533354_8 (position VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "Name the position for stanley havili",
"role": "user"
},
{
"content": "SELECT position FROM table_26533354_8 WHERE player = \"Stanley Havili\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_26533354_8 (position VARCHAR, player VARCHAR)<|im_end|>
<|im_start|>user
Name the position for stanley havili<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14118521_1 (shuttle VARCHAR, primary_payload_s_ VARCHAR)",
"role": "system"
},
{
"content": "what's the shuttle with primary payload(s) being united states microgravity laboratory-1",
"role": "user"
},
{
"content": "SELECT shuttle FROM table_14118521_1 WHERE primary_payload_s_ = \"United States Microgravity Laboratory-1\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_14118521_1 (shuttle VARCHAR, primary_payload_s_ VARCHAR)<|im_end|>
<|im_start|>user
what's the shuttle with primary payload(s) being united states microgravity laboratory-1<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_22 (sport VARCHAR, club VARCHAR)",
"role": "system"
},
{
"content": "Which sport had the club of the Montgomery Biscuits?",
"role": "user"
},
{
"content": "SELECT sport FROM table_name_22 WHERE club = \"montgomery biscuits\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_22 (sport VARCHAR, club VARCHAR)<|im_end|>
<|im_start|>user
Which sport had the club of the Montgomery Biscuits?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19396259_1 (title VARCHAR, directed_by VARCHAR, written_by VARCHAR)",
"role": "system"
},
{
"content": "Name the title directed by charles beeson by jeremy carver",
"role": "user"
},
{
"content": "SELECT title FROM table_19396259_1 WHERE directed_by = \"Charles Beeson\" AND written_by = \"Jeremy Carver\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_19396259_1 (title VARCHAR, directed_by VARCHAR, written_by VARCHAR)<|im_end|>
<|im_start|>user
Name the title directed by charles beeson by jeremy carver<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_78 (record VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Name the record for 1997",
"role": "user"
},
{
"content": "SELECT record FROM table_name_78 WHERE year = \"1997\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_78 (record VARCHAR, year VARCHAR)<|im_end|>
<|im_start|>user
Name the record for 1997<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (first VARCHAR, surname VARCHAR)",
"role": "system"
},
{
"content": "Which first's surname is Cook?",
"role": "user"
},
{
"content": "SELECT first FROM table_name_76 WHERE surname = \"cook\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_76 (first VARCHAR, surname VARCHAR)<|im_end|>
<|im_start|>user
Which first's surname is Cook?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_51 (apps INTEGER, rank VARCHAR, goals VARCHAR)",
"role": "system"
},
{
"content": "What are the apps for less than 61 goals and before rank 6?",
"role": "user"
},
{
"content": "SELECT SUM(apps) FROM table_name_51 WHERE rank < 6 AND goals < 61",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_51 (apps INTEGER, rank VARCHAR, goals VARCHAR)<|im_end|>
<|im_start|>user
What are the apps for less than 61 goals and before rank 6?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_89 (attendance VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "How many were in Attendance during a Tie no of 1?",
"role": "user"
},
{
"content": "SELECT attendance FROM table_name_89 WHERE tie_no = 1",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_89 (attendance VARCHAR, tie_no VARCHAR)<|im_end|>
<|im_start|>user
How many were in Attendance during a Tie no of 1?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_94 (oklahoma VARCHAR, nevada VARCHAR, colorado VARCHAR)",
"role": "system"
},
{
"content": "What's the value for oklahoma when nevada and colorado are clinton?",
"role": "user"
},
{
"content": "SELECT oklahoma FROM table_name_94 WHERE nevada = \"clinton\" AND colorado = \"clinton\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_94 (oklahoma VARCHAR, nevada VARCHAR, colorado VARCHAR)<|im_end|>
<|im_start|>user
What's the value for oklahoma when nevada and colorado are clinton?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_51 (heat INTEGER, nationality VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "What is the earliest heat with a finisher from the Czech Republic and a rank over 41?",
"role": "user"
},
{
"content": "SELECT MIN(heat) FROM table_name_51 WHERE nationality = \"czech republic\" AND rank > 41",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_51 (heat INTEGER, nationality VARCHAR, rank VARCHAR)<|im_end|>
<|im_start|>user
What is the earliest heat with a finisher from the Czech Republic and a rank over 41?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_23 (rank INTEGER, nation VARCHAR, bronze VARCHAR)",
"role": "system"
},
{
"content": "what is the highest rank when the nation is united states (usa) and bronze is more than 1?",
"role": "user"
},
{
"content": "SELECT MAX(rank) FROM table_name_23 WHERE nation = \"united states (usa)\" AND bronze > 1",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_23 (rank INTEGER, nation VARCHAR, bronze VARCHAR)<|im_end|>
<|im_start|>user
what is the highest rank when the nation is united states (usa) and bronze is more than 1?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (result VARCHAR, home_team VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the result of the game played on April 16 with Philadelphia as home team?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_64 WHERE home_team = \"philadelphia\" AND date = \"april 16\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_64 (result VARCHAR, home_team VARCHAR, date VARCHAR)<|im_end|>
<|im_start|>user
What was the result of the game played on April 16 with Philadelphia as home team?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (overall VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "What is the overall of the running back player?",
"role": "user"
},
{
"content": "SELECT overall FROM table_name_91 WHERE position = \"running back\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_91 (overall VARCHAR, position VARCHAR)<|im_end|>
<|im_start|>user
What is the overall of the running back player?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (lost INTEGER, points VARCHAR, drawn VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of losses that have points of 11 and more than 1 draw?",
"role": "user"
},
{
"content": "SELECT SUM(lost) FROM table_name_86 WHERE points = 11 AND drawn > 1",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_86 (lost INTEGER, points VARCHAR, drawn VARCHAR)<|im_end|>
<|im_start|>user
What is the sum of losses that have points of 11 and more than 1 draw?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (winner VARCHAR, year VARCHAR, loser VARCHAR)",
"role": "system"
},
{
"content": "Who was the winner of the game in 1999 with Kansas City Chiefs as the loser?",
"role": "user"
},
{
"content": "SELECT winner FROM table_name_29 WHERE year = 1999 AND loser = \"kansas city chiefs\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_29 (winner VARCHAR, year VARCHAR, loser VARCHAR)<|im_end|>
<|im_start|>user
Who was the winner of the game in 1999 with Kansas City Chiefs as the loser?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_39 (fastest_lap VARCHAR, constructor VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "Who ran the fastest lap in the team that competed in Zolder, in which Ferrari was the Constructor?",
"role": "user"
},
{
"content": "SELECT fastest_lap FROM table_name_39 WHERE constructor = \"ferrari\" AND location = \"zolder\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_39 (fastest_lap VARCHAR, constructor VARCHAR, location VARCHAR)<|im_end|>
<|im_start|>user
Who ran the fastest lap in the team that competed in Zolder, in which Ferrari was the Constructor?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_36 (bodyweight INTEGER, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR)",
"role": "system"
},
{
"content": "What is the least Bodyweight for the Clean & jerk of 145.0, and a Snatch smaller than 122.5?",
"role": "user"
},
{
"content": "SELECT MIN(bodyweight) FROM table_name_36 WHERE clean_ & _jerk = \"145.0\" AND snatch < 122.5",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_36 (bodyweight INTEGER, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR)<|im_end|>
<|im_start|>user
What is the least Bodyweight for the Clean & jerk of 145.0, and a Snatch smaller than 122.5?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (result VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "Game of game 5 had what result?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_83 WHERE game = \"game 5\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_83 (result VARCHAR, game VARCHAR)<|im_end|>
<|im_start|>user
Game of game 5 had what result?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (laps INTEGER, year VARCHAR)",
"role": "system"
},
{
"content": "What is the average number of laps in 1949?",
"role": "user"
},
{
"content": "SELECT AVG(laps) FROM table_name_15 WHERE year = \"1949\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_15 (laps INTEGER, year VARCHAR)<|im_end|>
<|im_start|>user
What is the average number of laps in 1949?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (race VARCHAR, pole_position VARCHAR)",
"role": "system"
},
{
"content": "What race has a Pole Position of Jacques Laffite?",
"role": "user"
},
{
"content": "SELECT race FROM table_name_25 WHERE pole_position = \"jacques laffite\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_25 (race VARCHAR, pole_position VARCHAR)<|im_end|>
<|im_start|>user
What race has a Pole Position of Jacques Laffite?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17323529_5 (high_points VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Name the high points for the date of november 24",
"role": "user"
},
{
"content": "SELECT high_points FROM table_17323529_5 WHERE date = \"November 24\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_17323529_5 (high_points VARCHAR, date VARCHAR)<|im_end|>
<|im_start|>user
Name the high points for the date of november 24<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (gold_medals VARCHAR, total_medals INTEGER)",
"role": "system"
},
{
"content": "How many gold medals for the school with less than 1 total?",
"role": "user"
},
{
"content": "SELECT COUNT(gold_medals) FROM table_name_43 WHERE total_medals < 1",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_43 (gold_medals VARCHAR, total_medals INTEGER)<|im_end|>
<|im_start|>user
How many gold medals for the school with less than 1 total?<|im_end|>
|