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 student (Id VARCHAR)",
"role": "system"
},
{
"content": "How many students are there?",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM student",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE student (Id VARCHAR)<|im_end|>
<|im_start|>user
How many students are there?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14342210_13 (class VARCHAR, prior_experience VARCHAR)",
"role": "system"
},
{
"content": "How many entries are there for class when the prior experience is shasta h.s.",
"role": "user"
},
{
"content": "SELECT COUNT(class) FROM table_14342210_13 WHERE prior_experience = \"Shasta H.S.\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_14342210_13 (class VARCHAR, prior_experience VARCHAR)<|im_end|>
<|im_start|>user
How many entries are there for class when the prior experience is shasta h.s.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 INTEGER, grid VARCHAR)",
"role": "system"
},
{
"content": "What is the point low with 2 grids?",
"role": "user"
},
{
"content": "SELECT MIN(points) FROM table_name_88 WHERE grid = \"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_88 (points INTEGER, grid VARCHAR)<|im_end|>
<|im_start|>user
What is the point low with 2 grids?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2655016_9 (series__number VARCHAR, original_air_date VARCHAR)",
"role": "system"
},
{
"content": "What is the series # on airdate September 21, 2002?",
"role": "user"
},
{
"content": "SELECT series__number FROM table_2655016_9 WHERE original_air_date = \"September 21, 2002\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_2655016_9 (series__number VARCHAR, original_air_date VARCHAR)<|im_end|>
<|im_start|>user
What is the series # on airdate September 21, 2002?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (structure VARCHAR, year VARCHAR, continent VARCHAR)",
"role": "system"
},
{
"content": "Listed with a continent of Africa and before 2009 this structure is called what?",
"role": "user"
},
{
"content": "SELECT structure FROM table_name_83 WHERE year < 2009 AND continent = \"africa\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (structure VARCHAR, year VARCHAR, continent VARCHAR)<|im_end|>
<|im_start|>user
Listed with a continent of Africa and before 2009 this structure is called what?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (ties INTEGER, losses VARCHAR, games_played VARCHAR)",
"role": "system"
},
{
"content": "what is the lowest number of ties when the losses is 7 and games played is less than 10?",
"role": "user"
},
{
"content": "SELECT MIN(ties) FROM table_name_10 WHERE losses = 7 AND games_played < 10",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_10 (ties INTEGER, losses VARCHAR, games_played VARCHAR)<|im_end|>
<|im_start|>user
what is the lowest number of ties when the losses is 7 and games played is less than 10?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15467476_3 (won VARCHAR, tries_against VARCHAR)",
"role": "system"
},
{
"content": "How many games won for teams with 49 tries against?",
"role": "user"
},
{
"content": "SELECT won FROM table_15467476_3 WHERE tries_against = \"49\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_15467476_3 (won VARCHAR, tries_against VARCHAR)<|im_end|>
<|im_start|>user
How many games won for teams with 49 tries against?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (sspec_number VARCHAR, socket VARCHAR)",
"role": "system"
},
{
"content": "what is the sspec number when the socket is standard power?",
"role": "user"
},
{
"content": "SELECT sspec_number FROM table_name_75 WHERE socket = \"standard power\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (sspec_number VARCHAR, socket VARCHAR)<|im_end|>
<|im_start|>user
what is the sspec number when the socket is standard power?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2260452_1 (average_speed__mph_ VARCHAR, race_time VARCHAR)",
"role": "system"
},
{
"content": "If the race time is 2:00:33, what is the average speed?",
"role": "user"
},
{
"content": "SELECT average_speed__mph_ FROM table_2260452_1 WHERE race_time = \"2:00: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_2260452_1 (average_speed__mph_ VARCHAR, race_time VARCHAR)<|im_end|>
<|im_start|>user
If the race time is 2:00:33, what is the average 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_65 (high_rebounds VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "Who had the highest rebounds against detroit?",
"role": "user"
},
{
"content": "SELECT high_rebounds FROM table_name_65 WHERE team = \"detroit\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (high_rebounds VARCHAR, team VARCHAR)<|im_end|>
<|im_start|>user
Who had the highest rebounds against detroit?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE dorm (dorm_name VARCHAR, gender VARCHAR)",
"role": "system"
},
{
"content": "Find the name of dorms only for female (F gender).",
"role": "user"
},
{
"content": "SELECT dorm_name FROM dorm WHERE gender = '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 dorm (dorm_name VARCHAR, gender VARCHAR)<|im_end|>
<|im_start|>user
Find the name of dorms only for female (F gender).<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (ad_freq VARCHAR, show_name VARCHAR)",
"role": "system"
},
{
"content": "What is the ad frequency for the show named Health Matters?",
"role": "user"
},
{
"content": "SELECT ad_freq FROM table_name_58 WHERE show_name = \"health 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_58 (ad_freq VARCHAR, show_name VARCHAR)<|im_end|>
<|im_start|>user
What is the ad frequency for the show named Health 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_38 (round INTEGER, position VARCHAR, pick__number VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of the round of the player who plays linebacker and has a pick # greater than 251?",
"role": "user"
},
{
"content": "SELECT SUM(round) FROM table_name_38 WHERE position = \"linebacker\" AND pick__number > 251",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (round INTEGER, position VARCHAR, pick__number VARCHAR)<|im_end|>
<|im_start|>user
What is the sum of the round of the player who plays linebacker and has a pick # greater than 251?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (non_suited_match VARCHAR, number_of_decks INTEGER)",
"role": "system"
},
{
"content": "Name the Non-Suited Match that has greater than 6 Number of Decks.",
"role": "user"
},
{
"content": "SELECT non_suited_match FROM table_name_60 WHERE number_of_decks > 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_name_60 (non_suited_match VARCHAR, number_of_decks INTEGER)<|im_end|>
<|im_start|>user
Name the Non-Suited Match that has greater than 6 Number of Decks.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (venue VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "What venue did he finish 7th?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_55 WHERE position = \"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_55 (venue VARCHAR, position VARCHAR)<|im_end|>
<|im_start|>user
What venue did he finish 7th?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (date_aired VARCHAR, network VARCHAR)",
"role": "system"
},
{
"content": "Which date was the show aired on the RTL Televizija network?",
"role": "user"
},
{
"content": "SELECT date_aired FROM table_name_35 WHERE network = \"rtl televizija\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (date_aired VARCHAR, network VARCHAR)<|im_end|>
<|im_start|>user
Which date was the show aired on the RTL Televizija network?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (operator_s_ VARCHAR, reserves VARCHAR)",
"role": "system"
},
{
"content": "Which operator has a Reserve of 100 bbbl?",
"role": "user"
},
{
"content": "SELECT operator_s_ FROM table_name_96 WHERE reserves = \"100 bbbl\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (operator_s_ VARCHAR, reserves VARCHAR)<|im_end|>
<|im_start|>user
Which operator has a Reserve of 100 bbbl?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1507852_5 (bubbles VARCHAR, category VARCHAR)",
"role": "system"
},
{
"content": " how many bubbles with category being input",
"role": "user"
},
{
"content": "SELECT COUNT(bubbles) FROM table_1507852_5 WHERE category = \"Input\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1507852_5 (bubbles VARCHAR, category VARCHAR)<|im_end|>
<|im_start|>user
how many bubbles with category being input<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE captain (name VARCHAR, age VARCHAR)",
"role": "system"
},
{
"content": "Sort all captain names by their ages from old to young.",
"role": "user"
},
{
"content": "SELECT name FROM captain ORDER BY age DESC",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE captain (name VARCHAR, age VARCHAR)<|im_end|>
<|im_start|>user
Sort all captain names by their ages from old to young.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (tries_for VARCHAR, tries_against VARCHAR)",
"role": "system"
},
{
"content": "What is the number of tries for that has 30 tries against?",
"role": "user"
},
{
"content": "SELECT tries_for FROM table_name_74 WHERE tries_against = \"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_74 (tries_for VARCHAR, tries_against VARCHAR)<|im_end|>
<|im_start|>user
What is the number of tries for that has 30 tries against?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (place VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "Where has Jimmy Demaret as a player?",
"role": "user"
},
{
"content": "SELECT place FROM table_name_94 WHERE player = \"jimmy demaret\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (place VARCHAR, player VARCHAR)<|im_end|>
<|im_start|>user
Where has Jimmy Demaret as a player?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (arena VARCHAR, opponent VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which Arena has an Opponent of @ oilers, and a Date of may 25?",
"role": "user"
},
{
"content": "SELECT arena FROM table_name_79 WHERE opponent = \"@ oilers\" AND date = \"may 25\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_79 (arena VARCHAR, opponent VARCHAR, date VARCHAR)<|im_end|>
<|im_start|>user
Which Arena has an Opponent of @ oilers, and a Date of may 25?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24489942_10 (rank VARCHAR, nationality VARCHAR)",
"role": "system"
},
{
"content": "Name the rank for switzerland",
"role": "user"
},
{
"content": "SELECT COUNT(rank) FROM table_24489942_10 WHERE nationality = \"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_24489942_10 (rank VARCHAR, nationality VARCHAR)<|im_end|>
<|im_start|>user
Name the rank for 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_23483182_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)",
"role": "system"
},
{
"content": "What was the air date where there were 5.72 million viewers?",
"role": "user"
},
{
"content": "SELECT original_air_date FROM table_23483182_1 WHERE us_viewers__million_ = \"5.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_23483182_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)<|im_end|>
<|im_start|>user
What was the air date where there were 5.72 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_name_52 (draw INTEGER, points INTEGER)",
"role": "system"
},
{
"content": "Which average draw has points greater than 12?",
"role": "user"
},
{
"content": "SELECT AVG(draw) FROM table_name_52 WHERE points > 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_52 (draw INTEGER, points INTEGER)<|im_end|>
<|im_start|>user
Which average draw has points greater than 12?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14903881_1 (womens_doubles VARCHAR, mens_doubles VARCHAR)",
"role": "system"
},
{
"content": "Name the womens doubles when mens doubles is charalambos kazilas stepan partemian",
"role": "user"
},
{
"content": "SELECT womens_doubles FROM table_14903881_1 WHERE mens_doubles = \"Charalambos Kazilas Stepan Partemian\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_14903881_1 (womens_doubles VARCHAR, mens_doubles VARCHAR)<|im_end|>
<|im_start|>user
Name the womens doubles when mens doubles is charalambos kazilas stepan partemian<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (torque VARCHAR, power VARCHAR)",
"role": "system"
},
{
"content": "What Torque has a Power of HP (KW)?",
"role": "user"
},
{
"content": "SELECT torque FROM table_name_21 WHERE power = \"hp (kw)\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (torque VARCHAR, power VARCHAR)<|im_end|>
<|im_start|>user
What Torque has a Power of HP (KW)?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1543845_63 (locale VARCHAR, stolen_ends VARCHAR, shot_pct VARCHAR)",
"role": "system"
},
{
"content": "What was the location when the stolen ends is 12 and shot pct is 77%?",
"role": "user"
},
{
"content": "SELECT locale FROM table_1543845_63 WHERE stolen_ends = 12 AND shot_pct = \"77%\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1543845_63 (locale VARCHAR, stolen_ends VARCHAR, shot_pct VARCHAR)<|im_end|>
<|im_start|>user
What was the location when the stolen ends is 12 and shot pct is 77%?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (trans_1 VARCHAR, total_time VARCHAR)",
"role": "system"
},
{
"content": "How long did the trans 1 take when 2:00:40.20 is the total time?",
"role": "user"
},
{
"content": "SELECT trans_1 FROM table_name_28 WHERE total_time = \"2:00:40.20\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (trans_1 VARCHAR, total_time VARCHAR)<|im_end|>
<|im_start|>user
How long did the trans 1 take when 2:00:40.20 is the total 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_88 (position VARCHAR, round VARCHAR, pick VARCHAR, college VARCHAR)",
"role": "system"
},
{
"content": "Which Notre Dame position has a pick lower than 5 and round 7?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_88 WHERE pick < 5 AND college = \"notre dame\" AND round = 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_88 (position VARCHAR, round VARCHAR, pick VARCHAR, college VARCHAR)<|im_end|>
<|im_start|>user
Which Notre Dame position has a pick lower than 5 and round 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_22546460_4 (best_male_artist VARCHAR, best_male_mc VARCHAR)",
"role": "system"
},
{
"content": "Who was the Best Male Artist where Bankie Travolta won the Best Male MC?",
"role": "user"
},
{
"content": "SELECT best_male_artist FROM table_22546460_4 WHERE best_male_mc = \"Bankie Travolta\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_22546460_4 (best_male_artist VARCHAR, best_male_mc VARCHAR)<|im_end|>
<|im_start|>user
Who was the Best Male Artist where Bankie Travolta won the Best Male MC?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (authority VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Is Upper valley middle school public or private?",
"role": "user"
},
{
"content": "SELECT authority FROM table_name_2 WHERE name = \"upper valley middle school\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_2 (authority VARCHAR, name VARCHAR)<|im_end|>
<|im_start|>user
Is Upper valley middle school public or private?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (record VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What is Record, when Opponent is \"New York Knicks\"?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_11 WHERE opponent = \"new york knicks\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_11 (record VARCHAR, opponent VARCHAR)<|im_end|>
<|im_start|>user
What is Record, when Opponent is "New York Knicks"?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1342218_17 (candidates VARCHAR, party VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "List all candidates in the democratic party where the election had the incumbent Frank Chelf running.",
"role": "user"
},
{
"content": "SELECT candidates FROM table_1342218_17 WHERE party = \"Democratic\" AND incumbent = \"Frank Chelf\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1342218_17 (candidates VARCHAR, party VARCHAR, incumbent VARCHAR)<|im_end|>
<|im_start|>user
List all candidates in the democratic party where the election had the incumbent Frank Chelf running.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25055040_22 (mountains_classification VARCHAR, most_courageous VARCHAR)",
"role": "system"
},
{
"content": "When Yaroslav Popovych won most corageous, who won the mountains classification?",
"role": "user"
},
{
"content": "SELECT mountains_classification FROM table_25055040_22 WHERE most_courageous = \"Yaroslav Popovych\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_25055040_22 (mountains_classification VARCHAR, most_courageous VARCHAR)<|im_end|>
<|im_start|>user
When Yaroslav Popovych won most corageous, who won the mountains classification?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE authors (lname VARCHAR, fname VARCHAR)",
"role": "system"
},
{
"content": "Find the last name of the author with first name \"Amal\".",
"role": "user"
},
{
"content": "SELECT lname FROM authors WHERE fname = \"Amal\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE authors (lname VARCHAR, fname VARCHAR)<|im_end|>
<|im_start|>user
Find the last name of the author with first name "Amal".<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (margin INTEGER, score VARCHAR)",
"role": "system"
},
{
"content": "What was the margin of the score 52-12?",
"role": "user"
},
{
"content": "SELECT SUM(margin) FROM table_name_14 WHERE score = \"52-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_14 (margin INTEGER, score VARCHAR)<|im_end|>
<|im_start|>user
What was the margin of the score 52-12?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Organisations (organisation_type VARCHAR)",
"role": "system"
},
{
"content": "What are all the details of the organisations described as 'Sponsor'? Sort the result in an ascending order.",
"role": "user"
},
{
"content": "SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Organisations (organisation_type VARCHAR)<|im_end|>
<|im_start|>user
What are all the details of the organisations described as 'Sponsor'? Sort the result in an ascending order.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE singer_in_concert (singer_id VARCHAR, concert_id VARCHAR); CREATE TABLE concert (concert_id VARCHAR, year VARCHAR); CREATE TABLE singer (name VARCHAR, singer_id VARCHAR)",
"role": "system"
},
{
"content": "List all singer names in concerts in year 2014.",
"role": "user"
},
{
"content": "SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE singer_in_concert (singer_id VARCHAR, concert_id VARCHAR); CREATE TABLE concert (concert_id VARCHAR, year VARCHAR); CREATE TABLE singer (name VARCHAR, singer_id VARCHAR)<|im_end|>
<|im_start|>user
List all singer names in concerts in year 2014.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2385460_1 (stops VARCHAR, stations VARCHAR)",
"role": "system"
},
{
"content": "Name the stops for stations 36",
"role": "user"
},
{
"content": "SELECT stops FROM table_2385460_1 WHERE stations = 36",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_2385460_1 (stops VARCHAR, stations VARCHAR)<|im_end|>
<|im_start|>user
Name the stops for stations 36<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10935548_1 (title VARCHAR, directed_by VARCHAR)",
"role": "system"
},
{
"content": "Which episode was directed by Jean de Segonzac?",
"role": "user"
},
{
"content": "SELECT title FROM table_10935548_1 WHERE directed_by = \"Jean de Segonzac\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_10935548_1 (title VARCHAR, directed_by VARCHAR)<|im_end|>
<|im_start|>user
Which episode was directed by Jean de Segonzac?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1140073_2 (fastest_lap VARCHAR, pole_position VARCHAR)",
"role": "system"
},
{
"content": "Who had the fastest lap in the race where Patrick Tambay was on the pole?",
"role": "user"
},
{
"content": "SELECT fastest_lap FROM table_1140073_2 WHERE pole_position = \"Patrick Tambay\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1140073_2 (fastest_lap VARCHAR, pole_position VARCHAR)<|im_end|>
<|im_start|>user
Who had the fastest lap in the race where Patrick Tambay was on the pole?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (game INTEGER, opponent VARCHAR)",
"role": "system"
},
{
"content": "Which Game has an Opponent of @ carolina hurricanes?",
"role": "user"
},
{
"content": "SELECT SUM(game) FROM table_name_94 WHERE opponent = \"@ carolina hurricanes\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (game INTEGER, opponent VARCHAR)<|im_end|>
<|im_start|>user
Which Game has an Opponent of @ carolina hurricanes?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (high_rebounds VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What is the high rebounds with a record that is 18-14?",
"role": "user"
},
{
"content": "SELECT high_rebounds FROM table_name_44 WHERE record = \"18-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_44 (high_rebounds VARCHAR, record VARCHAR)<|im_end|>
<|im_start|>user
What is the high rebounds with a record that is 18-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 death (killed INTEGER)",
"role": "system"
},
{
"content": "What is maximum and minimum death toll caused each time?",
"role": "user"
},
{
"content": "SELECT MAX(killed), MIN(killed) FROM death",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE death (killed INTEGER)<|im_end|>
<|im_start|>user
What is maximum and minimum death toll caused each 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_86 (goals_conceded INTEGER, points VARCHAR, played VARCHAR)",
"role": "system"
},
{
"content": "What are the total amount of Goals Conceded when the Points are less than 26, and when the value for Played is less than 18?",
"role": "user"
},
{
"content": "SELECT SUM(goals_conceded) FROM table_name_86 WHERE points < 26 AND played < 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_86 (goals_conceded INTEGER, points VARCHAR, played VARCHAR)<|im_end|>
<|im_start|>user
What are the total amount of Goals Conceded when the Points are less than 26, and when the value for Played is less than 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_12 (genre VARCHAR, original_title VARCHAR)",
"role": "system"
},
{
"content": "What is the Genre for Malina (ger.-aus.-fr.), an Original Title?",
"role": "user"
},
{
"content": "SELECT genre FROM table_name_12 WHERE original_title = \"malina (ger.-aus.-fr.)\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (genre VARCHAR, original_title VARCHAR)<|im_end|>
<|im_start|>user
What is the Genre for Malina (ger.-aus.-fr.), an Original Title?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2430014_9 (series_no INTEGER)",
"role": "system"
},
{
"content": "Name the least series number",
"role": "user"
},
{
"content": "SELECT MIN(series_no) FROM table_2430014_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_2430014_9 (series_no INTEGER)<|im_end|>
<|im_start|>user
Name the least series 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_91 (icao VARCHAR, city VARCHAR)",
"role": "system"
},
{
"content": "What is the IcAO of Frankfurt?",
"role": "user"
},
{
"content": "SELECT icao FROM table_name_91 WHERE city = \"frankfurt\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (icao VARCHAR, city VARCHAR)<|im_end|>
<|im_start|>user
What is the IcAO of Frankfurt?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (rating INTEGER, air_date VARCHAR)",
"role": "system"
},
{
"content": "what is the average rating when the air date is november 23, 2007?",
"role": "user"
},
{
"content": "SELECT AVG(rating) FROM table_name_46 WHERE air_date = \"november 23, 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 (rating INTEGER, air_date VARCHAR)<|im_end|>
<|im_start|>user
what is the average rating when the air date is november 23, 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_86 (location VARCHAR, size VARCHAR)",
"role": "system"
},
{
"content": "What location was the campus that has a size of 245 acres?",
"role": "user"
},
{
"content": "SELECT location FROM table_name_86 WHERE size = \"245 acres\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (location VARCHAR, size VARCHAR)<|im_end|>
<|im_start|>user
What location was the campus that has a size of 245 acres?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE employees (job_id VARCHAR, hire_date INTEGER)",
"role": "system"
},
{
"content": "Find job id and date of hire for those employees who was hired between November 5th, 2007 and July 5th, 2009.",
"role": "user"
},
{
"content": "SELECT job_id, hire_date FROM employees WHERE hire_date BETWEEN '2007-11-05' AND '2009-07-05'",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE employees (job_id VARCHAR, hire_date INTEGER)<|im_end|>
<|im_start|>user
Find job id and date of hire for those employees who was hired between November 5th, 2007 and July 5th, 2009.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (score VARCHAR, result VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "On 9/3/97, what was the score that resulted in a w?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_72 WHERE result = \"w\" AND date = \"9/3/97\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_72 (score VARCHAR, result VARCHAR, date VARCHAR)<|im_end|>
<|im_start|>user
On 9/3/97, what was the score that resulted in a w?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29281529_2 (airdate VARCHAR, winner VARCHAR)",
"role": "system"
},
{
"content": "What date did the episode air when guy grossi won?",
"role": "user"
},
{
"content": "SELECT airdate FROM table_29281529_2 WHERE winner = \"Guy Grossi\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_29281529_2 (airdate VARCHAR, winner VARCHAR)<|im_end|>
<|im_start|>user
What date did the episode air when guy grossi won?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_54 (icao VARCHAR, city VARCHAR)",
"role": "system"
},
{
"content": "What is the ICAO for the airport in Ningbo?",
"role": "user"
},
{
"content": "SELECT icao FROM table_name_54 WHERE city = \"ningbo\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_54 (icao VARCHAR, city VARCHAR)<|im_end|>
<|im_start|>user
What is the ICAO for the airport in Ningbo?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE singer (Citizenship VARCHAR, Net_Worth_Millions INTEGER)",
"role": "system"
},
{
"content": "Show different citizenships and the maximum net worth of singers of each citizenship.",
"role": "user"
},
{
"content": "SELECT Citizenship, MAX(Net_Worth_Millions) FROM singer GROUP BY Citizenship",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE singer (Citizenship VARCHAR, Net_Worth_Millions INTEGER)<|im_end|>
<|im_start|>user
Show different citizenships and the maximum net worth of singers of each citizenship.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (gloss VARCHAR, virtue VARCHAR)",
"role": "system"
},
{
"content": "What is the Diligence Virtues Gloss?",
"role": "user"
},
{
"content": "SELECT gloss FROM table_name_22 WHERE virtue = \"diligence\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (gloss VARCHAR, virtue VARCHAR)<|im_end|>
<|im_start|>user
What is the Diligence Virtues Gloss?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE users (user_login VARCHAR)",
"role": "system"
},
{
"content": "How many users are logged in?",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM users WHERE user_login = 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 users (user_login VARCHAR)<|im_end|>
<|im_start|>user
How many users are logged in?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_18 (Id VARCHAR)",
"role": "system"
},
{
"content": "What was the 2012 result associated with a 2007 finish of 2R and a 2009 of 1R?",
"role": "user"
},
{
"content": "SELECT 2012 FROM table_name_18 WHERE 2007 = \"2r\" AND 2009 = \"1r\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (Id VARCHAR)<|im_end|>
<|im_start|>user
What was the 2012 result associated with a 2007 finish of 2R and a 2009 of 1R?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE SECTION (semester VARCHAR, YEAR VARCHAR)",
"role": "system"
},
{
"content": "Find the year and semester when offers the largest number of courses.",
"role": "user"
},
{
"content": "SELECT semester, YEAR FROM SECTION GROUP BY semester, YEAR ORDER BY COUNT(*) DESC LIMIT 1",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE SECTION (semester VARCHAR, YEAR VARCHAR)<|im_end|>
<|im_start|>user
Find the year and semester when offers the largest number of courses.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (tries INTEGER, conv VARCHAR, start VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is the average number of tries that has a start larger than 32, is a player of seremaia bai that also has a conversion score larger than 47?",
"role": "user"
},
{
"content": "SELECT AVG(tries) FROM table_name_22 WHERE start > 32 AND player = \"seremaia bai\" AND conv > 47",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (tries INTEGER, conv VARCHAR, start VARCHAR, player VARCHAR)<|im_end|>
<|im_start|>user
What is the average number of tries that has a start larger than 32, is a player of seremaia bai that also has a conversion score larger than 47?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (score VARCHAR, loss VARCHAR)",
"role": "system"
},
{
"content": "what was the score in the loss to tapani (0-1)?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_39 WHERE loss = \"tapani (0-1)\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_39 (score VARCHAR, loss VARCHAR)<|im_end|>
<|im_start|>user
what was the score in the loss to tapani (0-1)?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18299148_1 (city VARCHAR, resolution VARCHAR)",
"role": "system"
},
{
"content": "Which city has a resolution that is negotiated exile in Austria?",
"role": "user"
},
{
"content": "SELECT city FROM table_18299148_1 WHERE resolution = \"Negotiated exile in Austria\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_18299148_1 (city VARCHAR, resolution VARCHAR)<|im_end|>
<|im_start|>user
Which city has a resolution that is negotiated exile in Austria?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_256286_5 (_percentage_yes VARCHAR, yes_votes VARCHAR)",
"role": "system"
},
{
"content": "What is the yes percentage in the measure that had 35270 yes votes? ",
"role": "user"
},
{
"content": "SELECT _percentage_yes FROM table_256286_5 WHERE yes_votes = 35270",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_256286_5 (_percentage_yes VARCHAR, yes_votes VARCHAR)<|im_end|>
<|im_start|>user
What is the yes percentage in the measure that had 35270 yes votes? <|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_41 (area__km_2__ INTEGER, rank VARCHAR, location VARCHAR, population__2000_ VARCHAR)",
"role": "system"
},
{
"content": "What is the largest area in Alaska with a population of 39 and rank over 19?",
"role": "user"
},
{
"content": "SELECT MAX(area__km_2__) FROM table_name_41 WHERE location = \"alaska\" AND population__2000_ = \"39\" AND rank > 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_41 (area__km_2__ INTEGER, rank VARCHAR, location VARCHAR, population__2000_ VARCHAR)<|im_end|>
<|im_start|>user
What is the largest area in Alaska with a population of 39 and rank over 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_name_82 (opponent VARCHAR, week VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent on week 7?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_82 WHERE week = \"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_82 (opponent VARCHAR, week VARCHAR)<|im_end|>
<|im_start|>user
Who was the opponent on week 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_57 (producer VARCHAR, director VARCHAR)",
"role": "system"
},
{
"content": "What is Director Erik Matti's Producer?",
"role": "user"
},
{
"content": "SELECT producer FROM table_name_57 WHERE director = \"erik matti\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_57 (producer VARCHAR, director VARCHAR)<|im_end|>
<|im_start|>user
What is Director Erik Matti's Producer?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10682862_68 (players INTEGER)",
"role": "system"
},
{
"content": "What's the smallest number of players?",
"role": "user"
},
{
"content": "SELECT MIN(players) FROM table_10682862_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_10682862_68 (players INTEGER)<|im_end|>
<|im_start|>user
What's the smallest number of players?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27713583_2 (date VARCHAR, high_assists VARCHAR)",
"role": "system"
},
{
"content": "what is the date of the game that the high assists is raymond felton (4)?",
"role": "user"
},
{
"content": "SELECT date FROM table_27713583_2 WHERE high_assists = \"Raymond Felton (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_27713583_2 (date VARCHAR, high_assists VARCHAR)<|im_end|>
<|im_start|>user
what is the date of the game that the high assists is raymond felton (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_24466191_1 (poles VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "Name the number of poles for 15th position",
"role": "user"
},
{
"content": "SELECT COUNT(poles) FROM table_24466191_1 WHERE position = \"15th\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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 (poles VARCHAR, position VARCHAR)<|im_end|>
<|im_start|>user
Name the number of poles for 15th position<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (attendance INTEGER, record VARCHAR)",
"role": "system"
},
{
"content": "What was the attendance when the record was 77-54?",
"role": "user"
},
{
"content": "SELECT MIN(attendance) FROM table_name_90 WHERE record = \"77-54\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (attendance INTEGER, record VARCHAR)<|im_end|>
<|im_start|>user
What was the attendance when the record was 77-54?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_24 (games INTEGER, term_ VARCHAR, c_ VARCHAR)",
"role": "system"
},
{
"content": "What is the of games when for the term [c] of 1969 – 1973?",
"role": "user"
},
{
"content": "SELECT SUM(games) FROM table_name_24 WHERE term_[c_] = \"1969 – 1973\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_24 (games INTEGER, term_ VARCHAR, c_ VARCHAR)<|im_end|>
<|im_start|>user
What is the of games when for the term [c] of 1969 – 1973?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_82 (kuala_lumpur INTEGER, durban VARCHAR, mar_del_plata VARCHAR)",
"role": "system"
},
{
"content": "What is the highest Kuala Lumpur value with a Durban value less than 1 and a Mar Del Plata value greater than 0?",
"role": "user"
},
{
"content": "SELECT MAX(kuala_lumpur) FROM table_name_82 WHERE durban < 1 AND mar_del_plata > 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_82 (kuala_lumpur INTEGER, durban VARCHAR, mar_del_plata VARCHAR)<|im_end|>
<|im_start|>user
What is the highest Kuala Lumpur value with a Durban value less than 1 and a Mar Del Plata value greater 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_7 (year_s__won VARCHAR, country VARCHAR, to_par VARCHAR)",
"role": "system"
},
{
"content": "In what year did the United States win To par greater than 14",
"role": "user"
},
{
"content": "SELECT year_s__won FROM table_name_7 WHERE country = \"united states\" AND to_par > 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_7 (year_s__won VARCHAR, country VARCHAR, to_par VARCHAR)<|im_end|>
<|im_start|>user
In what year did the United States win To par greater than 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_98 (mac_os_x VARCHAR, haiku VARCHAR, client VARCHAR)",
"role": "system"
},
{
"content": "Which Mac OSX had no haiku and a client that was dc++?",
"role": "user"
},
{
"content": "SELECT mac_os_x FROM table_name_98 WHERE haiku = \"no\" AND client = \"dc++\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (mac_os_x VARCHAR, haiku VARCHAR, client VARCHAR)<|im_end|>
<|im_start|>user
Which Mac OSX had no haiku and a client that was dc++?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (Id VARCHAR)",
"role": "system"
},
{
"content": "What is 1997, when 2003 is 0 / 4?",
"role": "user"
},
{
"content": "SELECT 1997 FROM table_name_22 WHERE 2003 = \"0 / 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_22 (Id VARCHAR)<|im_end|>
<|im_start|>user
What is 1997, when 2003 is 0 / 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_79 (name VARCHAR, lane VARCHAR)",
"role": "system"
},
{
"content": "Which name has a Lane of 7?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_79 WHERE lane = 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_79 (name VARCHAR, lane VARCHAR)<|im_end|>
<|im_start|>user
Which name has a Lane of 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_24 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest gold when there are 0 bronze and the total is less than 2, and silver is less than 0?",
"role": "user"
},
{
"content": "SELECT MIN(gold) FROM table_name_24 WHERE bronze = 0 AND total < 2 AND silver < 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_24 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR)<|im_end|>
<|im_start|>user
What is the lowest gold when there are 0 bronze and the total is less than 2, and silver 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_19508635_1 (week__number VARCHAR, theme VARCHAR)",
"role": "system"
},
{
"content": "Name the week number for the beatles",
"role": "user"
},
{
"content": "SELECT week__number FROM table_19508635_1 WHERE theme = \"The Beatles\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_19508635_1 (week__number VARCHAR, theme VARCHAR)<|im_end|>
<|im_start|>user
Name the week number for the beatles<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_66 (conference_matchups VARCHAR, city VARCHAR)",
"role": "system"
},
{
"content": "What was the conference matchup for the bowl game played in Glendale, Arizona?",
"role": "user"
},
{
"content": "SELECT conference_matchups FROM table_name_66 WHERE city = \"glendale, arizona\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_66 (conference_matchups VARCHAR, city VARCHAR)<|im_end|>
<|im_start|>user
What was the conference matchup for the bowl game played in Glendale, Arizona?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29135051_3 (broadcast_date VARCHAR, guest_s_ VARCHAR)",
"role": "system"
},
{
"content": "when was the episode guest starring michael mcintyre and alex james broadcasted",
"role": "user"
},
{
"content": "SELECT broadcast_date FROM table_29135051_3 WHERE guest_s_ = \"Michael McIntyre and Alex James\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_29135051_3 (broadcast_date VARCHAR, guest_s_ VARCHAR)<|im_end|>
<|im_start|>user
when was the episode guest starring michael mcintyre and alex james broadcasted<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE department (school_code VARCHAR, dept_code VARCHAR); CREATE TABLE CLASS (crs_code VARCHAR); CREATE TABLE course (crs_code VARCHAR, dept_code VARCHAR)",
"role": "system"
},
{
"content": "Find the number of classes in each school.",
"role": "user"
},
{
"content": "SELECT COUNT(*), T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T2.dept_code = T3.dept_code GROUP BY T3.school_code",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE department (school_code VARCHAR, dept_code VARCHAR); CREATE TABLE CLASS (crs_code VARCHAR); CREATE TABLE course (crs_code VARCHAR, dept_code VARCHAR)<|im_end|>
<|im_start|>user
Find the number of classes in each school.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_7 (opponent VARCHAR, week VARCHAR)",
"role": "system"
},
{
"content": "Which team was the opponent on week 15?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_7 WHERE week = 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_7 (opponent VARCHAR, week VARCHAR)<|im_end|>
<|im_start|>user
Which team was the opponent on week 15?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (total INTEGER, nation VARCHAR, gold VARCHAR, silver VARCHAR)",
"role": "system"
},
{
"content": "Which total is highest with 0 gold and more than 0 silver, in Ukraine?",
"role": "user"
},
{
"content": "SELECT MAX(total) FROM table_name_80 WHERE gold = 0 AND silver > 0 AND nation = \"ukraine\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (total INTEGER, nation VARCHAR, gold VARCHAR, silver VARCHAR)<|im_end|>
<|im_start|>user
Which total is highest with 0 gold and more than 0 silver, in Ukraine?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20181270_3 (landesliga_süd VARCHAR, bayernliga VARCHAR)",
"role": "system"
},
{
"content": "Name the landesliga sud for sg quelle fürth",
"role": "user"
},
{
"content": "SELECT landesliga_süd FROM table_20181270_3 WHERE bayernliga = \"SG Quelle Fürth\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_20181270_3 (landesliga_süd VARCHAR, bayernliga VARCHAR)<|im_end|>
<|im_start|>user
Name the landesliga sud for sg quelle fürth<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (october VARCHAR, game VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "What day in october was game number 4 with under 3 points?",
"role": "user"
},
{
"content": "SELECT COUNT(october) FROM table_name_18 WHERE game = 4 AND points < 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_18 (october VARCHAR, game VARCHAR, points VARCHAR)<|im_end|>
<|im_start|>user
What day in october was game number 4 with under 3 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_86 (drawn INTEGER, played VARCHAR, tries VARCHAR, _percentage_won VARCHAR)",
"role": "system"
},
{
"content": "What is the average draws for a player larger than 16 with more than 1 tries and a win percentage smaller than 56.15%?",
"role": "user"
},
{
"content": "SELECT AVG(drawn) FROM table_name_86 WHERE tries > 1 AND _percentage_won < 56.15 AND played > 16",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_86 (drawn INTEGER, played VARCHAR, tries VARCHAR, _percentage_won VARCHAR)<|im_end|>
<|im_start|>user
What is the average draws for a player larger than 16 with more than 1 tries and a win percentage smaller than 56.15%?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_46 (ebit__us_ VARCHAR, year_to_april VARCHAR, earnings_per_share__¢_ VARCHAR)",
"role": "system"
},
{
"content": "Name the total number of EBIT (US $m) in 2011 and a Earnings per share (¢) larger than 47?",
"role": "user"
},
{
"content": "SELECT COUNT(ebit__us_) AS $m_ FROM table_name_46 WHERE year_to_april = 2011 AND earnings_per_share__¢_ > 47",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (ebit__us_ VARCHAR, year_to_april VARCHAR, earnings_per_share__¢_ VARCHAR)<|im_end|>
<|im_start|>user
Name the total number of EBIT (US $m) in 2011 and a Earnings per share (¢) larger than 47?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (opponent VARCHAR, loss VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent at the game that had a loss of Bell (6–9)?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_96 WHERE loss = \"bell (6–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_96 (opponent VARCHAR, loss VARCHAR)<|im_end|>
<|im_start|>user
Who was the opponent at the game that had a loss of Bell (6–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_95 (week_5 VARCHAR, week_3 VARCHAR)",
"role": "system"
},
{
"content": "Felicia Taylor was cyber girl in week 3, so who was the cyber girl in week 5?",
"role": "user"
},
{
"content": "SELECT week_5 FROM table_name_95 WHERE week_3 = \"felicia taylor\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_95 (week_5 VARCHAR, week_3 VARCHAR)<|im_end|>
<|im_start|>user
Felicia Taylor was cyber girl in week 3, so who was the cyber girl in week 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_95 (tournament VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "Tell me the tournament for kathy horvath opponent",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_95 WHERE opponent = \"kathy horvath\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_95 (tournament VARCHAR, opponent VARCHAR)<|im_end|>
<|im_start|>user
Tell me the tournament for kathy horvath opponent<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25923164_1 (original_air_date VARCHAR, written_by VARCHAR)",
"role": "system"
},
{
"content": "What was the original air date of the episode written by amanda segel?",
"role": "user"
},
{
"content": "SELECT original_air_date FROM table_25923164_1 WHERE written_by = \"Amanda Segel\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_25923164_1 (original_air_date VARCHAR, written_by VARCHAR)<|im_end|>
<|im_start|>user
What was the original air date of the episode written by amanda segel?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (year INTEGER, movie VARCHAR)",
"role": "system"
},
{
"content": "What was the average year that Thuppakki movies came out?",
"role": "user"
},
{
"content": "SELECT AVG(year) FROM table_name_12 WHERE movie = \"thuppakki\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (year INTEGER, movie VARCHAR)<|im_end|>
<|im_start|>user
What was the average year that Thuppakki movies came out?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28798161_3 (average VARCHAR, bbi VARCHAR)",
"role": "system"
},
{
"content": "if the bbi is 4/39 what is the average",
"role": "user"
},
{
"content": "SELECT average FROM table_28798161_3 WHERE bbi = \"4/39\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_28798161_3 (average VARCHAR, bbi VARCHAR)<|im_end|>
<|im_start|>user
if the bbi is 4/39 what is the average<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE EVENTS (service_id VARCHAR, event_details VARCHAR)",
"role": "system"
},
{
"content": "List the service id and details for the events.",
"role": "user"
},
{
"content": "SELECT service_id, event_details FROM EVENTS",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE EVENTS (service_id VARCHAR, event_details VARCHAR)<|im_end|>
<|im_start|>user
List the service id and details for the 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_name_84 (field_goals INTEGER, touchdowns VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest number of field goals for a player with 3 touchdowns?",
"role": "user"
},
{
"content": "SELECT MIN(field_goals) FROM table_name_84 WHERE touchdowns = 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_84 (field_goals INTEGER, touchdowns VARCHAR)<|im_end|>
<|im_start|>user
What is the lowest number of field goals for a player with 3 touchdowns?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (casualties VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "Name the casualities for kabul area",
"role": "user"
},
{
"content": "SELECT casualties FROM table_name_74 WHERE location = \"kabul area\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_74 (casualties VARCHAR, location VARCHAR)<|im_end|>
<|im_start|>user
Name the casualities for kabul area<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (population_density__per_km²_ VARCHAR, name VARCHAR, population__2006_ VARCHAR)",
"role": "system"
},
{
"content": "How much Population density (per km²) has a Name of total northern villages, and a Population (2006) larger than 11414?",
"role": "user"
},
{
"content": "SELECT COUNT(population_density__per_km²_) FROM table_name_98 WHERE name = \"total northern villages\" AND population__2006_ > 11414",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (population_density__per_km²_ VARCHAR, name VARCHAR, population__2006_ VARCHAR)<|im_end|>
<|im_start|>user
How much Population density (per km²) has a Name of total northern villages, and a Population (2006) larger than 11414?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (money___ INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "How much money did the player Ed Oliver win?",
"role": "user"
},
{
"content": "SELECT SUM(money___) AS $__ FROM table_name_74 WHERE player = \"ed oliver\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_74 (money___ INTEGER, player VARCHAR)<|im_end|>
<|im_start|>user
How much money did the player Ed Oliver 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_26 (date VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What was the date for the 130-56 game?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_26 WHERE score = \"130-56\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (date VARCHAR, score VARCHAR)<|im_end|>
<|im_start|>user
What was the date for the 130-56 game?<|im_end|>
|