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_12 (land_area__km²_ INTEGER, name VARCHAR, population_density__per_km²_ VARCHAR, population__2006_ VARCHAR)",
"role": "system"
},
{
"content": "Which Land area (km²) has a Population density (per km²) larger than 112.6, and a Population (2006) larger than 785, and a Name of pinehouse?",
"role": "user"
},
{
"content": "SELECT MAX(land_area__km²_) FROM table_name_12 WHERE population_density__per_km²_ > 112.6 AND population__2006_ > 785 AND name = \"pinehouse\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (land_area__km²_ INTEGER, name VARCHAR, population_density__per_km²_ VARCHAR, population__2006_ VARCHAR)<|im_end|>
<|im_start|>user
Which Land area (km²) has a Population density (per km²) larger than 112.6, and a Population (2006) larger than 785, and a Name of pinehouse?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (west_germanic VARCHAR, german VARCHAR)",
"role": "system"
},
{
"content": "What's the West Germanic when the German is /s/ or /ts/?",
"role": "user"
},
{
"content": "SELECT west_germanic FROM table_name_90 WHERE german = \"/s/ or /ts/\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (west_germanic VARCHAR, german VARCHAR)<|im_end|>
<|im_start|>user
What's the West Germanic when the German is /s/ or /ts/?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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, year VARCHAR)",
"role": "system"
},
{
"content": "What score did the year 1948 have?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_21 WHERE year = \"1948\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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, year VARCHAR)<|im_end|>
<|im_start|>user
What score did the year 1948 have?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22875369_3 (opponent VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Name the opponent for 2-27-10",
"role": "user"
},
{
"content": "SELECT opponent FROM table_22875369_3 WHERE date = \"2-27-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_22875369_3 (opponent VARCHAR, date VARCHAR)<|im_end|>
<|im_start|>user
Name the opponent for 2-27-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_name_65 (nationality VARCHAR, goals VARCHAR)",
"role": "system"
},
{
"content": "What was the nationality for the player with 33 goals?",
"role": "user"
},
{
"content": "SELECT nationality FROM table_name_65 WHERE goals = 33",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (nationality VARCHAR, goals VARCHAR)<|im_end|>
<|im_start|>user
What was the nationality for the player with 33 goals?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14209245_9 (pick__number VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "What is the pick number for round 2?",
"role": "user"
},
{
"content": "SELECT pick__number FROM table_14209245_9 WHERE round = 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_14209245_9 (pick__number VARCHAR, round VARCHAR)<|im_end|>
<|im_start|>user
What is the pick number for round 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_34 (player VARCHAR, college VARCHAR)",
"role": "system"
},
{
"content": "Who was recruited from Calgary?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_34 WHERE college = \"calgary\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (player VARCHAR, college VARCHAR)<|im_end|>
<|im_start|>user
Who was recruited from Calgary?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (silver VARCHAR, rank VARCHAR, bronze VARCHAR)",
"role": "system"
},
{
"content": "How many silver medals had a rank of 3 with bronze larger than 0?",
"role": "user"
},
{
"content": "SELECT COUNT(silver) FROM table_name_90 WHERE rank = 3 AND bronze > 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_90 (silver VARCHAR, rank VARCHAR, bronze VARCHAR)<|im_end|>
<|im_start|>user
How many silver medals had a rank of 3 with bronze larger than 0?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_69 (player VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Name the player for 68-68-75-74=285",
"role": "user"
},
{
"content": "SELECT player FROM table_name_69 WHERE score = 68 - 68 - 75 - 74 = 285",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (player VARCHAR, score VARCHAR)<|im_end|>
<|im_start|>user
Name the player for 68-68-75-74=285<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24466191_1 (team VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "Name the team for season 2010",
"role": "user"
},
{
"content": "SELECT team FROM table_24466191_1 WHERE season = 2010",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_24466191_1 (team VARCHAR, season VARCHAR)<|im_end|>
<|im_start|>user
Name the team for season 2010<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (name VARCHAR, total_points VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "Who is at rank 13 with 23 total points?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_35 WHERE total_points = \"23\" AND rank = \"13\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_35 (name VARCHAR, total_points VARCHAR, rank VARCHAR)<|im_end|>
<|im_start|>user
Who is at rank 13 with 23 total 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_22 (year INTEGER, rebounds VARCHAR)",
"role": "system"
},
{
"content": "What was the 1st Year Al Harrington (9) the leader in Rebounds?",
"role": "user"
},
{
"content": "SELECT MIN(year) FROM table_name_22 WHERE rebounds = \"al harrington (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_22 (year INTEGER, rebounds VARCHAR)<|im_end|>
<|im_start|>user
What was the 1st Year Al Harrington (9) the leader in 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_name_28 (home VARCHAR, attendance VARCHAR, away VARCHAR)",
"role": "system"
},
{
"content": "Who was the home team in the game with more than 1675, and Olimpia was the away side?",
"role": "user"
},
{
"content": "SELECT home FROM table_name_28 WHERE attendance > 1675 AND away = \"olimpia\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (home VARCHAR, attendance VARCHAR, away VARCHAR)<|im_end|>
<|im_start|>user
Who was the home team in the game with more than 1675, and Olimpia was the away side?<|im_end|>
|
[
{
"content": "You are an text to SQL 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_id VARCHAR, product_name VARCHAR, product_price VARCHAR)",
"role": "system"
},
{
"content": "What are id and name of the products whose price is lower than 600 or higher than 900?",
"role": "user"
},
{
"content": "SELECT product_id, product_name FROM products WHERE product_price < 600 OR product_price > 900",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL 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_id VARCHAR, product_name VARCHAR, product_price VARCHAR)<|im_end|>
<|im_start|>user
What are id and name of the products whose price is lower than 600 or higher than 900?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (year VARCHAR, entrant VARCHAR, points VARCHAR, engine VARCHAR)",
"role": "system"
},
{
"content": "When were there less than 1 point with a cosworth v8 engine in jolly club switzerland?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_73 WHERE points < 1 AND engine = \"cosworth v8\" AND entrant = \"jolly club switzerland\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (year VARCHAR, entrant VARCHAR, points VARCHAR, engine VARCHAR)<|im_end|>
<|im_start|>user
When were there less than 1 point with a cosworth v8 engine in jolly club switzerland?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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_81 (co_drivers VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Who were the co-drivers in 2008?",
"role": "user"
},
{
"content": "SELECT co_drivers FROM table_name_81 WHERE year = 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_81 (co_drivers VARCHAR, year VARCHAR)<|im_end|>
<|im_start|>user
Who were the co-drivers in 2008?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_44 (voltage__kv_ VARCHAR, supply_point VARCHAR, country VARCHAR, power__mw_ VARCHAR)",
"role": "system"
},
{
"content": "How much Voltage (kV) has a Country of argentina, and a Power (MW) larger than 30, and a Supply point of yacyretá?",
"role": "user"
},
{
"content": "SELECT COUNT(voltage__kv_) FROM table_name_44 WHERE country = \"argentina\" AND power__mw_ > 30 AND supply_point = \"yacyretá\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (voltage__kv_ VARCHAR, supply_point VARCHAR, country VARCHAR, power__mw_ VARCHAR)<|im_end|>
<|im_start|>user
How much Voltage (kV) has a Country of argentina, and a Power (MW) larger than 30, and a Supply point of yacyretá?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_20 (week VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "What week was the Bye attendance week?",
"role": "user"
},
{
"content": "SELECT week FROM table_name_20 WHERE attendance = \"bye\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_20 (week VARCHAR, attendance VARCHAR)<|im_end|>
<|im_start|>user
What week was the Bye attendance week?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (music VARCHAR, notes VARCHAR)",
"role": "system"
},
{
"content": "Which music has the notes of AKA Africa Uncensored?",
"role": "user"
},
{
"content": "SELECT music FROM table_name_61 WHERE notes = \"aka africa uncensored\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (music VARCHAR, notes VARCHAR)<|im_end|>
<|im_start|>user
Which music has the notes of AKA Africa Uncensored?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1140113_5 (race_name VARCHAR, circuit VARCHAR)",
"role": "system"
},
{
"content": "What was the name of the race in Bordeaux?",
"role": "user"
},
{
"content": "SELECT race_name FROM table_1140113_5 WHERE circuit = \"Bordeaux\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1140113_5 (race_name VARCHAR, circuit VARCHAR)<|im_end|>
<|im_start|>user
What was the name of the race in Bordeaux?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (school_country VARCHAR, asts VARCHAR)",
"role": "system"
},
{
"content": "What is the school/country of the player with 337 assists?",
"role": "user"
},
{
"content": "SELECT school_country FROM table_name_48 WHERE asts = 337",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_48 (school_country VARCHAR, asts VARCHAR)<|im_end|>
<|im_start|>user
What is the school/country of the player with 337 assists?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1507806_1 (year VARCHAR, winning_score VARCHAR)",
"role": "system"
},
{
"content": "HOW MANY YEARS WAS IT FOR THE SCORE (76-73-79-72=300)?",
"role": "user"
},
{
"content": "SELECT COUNT(year) FROM table_1507806_1 WHERE winning_score = (76 - 73 - 79 - 72 = 300)",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1507806_1 (year VARCHAR, winning_score VARCHAR)<|im_end|>
<|im_start|>user
HOW MANY YEARS WAS IT FOR THE SCORE (76-73-79-72=300)?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_47 (pop_density_people_km_2 INTEGER, population_in_millions VARCHAR, population__percentage_of_eu VARCHAR, area__percentage_of_eu VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of the pop density people/km2 with a population % of EU of 0.1%, an area % of EU of 0.1%, and has more than 0.5 population in millions?",
"role": "user"
},
{
"content": "SELECT SUM(pop_density_people_km_2) FROM table_name_47 WHERE population__percentage_of_eu = \"0.1%\" AND area__percentage_of_eu = \"0.1%\" AND population_in_millions > 0.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_47 (pop_density_people_km_2 INTEGER, population_in_millions VARCHAR, population__percentage_of_eu VARCHAR, area__percentage_of_eu VARCHAR)<|im_end|>
<|im_start|>user
What is the sum of the pop density people/km2 with a population % of EU of 0.1%, an area % of EU of 0.1%, and has more than 0.5 population in millions?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (week VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What week shows for december 31, 1993?",
"role": "user"
},
{
"content": "SELECT COUNT(week) FROM table_name_25 WHERE date = \"december 31, 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_name_25 (week VARCHAR, date VARCHAR)<|im_end|>
<|im_start|>user
What week shows for december 31, 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_77 (college VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What college is Pat Thomas from?",
"role": "user"
},
{
"content": "SELECT college FROM table_name_77 WHERE name = \"pat thomas\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (college VARCHAR, name VARCHAR)<|im_end|>
<|im_start|>user
What college is Pat Thomas 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_name_97 (torque VARCHAR, engine_code VARCHAR, power VARCHAR)",
"role": "system"
},
{
"content": "What is the torque when engine code is N46B20 and power is ps (kw; hp)@6400?",
"role": "user"
},
{
"content": "SELECT torque FROM table_name_97 WHERE engine_code = \"n46b20\" AND power = \"ps (kw; hp)@6400\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_97 (torque VARCHAR, engine_code VARCHAR, power VARCHAR)<|im_end|>
<|im_start|>user
What is the torque when engine code is N46B20 and power is ps (kw; hp)@6400?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (crowd INTEGER, away_team VARCHAR)",
"role": "system"
},
{
"content": "In games where st kilda was the away team, what was the smallest crowd?",
"role": "user"
},
{
"content": "SELECT MIN(crowd) FROM table_name_68 WHERE away_team = \"st kilda\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (crowd INTEGER, away_team VARCHAR)<|im_end|>
<|im_start|>user
In games where st kilda was the away team, what was the smallest crowd?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (color_commentator_s_ VARCHAR, year VARCHAR, network VARCHAR)",
"role": "system"
},
{
"content": "Who were the collor commentator(s) for ESPN before 2012?",
"role": "user"
},
{
"content": "SELECT color_commentator_s_ FROM table_name_53 WHERE year < 2012 AND network = \"espn\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (color_commentator_s_ VARCHAR, year VARCHAR, network VARCHAR)<|im_end|>
<|im_start|>user
Who were the collor commentator(s) for ESPN before 2012?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1013129_8 (nationality VARCHAR, pick VARCHAR)",
"role": "system"
},
{
"content": "How many nationalities are the pick 193?",
"role": "user"
},
{
"content": "SELECT COUNT(nationality) FROM table_1013129_8 WHERE pick = 193",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1013129_8 (nationality VARCHAR, pick VARCHAR)<|im_end|>
<|im_start|>user
How many nationalities are the pick 193?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE company (market_value INTEGER)",
"role": "system"
},
{
"content": "Show minimum, maximum, and average market value for all companies.",
"role": "user"
},
{
"content": "SELECT MIN(market_value), MAX(market_value), AVG(market_value) FROM 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 company (market_value INTEGER)<|im_end|>
<|im_start|>user
Show minimum, maximum, and average market value for all companies.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2528382_5 (movie_album VARCHAR, co_stars VARCHAR, lyricist VARCHAR)",
"role": "system"
},
{
"content": "What movie did Vijayalaxmi Co-star in and Shakeel Badayuni write the lyrics?",
"role": "user"
},
{
"content": "SELECT movie_album FROM table_2528382_5 WHERE co_stars = \"VijayaLaxmi\" AND lyricist = \"Shakeel Badayuni\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_2528382_5 (movie_album VARCHAR, co_stars VARCHAR, lyricist VARCHAR)<|im_end|>
<|im_start|>user
What movie did Vijayalaxmi Co-star in and Shakeel Badayuni write the lyrics?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19210115_1 (location VARCHAR, nickname VARCHAR)",
"role": "system"
},
{
"content": "Where is the University that is also called Owls?",
"role": "user"
},
{
"content": "SELECT location FROM table_19210115_1 WHERE nickname = \"Owls\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_19210115_1 (location VARCHAR, nickname VARCHAR)<|im_end|>
<|im_start|>user
Where is the University that is also called Owls?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (grid INTEGER, rider VARCHAR, laps VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest grid with rider casey stoner and laps that are smaller than 27?",
"role": "user"
},
{
"content": "SELECT MIN(grid) FROM table_name_96 WHERE rider = \"casey stoner\" AND laps < 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_96 (grid INTEGER, rider VARCHAR, laps VARCHAR)<|im_end|>
<|im_start|>user
What is the lowest grid with rider casey stoner and laps that are smaller than 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_69 (score VARCHAR, outcome VARCHAR, tournament VARCHAR)",
"role": "system"
},
{
"content": "Which Score has an Outcome of runner-up, and a Tournament of johannesburg?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_69 WHERE outcome = \"runner-up\" AND tournament = \"johannesburg\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (score VARCHAR, outcome VARCHAR, tournament VARCHAR)<|im_end|>
<|im_start|>user
Which Score has an Outcome of runner-up, and a Tournament of johannesburg?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (transfer_window VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What transfer window has baptista as the name?",
"role": "user"
},
{
"content": "SELECT transfer_window FROM table_name_44 WHERE name = \"baptista\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (transfer_window VARCHAR, name VARCHAR)<|im_end|>
<|im_start|>user
What transfer window has baptista as the 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_171356_2 (census_ranking VARCHAR, area_km_2 VARCHAR)",
"role": "system"
},
{
"content": "What rank is the parish with 482.81 km^2?",
"role": "user"
},
{
"content": "SELECT census_ranking FROM table_171356_2 WHERE area_km_2 = \"482.81\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_171356_2 (census_ranking VARCHAR, area_km_2 VARCHAR)<|im_end|>
<|im_start|>user
What rank is the parish with 482.81 km^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_11 (draws INTEGER, club VARCHAR, wins VARCHAR)",
"role": "system"
},
{
"content": "What is the average number of draws for Mortlake club when they have less than 0 wins?",
"role": "user"
},
{
"content": "SELECT AVG(draws) FROM table_name_11 WHERE club = \"mortlake\" AND wins < 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_11 (draws INTEGER, club VARCHAR, wins VARCHAR)<|im_end|>
<|im_start|>user
What is the average number of draws for Mortlake club when they have less than 0 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_25 (opponent VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "Name the opponent for game 5",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_25 WHERE game = 5",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_25 (opponent VARCHAR, game VARCHAR)<|im_end|>
<|im_start|>user
Name the opponent for game 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_65 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)",
"role": "system"
},
{
"content": "What is the lap total for the grid under 15 that retired due to transmission?",
"role": "user"
},
{
"content": "SELECT SUM(laps) FROM table_name_65 WHERE grid < 15 AND time_retired = \"transmission\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)<|im_end|>
<|im_start|>user
What is the lap total for the grid under 15 that retired due to transmission?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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_11 (population__2011_ INTEGER)",
"role": "system"
},
{
"content": "What is the smallest population listed?",
"role": "user"
},
{
"content": "SELECT MIN(population__2011_) FROM table_2562572_11",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_2562572_11 (population__2011_ INTEGER)<|im_end|>
<|im_start|>user
What is the smallest population listed?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_228973_3 (no_in_season VARCHAR, original_air_date VARCHAR)",
"role": "system"
},
{
"content": "which is the number of the season episode whose premiere was in january 3, 1997?",
"role": "user"
},
{
"content": "SELECT COUNT(no_in_season) FROM table_228973_3 WHERE original_air_date = \"January 3, 1997\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_228973_3 (no_in_season VARCHAR, original_air_date VARCHAR)<|im_end|>
<|im_start|>user
which is the number of the season episode whose premiere was in january 3, 1997?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10644188_3 (state_represented VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is the state of Ted Stevens?",
"role": "user"
},
{
"content": "SELECT state_represented FROM table_10644188_3 WHERE name = \"Ted Stevens\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_10644188_3 (state_represented VARCHAR, name VARCHAR)<|im_end|>
<|im_start|>user
What is the state of Ted Stevens?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1973816_1 (nickname VARCHAR, founded VARCHAR)",
"role": "system"
},
{
"content": "What's the nickname of the students of the school founded in 1933?",
"role": "user"
},
{
"content": "SELECT nickname FROM table_1973816_1 WHERE founded = 1933",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1973816_1 (nickname VARCHAR, founded VARCHAR)<|im_end|>
<|im_start|>user
What's the nickname of the students of the school founded in 1933?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27871460_2 (channel_number INTEGER)",
"role": "system"
},
{
"content": "What is the highest channel number?",
"role": "user"
},
{
"content": "SELECT MAX(channel_number) FROM table_27871460_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_27871460_2 (channel_number INTEGER)<|im_end|>
<|im_start|>user
What is the highest channel number?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (wins VARCHAR, year VARCHAR, matches VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of wins in 2010, when there were more than 14 matches?",
"role": "user"
},
{
"content": "SELECT COUNT(wins) FROM table_name_99 WHERE year = \"2010\" AND matches > 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_99 (wins VARCHAR, year VARCHAR, matches VARCHAR)<|im_end|>
<|im_start|>user
What is the total number of wins in 2010, when there were more than 14 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_name_18 (purpose VARCHAR, band VARCHAR, frequency VARCHAR)",
"role": "system"
},
{
"content": "Band of am, and a Frequency of 0 846 has what purpose?",
"role": "user"
},
{
"content": "SELECT purpose FROM table_name_18 WHERE band = \"am\" AND frequency = \"0 846\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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_18 (purpose VARCHAR, band VARCHAR, frequency VARCHAR)<|im_end|>
<|im_start|>user
Band of am, and a Frequency of 0 846 has what purpose?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (wickets INTEGER, maidens VARCHAR, best VARCHAR)",
"role": "system"
},
{
"content": "What is the largest number of wickets when there are more than 630 maidens and a best of 7/72?",
"role": "user"
},
{
"content": "SELECT MAX(wickets) FROM table_name_55 WHERE maidens > 630 AND best = \"7/72\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (wickets INTEGER, maidens VARCHAR, best VARCHAR)<|im_end|>
<|im_start|>user
What is the largest number of wickets when there are more than 630 maidens and a best of 7/72?<|im_end|>
|
[
{
"content": "You are an text to SQL 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 (pName VARCHAR, HS INTEGER)",
"role": "system"
},
{
"content": "Find the name and training hours of players whose hours are below 1500.",
"role": "user"
},
{
"content": "SELECT pName, HS FROM Player WHERE HS < 1500",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL 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 (pName VARCHAR, HS INTEGER)<|im_end|>
<|im_start|>user
Find the name and training hours of players whose hours are below 1500.<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (constellation VARCHAR, object_type VARCHAR)",
"role": "system"
},
{
"content": "What is the constellation for open cluster?",
"role": "user"
},
{
"content": "SELECT constellation FROM table_name_37 WHERE object_type = \"open cluster\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (constellation VARCHAR, object_type VARCHAR)<|im_end|>
<|im_start|>user
What is the constellation for open cluster?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (venue VARCHAR, race VARCHAR)",
"role": "system"
},
{
"content": "What is the venue of teh carfax 250 race?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_62 WHERE race = \"carfax 250\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (venue VARCHAR, race VARCHAR)<|im_end|>
<|im_start|>user
What is the venue of teh carfax 250 race?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (spouse VARCHAR, birth VARCHAR)",
"role": "system"
},
{
"content": "Which Spouse has a Birth of 30 may 1653?",
"role": "user"
},
{
"content": "SELECT spouse FROM table_name_38 WHERE birth = \"30 may 1653\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (spouse VARCHAR, birth VARCHAR)<|im_end|>
<|im_start|>user
Which Spouse has a Birth of 30 may 1653?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (railway_number_s_ VARCHAR, year_s__of_manufacture VARCHAR)",
"role": "system"
},
{
"content": "Which Railway number(s) has a Year(s) of manufacture of 1899–1907?",
"role": "user"
},
{
"content": "SELECT railway_number_s_ FROM table_name_93 WHERE year_s__of_manufacture = \"1899–1907\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (railway_number_s_ VARCHAR, year_s__of_manufacture VARCHAR)<|im_end|>
<|im_start|>user
Which Railway number(s) has a Year(s) of manufacture of 1899–1907?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE authorship (authid VARCHAR, paperid VARCHAR, instid VARCHAR, authorder VARCHAR); CREATE TABLE authors (authid VARCHAR, lname VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE inst (instid VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "Find the titles of papers whose first author is affiliated with an institution in the country \"Japan\" and has last name \"Ohori\"?",
"role": "user"
},
{
"content": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = \"Japan\" AND t2.authorder = 1 AND t1.lname = \"Ohori\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR, instid VARCHAR, authorder VARCHAR); CREATE TABLE authors (authid VARCHAR, lname VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE inst (instid VARCHAR, country VARCHAR)<|im_end|>
<|im_start|>user
Find the titles of papers whose first author is affiliated with an institution in the country "Japan" and has last name "Ohori"?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (school VARCHAR, enrollment VARCHAR, ihsaa_football_class VARCHAR)",
"role": "system"
},
{
"content": "What school has more than 533 enrolled and is an IHSAA Football Class of aa?",
"role": "user"
},
{
"content": "SELECT school FROM table_name_27 WHERE enrollment > 533 AND ihsaa_football_class = \"aa\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_27 (school VARCHAR, enrollment VARCHAR, ihsaa_football_class VARCHAR)<|im_end|>
<|im_start|>user
What school has more than 533 enrolled and is an IHSAA Football Class of aa?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (attendance INTEGER, date VARCHAR)",
"role": "system"
},
{
"content": "On January 15, what was the most in attendance?",
"role": "user"
},
{
"content": "SELECT MAX(attendance) FROM table_name_42 WHERE date = \"january 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_42 (attendance INTEGER, date VARCHAR)<|im_end|>
<|im_start|>user
On January 15, what was the most 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_30 (opponent VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent in the game that had an attendance of 60,066?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_30 WHERE attendance = \"60,066\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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_30 (opponent VARCHAR, attendance VARCHAR)<|im_end|>
<|im_start|>user
Who was the opponent in the game that had an attendance of 60,066?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (lambda_functions VARCHAR, eval_function VARCHAR, functions VARCHAR, pseudorandom_number_generation VARCHAR, s_default_argument VARCHAR)",
"role": "system"
},
{
"content": "What is the lambda function without a pseudorandom number generation, no s default argument, no functions, and no eval function?",
"role": "user"
},
{
"content": "SELECT lambda_functions FROM table_name_10 WHERE pseudorandom_number_generation = \"no\" AND s_default_argument = \"no\" AND functions = \"no\" AND eval_function = \"no\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (lambda_functions VARCHAR, eval_function VARCHAR, functions VARCHAR, pseudorandom_number_generation VARCHAR, s_default_argument VARCHAR)<|im_end|>
<|im_start|>user
What is the lambda function without a pseudorandom number generation, no s default argument, no functions, and no eval function?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (country VARCHAR, year_s__won VARCHAR)",
"role": "system"
},
{
"content": "From which country is the player that won in 1998?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_78 WHERE year_s__won = \"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_78 (country VARCHAR, year_s__won VARCHAR)<|im_end|>
<|im_start|>user
From which country is the player that won in 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_80 (int_percentage VARCHAR, rlng VARCHAR)",
"role": "system"
},
{
"content": "What % has 4 RLng?",
"role": "user"
},
{
"content": "SELECT int_percentage FROM table_name_80 WHERE rlng = \"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_80 (int_percentage VARCHAR, rlng VARCHAR)<|im_end|>
<|im_start|>user
What % has 4 RLng?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18539834_2 (romaji_title VARCHAR, average_ratings VARCHAR)",
"role": "system"
},
{
"content": "How many titles had an average rating of 8.9%?",
"role": "user"
},
{
"content": "SELECT COUNT(romaji_title) FROM table_18539834_2 WHERE average_ratings = \"8.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_18539834_2 (romaji_title VARCHAR, average_ratings VARCHAR)<|im_end|>
<|im_start|>user
How many titles had an average rating of 8.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_name_84 (song_title VARCHAR, movie VARCHAR)",
"role": "system"
},
{
"content": "What was the name of the song in Amma Cheppindi?",
"role": "user"
},
{
"content": "SELECT song_title FROM table_name_84 WHERE movie = \"amma cheppindi\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (song_title VARCHAR, movie VARCHAR)<|im_end|>
<|im_start|>user
What was the name of the song in Amma Cheppindi?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (aug_2013 INTEGER, jun_2011 VARCHAR, nov_2011 VARCHAR, jul_2012 VARCHAR)",
"role": "system"
},
{
"content": "What is the highest Aug 2013 with a Nov 2011 smaller than 968, and a Jul 2012 with 31, and a Jun 2011 larger than 30?",
"role": "user"
},
{
"content": "SELECT MAX(aug_2013) FROM table_name_27 WHERE nov_2011 < 968 AND jul_2012 = 31 AND jun_2011 > 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_27 (aug_2013 INTEGER, jun_2011 VARCHAR, nov_2011 VARCHAR, jul_2012 VARCHAR)<|im_end|>
<|im_start|>user
What is the highest Aug 2013 with a Nov 2011 smaller than 968, and a Jul 2012 with 31, and a Jun 2011 larger than 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_12 (race VARCHAR, distance VARCHAR, winner_or_2nd VARCHAR)",
"role": "system"
},
{
"content": "What is the race with a 10f distance and mollison as the winner or 2nd?",
"role": "user"
},
{
"content": "SELECT race FROM table_name_12 WHERE distance = \"10f\" AND winner_or_2nd = \"mollison\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (race VARCHAR, distance VARCHAR, winner_or_2nd VARCHAR)<|im_end|>
<|im_start|>user
What is the race with a 10f distance and mollison as the winner or 2nd?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27403436_1 (us_viewers__million_ VARCHAR, written_by VARCHAR)",
"role": "system"
},
{
"content": "How many viewers watched the episode written by shana goldberg-meehan & greg malins? ",
"role": "user"
},
{
"content": "SELECT us_viewers__million_ FROM table_27403436_1 WHERE written_by = \"Shana Goldberg-Meehan & Greg Malins\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_27403436_1 (us_viewers__million_ VARCHAR, written_by VARCHAR)<|im_end|>
<|im_start|>user
How many viewers watched the episode written by shana goldberg-meehan & greg malins? <|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (listed VARCHAR, construction_completed VARCHAR)",
"role": "system"
},
{
"content": "What construction completed on 08/10/2007?",
"role": "user"
},
{
"content": "SELECT listed FROM table_name_46 WHERE construction_completed = \"08/10/2007\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (listed VARCHAR, construction_completed VARCHAR)<|im_end|>
<|im_start|>user
What construction completed on 08/10/2007?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (player VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "What players have a position of F?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_2 WHERE position = \"f\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (player VARCHAR, position VARCHAR)<|im_end|>
<|im_start|>user
What players have a position of F?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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_30 (tries_against VARCHAR, try_diff VARCHAR, points_for VARCHAR)",
"role": "system"
},
{
"content": "How many Tries against has a Try diff of –17 and Points for smaller than 80?",
"role": "user"
},
{
"content": "SELECT COUNT(tries_against) FROM table_name_30 WHERE try_diff = \"–17\" AND points_for < 80",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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_30 (tries_against VARCHAR, try_diff VARCHAR, points_for VARCHAR)<|im_end|>
<|im_start|>user
How many Tries against has a Try diff of –17 and Points for smaller than 80?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (to_par VARCHAR, country VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the to par for Australia and a 73-69-71=213 score?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_43 WHERE country = \"australia\" AND score = 73 - 69 - 71 = 213",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (to_par VARCHAR, country VARCHAR, score VARCHAR)<|im_end|>
<|im_start|>user
What is the to par for Australia and a 73-69-71=213 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_19 (venue VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "What is the home field of the South Melbourne team?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_19 WHERE home_team = \"south melbourne\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_19 (venue VARCHAR, home_team VARCHAR)<|im_end|>
<|im_start|>user
What is the home field of the South Melbourne 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_51 (attendance INTEGER, date VARCHAR)",
"role": "system"
},
{
"content": "What was the average attendance on 18 October 2000?",
"role": "user"
},
{
"content": "SELECT AVG(attendance) FROM table_name_51 WHERE date = \"18 october 2000\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_51 (attendance INTEGER, date VARCHAR)<|im_end|>
<|im_start|>user
What was the average attendance on 18 October 2000?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24850630_4 (distance VARCHAR, race VARCHAR)",
"role": "system"
},
{
"content": "What is the distance of the Mooresbridge Stakes race? ",
"role": "user"
},
{
"content": "SELECT distance FROM table_24850630_4 WHERE race = \"Mooresbridge Stakes\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_24850630_4 (distance VARCHAR, race VARCHAR)<|im_end|>
<|im_start|>user
What is the distance of the Mooresbridge Stakes race? <|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21284653_1 (census_division VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is the census division for the city named Kenora?",
"role": "user"
},
{
"content": "SELECT census_division FROM table_21284653_1 WHERE name = \"Kenora\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_21284653_1 (census_division VARCHAR, name VARCHAR)<|im_end|>
<|im_start|>user
What is the census division for the city named Kenora?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (released VARCHAR, series_sorted VARCHAR)",
"role": "system"
},
{
"content": "what is the released when the series is sorted 6y/ai?",
"role": "user"
},
{
"content": "SELECT released FROM table_name_68 WHERE series_sorted = \"6y/ai\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (released VARCHAR, series_sorted VARCHAR)<|im_end|>
<|im_start|>user
what is the released when the series is sorted 6y/ai?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (fips_code INTEGER, area VARCHAR, population__2010_ VARCHAR)",
"role": "system"
},
{
"content": "What is the FIPS code for the municipality that has an area of 114.76 sq mi (297.23 sq km) and had a 2010 population of less than 166,327?",
"role": "user"
},
{
"content": "SELECT AVG(fips_code) FROM table_name_70 WHERE area = \"114.76 sq mi (297.23 sq km)\" AND population__2010_ < 166 OFFSET 327",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (fips_code INTEGER, area VARCHAR, population__2010_ VARCHAR)<|im_end|>
<|im_start|>user
What is the FIPS code for the municipality that has an area of 114.76 sq mi (297.23 sq km) and had a 2010 population of less than 166,327?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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, position_in_table VARCHAR, replaced_by VARCHAR)",
"role": "system"
},
{
"content": "WHAT TEAM HAS 12TH TABLE POSITION AND REPLACED BY OVE PEDERSEN?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_98 WHERE position_in_table = \"12th\" AND replaced_by = \"ove pedersen\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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, position_in_table VARCHAR, replaced_by VARCHAR)<|im_end|>
<|im_start|>user
WHAT TEAM HAS 12TH TABLE POSITION AND REPLACED BY OVE PEDERSEN?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (away_team VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What is the away team at corio oval?",
"role": "user"
},
{
"content": "SELECT away_team FROM table_name_26 WHERE venue = \"corio 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_26 (away_team VARCHAR, venue VARCHAR)<|im_end|>
<|im_start|>user
What is the away team at corio 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_90 (year INTEGER, game VARCHAR)",
"role": "system"
},
{
"content": "What is the earliest year that had the Legend of Zelda: Twilight Princess game?",
"role": "user"
},
{
"content": "SELECT MIN(year) FROM table_name_90 WHERE game = \"the legend of zelda: twilight princess\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (year INTEGER, game VARCHAR)<|im_end|>
<|im_start|>user
What is the earliest year that had the Legend of Zelda: Twilight Princess game?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (attendance INTEGER, season VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the attendance in the game in the 2010-11 season, when the score was 2–0?",
"role": "user"
},
{
"content": "SELECT MIN(attendance) FROM table_name_39 WHERE season = \"2010-11\" AND score = \"2–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_39 (attendance INTEGER, season VARCHAR, score VARCHAR)<|im_end|>
<|im_start|>user
What is the attendance in the game in the 2010-11 season, when the score was 2–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_30 (runners_up INTEGER, champions INTEGER)",
"role": "system"
},
{
"content": "What is the highest Runners-Up, when Champions is less than 0?",
"role": "user"
},
{
"content": "SELECT MAX(runners_up) FROM table_name_30 WHERE champions < 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_30 (runners_up INTEGER, champions INTEGER)<|im_end|>
<|im_start|>user
What is the highest Runners-Up, when Champions is less than 0?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_9 (runners_up VARCHAR, winners VARCHAR, years_runner_up VARCHAR)",
"role": "system"
},
{
"content": "How many runners up for the team with under 1 win and a Years runner-up of 1985 , 1996?",
"role": "user"
},
{
"content": "SELECT runners_up FROM table_name_9 WHERE winners < 1 AND years_runner_up = \"1985 , 1996\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (runners_up VARCHAR, winners VARCHAR, years_runner_up VARCHAR)<|im_end|>
<|im_start|>user
How many runners up for the team with under 1 win and a Years runner-up of 1985 , 1996?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (bachelorette VARCHAR, premiered VARCHAR)",
"role": "system"
},
{
"content": "Who is the bachelorette of the season that premiered on May 24, 2010?",
"role": "user"
},
{
"content": "SELECT bachelorette FROM table_name_37 WHERE premiered = \"may 24, 2010\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (bachelorette VARCHAR, premiered VARCHAR)<|im_end|>
<|im_start|>user
Who is the bachelorette of the season that premiered on May 24, 2010?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (region VARCHAR, state VARCHAR)",
"role": "system"
},
{
"content": "Tell me the region for georgia",
"role": "user"
},
{
"content": "SELECT region FROM table_name_8 WHERE state = \"georgia\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (region VARCHAR, state VARCHAR)<|im_end|>
<|im_start|>user
Tell me the region for georgia<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE addresses (address_content VARCHAR, address_id VARCHAR)",
"role": "system"
},
{
"content": "What is the address content of the customer named \"Maudie Kertzmann\"?",
"role": "user"
},
{
"content": "SELECT t3.address_content FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t1.customer_name = \"Maudie Kertzmann\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE addresses (address_content VARCHAR, address_id VARCHAR)<|im_end|>
<|im_start|>user
What is the address content of the customer named "Maudie Kertzmann"?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_20 (silver VARCHAR, nation VARCHAR, gold VARCHAR, total VARCHAR)",
"role": "system"
},
{
"content": "How many silver medals did Estonia, which won more than 1 gold and less than 97 medals total, win?",
"role": "user"
},
{
"content": "SELECT silver FROM table_name_20 WHERE gold > 1 AND total < 97 AND nation = \"estonia\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_20 (silver VARCHAR, nation VARCHAR, gold VARCHAR, total VARCHAR)<|im_end|>
<|im_start|>user
How many silver medals did Estonia, which won more than 1 gold and less than 97 medals total, win?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (location_attendance VARCHAR, high_points VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the location attendance of the game with Kobe Bryant (18) with the highest points on November 18?",
"role": "user"
},
{
"content": "SELECT location_attendance FROM table_name_83 WHERE high_points = \"kobe bryant (18)\" AND date = \"november 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_83 (location_attendance VARCHAR, high_points VARCHAR, date VARCHAR)<|im_end|>
<|im_start|>user
What is the location attendance of the game with Kobe Bryant (18) with the highest points on November 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_86 (LNER VARCHAR, class VARCHAR)",
"role": "system"
},
{
"content": "What LNER Class has a Class of 3?",
"role": "user"
},
{
"content": "SELECT LNER AS class FROM table_name_86 WHERE class = \"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_86 (LNER VARCHAR, class VARCHAR)<|im_end|>
<|im_start|>user
What LNER Class has a Class of 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_92 (amount__millions_ VARCHAR, payee VARCHAR)",
"role": "system"
},
{
"content": "How much money, in millions, is paid to Infotalent?",
"role": "user"
},
{
"content": "SELECT amount__millions_ FROM table_name_92 WHERE payee = \"infotalent\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (amount__millions_ VARCHAR, payee VARCHAR)<|im_end|>
<|im_start|>user
How much money, in millions, is paid to Infotalent?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25459168_2 (round VARCHAR, fastest_lap VARCHAR)",
"role": "system"
},
{
"content": "How many rounds did Alex Ardoin achieved a fastest lap?",
"role": "user"
},
{
"content": "SELECT COUNT(round) FROM table_25459168_2 WHERE fastest_lap = \"Alex Ardoin\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_25459168_2 (round VARCHAR, fastest_lap VARCHAR)<|im_end|>
<|im_start|>user
How many rounds did Alex Ardoin achieved a fastest lap?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23285849_7 (record VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What was the record when the timberwolves were played?",
"role": "user"
},
{
"content": "SELECT record FROM table_23285849_7 WHERE team = \"Timberwolves\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_23285849_7 (record VARCHAR, team VARCHAR)<|im_end|>
<|im_start|>user
What was the record when the timberwolves were 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_67 (team__number2 VARCHAR, team__number1 VARCHAR)",
"role": "system"
},
{
"content": "with team #1 as lukoil academic what is team #2?",
"role": "user"
},
{
"content": "SELECT team__number2 FROM table_name_67 WHERE team__number1 = \"lukoil academic\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (team__number2 VARCHAR, team__number1 VARCHAR)<|im_end|>
<|im_start|>user
with team #1 as lukoil academic what is team #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_39 (date VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is the date for the name of Granville?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_39 WHERE name = \"granville\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (date VARCHAR, name VARCHAR)<|im_end|>
<|im_start|>user
What is the date for the name of Granville?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (league_cup_goals INTEGER, scorer VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest League Cup Goals, when Scorer is Denis Law?",
"role": "user"
},
{
"content": "SELECT MIN(league_cup_goals) FROM table_name_59 WHERE scorer = \"denis law\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (league_cup_goals INTEGER, scorer VARCHAR)<|im_end|>
<|im_start|>user
What is the lowest League Cup Goals, when Scorer is Denis Law?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (label VARCHAR, region VARCHAR, catalog VARCHAR)",
"role": "system"
},
{
"content": "Tell me the label for US region and catalog of 10008-2",
"role": "user"
},
{
"content": "SELECT label FROM table_name_2 WHERE region = \"us\" AND catalog = \"10008-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_2 (label VARCHAR, region VARCHAR, catalog VARCHAR)<|im_end|>
<|im_start|>user
Tell me the label for US region and catalog of 10008-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_16 (first_us_tour_cast VARCHAR, original_broadway_cast VARCHAR)",
"role": "system"
},
{
"content": "What shows as the First US Tour Cast when the Original Broadway Cast was Sarah Bolt?",
"role": "user"
},
{
"content": "SELECT first_us_tour_cast FROM table_name_16 WHERE original_broadway_cast = \"sarah bolt\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_16 (first_us_tour_cast VARCHAR, original_broadway_cast VARCHAR)<|im_end|>
<|im_start|>user
What shows as the First US Tour Cast when the Original Broadway Cast was Sarah Bolt?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (season INTEGER, rank INTEGER)",
"role": "system"
},
{
"content": "What is the highest season that had rank under 1?",
"role": "user"
},
{
"content": "SELECT MAX(season) FROM table_name_45 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_45 (season INTEGER, rank INTEGER)<|im_end|>
<|im_start|>user
What is the highest season that had rank under 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_90 (pl_gp INTEGER, pick__number VARCHAR, reg_gp VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of Pl GP when the pick number is 199 and the Reg GP is bigger than 0?",
"role": "user"
},
{
"content": "SELECT SUM(pl_gp) FROM table_name_90 WHERE pick__number = 199 AND reg_gp > 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_90 (pl_gp INTEGER, pick__number VARCHAR, reg_gp VARCHAR)<|im_end|>
<|im_start|>user
What is the total number of Pl GP when the pick number is 199 and the Reg GP is bigger than 0?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (builder VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "What is Builder, when Location is \"Govan , Scotland\"?",
"role": "user"
},
{
"content": "SELECT builder FROM table_name_80 WHERE location = \"govan , scotland\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (builder VARCHAR, location VARCHAR)<|im_end|>
<|im_start|>user
What is Builder, when Location is "Govan , Scotland"?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (Id VARCHAR)",
"role": "system"
},
{
"content": "Which 2009 has a 2006 of A, and a 2011 of sf?",
"role": "user"
},
{
"content": "SELECT 2009 FROM table_name_83 WHERE 2006 = \"a\" AND 2011 = \"sf\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (Id VARCHAR)<|im_end|>
<|im_start|>user
Which 2009 has a 2006 of A, and a 2011 of sf?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10722506_6 (record VARCHAR, round_of_32 VARCHAR, conference VARCHAR)",
"role": "system"
},
{
"content": "What is the record when round of 32 is 0 and metro atlantic conference?",
"role": "user"
},
{
"content": "SELECT record FROM table_10722506_6 WHERE round_of_32 = 0 AND conference = \"Metro Atlantic\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_10722506_6 (record VARCHAR, round_of_32 VARCHAR, conference VARCHAR)<|im_end|>
<|im_start|>user
What is the record when round of 32 is 0 and metro atlantic conference?<|im_end|>
|
[
{
"content": "You are an text to SQL query 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 (call_sign VARCHAR, tail_code VARCHAR)",
"role": "system"
},
{
"content": "Which Call Sign that has Tail Code ed?",
"role": "user"
},
{
"content": "SELECT call_sign FROM table_name_80 WHERE tail_code = \"ed\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (call_sign VARCHAR, tail_code VARCHAR)<|im_end|>
<|im_start|>user
Which Call Sign that has Tail Code ed?<|im_end|>
|