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_19 (year INTEGER, venue VARCHAR)",
"role": "system"
},
{
"content": "What year is the event in athens, greece?",
"role": "user"
},
{
"content": "SELECT MAX(year) FROM table_name_19 WHERE venue = \"athens, greece\"",
"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 (year INTEGER, venue VARCHAR)<|im_end|>
<|im_start|>user
What year is the event in athens, greece?<|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_11 (team_1 VARCHAR)",
"role": "system"
},
{
"content": "What is the 1st leg of the Al Fahaheel Team 1?",
"role": "user"
},
{
"content": "SELECT 1 AS st_leg FROM table_name_11 WHERE team_1 = \"al fahaheel\"",
"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_11 (team_1 VARCHAR)<|im_end|>
<|im_start|>user
What is the 1st leg of the Al Fahaheel 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_16654785_2 (average_climb___percentage_ INTEGER, name VARCHAR)",
"role": "system"
},
{
"content": "What is the average climb for Tenbosse?",
"role": "user"
},
{
"content": "SELECT MIN(average_climb___percentage_) FROM table_16654785_2 WHERE name = \"Tenbosse\"",
"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_16654785_2 (average_climb___percentage_ INTEGER, name VARCHAR)<|im_end|>
<|im_start|>user
What is the average climb for Tenbosse?<|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_1341586_43 (candidates VARCHAR, first_elected VARCHAR)",
"role": "system"
},
{
"content": "Name the candidates in 1964",
"role": "user"
},
{
"content": "SELECT candidates FROM table_1341586_43 WHERE first_elected = 1964",
"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_1341586_43 (candidates VARCHAR, first_elected VARCHAR)<|im_end|>
<|im_start|>user
Name the candidates in 1964<|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_61 (rank INTEGER, name VARCHAR)",
"role": "system"
},
{
"content": "What was Stéphan Perrot rank average?",
"role": "user"
},
{
"content": "SELECT AVG(rank) FROM table_name_61 WHERE name = \"stéphan perrot\"",
"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_61 (rank INTEGER, name VARCHAR)<|im_end|>
<|im_start|>user
What was Stéphan Perrot rank average?<|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_2241841_1 (manufacturer VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Who made the car that won the race on May 21?",
"role": "user"
},
{
"content": "SELECT manufacturer FROM table_2241841_1 WHERE date = \"May 21\"",
"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_2241841_1 (manufacturer VARCHAR, date VARCHAR)<|im_end|>
<|im_start|>user
Who made the car that won the race on May 21?<|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_26013618_1 (nsg_nr VARCHAR, date_established VARCHAR)",
"role": "system"
},
{
"content": "How many reserves were established on 19740329 29.03.1974?",
"role": "user"
},
{
"content": "SELECT COUNT(nsg_nr) FROM table_26013618_1 WHERE date_established = \"19740329 29.03.1974\"",
"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_26013618_1 (nsg_nr VARCHAR, date_established VARCHAR)<|im_end|>
<|im_start|>user
How many reserves were established on 19740329 29.03.1974?<|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 (broadcasts__tv__1 INTEGER, series VARCHAR, us_release_date VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of Broadcasts (TV) 1, when Series is \"3 4\", and when US Release Date is \"27 December 2006\"?",
"role": "user"
},
{
"content": "SELECT SUM(broadcasts__tv__1) FROM table_name_47 WHERE series = \"3 4\" AND us_release_date = \"27 december 2006\"",
"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 (broadcasts__tv__1 INTEGER, series VARCHAR, us_release_date VARCHAR)<|im_end|>
<|im_start|>user
What is the sum of Broadcasts (TV) 1, when Series is "3 4", and when US Release Date is "27 December 2006"?<|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 station_company (company VARCHAR, main_industry VARCHAR, company_id VARCHAR); CREATE TABLE company (company VARCHAR, main_industry VARCHAR, company_id VARCHAR)",
"role": "system"
},
{
"content": "Show company name and main industry without a gas station.",
"role": "user"
},
{
"content": "SELECT company, main_industry FROM company WHERE NOT company_id IN (SELECT company_id FROM station_company)",
"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 station_company (company VARCHAR, main_industry VARCHAR, company_id VARCHAR); CREATE TABLE company (company VARCHAR, main_industry VARCHAR, company_id VARCHAR)<|im_end|>
<|im_start|>user
Show company name and main industry without a gas station.<|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 (nanquan VARCHAR, nandao VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "Which Nanquan has a Nandao larger than 9.49, and a Rank of 4?",
"role": "user"
},
{
"content": "SELECT nanquan FROM table_name_76 WHERE nandao > 9.49 AND rank = 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_76 (nanquan VARCHAR, nandao VARCHAR, rank VARCHAR)<|im_end|>
<|im_start|>user
Which Nanquan has a Nandao larger than 9.49, and a Rank of 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_25 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, constructor VARCHAR)",
"role": "system"
},
{
"content": "Where the time/retired is +1 lap, the constructor is BRM, and the grid is above 1, what's the highest laps recorded?",
"role": "user"
},
{
"content": "SELECT MAX(laps) FROM table_name_25 WHERE time_retired = \"+1 lap\" AND constructor = \"brm\" AND grid > 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_25 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, constructor VARCHAR)<|im_end|>
<|im_start|>user
Where the time/retired is +1 lap, the constructor is BRM, and the grid is above 1, what's the highest laps recorded?<|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_1 (location_attendance VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "Where was the location attendance when Minnesota played?",
"role": "user"
},
{
"content": "SELECT location_attendance FROM table_name_1 WHERE team = \"minnesota\"",
"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_1 (location_attendance VARCHAR, team VARCHAR)<|im_end|>
<|im_start|>user
Where was the location attendance when Minnesota 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_47 (score VARCHAR, tournament VARCHAR)",
"role": "system"
},
{
"content": "What is the final score of the tournament played in Clearwater, Florida?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_47 WHERE tournament = \"clearwater, florida\"",
"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 (score VARCHAR, tournament VARCHAR)<|im_end|>
<|im_start|>user
What is the final score of the tournament played in Clearwater, Florida?<|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_22815568_2 (county VARCHAR, unemployment_rate VARCHAR)",
"role": "system"
},
{
"content": "Which county had a 3.6% unemployment rate?",
"role": "user"
},
{
"content": "SELECT county FROM table_22815568_2 WHERE unemployment_rate = \"3.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_22815568_2 (county VARCHAR, unemployment_rate VARCHAR)<|im_end|>
<|im_start|>user
Which county had a 3.6% unemployment rate?<|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 machine (Machine_series VARCHAR, machine_id VARCHAR); CREATE TABLE repair_assignment (machine_id VARCHAR, technician_ID VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR)",
"role": "system"
},
{
"content": "Show names of technicians and series of machines they are assigned to repair.",
"role": "user"
},
{
"content": "SELECT T3.Name, T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID",
"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 machine (Machine_series VARCHAR, machine_id VARCHAR); CREATE TABLE repair_assignment (machine_id VARCHAR, technician_ID VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR)<|im_end|>
<|im_start|>user
Show names of technicians and series of machines they are assigned to repair.<|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 (performer_1 VARCHAR, performer_2 VARCHAR)",
"role": "system"
},
{
"content": "Performer 2 of compilation 2 is what performer 1?",
"role": "user"
},
{
"content": "SELECT performer_1 FROM table_name_91 WHERE performer_2 = \"compilation 2\"",
"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 (performer_1 VARCHAR, performer_2 VARCHAR)<|im_end|>
<|im_start|>user
Performer 2 of compilation 2 is what performer 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_47 (venue VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "what is the venue of neman",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_47 WHERE team = \"neman\"",
"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 (venue VARCHAR, team VARCHAR)<|im_end|>
<|im_start|>user
what is the venue of neman<|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_2113721_7 (episodes INTEGER)",
"role": "system"
},
{
"content": "What is the smallest number of episodes in a season?",
"role": "user"
},
{
"content": "SELECT MIN(episodes) FROM table_2113721_7",
"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_2113721_7 (episodes INTEGER)<|im_end|>
<|im_start|>user
What is the smallest number of episodes in a season?<|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 (date VARCHAR, venue VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is Date, when Venue is \"Taunton\", and when Name is \"SC Ganguly\"?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_78 WHERE venue = \"taunton\" AND name = \"sc ganguly\"",
"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 (date VARCHAR, venue VARCHAR, name VARCHAR)<|im_end|>
<|im_start|>user
What is Date, when Venue is "Taunton", and when Name is "SC Ganguly"?<|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_11677100_15 (mlb_draft VARCHAR, hometown VARCHAR)",
"role": "system"
},
{
"content": "How many players were from high point, nc?",
"role": "user"
},
{
"content": "SELECT COUNT(mlb_draft) FROM table_11677100_15 WHERE hometown = \"High Point, NC\"",
"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_11677100_15 (mlb_draft VARCHAR, hometown VARCHAR)<|im_end|>
<|im_start|>user
How many players were from high point, nc?<|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 (player_name VARCHAR, college VARCHAR)",
"role": "system"
},
{
"content": "Which player went to Michigan State?",
"role": "user"
},
{
"content": "SELECT player_name FROM table_10966926_2 WHERE college = \"Michigan State\"",
"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 (player_name VARCHAR, college VARCHAR)<|im_end|>
<|im_start|>user
Which player went to Michigan State?<|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_21 (attendance VARCHAR, week VARCHAR)",
"role": "system"
},
{
"content": "What was the Jets week 17 attendance?",
"role": "user"
},
{
"content": "SELECT attendance FROM table_name_21 WHERE week = 17",
"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_21 (attendance VARCHAR, week VARCHAR)<|im_end|>
<|im_start|>user
What was the Jets week 17 attendance?<|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 (player VARCHAR, pos VARCHAR, previous_team VARCHAR)",
"role": "system"
},
{
"content": "What F Player was previously with the New York Knicks?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_73 WHERE pos = \"f\" AND previous_team = \"new york knicks\"",
"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 (player VARCHAR, pos VARCHAR, previous_team VARCHAR)<|im_end|>
<|im_start|>user
What F Player was previously with the New York Knicks?<|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_8 (Id VARCHAR)",
"role": "system"
},
{
"content": "What is listed for the 2011 that has a 2005 of 4.2%?",
"role": "user"
},
{
"content": "SELECT 2011 FROM table_name_8 WHERE 2005 = \"4.2%\"",
"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_8 (Id VARCHAR)<|im_end|>
<|im_start|>user
What is listed for the 2011 that has a 2005 of 4.2%?<|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 (home VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "What was the home for season 1949-50?",
"role": "user"
},
{
"content": "SELECT home FROM table_name_79 WHERE season = \"1949-50\"",
"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 (home VARCHAR, season VARCHAR)<|im_end|>
<|im_start|>user
What was the home for season 1949-50?<|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_57 (games VARCHAR, name VARCHAR, rebounds VARCHAR)",
"role": "system"
},
{
"content": "How many games does novica veličković have when there's more than 24 rebounds?",
"role": "user"
},
{
"content": "SELECT COUNT(games) FROM table_name_57 WHERE name = \"novica veličković\" AND rebounds > 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_name_57 (games VARCHAR, name VARCHAR, rebounds VARCHAR)<|im_end|>
<|im_start|>user
How many games does novica veličković have when there's more than 24 rebounds?<|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_254234_1 (iso_ VARCHAR, chinese_name VARCHAR)",
"role": "system"
},
{
"content": "How many provinces are named 青海省 qīnghǎi shěng?",
"role": "user"
},
{
"content": "SELECT COUNT(iso_) AS № FROM table_254234_1 WHERE chinese_name = \"青海省 Qīnghǎi Shěng\"",
"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_254234_1 (iso_ VARCHAR, chinese_name VARCHAR)<|im_end|>
<|im_start|>user
How many provinces are named 青海省 qīnghǎi shěng?<|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_19852975_3 (season__number INTEGER, arties_disguises VARCHAR)",
"role": "system"
},
{
"content": "Name the season number for herr ostropolyer, pastry chef",
"role": "user"
},
{
"content": "SELECT MIN(season__number) FROM table_19852975_3 WHERE arties_disguises = \"Herr Ostropolyer, pastry chef\"",
"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_19852975_3 (season__number INTEGER, arties_disguises VARCHAR)<|im_end|>
<|im_start|>user
Name the season number for herr ostropolyer, pastry chef<|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 AssignedTo (Scientist VARCHAR, Project VARCHAR); CREATE TABLE Projects (Name VARCHAR, Hours VARCHAR, Code VARCHAR); CREATE TABLE Scientists (Name VARCHAR, SSN VARCHAR)",
"role": "system"
},
{
"content": "List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name.",
"role": "user"
},
{
"content": "SELECT T1.Name, T3.Name, T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name, T1.Name",
"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 AssignedTo (Scientist VARCHAR, Project VARCHAR); CREATE TABLE Projects (Name VARCHAR, Hours VARCHAR, Code VARCHAR); CREATE TABLE Scientists (Name VARCHAR, SSN VARCHAR)<|im_end|>
<|im_start|>user
List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name.<|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_26168687_3 (no_in_series VARCHAR, vessel_operator VARCHAR)",
"role": "system"
},
{
"content": "How many times is the vessel operator canadian coast guard?",
"role": "user"
},
{
"content": "SELECT COUNT(no_in_series) FROM table_26168687_3 WHERE vessel_operator = \"Canadian Coast Guard\"",
"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_26168687_3 (no_in_series VARCHAR, vessel_operator VARCHAR)<|im_end|>
<|im_start|>user
How many times is the vessel operator canadian coast guard?<|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_10420426_1 (podiums VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "What is the podium for 144 points?",
"role": "user"
},
{
"content": "SELECT podiums FROM table_10420426_1 WHERE points = 144",
"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_10420426_1 (podiums VARCHAR, points VARCHAR)<|im_end|>
<|im_start|>user
What is the podium for 144 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_38 (call_sign VARCHAR, erp_w INTEGER)",
"role": "system"
},
{
"content": "What is the call sign for the translator with an ERP W larger than 10?",
"role": "user"
},
{
"content": "SELECT call_sign FROM table_name_38 WHERE erp_w > 10",
"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 (call_sign VARCHAR, erp_w INTEGER)<|im_end|>
<|im_start|>user
What is the call sign for the translator with an ERP W larger than 10?<|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_13026799_1 (winning_score VARCHAR, championship VARCHAR)",
"role": "system"
},
{
"content": "What was the winning score of the PGA Championship (3)?",
"role": "user"
},
{
"content": "SELECT winning_score FROM table_13026799_1 WHERE championship = \"PGA championship (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_13026799_1 (winning_score VARCHAR, championship VARCHAR)<|im_end|>
<|im_start|>user
What was the winning score of the PGA Championship (3)?<|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 (accreditation_type VARCHAR, network_brand_name VARCHAR)",
"role": "system"
},
{
"content": "What is Deutsche Telekom's accreditation type?",
"role": "user"
},
{
"content": "SELECT accreditation_type FROM table_name_88 WHERE network_brand_name = \"deutsche telekom\"",
"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 (accreditation_type VARCHAR, network_brand_name VARCHAR)<|im_end|>
<|im_start|>user
What is Deutsche Telekom's accreditation type?<|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_25374338_1 (song_choice VARCHAR, original_artist VARCHAR)",
"role": "system"
},
{
"content": "What is the song choice where the original artist is Gino Paoli?",
"role": "user"
},
{
"content": "SELECT COUNT(song_choice) FROM table_25374338_1 WHERE original_artist = \"Gino Paoli\"",
"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_25374338_1 (song_choice VARCHAR, original_artist VARCHAR)<|im_end|>
<|im_start|>user
What is the song choice where the original artist is Gino Paoli?<|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 (name VARCHAR, position VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "Which player had a position of OT during round 27?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_43 WHERE position = \"ot\" AND round = 27",
"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 (name VARCHAR, position VARCHAR, round VARCHAR)<|im_end|>
<|im_start|>user
Which player had a position of OT during round 27?<|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 (goals_for INTEGER, lost VARCHAR, played VARCHAR)",
"role": "system"
},
{
"content": "Which Goals For has a Lost of 12, and a Played larger than 34?",
"role": "user"
},
{
"content": "SELECT MAX(goals_for) FROM table_name_28 WHERE lost = 12 AND played > 34",
"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 (goals_for INTEGER, lost VARCHAR, played VARCHAR)<|im_end|>
<|im_start|>user
Which Goals For has a Lost of 12, and a Played larger than 34?<|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_2841865_2 (representative VARCHAR, congress VARCHAR)",
"role": "system"
},
{
"content": "What name is listed under representative for the 112th congress?",
"role": "user"
},
{
"content": "SELECT representative FROM table_2841865_2 WHERE congress = \"112th\"",
"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_2841865_2 (representative VARCHAR, congress VARCHAR)<|im_end|>
<|im_start|>user
What name is listed under representative for the 112th congress?<|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_61 (manufacturer VARCHAR, time VARCHAR, grid VARCHAR)",
"role": "system"
},
{
"content": "Which Manufacturer has a Time of accident and a Grid greater than 15?",
"role": "user"
},
{
"content": "SELECT manufacturer FROM table_name_61 WHERE time = \"accident\" AND grid > 15",
"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_61 (manufacturer VARCHAR, time VARCHAR, grid VARCHAR)<|im_end|>
<|im_start|>user
Which Manufacturer has a Time of accident and a Grid greater than 15?<|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 (attendance INTEGER, opponent VARCHAR, week VARCHAR)",
"role": "system"
},
{
"content": "What is the highest attendance that has oakland raiders as the opponent, with a week greater than 9?",
"role": "user"
},
{
"content": "SELECT MAX(attendance) FROM table_name_83 WHERE opponent = \"oakland raiders\" AND week > 9",
"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 (attendance INTEGER, opponent VARCHAR, week VARCHAR)<|im_end|>
<|im_start|>user
What is the highest attendance that has oakland raiders as the opponent, with a week greater than 9?<|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_1606824_1 (pop_density_people_km_2 VARCHAR, population__percentage_of_eu VARCHAR)",
"role": "system"
},
{
"content": "Name the population density people where population % eu for 1.7%",
"role": "user"
},
{
"content": "SELECT COUNT(pop_density_people_km_2) FROM table_1606824_1 WHERE population__percentage_of_eu = \"1.7%\"",
"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_1606824_1 (pop_density_people_km_2 VARCHAR, population__percentage_of_eu VARCHAR)<|im_end|>
<|im_start|>user
Name the population density people where population % eu for 1.7%<|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 (player VARCHAR, college VARCHAR)",
"role": "system"
},
{
"content": "Which player went to the college of Western Washington?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_84 WHERE college = \"western washington\"",
"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 (player VARCHAR, college VARCHAR)<|im_end|>
<|im_start|>user
Which player went to the college of Western Washington?<|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_23211041_5 (team VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What team was played on november 24?",
"role": "user"
},
{
"content": "SELECT team FROM table_23211041_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_23211041_5 (team VARCHAR, date VARCHAR)<|im_end|>
<|im_start|>user
What team was played on 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_2 (place VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What place has the score of 67-74=141?",
"role": "user"
},
{
"content": "SELECT place FROM table_name_2 WHERE score = 67 - 74 = 141",
"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 (place VARCHAR, score VARCHAR)<|im_end|>
<|im_start|>user
What place has the score of 67-74=141?<|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_58 (mdt___6_utc_ VARCHAR, edt___4_utc_ VARCHAR, pdt___7_utc_ VARCHAR)",
"role": "system"
},
{
"content": "What time is MDT when EDT is set and PDT is 6:00 a.m.?",
"role": "user"
},
{
"content": "SELECT mdt___6_utc_ FROM table_name_58 WHERE edt___4_utc_ = \"set\" AND pdt___7_utc_ = \"6:00 a.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_name_58 (mdt___6_utc_ VARCHAR, edt___4_utc_ VARCHAR, pdt___7_utc_ VARCHAR)<|im_end|>
<|im_start|>user
What time is MDT when EDT is set and PDT is 6:00 a.m.?<|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 railway (Builder VARCHAR)",
"role": "system"
},
{
"content": "Show different builders of railways, along with the corresponding number of railways using each builder.",
"role": "user"
},
{
"content": "SELECT Builder, COUNT(*) FROM railway GROUP BY Builder",
"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 railway (Builder VARCHAR)<|im_end|>
<|im_start|>user
Show different builders of railways, along with the corresponding number of railways using each builder.<|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_90 (name VARCHAR, pick__number VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "What is the Name of the Quarterback with a Pick # less than 11?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_90 WHERE pick__number < 11 AND position = \"quarterback\"",
"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_90 (name VARCHAR, pick__number VARCHAR, position VARCHAR)<|im_end|>
<|im_start|>user
What is the Name of the Quarterback with a Pick # less than 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_17779448_1 (attendance VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "How many attended game(s) against the boston patriots?",
"role": "user"
},
{
"content": "SELECT attendance FROM table_17779448_1 WHERE opponent = \"Boston Patriots\"",
"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_17779448_1 (attendance VARCHAR, opponent VARCHAR)<|im_end|>
<|im_start|>user
How many attended game(s) against the boston patriots?<|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_17382360_7 (score VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "what is the score in february 12 of the boston celtics team",
"role": "user"
},
{
"content": "SELECT score FROM table_17382360_7 WHERE team = \"Boston Celtics\"",
"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_17382360_7 (score VARCHAR, team VARCHAR)<|im_end|>
<|im_start|>user
what is the score in february 12 of the boston celtics 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_28190534_1 (chassis VARCHAR, entrant VARCHAR)",
"role": "system"
},
{
"content": "Name the chassis for sfacs ecurie france",
"role": "user"
},
{
"content": "SELECT chassis FROM table_28190534_1 WHERE entrant = \"SFACS Ecurie France\"",
"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_28190534_1 (chassis VARCHAR, entrant VARCHAR)<|im_end|>
<|im_start|>user
Name the chassis for sfacs ecurie france<|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_1341598_44 (first_elected INTEGER, candidates VARCHAR)",
"role": "system"
},
{
"content": "What year were the election results tom loeffler (r) 80.6% joe sullivan (d) 19.4%?",
"role": "user"
},
{
"content": "SELECT MIN(first_elected) FROM table_1341598_44 WHERE candidates = \"Tom Loeffler (R) 80.6% Joe Sullivan (D) 19.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_1341598_44 (first_elected INTEGER, candidates VARCHAR)<|im_end|>
<|im_start|>user
What year were the election results tom loeffler (r) 80.6% joe sullivan (d) 19.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_93 (author VARCHAR, company VARCHAR)",
"role": "system"
},
{
"content": "Which Author's Company is Ruth Kanner Theatre Group?",
"role": "user"
},
{
"content": "SELECT author FROM table_name_93 WHERE company = \"ruth kanner theatre group\"",
"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_93 (author VARCHAR, company VARCHAR)<|im_end|>
<|im_start|>user
Which Author's Company is Ruth Kanner Theatre Group?<|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 (crowd VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What is the listed crowd at junction oval?",
"role": "user"
},
{
"content": "SELECT crowd FROM table_name_54 WHERE venue = \"junction oval\"",
"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 (crowd VARCHAR, venue VARCHAR)<|im_end|>
<|im_start|>user
What is the listed crowd at junction oval?<|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_55 (isbn_us VARCHAR, title VARCHAR)",
"role": "system"
},
{
"content": "What is ISBN US, when Title is \"Mission To Venus\"?",
"role": "user"
},
{
"content": "SELECT isbn_us FROM table_name_55 WHERE title = \"mission to venus\"",
"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_55 (isbn_us VARCHAR, title VARCHAR)<|im_end|>
<|im_start|>user
What is ISBN US, when Title is "Mission To Venus"?<|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_13 (competition VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is Competition, when Date is \"1999-08-07\"?",
"role": "user"
},
{
"content": "SELECT competition FROM table_name_13 WHERE date = \"1999-08-07\"",
"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_13 (competition VARCHAR, date VARCHAR)<|im_end|>
<|im_start|>user
What is Competition, when Date is "1999-08-07"?<|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 player (Player_name VARCHAR, gender VARCHAR, Player_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR, Starting_year INTEGER); CREATE TABLE coach (Coach_ID VARCHAR)",
"role": "system"
},
{
"content": "Show the names and genders of players with a coach starting after 2011.",
"role": "user"
},
{
"content": "SELECT T3.Player_name, T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T1.Starting_year > 2011",
"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 player (Player_name VARCHAR, gender VARCHAR, Player_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR, Starting_year INTEGER); CREATE TABLE coach (Coach_ID VARCHAR)<|im_end|>
<|im_start|>user
Show the names and genders of players with a coach starting after 2011.<|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_80 (lane INTEGER, heat VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is the average lane racheal nachula has when the heat is less than 2?",
"role": "user"
},
{
"content": "SELECT AVG(lane) FROM table_name_80 WHERE heat < 2 AND name = \"racheal nachula\"",
"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_80 (lane INTEGER, heat VARCHAR, name VARCHAR)<|im_end|>
<|im_start|>user
What is the average lane racheal nachula has when the heat is less than 2?<|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 (record VARCHAR, attendance INTEGER)",
"role": "system"
},
{
"content": "Which record has an attendance larger than 28,459?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_43 WHERE attendance > 28 OFFSET 459",
"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 (record VARCHAR, attendance INTEGER)<|im_end|>
<|im_start|>user
Which record has an attendance larger than 28,459?<|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 (rank INTEGER, country VARCHAR)",
"role": "system"
},
{
"content": "Which highest rank belongs to the palestinian territories?",
"role": "user"
},
{
"content": "SELECT MAX(rank) FROM table_name_85 WHERE country = \"palestinian territories\"",
"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 (rank INTEGER, country VARCHAR)<|im_end|>
<|im_start|>user
Which highest rank belongs to the palestinian territories?<|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 (city VARCHAR, first_season_of_current_spell_in_segunda_división INTEGER)",
"role": "system"
},
{
"content": "Which city has a First season of current spell in Segunda División smaller than 2013?",
"role": "user"
},
{
"content": "SELECT city FROM table_name_69 WHERE first_season_of_current_spell_in_segunda_división < 2013",
"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 (city VARCHAR, first_season_of_current_spell_in_segunda_división INTEGER)<|im_end|>
<|im_start|>user
Which city has a First season of current spell in Segunda División smaller than 2013?<|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_17 (fcc_info VARCHAR, call_sign VARCHAR)",
"role": "system"
},
{
"content": "Name the FCC info for call sign of w279at",
"role": "user"
},
{
"content": "SELECT fcc_info FROM table_name_17 WHERE call_sign = \"w279at\"",
"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_17 (fcc_info VARCHAR, call_sign VARCHAR)<|im_end|>
<|im_start|>user
Name the FCC info for call sign of w279at<|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 (commissioned VARCHAR, builder VARCHAR)",
"role": "system"
},
{
"content": "when was it commissioned when the destroyer was built by scotts, greenock?",
"role": "user"
},
{
"content": "SELECT commissioned FROM table_name_88 WHERE builder = \"scotts, greenock\"",
"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 (commissioned VARCHAR, builder VARCHAR)<|im_end|>
<|im_start|>user
when was it commissioned when the destroyer was built by scotts, greenock?<|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_24501530_1 (candidate VARCHAR, hometown VARCHAR)",
"role": "system"
},
{
"content": "What is the name of the player from Maylands, Western Australia?",
"role": "user"
},
{
"content": "SELECT candidate FROM table_24501530_1 WHERE hometown = \"Maylands, Western 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_24501530_1 (candidate VARCHAR, hometown VARCHAR)<|im_end|>
<|im_start|>user
What is the name of the player from Maylands, Western 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_16439764_1 (shell__lb_ VARCHAR, gun VARCHAR)",
"role": "system"
},
{
"content": "If the gun used is the qf 12 pdr 12 cwt, what is the shell weight?",
"role": "user"
},
{
"content": "SELECT shell__lb_ FROM table_16439764_1 WHERE gun = \"QF 12 pdr 12 cwt\"",
"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_16439764_1 (shell__lb_ VARCHAR, gun VARCHAR)<|im_end|>
<|im_start|>user
If the gun used is the qf 12 pdr 12 cwt, what is the shell weight?<|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_37 (date VARCHAR, circuit VARCHAR)",
"role": "system"
},
{
"content": "On what Date is the Circuit at Sandown Raceway?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_37 WHERE circuit = \"sandown raceway\"",
"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_37 (date VARCHAR, circuit VARCHAR)<|im_end|>
<|im_start|>user
On what Date is the Circuit at Sandown Raceway?<|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_63 (location_attendance VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is Location Attendance, when Date is \"December 30\"?",
"role": "user"
},
{
"content": "SELECT location_attendance FROM table_name_63 WHERE date = \"december 30\"",
"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_63 (location_attendance VARCHAR, date VARCHAR)<|im_end|>
<|im_start|>user
What is Location Attendance, when Date is "December 30"?<|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 (city VARCHAR, iata VARCHAR)",
"role": "system"
},
{
"content": "PER is the IATA for which city?",
"role": "user"
},
{
"content": "SELECT city FROM table_name_84 WHERE iata = \"per\"",
"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 (city VARCHAR, iata VARCHAR)<|im_end|>
<|im_start|>user
PER is the IATA for which city?<|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_11960196_3 (high_points VARCHAR, location_attendance VARCHAR)",
"role": "system"
},
{
"content": "How many high points were at the wachovia center 18,347?",
"role": "user"
},
{
"content": "SELECT COUNT(high_points) FROM table_11960196_3 WHERE location_attendance = \"Wachovia Center 18,347\"",
"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_11960196_3 (high_points VARCHAR, location_attendance VARCHAR)<|im_end|>
<|im_start|>user
How many high points were at the wachovia center 18,347?<|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_8 (name VARCHAR, total VARCHAR)",
"role": "system"
},
{
"content": "Which player has a total of 8 (24)?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_8 WHERE total = \"8 (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_name_8 (name VARCHAR, total VARCHAR)<|im_end|>
<|im_start|>user
Which player has a total of 8 (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_39 (mascot VARCHAR, _number___county VARCHAR)",
"role": "system"
},
{
"content": "what's the mascot for 66 pulaski 2?",
"role": "user"
},
{
"content": "SELECT mascot FROM table_name_39 WHERE _number___county = \"66 pulaski 2\"",
"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 (mascot VARCHAR, _number___county VARCHAR)<|im_end|>
<|im_start|>user
what's the mascot for 66 pulaski 2?<|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 (total INTEGER, year_s__won VARCHAR)",
"role": "system"
},
{
"content": "Name the average total for years won of 1975",
"role": "user"
},
{
"content": "SELECT AVG(total) FROM table_name_47 WHERE year_s__won = \"1975\"",
"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 (total INTEGER, year_s__won VARCHAR)<|im_end|>
<|im_start|>user
Name the average total for years won of 1975<|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_21 (score VARCHAR, country VARCHAR, place VARCHAR)",
"role": "system"
},
{
"content": "What did United States score in the place t6?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_21 WHERE country = \"united states\" AND place = \"t6\"",
"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_21 (score VARCHAR, country VARCHAR, place VARCHAR)<|im_end|>
<|im_start|>user
What did United States score in the place t6?<|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_98 (team VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What team has a Score of l 88–94 (ot)?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_98 WHERE score = \"l 88–94 (ot)\"",
"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_98 (team VARCHAR, score VARCHAR)<|im_end|>
<|im_start|>user
What team has a Score of l 88–94 (ot)?<|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_18963843_1 (_percentage_asian_american VARCHAR, indian_american_population__2010_ VARCHAR)",
"role": "system"
},
{
"content": "Name the % asian american for 23526",
"role": "user"
},
{
"content": "SELECT _percentage_asian_american FROM table_18963843_1 WHERE indian_american_population__2010_ = 23526",
"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_18963843_1 (_percentage_asian_american VARCHAR, indian_american_population__2010_ VARCHAR)<|im_end|>
<|im_start|>user
Name the % asian american for 23526<|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 Project_Staff (date_from VARCHAR, date_to VARCHAR, role_code VARCHAR)",
"role": "system"
},
{
"content": "When do all the researcher role staff start to work, and when do they stop working?",
"role": "user"
},
{
"content": "SELECT date_from, date_to FROM Project_Staff WHERE role_code = 'researcher'",
"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 Project_Staff (date_from VARCHAR, date_to VARCHAR, role_code VARCHAR)<|im_end|>
<|im_start|>user
When do all the researcher role staff start to work, and when do they stop working?<|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_32 (position VARCHAR, win__number VARCHAR, winner VARCHAR)",
"role": "system"
},
{
"content": "What position for doug gibson with 2 wins?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_32 WHERE win__number = 2 AND winner = \"doug gibson\"",
"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_32 (position VARCHAR, win__number VARCHAR, winner VARCHAR)<|im_end|>
<|im_start|>user
What position for doug gibson with 2 wins?<|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 (location VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Which Location has a Record of 0-1?",
"role": "user"
},
{
"content": "SELECT location FROM table_name_59 WHERE record = \"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_59 (location VARCHAR, record VARCHAR)<|im_end|>
<|im_start|>user
Which Location has a Record of 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_name_50 (october INTEGER, record VARCHAR)",
"role": "system"
},
{
"content": "WHich October has a Record of 1–0–0?",
"role": "user"
},
{
"content": "SELECT MIN(october) FROM table_name_50 WHERE record = \"1–0–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_50 (october INTEGER, record VARCHAR)<|im_end|>
<|im_start|>user
WHich October has a Record of 1–0–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_76 (away_team VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "Who is the away team against the home team Ashington?",
"role": "user"
},
{
"content": "SELECT away_team FROM table_name_76 WHERE home_team = \"ashington\"",
"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 (away_team VARCHAR, home_team VARCHAR)<|im_end|>
<|im_start|>user
Who is the away team against the home team Ashington?<|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_42 (almaty_ VARCHAR, _kazakhstan VARCHAR, sergey_filimonov___kaz__ VARCHAR)",
"role": "system"
},
{
"content": "What is the Almaty, Kazakhstan when the Sergey Filimonov (KAZ) is 210kg?",
"role": "user"
},
{
"content": "SELECT almaty_, _kazakhstan FROM table_name_42 WHERE sergey_filimonov___kaz__ = \"210kg\"",
"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_42 (almaty_ VARCHAR, _kazakhstan VARCHAR, sergey_filimonov___kaz__ VARCHAR)<|im_end|>
<|im_start|>user
What is the Almaty, Kazakhstan when the Sergey Filimonov (KAZ) is 210kg?<|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_67 (pick__number VARCHAR, college VARCHAR)",
"role": "system"
},
{
"content": "How many picks did the College of USC wind up getting?",
"role": "user"
},
{
"content": "SELECT COUNT(pick__number) FROM table_name_67 WHERE college = \"usc\"",
"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_67 (pick__number VARCHAR, college VARCHAR)<|im_end|>
<|im_start|>user
How many picks did the College of USC wind up getting?<|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 products (product_name VARCHAR, product_price VARCHAR, product_id VARCHAR); CREATE TABLE regular_order_products (product_id VARCHAR)",
"role": "system"
},
{
"content": "Find the name and price of the product that has been ordered the greatest number of times.",
"role": "user"
},
{
"content": "SELECT t1.product_name, t1.product_price FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id GROUP BY t2.product_id 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 products (product_name VARCHAR, product_price VARCHAR, product_id VARCHAR); CREATE TABLE regular_order_products (product_id VARCHAR)<|im_end|>
<|im_start|>user
Find the name and price of the product that has been ordered the greatest number of times.<|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_1217448_1 (cover_date VARCHAR, character_s_ VARCHAR)",
"role": "system"
},
{
"content": " what's the cover date where character(s) is x-men ; magneto",
"role": "user"
},
{
"content": "SELECT cover_date FROM table_1217448_1 WHERE character_s_ = \"X-Men ; Magneto\"",
"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_1217448_1 (cover_date VARCHAR, character_s_ VARCHAR)<|im_end|>
<|im_start|>user
what's the cover date where character(s) is x-men ; magneto<|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_31 (player VARCHAR, place VARCHAR)",
"role": "system"
},
{
"content": "Which Player has a Place of t2?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_31 WHERE place = \"t2\"",
"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_31 (player VARCHAR, place VARCHAR)<|im_end|>
<|im_start|>user
Which Player has a Place of t2?<|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_28846752_13 (economy VARCHAR, bbi VARCHAR)",
"role": "system"
},
{
"content": "How many economy stats for the player with 2/19 BBI?",
"role": "user"
},
{
"content": "SELECT COUNT(economy) FROM table_28846752_13 WHERE bbi = \"2/19\"",
"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_28846752_13 (economy VARCHAR, bbi VARCHAR)<|im_end|>
<|im_start|>user
How many economy stats for the player with 2/19 BBI?<|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 (fa_cup INTEGER, malaysia_cup INTEGER)",
"role": "system"
},
{
"content": "What is the lowest number of FA cups associated with 0 malaysia cups?",
"role": "user"
},
{
"content": "SELECT MIN(fa_cup) FROM table_name_69 WHERE malaysia_cup < 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_69 (fa_cup INTEGER, malaysia_cup INTEGER)<|im_end|>
<|im_start|>user
What is the lowest number of FA cups associated with 0 malaysia cups?<|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_55 (province VARCHAR, election INTEGER)",
"role": "system"
},
{
"content": "What province has an election after 2009?",
"role": "user"
},
{
"content": "SELECT province FROM table_name_55 WHERE election > 2009",
"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_55 (province VARCHAR, election INTEGER)<|im_end|>
<|im_start|>user
What province has an election after 2009?<|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_57 (home_team VARCHAR, round VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "What is the name of the home team with a round of 2nd and Vitória da Conquista as the way team?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_57 WHERE round = \"2nd\" AND away_team = \"vitória da conquista\"",
"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_57 (home_team VARCHAR, round VARCHAR, away_team VARCHAR)<|im_end|>
<|im_start|>user
What is the name of the home team with a round of 2nd and Vitória da Conquista as the way 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_43 (february INTEGER, opponent VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "What is the highest Feb value having an opponent of the Philadelphia Flyers and is after game 63?",
"role": "user"
},
{
"content": "SELECT MAX(february) FROM table_name_43 WHERE opponent = \"philadelphia flyers\" AND game > 63",
"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 (february INTEGER, opponent VARCHAR, game VARCHAR)<|im_end|>
<|im_start|>user
What is the highest Feb value having an opponent of the Philadelphia Flyers and is after game 63?<|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_80 (date VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "What is the date of the game with 38,062 people in attendance?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_80 WHERE attendance = \"38,062\"",
"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_80 (date VARCHAR, attendance VARCHAR)<|im_end|>
<|im_start|>user
What is the date of the game with 38,062 people in attendance?<|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 (year VARCHAR, team VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "How many years did Team Newman/Haas Racing receive a 1st place ranking?",
"role": "user"
},
{
"content": "SELECT COUNT(year) FROM table_name_86 WHERE team = \"newman/haas racing\" AND rank = \"1st\"",
"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 (year VARCHAR, team VARCHAR, rank VARCHAR)<|im_end|>
<|im_start|>user
How many years did Team Newman/Haas Racing receive a 1st place ranking?<|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 (points VARCHAR, chassis VARCHAR)",
"role": "system"
},
{
"content": "How many points for the simtek s951 chassis?",
"role": "user"
},
{
"content": "SELECT COUNT(points) FROM table_name_92 WHERE chassis = \"simtek s951\"",
"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 (points VARCHAR, chassis VARCHAR)<|im_end|>
<|im_start|>user
How many points for the simtek s951 chassis?<|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_10236830_4 (nomination VARCHAR, director VARCHAR)",
"role": "system"
},
{
"content": "Srdjan Dragojevic worked on a film which earned what nomination?",
"role": "user"
},
{
"content": "SELECT nomination FROM table_10236830_4 WHERE director = \"Srdjan Dragojevic\"",
"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_10236830_4 (nomination VARCHAR, director VARCHAR)<|im_end|>
<|im_start|>user
Srdjan Dragojevic worked on a film which earned what nomination?<|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_10650711_1 (pick__number INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "what is the maximum pick # where player is anthony blaylock",
"role": "user"
},
{
"content": "SELECT MAX(pick__number) FROM table_10650711_1 WHERE player = \"Anthony Blaylock\"",
"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_10650711_1 (pick__number INTEGER, player VARCHAR)<|im_end|>
<|im_start|>user
what is the maximum pick # where player is anthony blaylock<|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_58 (tournament VARCHAR)",
"role": "system"
},
{
"content": "What french open tournament happened in 2010 and has a 2004 1r?",
"role": "user"
},
{
"content": "SELECT 2010 FROM table_name_58 WHERE 2004 = \"1r\" AND tournament = \"french open\"",
"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_58 (tournament VARCHAR)<|im_end|>
<|im_start|>user
What french open tournament happened in 2010 and has a 2004 1r?<|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_10 (home_team VARCHAR, score VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "What home team has a score of 2–1, when the away team was Telford United?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_10 WHERE score = \"2–1\" AND away_team = \"telford united\"",
"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_10 (home_team VARCHAR, score VARCHAR, away_team VARCHAR)<|im_end|>
<|im_start|>user
What home team has a score of 2–1, when the away team was Telford United?<|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 (career_with_the_franchise_ VARCHAR, b_ VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is Career with the franchise [b ], when Player is \"Willie Anderson Category:Articles with hCards\"?",
"role": "user"
},
{
"content": "SELECT career_with_the_franchise_[b_] FROM table_name_59 WHERE player = \"willie anderson category:articles with hcards\"",
"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 (career_with_the_franchise_ VARCHAR, b_ VARCHAR, player VARCHAR)<|im_end|>
<|im_start|>user
What is Career with the franchise [b ], when Player is "Willie Anderson Category:Articles with hCards"?<|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_96 (title VARCHAR, language VARCHAR, network VARCHAR)",
"role": "system"
},
{
"content": "What is the title for the Korean progran on KBS2?",
"role": "user"
},
{
"content": "SELECT title FROM table_name_96 WHERE language = \"korean\" AND network = \"kbs2\"",
"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_96 (title VARCHAR, language VARCHAR, network VARCHAR)<|im_end|>
<|im_start|>user
What is the title for the Korean progran on KBS2?<|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_15621965_16 (nationality VARCHAR, school_club_team VARCHAR)",
"role": "system"
},
{
"content": "What is the nationality of th player who's school is Clemson?",
"role": "user"
},
{
"content": "SELECT nationality FROM table_15621965_16 WHERE school_club_team = \"Clemson\"",
"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_15621965_16 (nationality VARCHAR, school_club_team VARCHAR)<|im_end|>
<|im_start|>user
What is the nationality of th player who's school is Clemson?<|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 (ryuji_hijikata VARCHAR, taka_michinoku VARCHAR)",
"role": "system"
},
{
"content": "Tell me the Ryuji Hijikata for TAKA Michinoku of Hayashi (28:05)",
"role": "user"
},
{
"content": "SELECT ryuji_hijikata FROM table_name_39 WHERE taka_michinoku = \"hayashi (28:05)\"",
"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 (ryuji_hijikata VARCHAR, taka_michinoku VARCHAR)<|im_end|>
<|im_start|>user
Tell me the Ryuji Hijikata for TAKA Michinoku of Hayashi (28:05)<|im_end|>
|