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_25042332_26 (region VARCHAR, none VARCHAR)",
"role": "system"
},
{
"content": "Which region has 0.6% none?",
"role": "user"
},
{
"content": "SELECT region FROM table_25042332_26 WHERE none = \"0.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_25042332_26 (region VARCHAR, none VARCHAR)<|im_end|>
<|im_start|>user
Which region has 0.6% none?<|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_24853015_1 (round VARCHAR, class_d_winner VARCHAR, class_b_winner VARCHAR)",
"role": "system"
},
{
"content": "In which round did Roy Salvadori won Class D and Alan Hutcheson won Class B?",
"role": "user"
},
{
"content": "SELECT round FROM table_24853015_1 WHERE class_d_winner = \"Roy Salvadori\" AND class_b_winner = \"Alan Hutcheson\"",
"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_24853015_1 (round VARCHAR, class_d_winner VARCHAR, class_b_winner VARCHAR)<|im_end|>
<|im_start|>user
In which round did Roy Salvadori won Class D and Alan Hutcheson won Class B?<|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 (date VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "I want to know the date with attendance of 35,763",
"role": "user"
},
{
"content": "SELECT date FROM table_name_88 WHERE attendance = \"35,763\"",
"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 (date VARCHAR, attendance VARCHAR)<|im_end|>
<|im_start|>user
I want to know the date with attendance of 35,763<|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_46 (replica VARCHAR, race VARCHAR)",
"role": "system"
},
{
"content": "What Replica has a race of supersport race 1?",
"role": "user"
},
{
"content": "SELECT replica FROM table_name_46 WHERE race = \"supersport race 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_46 (replica VARCHAR, race VARCHAR)<|im_end|>
<|im_start|>user
What Replica has a race of supersport race 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_26519486_1 (area__km²_ VARCHAR, languages VARCHAR)",
"role": "system"
},
{
"content": "Name the area for german",
"role": "user"
},
{
"content": "SELECT area__km²_ FROM table_26519486_1 WHERE languages = \"German\"",
"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_26519486_1 (area__km²_ VARCHAR, languages VARCHAR)<|im_end|>
<|im_start|>user
Name the area for german<|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 (home VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Who was at Home when the Score was 13-19?",
"role": "user"
},
{
"content": "SELECT home FROM table_name_83 WHERE score = \"13-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_name_83 (home VARCHAR, score VARCHAR)<|im_end|>
<|im_start|>user
Who was at Home when the Score was 13-19?<|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_29747178_2 (title VARCHAR, series__number VARCHAR)",
"role": "system"
},
{
"content": "What is the title when the series # is 7?",
"role": "user"
},
{
"content": "SELECT title FROM table_29747178_2 WHERE series__number = 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_29747178_2 (title VARCHAR, series__number VARCHAR)<|im_end|>
<|im_start|>user
What is the title when the series # is 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_75 (date VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "What is the Date of the Competition with a Result of 3–0?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_75 WHERE result = \"3–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_75 (date VARCHAR, result VARCHAR)<|im_end|>
<|im_start|>user
What is the Date of the Competition with a Result of 3–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_1301373_7 (Vice VARCHAR, captain VARCHAR, club VARCHAR)",
"role": "system"
},
{
"content": "Name the vice captain for melbourne victory",
"role": "user"
},
{
"content": "SELECT Vice - captain FROM table_1301373_7 WHERE club = \"Melbourne Victory\"",
"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_1301373_7 (Vice VARCHAR, captain VARCHAR, club VARCHAR)<|im_end|>
<|im_start|>user
Name the vice captain for melbourne victory<|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 (player VARCHAR, pick VARCHAR)",
"role": "system"
},
{
"content": "Which player is it that has a pick of 147?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_22 WHERE pick = \"147\"",
"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 (player VARCHAR, pick VARCHAR)<|im_end|>
<|im_start|>user
Which player is it that has a pick of 147?<|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 market (Number_cities INTEGER, Market_ID VARCHAR); CREATE TABLE film_market_estimation (Market_ID VARCHAR, Low_Estimate INTEGER)",
"role": "system"
},
{
"content": "What is the average number of cities of markets with low film market estimate bigger than 10000?",
"role": "user"
},
{
"content": "SELECT AVG(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T1.Low_Estimate > 10000",
"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 market (Number_cities INTEGER, Market_ID VARCHAR); CREATE TABLE film_market_estimation (Market_ID VARCHAR, Low_Estimate INTEGER)<|im_end|>
<|im_start|>user
What is the average number of cities of markets with low film market estimate bigger than 10000?<|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_65 (college VARCHAR, pick VARCHAR, pba_team VARCHAR)",
"role": "system"
},
{
"content": "What is the College of the Player from PBA Team Alaska Milkmen with a Pick number of 3 or less?",
"role": "user"
},
{
"content": "SELECT college FROM table_name_65 WHERE pick < 3 AND pba_team = \"alaska milkmen\"",
"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_65 (college VARCHAR, pick VARCHAR, pba_team VARCHAR)<|im_end|>
<|im_start|>user
What is the College of the Player from PBA Team Alaska Milkmen with a Pick number of 3 or less?<|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 (company_or_product_name VARCHAR, episode VARCHAR, investing_dragon_s_ VARCHAR)",
"role": "system"
},
{
"content": "What is the name of the Company or Product that is Episode 3 and is suppoted by Investing Dragon Deborah Meaden?",
"role": "user"
},
{
"content": "SELECT company_or_product_name FROM table_name_83 WHERE episode = \"episode 3\" AND investing_dragon_s_ = \"deborah meaden\"",
"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 (company_or_product_name VARCHAR, episode VARCHAR, investing_dragon_s_ VARCHAR)<|im_end|>
<|im_start|>user
What is the name of the Company or Product that is Episode 3 and is suppoted by Investing Dragon Deborah Meaden?<|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_7 (avg VARCHAR, long VARCHAR)",
"role": "system"
},
{
"content": "What is the average for the RB with an 8 yard long?",
"role": "user"
},
{
"content": "SELECT COUNT(avg) FROM table_name_7 WHERE long = 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_7 (avg VARCHAR, long VARCHAR)<|im_end|>
<|im_start|>user
What is the average for the RB with an 8 yard long?<|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 (agg VARCHAR)",
"role": "system"
},
{
"content": "What was the 1st leg of the match that had an aggregate of 4-3?",
"role": "user"
},
{
"content": "SELECT 1 AS st_leg FROM table_name_11 WHERE agg = \"4-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_11 (agg VARCHAR)<|im_end|>
<|im_start|>user
What was the 1st leg of the match that had an aggregate of 4-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_22 (race_name VARCHAR, dist__miles_ VARCHAR, runner_up VARCHAR)",
"role": "system"
},
{
"content": "Which race had a distance of 4 miles where the runner-up was not known?",
"role": "user"
},
{
"content": "SELECT race_name FROM table_name_22 WHERE dist__miles_ = \"4\" AND runner_up = \"not known\"",
"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 (race_name VARCHAR, dist__miles_ VARCHAR, runner_up VARCHAR)<|im_end|>
<|im_start|>user
Which race had a distance of 4 miles where the runner-up was not known?<|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_45 (cuts_made VARCHAR, top_5 VARCHAR, events VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of cuts made when the top-5 is 2, and there are 12 events?",
"role": "user"
},
{
"content": "SELECT COUNT(cuts_made) FROM table_name_45 WHERE top_5 = 2 AND events = 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_name_45 (cuts_made VARCHAR, top_5 VARCHAR, events VARCHAR)<|im_end|>
<|im_start|>user
What is the sum of cuts made when the top-5 is 2, and there are 12 events?<|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_11214772_1 (semi_finalist__number1 VARCHAR, runner_up VARCHAR)",
"role": "system"
},
{
"content": " who is the semi-finalist #1 where runner-up is elon university",
"role": "user"
},
{
"content": "SELECT semi_finalist__number1 FROM table_11214772_1 WHERE runner_up = \"Elon University\"",
"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_11214772_1 (semi_finalist__number1 VARCHAR, runner_up VARCHAR)<|im_end|>
<|im_start|>user
who is the semi-finalist #1 where runner-up is elon university<|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 (year VARCHAR, engine_code VARCHAR)",
"role": "system"
},
{
"content": "From what year is the engine with engine code M57D30?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_21 WHERE engine_code = \"m57d30\"",
"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 (year VARCHAR, engine_code VARCHAR)<|im_end|>
<|im_start|>user
From what year is the engine with engine code M57D30?<|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_53 (away_team VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "What was the away team that played against home team Leatherhead?",
"role": "user"
},
{
"content": "SELECT away_team FROM table_name_53 WHERE home_team = \"leatherhead\"",
"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_53 (away_team VARCHAR, home_team VARCHAR)<|im_end|>
<|im_start|>user
What was the away team that played against home team Leatherhead?<|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 VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "what is the date when the venue is junction oval?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_47 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_47 (date VARCHAR, venue VARCHAR)<|im_end|>
<|im_start|>user
what is the date when the venue is 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_29002641_1 (into_service VARCHAR, number VARCHAR)",
"role": "system"
},
{
"content": "Name the into service for dh1",
"role": "user"
},
{
"content": "SELECT into_service FROM table_29002641_1 WHERE number = \"DH1\"",
"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_29002641_1 (into_service VARCHAR, number VARCHAR)<|im_end|>
<|im_start|>user
Name the into service for dh1<|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 (date VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "When was the game at Collingwood?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_59 WHERE away_team = \"collingwood\"",
"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 (date VARCHAR, away_team VARCHAR)<|im_end|>
<|im_start|>user
When was the game at Collingwood?<|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 (home_team VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What did the Victoria park home team score?",
"role": "user"
},
{
"content": "SELECT home_team AS score FROM table_name_1 WHERE venue = \"victoria park\"",
"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 (home_team VARCHAR, venue VARCHAR)<|im_end|>
<|im_start|>user
What did the Victoria park home 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_14 (peak VARCHAR, project_name VARCHAR)",
"role": "system"
},
{
"content": "What is the Peak with a Project Name that is talakan ph 1?",
"role": "user"
},
{
"content": "SELECT peak FROM table_name_14 WHERE project_name = \"talakan ph 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_14 (peak VARCHAR, project_name VARCHAR)<|im_end|>
<|im_start|>user
What is the Peak with a Project Name that is talakan ph 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_58 (team_1 VARCHAR)",
"role": "system"
},
{
"content": "What is the 1st leg when team 1 is Chelsea?",
"role": "user"
},
{
"content": "SELECT 1 AS st_leg FROM table_name_58 WHERE team_1 = \"chelsea\"",
"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 (team_1 VARCHAR)<|im_end|>
<|im_start|>user
What is the 1st leg when team 1 is Chelsea?<|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 (result_score VARCHAR, match_report VARCHAR, week VARCHAR)",
"role": "system"
},
{
"content": "What is the result/score for the match report recap on week 14?",
"role": "user"
},
{
"content": "SELECT result_score FROM table_name_25 WHERE match_report = \"recap\" AND week = 14",
"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 (result_score VARCHAR, match_report VARCHAR, week VARCHAR)<|im_end|>
<|im_start|>user
What is the result/score for the match report recap on week 14?<|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 (to_par VARCHAR, score INTEGER)",
"role": "system"
},
{
"content": "Which To par has a Score larger than 68?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_42 WHERE score > 68",
"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 (to_par VARCHAR, score INTEGER)<|im_end|>
<|im_start|>user
Which To par has a Score larger than 68?<|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 (verb VARCHAR)",
"role": "system"
},
{
"content": "What is the 2nd verb for Khola?",
"role": "user"
},
{
"content": "SELECT 2 AS __f_ FROM table_name_34 WHERE verb = \"khola\"",
"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 (verb VARCHAR)<|im_end|>
<|im_start|>user
What is the 2nd verb for Khola?<|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 (grid VARCHAR, driver VARCHAR, laps VARCHAR, time_retired VARCHAR)",
"role": "system"
},
{
"content": "what is the grid when the laps is more than 0, the time/retired is engine and the driver is pedro de la rosa?",
"role": "user"
},
{
"content": "SELECT grid FROM table_name_5 WHERE laps > 0 AND time_retired = \"engine\" AND driver = \"pedro de la rosa\"",
"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 (grid VARCHAR, driver VARCHAR, laps VARCHAR, time_retired VARCHAR)<|im_end|>
<|im_start|>user
what is the grid when the laps is more than 0, the time/retired is engine and the driver is pedro de la rosa?<|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_3 (opponent VARCHAR, round VARCHAR, event VARCHAR)",
"role": "system"
},
{
"content": "Which Opponent has a Round larger than 1, and an Event of king of the cage 31?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_3 WHERE round > 1 AND event = \"king of the cage 31\"",
"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_3 (opponent VARCHAR, round VARCHAR, event VARCHAR)<|im_end|>
<|im_start|>user
Which Opponent has a Round larger than 1, and an Event of king of the cage 31?<|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 (bandwidth_included VARCHAR, internet_plan VARCHAR)",
"role": "system"
},
{
"content": "What is Bandwidth Included, when Internet Plan is \"8mb\"?",
"role": "user"
},
{
"content": "SELECT bandwidth_included FROM table_name_85 WHERE internet_plan = \"8mb\"",
"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 (bandwidth_included VARCHAR, internet_plan VARCHAR)<|im_end|>
<|im_start|>user
What is Bandwidth Included, when Internet Plan is "8mb"?<|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_26 (time VARCHAR, athlete VARCHAR)",
"role": "system"
},
{
"content": "What was Law Hiu Fung's time?",
"role": "user"
},
{
"content": "SELECT time FROM table_name_26 WHERE athlete = \"law hiu fung\"",
"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_26 (time VARCHAR, athlete VARCHAR)<|im_end|>
<|im_start|>user
What was Law Hiu Fung's 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_name_39 (to_par VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "What is the To par of the Player from Argentina?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_39 WHERE country = \"argentina\"",
"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 (to_par VARCHAR, country VARCHAR)<|im_end|>
<|im_start|>user
What is the To par of the Player from Argentina?<|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 (position VARCHAR, pick VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What was the position of the player picked after 94, by the Boston Patriots?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_96 WHERE pick > 94 AND team = \"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_name_96 (position VARCHAR, pick VARCHAR, team VARCHAR)<|im_end|>
<|im_start|>user
What was the position of the player picked after 94, by 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_14871601_1 (losses INTEGER, team VARCHAR)",
"role": "system"
},
{
"content": "What is the largest loss for the Tacuary team?",
"role": "user"
},
{
"content": "SELECT MAX(losses) FROM table_14871601_1 WHERE team = \"Tacuary\"",
"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_14871601_1 (losses INTEGER, team VARCHAR)<|im_end|>
<|im_start|>user
What is the largest loss for the Tacuary 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_80 (swimming VARCHAR, tennis VARCHAR, indoor_track VARCHAR, soccer VARCHAR)",
"role": "system"
},
{
"content": "What is th eswimming status for the school that has yes on indoor track, soccer and tennis?",
"role": "user"
},
{
"content": "SELECT swimming FROM table_name_80 WHERE indoor_track = \"yes\" AND soccer = \"yes\" AND tennis = \"yes\"",
"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 (swimming VARCHAR, tennis VARCHAR, indoor_track VARCHAR, soccer VARCHAR)<|im_end|>
<|im_start|>user
What is th eswimming status for the school that has yes on indoor track, soccer and tennis?<|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 (high_assists VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What are the High assists for February 2?",
"role": "user"
},
{
"content": "SELECT high_assists FROM table_name_12 WHERE date = \"february 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_12 (high_assists VARCHAR, date VARCHAR)<|im_end|>
<|im_start|>user
What are the High assists for February 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_88 (natural_change VARCHAR, crude_death_rate__per_1000_ VARCHAR, deaths VARCHAR)",
"role": "system"
},
{
"content": "Which Natural change has a Crude death rate (per 1000) larger than 9, and Deaths of 40 399?",
"role": "user"
},
{
"content": "SELECT natural_change FROM table_name_88 WHERE crude_death_rate__per_1000_ > 9 AND deaths = \"40 399\"",
"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 (natural_change VARCHAR, crude_death_rate__per_1000_ VARCHAR, deaths VARCHAR)<|im_end|>
<|im_start|>user
Which Natural change has a Crude death rate (per 1000) larger than 9, and Deaths of 40 399?<|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_28068063_3 (proceed_to_quarter_final VARCHAR, eliminated_from_competition VARCHAR)",
"role": "system"
},
{
"content": "Who proceeded to the quarter final when the london irish were eliminated from competition?",
"role": "user"
},
{
"content": "SELECT proceed_to_quarter_final FROM table_28068063_3 WHERE eliminated_from_competition = \"London Irish\"",
"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_28068063_3 (proceed_to_quarter_final VARCHAR, eliminated_from_competition VARCHAR)<|im_end|>
<|im_start|>user
Who proceeded to the quarter final when the london irish were eliminated from competition?<|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 (date VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "What is the date where the round is R3?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_40 WHERE round = \"r3\"",
"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 (date VARCHAR, round VARCHAR)<|im_end|>
<|im_start|>user
What is the date where the round is R3?<|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 Rooms (roomName VARCHAR, basePrice VARCHAR)",
"role": "system"
},
{
"content": "List the name of all rooms sorted by their prices.",
"role": "user"
},
{
"content": "SELECT roomName FROM Rooms ORDER BY basePrice",
"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 Rooms (roomName VARCHAR, basePrice VARCHAR)<|im_end|>
<|im_start|>user
List the name of all rooms sorted by their prices.<|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_77 (score VARCHAR, money___$__ VARCHAR)",
"role": "system"
},
{
"content": "Which score has a prize of $400?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_77 WHERE money___$__ = 400",
"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_77 (score VARCHAR, money___$__ VARCHAR)<|im_end|>
<|im_start|>user
Which score has a prize of $400?<|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_35 (against INTEGER, drawn VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "What's the highest against score that drew more than 5, and had more than 18 points?",
"role": "user"
},
{
"content": "SELECT MAX(against) FROM table_name_35 WHERE drawn > 5 AND points > 18",
"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_35 (against INTEGER, drawn VARCHAR, points VARCHAR)<|im_end|>
<|im_start|>user
What's the highest against score that drew more than 5, and had more than 18 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_84 (designation VARCHAR, quantity VARCHAR)",
"role": "system"
},
{
"content": "Which Designation has a Quantity of 52?",
"role": "user"
},
{
"content": "SELECT designation FROM table_name_84 WHERE quantity = 52",
"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 (designation VARCHAR, quantity VARCHAR)<|im_end|>
<|im_start|>user
Which Designation has a Quantity of 52?<|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_11677691_4 (player VARCHAR, hometown VARCHAR)",
"role": "system"
},
{
"content": "Which player's hometown was Pewaukee, Wisconsin?",
"role": "user"
},
{
"content": "SELECT player FROM table_11677691_4 WHERE hometown = \"Pewaukee, Wisconsin\"",
"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_11677691_4 (player VARCHAR, hometown VARCHAR)<|im_end|>
<|im_start|>user
Which player's hometown was Pewaukee, Wisconsin?<|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_2127933_3 (outcome VARCHAR, opponents VARCHAR)",
"role": "system"
},
{
"content": "What were the outcomes of matches with bill tilden florence ballin as opponents?",
"role": "user"
},
{
"content": "SELECT outcome FROM table_2127933_3 WHERE opponents = \"Bill Tilden Florence Ballin\"",
"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_2127933_3 (outcome VARCHAR, opponents VARCHAR)<|im_end|>
<|im_start|>user
What were the outcomes of matches with bill tilden florence ballin as opponents?<|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 (score VARCHAR, attendance INTEGER)",
"role": "system"
},
{
"content": "What score has an attendance less than 10,553?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_62 WHERE attendance < 10 OFFSET 553",
"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 (score VARCHAR, attendance INTEGER)<|im_end|>
<|im_start|>user
What score has an attendance less than 10,553?<|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_14312471_3 (away_team VARCHAR)",
"role": "system"
},
{
"content": "Name the away team score for richmond",
"role": "user"
},
{
"content": "SELECT away_team AS score FROM table_14312471_3 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_14312471_3 (away_team VARCHAR)<|im_end|>
<|im_start|>user
Name the away team score for 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_22860698_8 (carpet_w_l VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What were the carpet w-l in 1993?",
"role": "user"
},
{
"content": "SELECT carpet_w_l FROM table_22860698_8 WHERE year = 1993",
"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_22860698_8 (carpet_w_l VARCHAR, year VARCHAR)<|im_end|>
<|im_start|>user
What were the carpet w-l in 1993?<|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_68 (fcc_info VARCHAR, frequency_mhz VARCHAR)",
"role": "system"
},
{
"content": "What is the FCC information of 104.5 fm frequency?",
"role": "user"
},
{
"content": "SELECT fcc_info FROM table_name_68 WHERE frequency_mhz = \"104.5 fm\"",
"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_68 (fcc_info VARCHAR, frequency_mhz VARCHAR)<|im_end|>
<|im_start|>user
What is the FCC information of 104.5 fm frequency?<|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 (match_report VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR)",
"role": "system"
},
{
"content": "What is the match report for the game that was played on 23 august 2008 in stark's park during the second division competition?",
"role": "user"
},
{
"content": "SELECT match_report FROM table_name_13 WHERE venue = \"stark's park\" AND competition = \"second division\" AND date = \"23 august 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_13 (match_report VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR)<|im_end|>
<|im_start|>user
What is the match report for the game that was played on 23 august 2008 in stark's park during the second division competition?<|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_20367820_16 (not_out VARCHAR, average VARCHAR)",
"role": "system"
},
{
"content": "How many no outs for an average of 56.38?",
"role": "user"
},
{
"content": "SELECT COUNT(not_out) FROM table_20367820_16 WHERE average = \"56.38\"",
"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_20367820_16 (not_out VARCHAR, average VARCHAR)<|im_end|>
<|im_start|>user
How many no outs for an average of 56.38?<|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 (week INTEGER, game_site VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which week was the game held at Kingdome on October 13, 1991?",
"role": "user"
},
{
"content": "SELECT MIN(week) FROM table_name_71 WHERE game_site = \"kingdome\" AND date = \"october 13, 1991\"",
"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 (week INTEGER, game_site VARCHAR, date VARCHAR)<|im_end|>
<|im_start|>user
Which week was the game held at Kingdome on October 13, 1991?<|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_8 (matches INTEGER)",
"role": "system"
},
{
"content": "What is the highest number listed for matches?",
"role": "user"
},
{
"content": "SELECT MAX(matches) FROM table_28846752_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_28846752_8 (matches INTEGER)<|im_end|>
<|im_start|>user
What is the highest number listed for matches?<|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 professor (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR)",
"role": "system"
},
{
"content": "What is the name of department where has the smallest number of professors?",
"role": "user"
},
{
"content": "SELECT T2.dept_name FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) 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 professor (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR)<|im_end|>
<|im_start|>user
What is the name of department where has the smallest number of professors?<|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 (silver INTEGER, rank VARCHAR, bronze VARCHAR)",
"role": "system"
},
{
"content": "What is the least number of Silvers with a ranking of less than 4 where the bronze number was larger than 9?",
"role": "user"
},
{
"content": "SELECT MIN(silver) FROM table_name_76 WHERE rank < 4 AND bronze > 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_76 (silver INTEGER, rank VARCHAR, bronze VARCHAR)<|im_end|>
<|im_start|>user
What is the least number of Silvers with a ranking of less than 4 where the bronze number was larger 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_1341865_44 (party VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "what's party with district being tennessee 3",
"role": "user"
},
{
"content": "SELECT party FROM table_1341865_44 WHERE district = \"Tennessee 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_1341865_44 (party VARCHAR, district VARCHAR)<|im_end|>
<|im_start|>user
what's party with district being tennessee 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 (points VARCHAR, january VARCHAR)",
"role": "system"
},
{
"content": "How many Points have a January of 18?",
"role": "user"
},
{
"content": "SELECT COUNT(points) FROM table_name_88 WHERE january = 18",
"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 (points VARCHAR, january VARCHAR)<|im_end|>
<|im_start|>user
How many Points have a January of 18?<|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 (artist VARCHAR, issue_price VARCHAR)",
"role": "system"
},
{
"content": "Which Artist has an Issue Price of $8,159.95?",
"role": "user"
},
{
"content": "SELECT artist FROM table_name_11 WHERE issue_price = \"$8,159.95\"",
"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 (artist VARCHAR, issue_price VARCHAR)<|im_end|>
<|im_start|>user
Which Artist has an Issue Price of $8,159.95?<|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_1341690_5 (first_elected INTEGER, party VARCHAR)",
"role": "system"
},
{
"content": "What republican candidate was first elected most recently?",
"role": "user"
},
{
"content": "SELECT MAX(first_elected) FROM table_1341690_5 WHERE party = \"Republican\"",
"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_1341690_5 (first_elected INTEGER, party VARCHAR)<|im_end|>
<|im_start|>user
What republican candidate was first elected most recently?<|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 (left_office VARCHAR, inaugurated VARCHAR)",
"role": "system"
},
{
"content": "What is Left Office, when Inaugurate is \"15 March 1930\"?",
"role": "user"
},
{
"content": "SELECT left_office FROM table_name_1 WHERE inaugurated = \"15 march 1930\"",
"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 (left_office VARCHAR, inaugurated VARCHAR)<|im_end|>
<|im_start|>user
What is Left Office, when Inaugurate is "15 March 1930"?<|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 (grade VARCHAR, jockey VARCHAR, runner_up_winner VARCHAR)",
"role": "system"
},
{
"content": "What grade did jockey Robby Albarado get when racing with Ravens Pass?",
"role": "user"
},
{
"content": "SELECT grade FROM table_name_78 WHERE jockey = \"robby albarado\" AND runner_up_winner = \"ravens pass\"",
"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 (grade VARCHAR, jockey VARCHAR, runner_up_winner VARCHAR)<|im_end|>
<|im_start|>user
What grade did jockey Robby Albarado get when racing with Ravens Pass?<|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_6 (position INTEGER, losses VARCHAR, conceded VARCHAR, draws VARCHAR)",
"role": "system"
},
{
"content": "What's the lowest Position with a Conceded that's larger than 16, Draws of 3, and Losses that's larger than 3?",
"role": "user"
},
{
"content": "SELECT MIN(position) FROM table_name_6 WHERE conceded > 16 AND draws = 3 AND losses > 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_6 (position INTEGER, losses VARCHAR, conceded VARCHAR, draws VARCHAR)<|im_end|>
<|im_start|>user
What's the lowest Position with a Conceded that's larger than 16, Draws of 3, and Losses that's larger than 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_55 (games INTEGER, rank INTEGER)",
"role": "system"
},
{
"content": "What is the average number of games of the player with a rank less than 1?",
"role": "user"
},
{
"content": "SELECT AVG(games) FROM table_name_55 WHERE rank < 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_55 (games INTEGER, rank INTEGER)<|im_end|>
<|im_start|>user
What is the average number of games of the player with a rank less 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_44 (to_par VARCHAR, margin_of_victory VARCHAR)",
"role": "system"
},
{
"content": "What was the To par score for the tournament with a margin of victory of 1 stroke?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_44 WHERE margin_of_victory = \"1 stroke\"",
"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 (to_par VARCHAR, margin_of_victory VARCHAR)<|im_end|>
<|im_start|>user
What was the To par score for the tournament with a margin of victory of 1 stroke?<|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_7 (music VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "What was the music of the team that was eliminated?",
"role": "user"
},
{
"content": "SELECT music FROM table_name_7 WHERE result = \"eliminated\"",
"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_7 (music VARCHAR, result VARCHAR)<|im_end|>
<|im_start|>user
What was the music of the team that was eliminated?<|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 Tournament of the french open had 2004 that has a 1998 of 2r?",
"role": "user"
},
{
"content": "SELECT 2004 FROM table_name_58 WHERE 1998 = \"2r\" 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 Tournament of the french open had 2004 that has a 1998 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_80 (first_elected VARCHAR, committee VARCHAR, counties_represented VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of First elected that has a country represented in Baltimore county, a district of 06.0 6, and a committee of economic matters?",
"role": "user"
},
{
"content": "SELECT COUNT(first_elected) FROM table_name_80 WHERE counties_represented = \"baltimore county\" AND district = \"06.0 6\" AND committee = \"economic matters\"",
"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 (first_elected VARCHAR, committee VARCHAR, counties_represented VARCHAR, district VARCHAR)<|im_end|>
<|im_start|>user
What is the total number of First elected that has a country represented in Baltimore county, a district of 06.0 6, and a committee of economic matters?<|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 (song VARCHAR, artist VARCHAR)",
"role": "system"
},
{
"content": "What song was made by the sex pistols?",
"role": "user"
},
{
"content": "SELECT song FROM table_name_9 WHERE artist = \"sex pistols\"",
"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 (song VARCHAR, artist VARCHAR)<|im_end|>
<|im_start|>user
What song was made by the sex pistols?<|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 (popular_votes INTEGER, candidate VARCHAR)",
"role": "system"
},
{
"content": "How many votes did candice sjostrom receive?",
"role": "user"
},
{
"content": "SELECT AVG(popular_votes) FROM table_name_94 WHERE candidate = \"candice sjostrom\"",
"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 (popular_votes INTEGER, candidate VARCHAR)<|im_end|>
<|im_start|>user
How many votes did candice sjostrom receive?<|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 (displacement__cc_ INTEGER, model VARCHAR)",
"role": "system"
},
{
"content": "What is the highest displacement value for the R Fwd Auto Phase1?",
"role": "user"
},
{
"content": "SELECT MAX(displacement__cc_) FROM table_name_12 WHERE model = \"r fwd auto phase1\"",
"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 (displacement__cc_ INTEGER, model VARCHAR)<|im_end|>
<|im_start|>user
What is the highest displacement value for the R Fwd Auto Phase1?<|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 (rides INTEGER, bonus_pts VARCHAR, matches VARCHAR)",
"role": "system"
},
{
"content": "How many rides did it take to get less than 3 bonus pts in no more than 7 matches?",
"role": "user"
},
{
"content": "SELECT MIN(rides) FROM table_name_92 WHERE bonus_pts < 3 AND matches < 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_name_92 (rides INTEGER, bonus_pts VARCHAR, matches VARCHAR)<|im_end|>
<|im_start|>user
How many rides did it take to get less than 3 bonus pts in no more than 7 matches?<|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_18305523_2 (comments VARCHAR, cover_date VARCHAR)",
"role": "system"
},
{
"content": "What is the comment on the issue dated 14 March 1987?",
"role": "user"
},
{
"content": "SELECT comments FROM table_18305523_2 WHERE cover_date = \"14 March 1987\"",
"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_18305523_2 (comments VARCHAR, cover_date VARCHAR)<|im_end|>
<|im_start|>user
What is the comment on the issue dated 14 March 1987?<|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_65 (drawn INTEGER, nationality VARCHAR, games VARCHAR)",
"role": "system"
},
{
"content": "What is the largest draw with 37 games from England?",
"role": "user"
},
{
"content": "SELECT MAX(drawn) FROM table_name_65 WHERE nationality = \"england\" AND games = 37",
"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_65 (drawn INTEGER, nationality VARCHAR, games VARCHAR)<|im_end|>
<|im_start|>user
What is the largest draw with 37 games from England?<|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_20174050_23 (notes VARCHAR, reader VARCHAR)",
"role": "system"
},
{
"content": "how many notes were read by reader varma, idria indira varma?",
"role": "user"
},
{
"content": "SELECT COUNT(notes) FROM table_20174050_23 WHERE reader = \"Varma, Idria Indira Varma\"",
"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_20174050_23 (notes VARCHAR, reader VARCHAR)<|im_end|>
<|im_start|>user
how many notes were read by reader varma, idria indira varma?<|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_20193855_2 (book_title VARCHAR, publisher VARCHAR)",
"role": "system"
},
{
"content": "What is the title of the book when the publisher is black car publishing?",
"role": "user"
},
{
"content": "SELECT book_title FROM table_20193855_2 WHERE publisher = \"Black Car Publishing\"",
"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_20193855_2 (book_title VARCHAR, publisher VARCHAR)<|im_end|>
<|im_start|>user
What is the title of the book when the publisher is black car publishing?<|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 (celebrity VARCHAR, finished VARCHAR)",
"role": "system"
},
{
"content": "Who was the celebrity who finished in 7th place?",
"role": "user"
},
{
"content": "SELECT celebrity FROM table_name_91 WHERE finished = \"7th\"",
"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 (celebrity VARCHAR, finished VARCHAR)<|im_end|>
<|im_start|>user
Who was the celebrity who finished in 7th place?<|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 (launched VARCHAR, commissioned VARCHAR)",
"role": "system"
},
{
"content": "What is Launched, when Commissioned is \"25 July 1998\"?",
"role": "user"
},
{
"content": "SELECT launched FROM table_name_50 WHERE commissioned = \"25 july 1998\"",
"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 (launched VARCHAR, commissioned VARCHAR)<|im_end|>
<|im_start|>user
What is Launched, when Commissioned is "25 July 1998"?<|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 (week INTEGER, attendance VARCHAR)",
"role": "system"
},
{
"content": "Which Week has an Attendance of 20,112?",
"role": "user"
},
{
"content": "SELECT MAX(week) FROM table_name_91 WHERE attendance = 20 OFFSET 112",
"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 (week INTEGER, attendance VARCHAR)<|im_end|>
<|im_start|>user
Which Week has an Attendance of 20,112?<|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 (speed VARCHAR, rider VARCHAR)",
"role": "system"
},
{
"content": "What was John Hildreth's speed?",
"role": "user"
},
{
"content": "SELECT speed FROM table_name_55 WHERE rider = \"john hildreth\"",
"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 (speed VARCHAR, rider VARCHAR)<|im_end|>
<|im_start|>user
What was John Hildreth's speed?<|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 (game VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "Which game had a result of 126-95?",
"role": "user"
},
{
"content": "SELECT game FROM table_name_88 WHERE result = \"126-95\"",
"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 (game VARCHAR, result VARCHAR)<|im_end|>
<|im_start|>user
Which game had a result of 126-95?<|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, venue VARCHAR)",
"role": "system"
},
{
"content": "What was the Score in Gelora Sriwijaya Stadium?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_47 WHERE venue = \"gelora sriwijaya stadium\"",
"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, venue VARCHAR)<|im_end|>
<|im_start|>user
What was the Score in Gelora Sriwijaya Stadium?<|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 genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR)",
"role": "system"
},
{
"content": "What is the name of tracks whose genre is Rock?",
"role": "user"
},
{
"content": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Rock\"",
"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 genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR)<|im_end|>
<|im_start|>user
What is the name of tracks whose genre is Rock?<|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_2562572_19 (type VARCHAR, settlement VARCHAR)",
"role": "system"
},
{
"content": "What type is the settlement of Lok? ",
"role": "user"
},
{
"content": "SELECT type FROM table_2562572_19 WHERE settlement = \"Lok\"",
"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_2562572_19 (type VARCHAR, settlement VARCHAR)<|im_end|>
<|im_start|>user
What type is the settlement of Lok? <|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 (winner VARCHAR, points_classification VARCHAR, stage VARCHAR)",
"role": "system"
},
{
"content": "Who was the winner of Stage 12 with a Points Classification of Francesco Moser?",
"role": "user"
},
{
"content": "SELECT winner FROM table_name_85 WHERE points_classification = \"francesco moser\" AND stage = \"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_name_85 (winner VARCHAR, points_classification VARCHAR, stage VARCHAR)<|im_end|>
<|im_start|>user
Who was the winner of Stage 12 with a Points Classification of Francesco Moser?<|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_11545282_12 (nationality VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "Which country is Jim Les from?",
"role": "user"
},
{
"content": "SELECT nationality FROM table_11545282_12 WHERE player = \"Jim Les\"",
"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_11545282_12 (nationality VARCHAR, player VARCHAR)<|im_end|>
<|im_start|>user
Which country is Jim Les from?<|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_22822468_2 (share INTEGER, viewers__millions_ VARCHAR)",
"role": "system"
},
{
"content": "Name the most share for 2.76 million viewers ",
"role": "user"
},
{
"content": "SELECT MAX(share) FROM table_22822468_2 WHERE viewers__millions_ = \"2.76\"",
"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_22822468_2 (share INTEGER, viewers__millions_ VARCHAR)<|im_end|>
<|im_start|>user
Name the most share for 2.76 million viewers <|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_1817879_2 (date_opened VARCHAR, segment_description VARCHAR)",
"role": "system"
},
{
"content": "What date of segment description red line mos-2 north open?",
"role": "user"
},
{
"content": "SELECT date_opened FROM table_1817879_2 WHERE segment_description = \"Red Line MOS-2 North\"",
"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_1817879_2 (date_opened VARCHAR, segment_description VARCHAR)<|im_end|>
<|im_start|>user
What date of segment description red line mos-2 north open?<|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_1342359_5 (party VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "what's the party with incumbent being william e. evans",
"role": "user"
},
{
"content": "SELECT party FROM table_1342359_5 WHERE incumbent = \"William E. Evans\"",
"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_1342359_5 (party VARCHAR, incumbent VARCHAR)<|im_end|>
<|im_start|>user
what's the party with incumbent being william e. evans<|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 (date VARCHAR, japan VARCHAR)",
"role": "system"
},
{
"content": "Which date had Japanese sales of 0.59 million?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_70 WHERE japan = \"0.59 million\"",
"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 (date VARCHAR, japan VARCHAR)<|im_end|>
<|im_start|>user
Which date had Japanese sales of 0.59 million?<|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_35 (opponent VARCHAR, loss VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent with a Loss of Leal (1–4)?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_35 WHERE loss = \"leal (1–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_35 (opponent VARCHAR, loss VARCHAR)<|im_end|>
<|im_start|>user
Who was the opponent with a Loss of Leal (1–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_56 (gross_mw VARCHAR, operation_start VARCHAR)",
"role": "system"
},
{
"content": "Operation start of 2015 has what gross mw?",
"role": "user"
},
{
"content": "SELECT gross_mw FROM table_name_56 WHERE operation_start = \"2015\"",
"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 (gross_mw VARCHAR, operation_start VARCHAR)<|im_end|>
<|im_start|>user
Operation start of 2015 has what gross mw?<|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 (best_actor VARCHAR, best_director VARCHAR)",
"role": "system"
},
{
"content": "Which Best Actor has a Best Director of takeshi kitano for outrage beyond?",
"role": "user"
},
{
"content": "SELECT best_actor FROM table_name_44 WHERE best_director = \"takeshi kitano for outrage beyond\"",
"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 (best_actor VARCHAR, best_director VARCHAR)<|im_end|>
<|im_start|>user
Which Best Actor has a Best Director of takeshi kitano for outrage beyond?<|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_60 (year INTEGER, number_in_entourage VARCHAR, mission_type VARCHAR)",
"role": "system"
},
{
"content": "What is the latest year of a gratitude type mission with 99 in the entourage?",
"role": "user"
},
{
"content": "SELECT MAX(year) FROM table_name_60 WHERE number_in_entourage = \"99\" AND mission_type = \"gratitude\"",
"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_60 (year INTEGER, number_in_entourage VARCHAR, mission_type VARCHAR)<|im_end|>
<|im_start|>user
What is the latest year of a gratitude type mission with 99 in the entourage?<|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 (license VARCHAR, system VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Which License has a System of amiga, and a Name of pocketuae?",
"role": "user"
},
{
"content": "SELECT license FROM table_name_83 WHERE system = \"amiga\" AND name = \"pocketuae\"",
"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 (license VARCHAR, system VARCHAR, name VARCHAR)<|im_end|>
<|im_start|>user
Which License has a System of amiga, and a Name of pocketuae?<|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 (team VARCHAR, home_city VARCHAR)",
"role": "system"
},
{
"content": "What team is from terni?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_59 WHERE home_city = \"terni\"",
"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 (team VARCHAR, home_city VARCHAR)<|im_end|>
<|im_start|>user
What team is from terni?<|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_75 (wins INTEGER, rank VARCHAR, played VARCHAR)",
"role": "system"
},
{
"content": "What is the highest Wins, when Rank is greater than 2, and when Played is less than 5?",
"role": "user"
},
{
"content": "SELECT MAX(wins) FROM table_name_75 WHERE rank > 2 AND played < 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_75 (wins INTEGER, rank VARCHAR, played VARCHAR)<|im_end|>
<|im_start|>user
What is the highest Wins, when Rank is greater than 2, and when Played is less than 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_46 (type VARCHAR, built VARCHAR)",
"role": "system"
},
{
"content": "Which type of locomotive was built in 1923?",
"role": "user"
},
{
"content": "SELECT type FROM table_name_46 WHERE built = 1923",
"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_46 (type VARCHAR, built VARCHAR)<|im_end|>
<|im_start|>user
Which type of locomotive was built in 1923?<|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_22379931_2 (winning_driver VARCHAR, winning_team VARCHAR)",
"role": "system"
},
{
"content": "Who was the driver for the winning team Lawson Team Impul?",
"role": "user"
},
{
"content": "SELECT winning_driver FROM table_22379931_2 WHERE winning_team = \"Lawson Team Impul\"",
"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_22379931_2 (winning_driver VARCHAR, winning_team VARCHAR)<|im_end|>
<|im_start|>user
Who was the driver for the winning team Lawson Team Impul?<|im_end|>
|