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_81 (game INTEGER, score VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What is the game associated with a score of 4 - 2, and a record of 25-39-9?",
"role": "user"
},
{
"content": "SELECT MAX(game) FROM table_name_81 WHERE score = \"4 - 2\" AND record = \"25-39-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_81 (game INTEGER, score VARCHAR, record VARCHAR)<|im_end|>
<|im_start|>user
What is the game associated with a score of 4 - 2, and a record of 25-39-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_37 (rank INTEGER, silver VARCHAR, total VARCHAR, nation VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest rank of Hungary where there was a total of 8 medals, including 2 silver?",
"role": "user"
},
{
"content": "SELECT MIN(rank) FROM table_name_37 WHERE total = 8 AND nation = \"hungary\" AND silver > 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_37 (rank INTEGER, silver VARCHAR, total VARCHAR, nation VARCHAR)<|im_end|>
<|im_start|>user
What is the lowest rank of Hungary where there was a total of 8 medals, including 2 silver?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (date VARCHAR, goal VARCHAR)",
"role": "system"
},
{
"content": "What was the date of the game where Esteban Paredes scored 2 goals?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_62 WHERE goal = 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_62 (date VARCHAR, goal VARCHAR)<|im_end|>
<|im_start|>user
What was the date of the game where Esteban Paredes scored 2 goals?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_51 (home_team VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "What is the home team score when st kilda is the away team?",
"role": "user"
},
{
"content": "SELECT home_team AS score FROM table_name_51 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_51 (home_team VARCHAR, away_team VARCHAR)<|im_end|>
<|im_start|>user
What is the home team score when st kilda is the away 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_65 (title VARCHAR, original_airdate VARCHAR)",
"role": "system"
},
{
"content": "What is the title of the episode originally aired on February 2, 2008?",
"role": "user"
},
{
"content": "SELECT title FROM table_name_65 WHERE original_airdate = \"february 2, 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_65 (title VARCHAR, original_airdate VARCHAR)<|im_end|>
<|im_start|>user
What is the title of the episode originally aired on February 2, 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_24 (money_requested__ INTEGER, episode VARCHAR, entrepreneur_s_ VARCHAR)",
"role": "system"
},
{
"content": "In episode 7 what was the highest amount of money requested by Jerry Mantalvanos & Paul Merker ?",
"role": "user"
},
{
"content": "SELECT MAX(money_requested__) AS £_ FROM table_name_24 WHERE episode = \"episode 7\" AND entrepreneur_s_ = \"jerry mantalvanos & paul merker\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (money_requested__ INTEGER, episode VARCHAR, entrepreneur_s_ VARCHAR)<|im_end|>
<|im_start|>user
In episode 7 what was the highest amount of money requested by Jerry Mantalvanos & Paul Merker ?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (venue VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "What venue had a draw?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_77 WHERE result = \"draw\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (venue VARCHAR, result VARCHAR)<|im_end|>
<|im_start|>user
What venue had a draw?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27547668_4 (directed_by VARCHAR, written_by VARCHAR)",
"role": "system"
},
{
"content": "what is the total number of films directy and written by john callaghan?",
"role": "user"
},
{
"content": "SELECT COUNT(directed_by) FROM table_27547668_4 WHERE written_by = \"John Callaghan\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_27547668_4 (directed_by VARCHAR, written_by VARCHAR)<|im_end|>
<|im_start|>user
what is the total number of films directy and written by john callaghan?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_6 (away_team VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "What is the away team with a 2 tie no.?",
"role": "user"
},
{
"content": "SELECT away_team FROM table_name_6 WHERE tie_no = \"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_6 (away_team VARCHAR, tie_no VARCHAR)<|im_end|>
<|im_start|>user
What is the away team with a 2 tie no.?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (record VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Date of October 25, 1964 involves what record?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_1 WHERE date = \"october 25, 1964\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_1 (record VARCHAR, date VARCHAR)<|im_end|>
<|im_start|>user
Date of October 25, 1964 involves what record?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_93 (lost INTEGER, drawn VARCHAR, played VARCHAR)",
"role": "system"
},
{
"content": "Which Lost is the highest one that has a Drawn smaller than 4, and a Played smaller than 9?",
"role": "user"
},
{
"content": "SELECT MAX(lost) FROM table_name_93 WHERE drawn < 4 AND played < 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_93 (lost INTEGER, drawn VARCHAR, played VARCHAR)<|im_end|>
<|im_start|>user
Which Lost is the highest one that has a Drawn smaller than 4, and a Played smaller than 9?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28059992_6 (college VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What college did Francis Bellefroid go to? ",
"role": "user"
},
{
"content": "SELECT college FROM table_28059992_6 WHERE player = \"Francis Bellefroid\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_28059992_6 (college VARCHAR, player VARCHAR)<|im_end|>
<|im_start|>user
What college did Francis Bellefroid go to? <|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (province VARCHAR, south_asians_2001 VARCHAR, south_asians_2011 VARCHAR)",
"role": "system"
},
{
"content": "Which province had fewer than 190 South Asians in 2001 and 115 South Asians in 2011?",
"role": "user"
},
{
"content": "SELECT province FROM table_name_56 WHERE south_asians_2001 < 190 AND south_asians_2011 = 115",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_56 (province VARCHAR, south_asians_2001 VARCHAR, south_asians_2011 VARCHAR)<|im_end|>
<|im_start|>user
Which province had fewer than 190 South Asians in 2001 and 115 South Asians in 2011?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10015132_9 (school_club_team VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What school/club team is Trey Johnson on?",
"role": "user"
},
{
"content": "SELECT school_club_team FROM table_10015132_9 WHERE player = \"Trey Johnson\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_10015132_9 (school_club_team VARCHAR, player VARCHAR)<|im_end|>
<|im_start|>user
What school/club team is Trey Johnson on?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20688030_1 (county VARCHAR, obama_percentage VARCHAR)",
"role": "system"
},
{
"content": "What is the total of countys where Obama is popular by 35.44%?",
"role": "user"
},
{
"content": "SELECT COUNT(county) FROM table_20688030_1 WHERE obama_percentage = \"35.44%\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_20688030_1 (county VARCHAR, obama_percentage VARCHAR)<|im_end|>
<|im_start|>user
What is the total of countys where Obama is popular by 35.44%?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (gold INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR)",
"role": "system"
},
{
"content": "What is the average number of golds for nations with less than 2 silver, named uzbekistan, and less than 4 bronze?",
"role": "user"
},
{
"content": "SELECT AVG(gold) FROM table_name_51 WHERE silver < 2 AND nation = \"uzbekistan\" AND bronze < 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_51 (gold INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR)<|im_end|>
<|im_start|>user
What is the average number of golds for nations with less than 2 silver, named uzbekistan, and less than 4 bronze?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23696862_6 (name VARCHAR, wsop_cashes VARCHAR, final_place VARCHAR)",
"role": "system"
},
{
"content": "Who had 2 WSOP cashes and was 6th in final place?",
"role": "user"
},
{
"content": "SELECT name FROM table_23696862_6 WHERE wsop_cashes = 2 AND final_place = \"6th\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_23696862_6 (name VARCHAR, wsop_cashes VARCHAR, final_place VARCHAR)<|im_end|>
<|im_start|>user
Who had 2 WSOP cashes and was 6th in final place?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_17 (no_5 VARCHAR, no_6 VARCHAR, no_10 VARCHAR)",
"role": "system"
},
{
"content": "Who was No. 5 when No. 6 Mason and No. 10 Jackson?",
"role": "user"
},
{
"content": "SELECT no_5 FROM table_name_17 WHERE no_6 = \"mason\" AND no_10 = \"jackson\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_17 (no_5 VARCHAR, no_6 VARCHAR, no_10 VARCHAR)<|im_end|>
<|im_start|>user
Who was No. 5 when No. 6 Mason and No. 10 Jackson?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_6 (visitor VARCHAR, venue VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "Who is the visitor at the axa sports center in round 20?",
"role": "user"
},
{
"content": "SELECT visitor FROM table_name_6 WHERE venue = \"axa sports center\" AND round = 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_6 (visitor VARCHAR, venue VARCHAR, round VARCHAR)<|im_end|>
<|im_start|>user
Who is the visitor at the axa sports center in round 20?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (gold VARCHAR, sport VARCHAR, bronze VARCHAR)",
"role": "system"
},
{
"content": "When tennis has less than 2 bronze, what is the total number of Gold?",
"role": "user"
},
{
"content": "SELECT COUNT(gold) FROM table_name_53 WHERE sport = \"tennis\" AND bronze < 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_53 (gold VARCHAR, sport VARCHAR, bronze VARCHAR)<|im_end|>
<|im_start|>user
When tennis has less than 2 bronze, what is the total number of Gold?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (torque VARCHAR, notes VARCHAR, engine VARCHAR)",
"role": "system"
},
{
"content": "what is the torque when the notes are laredo, limited, overland and the engine is 5.7l hemi v8?",
"role": "user"
},
{
"content": "SELECT torque FROM table_name_69 WHERE notes = \"laredo, limited, overland\" AND engine = \"5.7l hemi v8\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (torque VARCHAR, notes VARCHAR, engine VARCHAR)<|im_end|>
<|im_start|>user
what is the torque when the notes are laredo, limited, overland and the engine is 5.7l hemi v8?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (year INTEGER, venue VARCHAR)",
"role": "system"
},
{
"content": "What is the average year for Ponce, Puerto Rico events?",
"role": "user"
},
{
"content": "SELECT AVG(year) FROM table_name_15 WHERE venue = \"ponce, puerto rico\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_15 (year INTEGER, venue VARCHAR)<|im_end|>
<|im_start|>user
What is the average year for Ponce, Puerto Rico 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_19524523_1 (champ_car_world_series__2004_2007_ INTEGER, usac__1956_1995_ VARCHAR)",
"role": "system"
},
{
"content": "What is the most Champ Car wins for any driver with a USAC record of 2?",
"role": "user"
},
{
"content": "SELECT MAX(champ_car_world_series__2004_2007_) FROM table_19524523_1 WHERE usac__1956_1995_ = 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_19524523_1 (champ_car_world_series__2004_2007_ INTEGER, usac__1956_1995_ VARCHAR)<|im_end|>
<|im_start|>user
What is the most Champ Car wins for any driver with a USAC record of 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_18 (podiums INTEGER, class VARCHAR, f_laps VARCHAR)",
"role": "system"
},
{
"content": "How many Podiums have a Class of 250cc, and an F laps of 0?",
"role": "user"
},
{
"content": "SELECT SUM(podiums) FROM table_name_18 WHERE class = \"250cc\" AND f_laps = 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_18 (podiums INTEGER, class VARCHAR, f_laps VARCHAR)<|im_end|>
<|im_start|>user
How many Podiums have a Class of 250cc, and an F laps of 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_2897457_2 (nationality VARCHAR, nhl_team VARCHAR)",
"role": "system"
},
{
"content": "What is the nationality of the player picked to go to Washington Capitals?",
"role": "user"
},
{
"content": "SELECT nationality FROM table_2897457_2 WHERE nhl_team = \"Washington Capitals\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_2897457_2 (nationality VARCHAR, nhl_team VARCHAR)<|im_end|>
<|im_start|>user
What is the nationality of the player picked to go to Washington Capitals?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (school VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What school does the Blue Raiders belong to?",
"role": "user"
},
{
"content": "SELECT school FROM table_name_16 WHERE team = \"blue raiders\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (school VARCHAR, team VARCHAR)<|im_end|>
<|im_start|>user
What school does the Blue Raiders belong to?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (points INTEGER, extra_points VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What are the average points White made with 0 extra points?",
"role": "user"
},
{
"content": "SELECT AVG(points) FROM table_name_14 WHERE extra_points = 0 AND player = \"white\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (points INTEGER, extra_points VARCHAR, player VARCHAR)<|im_end|>
<|im_start|>user
What are the average points White made with 0 extra 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 BOOKINGS (Planned_Delivery_Date VARCHAR, Actual_Delivery_Date VARCHAR)",
"role": "system"
},
{
"content": "Show all the planned delivery dates and actual delivery dates of bookings.",
"role": "user"
},
{
"content": "SELECT Planned_Delivery_Date, Actual_Delivery_Date FROM BOOKINGS",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE BOOKINGS (Planned_Delivery_Date VARCHAR, Actual_Delivery_Date VARCHAR)<|im_end|>
<|im_start|>user
Show all the planned delivery dates and actual delivery dates of bookings.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (rank VARCHAR, wins VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What rank is Miller Barber with more than 11 wins?",
"role": "user"
},
{
"content": "SELECT rank FROM table_name_35 WHERE wins > 11 AND player = \"miller barber\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (rank VARCHAR, wins VARCHAR, player VARCHAR)<|im_end|>
<|im_start|>user
What rank is Miller Barber with more than 11 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_18 (draws VARCHAR, losses VARCHAR, hampden_fl VARCHAR)",
"role": "system"
},
{
"content": "Which Draws have Losses larger than 8, and a Hampden FL of terang-mortlake?",
"role": "user"
},
{
"content": "SELECT draws FROM table_name_18 WHERE losses > 8 AND hampden_fl = \"terang-mortlake\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (draws VARCHAR, losses VARCHAR, hampden_fl VARCHAR)<|im_end|>
<|im_start|>user
Which Draws have Losses larger than 8, and a Hampden FL of terang-mortlake?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27116696_1 (us_viewers__million_ VARCHAR, directed_by VARCHAR)",
"role": "system"
},
{
"content": "How many U.S. viewers (million) watched the episode directed by Allison Liddi-Brown?",
"role": "user"
},
{
"content": "SELECT us_viewers__million_ FROM table_27116696_1 WHERE directed_by = \"Allison Liddi-Brown\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_27116696_1 (us_viewers__million_ VARCHAR, directed_by VARCHAR)<|im_end|>
<|im_start|>user
How many U.S. viewers (million) watched the episode directed by Allison Liddi-Brown?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28498999_3 (country VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the country for the score 72-63-71-68=274?",
"role": "user"
},
{
"content": "SELECT country FROM table_28498999_3 WHERE score = 72 - 63 - 71 - 68 = 274",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_28498999_3 (country VARCHAR, score VARCHAR)<|im_end|>
<|im_start|>user
What is the country for the score 72-63-71-68=274?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_31 (vuelta_wins VARCHAR, country VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "How many times is the country ireland and points more than 4?",
"role": "user"
},
{
"content": "SELECT COUNT(vuelta_wins) FROM table_name_31 WHERE country = \"ireland\" AND points > 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_31 (vuelta_wins VARCHAR, country VARCHAR, points VARCHAR)<|im_end|>
<|im_start|>user
How many times is the country ireland and points more than 4?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1342013_41 (candidates VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "What candidates were in the election when james patrick sutton was incumbent?",
"role": "user"
},
{
"content": "SELECT candidates FROM table_1342013_41 WHERE incumbent = \"James Patrick Sutton\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1342013_41 (candidates VARCHAR, incumbent VARCHAR)<|im_end|>
<|im_start|>user
What candidates were in the election when james patrick sutton was incumbent?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (name_of_deity VARCHAR, name_of_the_river VARCHAR)",
"role": "system"
},
{
"content": "What is the name of the diety for the river of sone?",
"role": "user"
},
{
"content": "SELECT name_of_deity FROM table_name_16 WHERE name_of_the_river = \"sone\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (name_of_deity VARCHAR, name_of_the_river VARCHAR)<|im_end|>
<|im_start|>user
What is the name of the diety for the river of sone?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27298240_26 (pluperfect VARCHAR, perfect VARCHAR)",
"role": "system"
},
{
"content": "What is the pluperfect for the perfect si bio/la; bio/la si?",
"role": "user"
},
{
"content": "SELECT pluperfect FROM table_27298240_26 WHERE perfect = \"si bio/la; bio/la si\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_27298240_26 (pluperfect VARCHAR, perfect VARCHAR)<|im_end|>
<|im_start|>user
What is the pluperfect for the perfect si bio/la; bio/la si?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, tournament VARCHAR)",
"role": "system"
},
{
"content": "What is the Date for the wgc-accenture match play championship?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_83 WHERE tournament = \"wgc-accenture match play championship\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (date VARCHAR, tournament VARCHAR)<|im_end|>
<|im_start|>user
What is the Date for the wgc-accenture match play championship?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12962773_5 (current_club VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "what's the current club with player being felipe reyes",
"role": "user"
},
{
"content": "SELECT current_club FROM table_12962773_5 WHERE player = \"Felipe Reyes\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_12962773_5 (current_club VARCHAR, player VARCHAR)<|im_end|>
<|im_start|>user
what's the current club with player being felipe reyes<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_13 (time VARCHAR, local_networked VARCHAR, ad_freq VARCHAR)",
"role": "system"
},
{
"content": "What time that is networked has an ad freq of 20 minutes until 7pm?",
"role": "user"
},
{
"content": "SELECT time FROM table_name_13 WHERE local_networked = \"networked\" AND ad_freq = \"20 minutes until 7pm\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_13 (time VARCHAR, local_networked VARCHAR, ad_freq VARCHAR)<|im_end|>
<|im_start|>user
What time that is networked has an ad freq of 20 minutes until 7pm?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_221653_1 (platelet_count VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR)",
"role": "system"
},
{
"content": "How many time does the platelet count occur when prothrombin time and bleeding time are prolonged?",
"role": "user"
},
{
"content": "SELECT COUNT(platelet_count) FROM table_221653_1 WHERE prothrombin_time = \"Prolonged\" AND bleeding_time = \"Prolonged\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_221653_1 (platelet_count VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR)<|im_end|>
<|im_start|>user
How many time does the platelet count occur when prothrombin time and bleeding time are prolonged?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_87 (language VARCHAR, network VARCHAR, genre VARCHAR, service VARCHAR)",
"role": "system"
},
{
"content": "What language is the moviein that is on UMP movies network through Sky service?",
"role": "user"
},
{
"content": "SELECT language FROM table_name_87 WHERE genre = \"movies\" AND service = \"sky\" AND network = \"ump movies\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_87 (language VARCHAR, network VARCHAR, genre VARCHAR, service VARCHAR)<|im_end|>
<|im_start|>user
What language is the moviein that is on UMP movies network through Sky service?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (segment_a VARCHAR, segment_d VARCHAR)",
"role": "system"
},
{
"content": "Which segment A also has a segment D of kitchen shears?",
"role": "user"
},
{
"content": "SELECT segment_a FROM table_name_57 WHERE segment_d = \"kitchen shears\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (segment_a VARCHAR, segment_d VARCHAR)<|im_end|>
<|im_start|>user
Which segment A also has a segment D of kitchen shears?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER)",
"role": "system"
},
{
"content": "What is the total amount of grants given by each organisations? Also list the organisation id.",
"role": "user"
},
{
"content": "SELECT SUM(grant_amount), organisation_id FROM Grants GROUP BY organisation_id",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER)<|im_end|>
<|im_start|>user
What is the total amount of grants given by each organisations? Also list the organisation id.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Which Date has a Record of 6-6?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_82 WHERE record = \"6-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_82 (date VARCHAR, record VARCHAR)<|im_end|>
<|im_start|>user
Which Date has a Record of 6-6?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (match INTEGER, lost VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest match that has a lost greater than 3, and kolejarz rawicz as the team?",
"role": "user"
},
{
"content": "SELECT MIN(match) FROM table_name_99 WHERE lost > 3 AND team = \"kolejarz rawicz\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (match INTEGER, lost VARCHAR, team VARCHAR)<|im_end|>
<|im_start|>user
What is the lowest match that has a lost greater than 3, and kolejarz rawicz as the 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_24565004_17 (goals¹ VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Name the number of goals for mauricio pochettino",
"role": "user"
},
{
"content": "SELECT COUNT(goals¹) FROM table_24565004_17 WHERE name = \"Mauricio Pochettino\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_24565004_17 (goals¹ VARCHAR, name VARCHAR)<|im_end|>
<|im_start|>user
Name the number of goals for mauricio pochettino<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, against VARCHAR)",
"role": "system"
},
{
"content": "What date has an against of pohang steelers?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_2 WHERE against = \"pohang steelers\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (date VARCHAR, against VARCHAR)<|im_end|>
<|im_start|>user
What date has an against of pohang steelers?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2140071_7 (season INTEGER)",
"role": "system"
},
{
"content": "What is the newest season?",
"role": "user"
},
{
"content": "SELECT MAX(season) FROM table_2140071_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_2140071_7 (season INTEGER)<|im_end|>
<|im_start|>user
What is the newest season?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341395_33 (result VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "what are all the result for New York 6 district",
"role": "user"
},
{
"content": "SELECT result FROM table_1341395_33 WHERE district = \"New York 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_1341395_33 (result VARCHAR, district VARCHAR)<|im_end|>
<|im_start|>user
what are all the result for New York 6 district<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12094300_1 (evening_gown VARCHAR, state VARCHAR)",
"role": "system"
},
{
"content": "How many times did district of Columbia receive a score for evening gown?",
"role": "user"
},
{
"content": "SELECT COUNT(evening_gown) FROM table_12094300_1 WHERE state = \"District of Columbia\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_12094300_1 (evening_gown VARCHAR, state VARCHAR)<|im_end|>
<|im_start|>user
How many times did district of Columbia receive a score for evening gown?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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, loss VARCHAR)",
"role": "system"
},
{
"content": "Loss of schrom happened on what date?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_39 WHERE loss = \"schrom\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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, loss VARCHAR)<|im_end|>
<|im_start|>user
Loss of schrom happened on what date?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341930_5 (party VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "Name the number of party with the incubent james william trimble",
"role": "user"
},
{
"content": "SELECT COUNT(party) FROM table_1341930_5 WHERE incumbent = \"James William Trimble\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1341930_5 (party VARCHAR, incumbent VARCHAR)<|im_end|>
<|im_start|>user
Name the number of party with the incubent james william trimble<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (segment_a VARCHAR, segment_b VARCHAR)",
"role": "system"
},
{
"content": "Segment B of aerospace fuel lines has what segment A?",
"role": "user"
},
{
"content": "SELECT segment_a FROM table_name_5 WHERE segment_b = \"aerospace fuel lines\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_5 (segment_a VARCHAR, segment_b VARCHAR)<|im_end|>
<|im_start|>user
Segment B of aerospace fuel lines has what segment A?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (airport VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "What was the total number of aircrafts in 2011 for sydney airport that was ranked number 1?",
"role": "user"
},
{
"content": "SELECT COUNT(2011) FROM table_name_48 WHERE airport = \"sydney airport\" AND 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_48 (airport VARCHAR, rank VARCHAR)<|im_end|>
<|im_start|>user
What was the total number of aircrafts in 2011 for sydney airport that was ranked number 1?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_71 (date_of_inauguration VARCHAR)",
"role": "system"
},
{
"content": "What was the date of the inauguration in the row with an entry of lifespan in the lifespan column?",
"role": "user"
},
{
"content": "SELECT date_of_inauguration FROM table_name_71 WHERE \"lifespan\" = \"lifespan\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_71 (date_of_inauguration VARCHAR)<|im_end|>
<|im_start|>user
What was the date of the inauguration in the row with an entry of lifespan in the lifespan column?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (gold INTEGER, nation VARCHAR, silver VARCHAR)",
"role": "system"
},
{
"content": "What is the average Gold where the Nation is Russia (rus) and the number of silver is less than 2?",
"role": "user"
},
{
"content": "SELECT AVG(gold) FROM table_name_99 WHERE nation = \"russia (rus)\" AND silver < 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_99 (gold INTEGER, nation VARCHAR, silver VARCHAR)<|im_end|>
<|im_start|>user
What is the average Gold where the Nation is Russia (rus) and the number of silver is less than 2?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_49 (player VARCHAR, events VARCHAR)",
"role": "system"
},
{
"content": "Which player competed in 12 events?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_49 WHERE events = 12",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_49 (player VARCHAR, events VARCHAR)<|im_end|>
<|im_start|>user
Which player competed in 12 events?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_197286_4 (further_cities VARCHAR, direction VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "Name the further cities for east romania",
"role": "user"
},
{
"content": "SELECT further_cities FROM table_197286_4 WHERE direction = \"East\" AND country = \"Romania\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_197286_4 (further_cities VARCHAR, direction VARCHAR, country VARCHAR)<|im_end|>
<|im_start|>user
Name the further cities for east romania<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE staff (staff_name VARCHAR, staff_gender VARCHAR, staff_id VARCHAR); CREATE TABLE Staff_Department_Assignments (staff_id VARCHAR, job_title_code VARCHAR)",
"role": "system"
},
{
"content": "Find the name and gender of the staff who has been assigned the job of Sales Person but never Clerical Staff.",
"role": "user"
},
{
"content": "SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = \"Sales Person\" EXCEPT SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = \"Clerical Staff\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE staff (staff_name VARCHAR, staff_gender VARCHAR, staff_id VARCHAR); CREATE TABLE Staff_Department_Assignments (staff_id VARCHAR, job_title_code VARCHAR)<|im_end|>
<|im_start|>user
Find the name and gender of the staff who has been assigned the job of Sales Person but never Clerical Staff.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (city_of_license VARCHAR, class VARCHAR, identifier VARCHAR)",
"role": "system"
},
{
"content": "Which city has a C1 class and Identifier of CBCD-FM?",
"role": "user"
},
{
"content": "SELECT city_of_license FROM table_name_77 WHERE class = \"c1\" AND identifier = \"cbcd-fm\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_77 (city_of_license VARCHAR, class VARCHAR, identifier VARCHAR)<|im_end|>
<|im_start|>user
Which city has a C1 class and Identifier of CBCD-FM?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26982362_2 (directed_by VARCHAR, original_airdate VARCHAR)",
"role": "system"
},
{
"content": "The episode with the original airdate October 8, 2010, is directed by who?",
"role": "user"
},
{
"content": "SELECT directed_by FROM table_26982362_2 WHERE original_airdate = \"October 8, 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_26982362_2 (directed_by VARCHAR, original_airdate VARCHAR)<|im_end|>
<|im_start|>user
The episode with the original airdate October 8, 2010, is directed by who?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12002388_1 (open_cup VARCHAR, reg_season VARCHAR)",
"role": "system"
},
{
"content": "What was the result of the open cup when they finished 4th in the regular season?",
"role": "user"
},
{
"content": "SELECT open_cup FROM table_12002388_1 WHERE reg_season = \"4th\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_12002388_1 (open_cup VARCHAR, reg_season VARCHAR)<|im_end|>
<|im_start|>user
What was the result of the open cup when they finished 4th in the regular season?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_32 (winning_song VARCHAR, debut_album VARCHAR)",
"role": "system"
},
{
"content": "Which winning song had a debut album in progress?",
"role": "user"
},
{
"content": "SELECT winning_song FROM table_name_32 WHERE debut_album = \"in progress\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_32 (winning_song VARCHAR, debut_album VARCHAR)<|im_end|>
<|im_start|>user
Which winning song had a debut album in progress?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_89 (report VARCHAR, date VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "What kind of report was for the game played on 29 November with Melbourne Tigers being the away team?",
"role": "user"
},
{
"content": "SELECT report FROM table_name_89 WHERE date = \"29 november\" AND away_team = \"melbourne tigers\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_89 (report VARCHAR, date VARCHAR, away_team VARCHAR)<|im_end|>
<|im_start|>user
What kind of report was for the game played on 29 November with Melbourne Tigers being the away 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_8 (league VARCHAR, play_offs VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What's the total number of League Cup with a Play-off larger than 2, and a Name of Mitch Cook Category:Articles with hCards?",
"role": "user"
},
{
"content": "SELECT COUNT(league) AS Cup FROM table_name_8 WHERE play_offs > 2 AND name = \"mitch cook category:articles with hcards\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_8 (league VARCHAR, play_offs VARCHAR, name VARCHAR)<|im_end|>
<|im_start|>user
What's the total number of League Cup with a Play-off larger than 2, and a Name of Mitch Cook Category:Articles with hCards?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26593762_2 (chairman VARCHAR, manager VARCHAR)",
"role": "system"
},
{
"content": "Who is the chairman of Mark Robins team?",
"role": "user"
},
{
"content": "SELECT chairman FROM table_26593762_2 WHERE manager = \"Mark Robins\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_26593762_2 (chairman VARCHAR, manager VARCHAR)<|im_end|>
<|im_start|>user
Who is the chairman of Mark Robins 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_9 (points INTEGER, club VARCHAR, goal_difference VARCHAR)",
"role": "system"
},
{
"content": "Which Points have a Club of cf calvo sotelo, and a Goal Difference larger than -3?",
"role": "user"
},
{
"content": "SELECT MAX(points) FROM table_name_9 WHERE club = \"cf calvo sotelo\" AND goal_difference > -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_9 (points INTEGER, club VARCHAR, goal_difference VARCHAR)<|im_end|>
<|im_start|>user
Which Points have a Club of cf calvo sotelo, and a Goal Difference larger than -3?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_39 (points VARCHAR, place INTEGER)",
"role": "system"
},
{
"content": "Which points has place smaller than 2?",
"role": "user"
},
{
"content": "SELECT points FROM table_name_39 WHERE place < 2",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_39 (points VARCHAR, place INTEGER)<|im_end|>
<|im_start|>user
Which points has place smaller than 2?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_222198_1 (orchestra VARCHAR, year_of_recording VARCHAR)",
"role": "system"
},
{
"content": "Where is the orchestra when the year of recording is 1934?",
"role": "user"
},
{
"content": "SELECT orchestra FROM table_222198_1 WHERE year_of_recording = 1934",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_222198_1 (orchestra VARCHAR, year_of_recording VARCHAR)<|im_end|>
<|im_start|>user
Where is the orchestra when the year of recording is 1934?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (fatalities VARCHAR, time VARCHAR)",
"role": "system"
},
{
"content": "What number of Fatalties is associated with the Time of 12:38:46?",
"role": "user"
},
{
"content": "SELECT fatalities FROM table_name_78 WHERE time = \"12:38:46\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (fatalities VARCHAR, time VARCHAR)<|im_end|>
<|im_start|>user
What number of Fatalties is associated with the Time of 12:38:46?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE film (title VARCHAR, special_features VARCHAR)",
"role": "system"
},
{
"content": "Which movies have 'Deleted Scenes' as a substring in the special feature?",
"role": "user"
},
{
"content": "SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%'",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE film (title VARCHAR, special_features VARCHAR)<|im_end|>
<|im_start|>user
Which movies have 'Deleted Scenes' as a substring in the special feature?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (role VARCHAR, title VARCHAR)",
"role": "system"
},
{
"content": "When alvin and the chipmunks meet frankenstein, what was the role?",
"role": "user"
},
{
"content": "SELECT role FROM table_name_99 WHERE title = \"alvin and the chipmunks meet frankenstein\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (role VARCHAR, title VARCHAR)<|im_end|>
<|im_start|>user
When alvin and the chipmunks meet frankenstein, what was the role?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1714685_1 (series VARCHAR, title VARCHAR)",
"role": "system"
},
{
"content": "When galaxy angel aa is the title what was the series?",
"role": "user"
},
{
"content": "SELECT series FROM table_1714685_1 WHERE title = \"Galaxy Angel 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_1714685_1 (series VARCHAR, title VARCHAR)<|im_end|>
<|im_start|>user
When galaxy angel aa is the title what was the series?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE book (Writer VARCHAR)",
"role": "system"
},
{
"content": "List the writers who have written more than one book.",
"role": "user"
},
{
"content": "SELECT Writer FROM book GROUP BY Writer HAVING COUNT(*) > 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 book (Writer VARCHAR)<|im_end|>
<|im_start|>user
List the writers who have written more than one book.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (seasons_completed INTEGER, finals_appearances VARCHAR, division_titles VARCHAR, playoff_appearances VARCHAR)",
"role": "system"
},
{
"content": "What is the average number of seasons completed of the team with less than 1 division titles, 0 playoff appearances, and more than 0 finals appearances?",
"role": "user"
},
{
"content": "SELECT AVG(seasons_completed) FROM table_name_97 WHERE division_titles < 1 AND playoff_appearances = 0 AND finals_appearances > 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_97 (seasons_completed INTEGER, finals_appearances VARCHAR, division_titles VARCHAR, playoff_appearances VARCHAR)<|im_end|>
<|im_start|>user
What is the average number of seasons completed of the team with less than 1 division titles, 0 playoff appearances, and more than 0 finals appearances?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (score VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "Which item resulted in a score of 4-1?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_77 WHERE result = \"4-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_77 (score VARCHAR, result VARCHAR)<|im_end|>
<|im_start|>user
Which item resulted in a score of 4-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_78 (type VARCHAR, tunnel VARCHAR)",
"role": "system"
},
{
"content": "What Type of Tunnel is the Downhill Tunnel?",
"role": "user"
},
{
"content": "SELECT type FROM table_name_78 WHERE tunnel = \"downhill\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (type VARCHAR, tunnel VARCHAR)<|im_end|>
<|im_start|>user
What Type of Tunnel is the Downhill Tunnel?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (mintage VARCHAR, theme VARCHAR)",
"role": "system"
},
{
"content": "What was the mintage when the theme was Santa Claus?",
"role": "user"
},
{
"content": "SELECT mintage FROM table_name_15 WHERE theme = \"santa claus\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_15 (mintage VARCHAR, theme VARCHAR)<|im_end|>
<|im_start|>user
What was the mintage when the theme was Santa Claus?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (round VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "In what round did opponent Joe Lauzon play?",
"role": "user"
},
{
"content": "SELECT round FROM table_name_39 WHERE opponent = \"joe lauzon\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (round VARCHAR, opponent VARCHAR)<|im_end|>
<|im_start|>user
In what round did opponent Joe Lauzon play?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_17 (date VARCHAR, label VARCHAR, format VARCHAR)",
"role": "system"
},
{
"content": "What date has parlophone as the label, and lp as a format?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_17 WHERE label = \"parlophone\" AND format = \"lp\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_17 (date VARCHAR, label VARCHAR, format VARCHAR)<|im_end|>
<|im_start|>user
What date has parlophone as the label, and lp as a format?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE documents (document_type_code VARCHAR)",
"role": "system"
},
{
"content": "Find the types of documents with more than 4 documents.",
"role": "user"
},
{
"content": "SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) > 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 documents (document_type_code VARCHAR)<|im_end|>
<|im_start|>user
Find the types of documents with more than 4 documents.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (score VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "what is the score when the opponent is ann grossman?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_79 WHERE opponent = \"ann grossman\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (score VARCHAR, opponent VARCHAR)<|im_end|>
<|im_start|>user
what is the score when the opponent is ann grossman?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (position VARCHAR, clubid VARCHAR)",
"role": "system"
},
{
"content": "How many different roles are there in the club \"Bootup Baltimore\"?",
"role": "user"
},
{
"content": "SELECT COUNT(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid WHERE t1.clubname = \"Bootup Baltimore\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (position VARCHAR, clubid VARCHAR)<|im_end|>
<|im_start|>user
How many different roles are there in the club "Bootup Baltimore"?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27441210_12 (weeks_at__number1 INTEGER, artist VARCHAR)",
"role": "system"
},
{
"content": "How many weeks was K.Maro at #1?",
"role": "user"
},
{
"content": "SELECT MAX(weeks_at__number1) FROM table_27441210_12 WHERE artist = \"K.Maro\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_27441210_12 (weeks_at__number1 INTEGER, artist VARCHAR)<|im_end|>
<|im_start|>user
How many weeks was K.Maro at #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_23 (pick INTEGER, school VARCHAR)",
"role": "system"
},
{
"content": "What is the pick number for tulane university?",
"role": "user"
},
{
"content": "SELECT SUM(pick) FROM table_name_23 WHERE school = \"tulane university\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_23 (pick INTEGER, school VARCHAR)<|im_end|>
<|im_start|>user
What is the pick number for tulane university?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_96 (label VARCHAR, catalog__number VARCHAR)",
"role": "system"
},
{
"content": "What is the label for the album with a catalog number of 83061-2?",
"role": "user"
},
{
"content": "SELECT label FROM table_name_96 WHERE catalog__number = \"83061-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_96 (label VARCHAR, catalog__number VARCHAR)<|im_end|>
<|im_start|>user
What is the label for the album with a catalog number of 83061-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_2668347_14 (party VARCHAR, candidates VARCHAR)",
"role": "system"
},
{
"content": "how many times were the candidates thomas h. hubbard (dr) 51.5% simeon ford (f) 48.4%?",
"role": "user"
},
{
"content": "SELECT COUNT(party) FROM table_2668347_14 WHERE candidates = \"Thomas H. Hubbard (DR) 51.5% Simeon Ford (F) 48.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_2668347_14 (party VARCHAR, candidates VARCHAR)<|im_end|>
<|im_start|>user
how many times were the candidates thomas h. hubbard (dr) 51.5% simeon ford (f) 48.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_24 (field VARCHAR, commissioned VARCHAR)",
"role": "system"
},
{
"content": "What Field was Commissioned in 1958, 2005?",
"role": "user"
},
{
"content": "SELECT field FROM table_name_24 WHERE commissioned = \"1958, 2005\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (field VARCHAR, commissioned VARCHAR)<|im_end|>
<|im_start|>user
What Field was Commissioned in 1958, 2005?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (game INTEGER, opponent VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest numbered game against Phoenix with a record of 29-17?",
"role": "user"
},
{
"content": "SELECT MIN(game) FROM table_name_61 WHERE opponent = \"phoenix\" AND record = \"29-17\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_61 (game INTEGER, opponent VARCHAR, record VARCHAR)<|im_end|>
<|im_start|>user
What is the lowest numbered game against Phoenix with a record of 29-17?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_9 (class VARCHAR, erp_w VARCHAR)",
"role": "system"
},
{
"content": "What class is ERP W of 800?",
"role": "user"
},
{
"content": "SELECT class FROM table_name_9 WHERE erp_w = 800",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_9 (class VARCHAR, erp_w VARCHAR)<|im_end|>
<|im_start|>user
What class is ERP W of 800?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (prize_money___ INTEGER, events VARCHAR)",
"role": "system"
},
{
"content": "What is the least amount of prize money when there are 21 events?",
"role": "user"
},
{
"content": "SELECT MIN(prize_money___) AS $__ FROM table_name_96 WHERE events = 21",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_96 (prize_money___ INTEGER, events VARCHAR)<|im_end|>
<|im_start|>user
What is the least amount of prize money when there are 21 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 All_documents (Date_Stored VARCHAR, date_stored VARCHAR); CREATE TABLE Ref_calendar (day_Number VARCHAR, calendar_date VARCHAR)",
"role": "system"
},
{
"content": "What is the day Number and date of all the documents?",
"role": "user"
},
{
"content": "SELECT T2.day_Number, T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE All_documents (Date_Stored VARCHAR, date_stored VARCHAR); CREATE TABLE Ref_calendar (day_Number VARCHAR, calendar_date VARCHAR)<|im_end|>
<|im_start|>user
What is the day Number and date of all the documents?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (chapter INTEGER, chinese VARCHAR)",
"role": "system"
},
{
"content": "Name the highest chapter with chinese of 釋言",
"role": "user"
},
{
"content": "SELECT MAX(chapter) FROM table_name_24 WHERE chinese = \"釋言\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (chapter INTEGER, chinese VARCHAR)<|im_end|>
<|im_start|>user
Name the highest chapter with chinese of 釋言<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16278673_1 (population VARCHAR, municipality VARCHAR)",
"role": "system"
},
{
"content": "Name the population for sørvágur",
"role": "user"
},
{
"content": "SELECT population FROM table_16278673_1 WHERE municipality = \"Sørvágur\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_16278673_1 (population VARCHAR, municipality VARCHAR)<|im_end|>
<|im_start|>user
Name the population for sørvágur<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (record VARCHAR, game VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "What was the record when they played in the Miami Arena, before game 24?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_67 WHERE game < 24 AND location = \"miami arena\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (record VARCHAR, game VARCHAR, location VARCHAR)<|im_end|>
<|im_start|>user
What was the record when they played in the Miami Arena, before game 24?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_50 (snatch INTEGER, bodyweight VARCHAR, clean_ VARCHAR, _jerk VARCHAR)",
"role": "system"
},
{
"content": "What is the snatch for the Clean & jerk of 145.0, and a Bodyweight larger than 76.22?",
"role": "user"
},
{
"content": "SELECT AVG(snatch) FROM table_name_50 WHERE clean_ & _jerk = \"145.0\" AND bodyweight > 76.22",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_50 (snatch INTEGER, bodyweight VARCHAR, clean_ VARCHAR, _jerk VARCHAR)<|im_end|>
<|im_start|>user
What is the snatch for the Clean & jerk of 145.0, and a Bodyweight larger than 76.22?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (series VARCHAR, title VARCHAR)",
"role": "system"
},
{
"content": "Which series had a title of Boyhood Daze?",
"role": "user"
},
{
"content": "SELECT series FROM table_name_78 WHERE title = \"boyhood daze\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (series VARCHAR, title VARCHAR)<|im_end|>
<|im_start|>user
Which series had a title of Boyhood Daze?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_63 (record VARCHAR, time VARCHAR)",
"role": "system"
},
{
"content": "What is the record with a 3:56 time?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_63 WHERE time = \"3: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_63 (record VARCHAR, time VARCHAR)<|im_end|>
<|im_start|>user
What is the record with a 3:56 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 countrylanguage (Language VARCHAR, CountryCode VARCHAR); CREATE TABLE country (Code VARCHAR, GovernmentForm VARCHAR)",
"role": "system"
},
{
"content": "Which languages are spoken by only one country in republic governments?",
"role": "user"
},
{
"content": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = \"Republic\" GROUP BY T2.Language HAVING COUNT(*) = 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 countrylanguage (Language VARCHAR, CountryCode VARCHAR); CREATE TABLE country (Code VARCHAR, GovernmentForm VARCHAR)<|im_end|>
<|im_start|>user
Which languages are spoken by only one country in republic governments?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (nominated_work VARCHAR, year VARCHAR, result VARCHAR, award VARCHAR)",
"role": "system"
},
{
"content": "What was the nominated work, nominated for the drama league award before 2007?",
"role": "user"
},
{
"content": "SELECT nominated_work FROM table_name_29 WHERE result = \"nominated\" AND award = \"drama league award\" AND year < 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_29 (nominated_work VARCHAR, year VARCHAR, result VARCHAR, award VARCHAR)<|im_end|>
<|im_start|>user
What was the nominated work, nominated for the drama league award before 2007?<|im_end|>
|