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_88 (playoffs VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "which playoffs took place during 2011?",
"role": "user"
},
{
"content": "SELECT playoffs FROM table_name_88 WHERE year = \"2011\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_88 (playoffs VARCHAR, year VARCHAR)<|im_end|>
<|im_start|>user
which playoffs took place during 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 Templates (template_type_code VARCHAR)",
"role": "system"
},
{
"content": "How many templates have template type code CV?",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM Templates WHERE template_type_code = \"CV\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE Templates (template_type_code VARCHAR)<|im_end|>
<|im_start|>user
How many templates have template type code CV?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (outcome VARCHAR, partner VARCHAR, opponents_in_the_final VARCHAR)",
"role": "system"
},
{
"content": "Which outcome has a partner named Mark Dickson, with the opponents of Hans Gildemeister Belus Prajoux?",
"role": "user"
},
{
"content": "SELECT outcome FROM table_name_66 WHERE partner = \"mark dickson\" AND opponents_in_the_final = \"hans gildemeister belus prajoux\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (outcome VARCHAR, partner VARCHAR, opponents_in_the_final VARCHAR)<|im_end|>
<|im_start|>user
Which outcome has a partner named Mark Dickson, with the opponents of Hans Gildemeister Belus Prajoux?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (pinyin VARCHAR, chinese VARCHAR)",
"role": "system"
},
{
"content": "Which Pinyin has a Chinese of 臺南?",
"role": "user"
},
{
"content": "SELECT pinyin FROM table_name_89 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_89 (pinyin VARCHAR, chinese VARCHAR)<|im_end|>
<|im_start|>user
Which Pinyin has a 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_name_73 (competition VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "What competition has a Result of 1–2?",
"role": "user"
},
{
"content": "SELECT competition FROM table_name_73 WHERE result = \"1–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_73 (competition VARCHAR, result VARCHAR)<|im_end|>
<|im_start|>user
What competition has a Result of 1–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_50 (score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What score was on 13 June 2004?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_50 WHERE date = \"13 june 2004\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (score VARCHAR, date VARCHAR)<|im_end|>
<|im_start|>user
What score was on 13 June 2004?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20626467_1 (class VARCHAR, winner_2nd VARCHAR)",
"role": "system"
},
{
"content": "What class was the 2nd - portillo?",
"role": "user"
},
{
"content": "SELECT class FROM table_20626467_1 WHERE winner_2nd = \"2nd - Portillo\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_20626467_1 (class VARCHAR, winner_2nd VARCHAR)<|im_end|>
<|im_start|>user
What class was the 2nd - portillo?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (grid INTEGER, time VARCHAR, laps VARCHAR)",
"role": "system"
},
{
"content": "which grid did less than 20 laps in a time of +58.353?",
"role": "user"
},
{
"content": "SELECT MIN(grid) FROM table_name_82 WHERE time = \"+58.353\" AND laps < 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_82 (grid INTEGER, time VARCHAR, laps VARCHAR)<|im_end|>
<|im_start|>user
which grid did less than 20 laps in a time of +58.353?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11964047_7 (record VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "what are all the records with a score is w 98–91",
"role": "user"
},
{
"content": "SELECT record FROM table_11964047_7 WHERE score = \"W 98–91\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_11964047_7 (record VARCHAR, score VARCHAR)<|im_end|>
<|im_start|>user
what are all the records with a score is w 98–91<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (season INTEGER, podiums VARCHAR, races VARCHAR)",
"role": "system"
},
{
"content": "Which Season has Podiums of 0, and Races of 16?",
"role": "user"
},
{
"content": "SELECT MAX(season) FROM table_name_44 WHERE podiums = \"0\" AND races = \"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_44 (season INTEGER, podiums VARCHAR, races VARCHAR)<|im_end|>
<|im_start|>user
Which Season has Podiums of 0, and Races of 16?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (state_served VARCHAR, party VARCHAR, representative VARCHAR)",
"role": "system"
},
{
"content": "Which state did Samuel Thatcher of the Federalist party represent?",
"role": "user"
},
{
"content": "SELECT state_served FROM table_name_27 WHERE party = \"federalist\" AND representative = \"samuel thatcher\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_27 (state_served VARCHAR, party VARCHAR, representative VARCHAR)<|im_end|>
<|im_start|>user
Which state did Samuel Thatcher of the Federalist party represent?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (crowd INTEGER, away_team VARCHAR)",
"role": "system"
},
{
"content": "What is the smallest crowd that Footscray had as the away team?",
"role": "user"
},
{
"content": "SELECT MIN(crowd) FROM table_name_49 WHERE away_team = \"footscray\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (crowd INTEGER, away_team VARCHAR)<|im_end|>
<|im_start|>user
What is the smallest crowd that Footscray had as 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_16 (Id VARCHAR)",
"role": "system"
},
{
"content": "What was the result in 2007 when the 2011 was F and 2009 was W?",
"role": "user"
},
{
"content": "SELECT 2007 FROM table_name_16 WHERE 2011 = \"f\" AND 2009 = \"w\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (Id VARCHAR)<|im_end|>
<|im_start|>user
What was the result in 2007 when the 2011 was F and 2009 was 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_29535057_4 (location VARCHAR, big_ten_team VARCHAR)",
"role": "system"
},
{
"content": "Where did the games that had Wisconsin as big ten team take place?",
"role": "user"
},
{
"content": "SELECT location FROM table_29535057_4 WHERE big_ten_team = \"Wisconsin\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_29535057_4 (location VARCHAR, big_ten_team VARCHAR)<|im_end|>
<|im_start|>user
Where did the games that had Wisconsin as big ten team take 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_39 (position VARCHAR, round VARCHAR, college VARCHAR)",
"role": "system"
},
{
"content": "What is the position for round 5 from alabama state?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_39 WHERE round = 5 AND college = \"alabama state\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_39 (position VARCHAR, round VARCHAR, college VARCHAR)<|im_end|>
<|im_start|>user
What is the position for round 5 from alabama state?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_18 (player VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "Which Player has a Position of forward?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_18 WHERE position = \"forward\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (player VARCHAR, position VARCHAR)<|im_end|>
<|im_start|>user
Which Player has a Position of forward?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (country VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What country is Paul Stankowski from?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_21 WHERE player = \"paul stankowski\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (country VARCHAR, player VARCHAR)<|im_end|>
<|im_start|>user
What country is Paul Stankowski from?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (silver INTEGER, rank INTEGER)",
"role": "system"
},
{
"content": "What is the fewest number of silver medals a nation who ranked below 8 received?",
"role": "user"
},
{
"content": "SELECT MIN(silver) FROM table_name_99 WHERE rank > 8",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_99 (silver INTEGER, rank INTEGER)<|im_end|>
<|im_start|>user
What is the fewest number of silver medals a nation who ranked below 8 received?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (opponent VARCHAR, result VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent with the loss in Westbury, NY?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_37 WHERE result = \"loss\" AND location = \"westbury, ny\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (opponent VARCHAR, result VARCHAR, location VARCHAR)<|im_end|>
<|im_start|>user
Who was the opponent with the loss in Westbury, NY?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_189893_1 (population__2011_ INTEGER)",
"role": "system"
},
{
"content": "What is the lowest population(2011)?",
"role": "user"
},
{
"content": "SELECT MIN(population__2011_) FROM table_189893_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_189893_1 (population__2011_ INTEGER)<|im_end|>
<|im_start|>user
What is the lowest population(2011)?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_49 (round VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What round has 3-4 as the record?",
"role": "user"
},
{
"content": "SELECT round FROM table_name_49 WHERE record = \"3-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_49 (round VARCHAR, record VARCHAR)<|im_end|>
<|im_start|>user
What round has 3-4 as the 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_1776943_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR, archive VARCHAR)",
"role": "system"
},
{
"content": "Name the broadcast date for 6.4 million viewers for the archive of 16mm t/r",
"role": "user"
},
{
"content": "SELECT broadcast_date FROM table_1776943_1 WHERE viewers__in_millions_ = \"6.4\" AND archive = \"16mm t/r\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1776943_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR, archive VARCHAR)<|im_end|>
<|im_start|>user
Name the broadcast date for 6.4 million viewers for the archive of 16mm t/r<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the score of the competition on November 10?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_90 WHERE date = \"november 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_90 (score VARCHAR, date VARCHAR)<|im_end|>
<|im_start|>user
What is the score of the competition on November 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_1137704_2 (report VARCHAR, winning_constructor VARCHAR, grand_prix VARCHAR)",
"role": "system"
},
{
"content": "what are all the report where winning constructor is williams - renault and grand prix is south african grand prix",
"role": "user"
},
{
"content": "SELECT report FROM table_1137704_2 WHERE winning_constructor = \"Williams - Renault\" AND grand_prix = \"South African grand_prix\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1137704_2 (report VARCHAR, winning_constructor VARCHAR, grand_prix VARCHAR)<|im_end|>
<|im_start|>user
what are all the report where winning constructor is williams - renault and grand prix is south african grand prix<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_30 (score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR)",
"role": "system"
},
{
"content": "What is the Score of the Chicago Black Hawks Home game with the Visiting Vancouver Canucks on November 17?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_30 WHERE home = \"chicago black hawks\" AND visitor = \"vancouver canucks\" AND date = \"november 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_30 (score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR)<|im_end|>
<|im_start|>user
What is the Score of the Chicago Black Hawks Home game with the Visiting Vancouver Canucks on November 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_2362606_1 (score_in_final VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What was the score in the final in 1988?",
"role": "user"
},
{
"content": "SELECT score_in_final FROM table_2362606_1 WHERE year = 1988",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_2362606_1 (score_in_final VARCHAR, year VARCHAR)<|im_end|>
<|im_start|>user
What was the score in the final in 1988?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1463332_2 (_number_runner_up INTEGER, years__won_in_bold_ VARCHAR)",
"role": "system"
},
{
"content": "What is the number of runner-up results for the years (won in bold) 1984, 2010?",
"role": "user"
},
{
"content": "SELECT MAX(_number_runner_up) FROM table_1463332_2 WHERE years__won_in_bold_ = \"1984, 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_1463332_2 (_number_runner_up INTEGER, years__won_in_bold_ VARCHAR)<|im_end|>
<|im_start|>user
What is the number of runner-up results for the years (won in bold) 1984, 2010?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11044765_1 (league VARCHAR, school VARCHAR)",
"role": "system"
},
{
"content": "Which leagues is the Galena school in?",
"role": "user"
},
{
"content": "SELECT league FROM table_11044765_1 WHERE school = \"Galena\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_11044765_1 (league VARCHAR, school VARCHAR)<|im_end|>
<|im_start|>user
Which leagues is the Galena school 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_29 (grid INTEGER, laps VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What is the average grid number that had Team China with less than 10 laps?",
"role": "user"
},
{
"content": "SELECT AVG(grid) FROM table_name_29 WHERE laps < 10 AND team = \"china\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (grid INTEGER, laps VARCHAR, team VARCHAR)<|im_end|>
<|im_start|>user
What is the average grid number that had Team China with less than 10 laps?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (crowd INTEGER, home_team VARCHAR)",
"role": "system"
},
{
"content": "How many people were in the crowd at collingwood's home game?",
"role": "user"
},
{
"content": "SELECT SUM(crowd) FROM table_name_46 WHERE home_team = \"collingwood\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_46 (crowd INTEGER, home_team VARCHAR)<|im_end|>
<|im_start|>user
How many people were in the crowd at collingwood's home game?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_21 (round VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What is the round when the match was against sergis kyratzis?",
"role": "user"
},
{
"content": "SELECT round FROM table_name_21 WHERE opponent = \"sergis kyratzis\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (round VARCHAR, opponent VARCHAR)<|im_end|>
<|im_start|>user
What is the round when the match was against sergis kyratzis?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (overall VARCHAR, pick__number VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "How much Overall has a Pick # larger than 2, and a Name of claude humphrey?",
"role": "user"
},
{
"content": "SELECT COUNT(overall) FROM table_name_93 WHERE pick__number > 2 AND name = \"claude humphrey\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (overall VARCHAR, pick__number VARCHAR, name VARCHAR)<|im_end|>
<|im_start|>user
How much Overall has a Pick # larger than 2, and a Name of claude humphrey?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1604579_2 (freedom_in_the_world_2013 VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "How much freedom can did the people of Guinea experience in 2013?",
"role": "user"
},
{
"content": "SELECT freedom_in_the_world_2013 FROM table_1604579_2 WHERE country = \"Guinea\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1604579_2 (freedom_in_the_world_2013 VARCHAR, country VARCHAR)<|im_end|>
<|im_start|>user
How much freedom can did the people of Guinea experience in 2013?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_32 (Id VARCHAR)",
"role": "system"
},
{
"content": "What shows for 2009 when 25 shows for 2011?",
"role": "user"
},
{
"content": "SELECT 2009 FROM table_name_32 WHERE 2011 = \"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_32 (Id VARCHAR)<|im_end|>
<|im_start|>user
What shows for 2009 when 25 shows for 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 enroll (stu_num VARCHAR, class_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR, stu_lname VARCHAR)",
"role": "system"
},
{
"content": "What is the first name of the student whose last name starting with the letter S and is taking ACCT-211 class?",
"role": "user"
},
{
"content": "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' AND T1.stu_lname LIKE '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 enroll (stu_num VARCHAR, class_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR, stu_lname VARCHAR)<|im_end|>
<|im_start|>user
What is the first name of the student whose last name starting with the letter S and is taking ACCT-211 class?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, athlete VARCHAR)",
"role": "system"
},
{
"content": "What is Date, when Athlete is \"Yussuf Alli\"?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_15 WHERE athlete = \"yussuf alli\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (date VARCHAR, athlete VARCHAR)<|im_end|>
<|im_start|>user
What is Date, when Athlete is "Yussuf Alli"?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (byes INTEGER, against VARCHAR, wins VARCHAR)",
"role": "system"
},
{
"content": "How many Byes have an Against of 972, and more than 11 wins?",
"role": "user"
},
{
"content": "SELECT SUM(byes) FROM table_name_39 WHERE against = 972 AND wins > 11",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_39 (byes INTEGER, against VARCHAR, wins VARCHAR)<|im_end|>
<|im_start|>user
How many Byes have an Against of 972, and 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_77 (attendance INTEGER, record VARCHAR)",
"role": "system"
},
{
"content": "Which Attendance is the lowest one that has a Record of 5–5–0?",
"role": "user"
},
{
"content": "SELECT MIN(attendance) FROM table_name_77 WHERE record = \"5–5–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_77 (attendance INTEGER, record VARCHAR)<|im_end|>
<|im_start|>user
Which Attendance is the lowest one that has a Record of 5–5–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_22 (album VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What is the 1995 Album?",
"role": "user"
},
{
"content": "SELECT album FROM table_name_22 WHERE year = 1995",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (album VARCHAR, year VARCHAR)<|im_end|>
<|im_start|>user
What is the 1995 Album?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_45 (position VARCHAR, hometown VARCHAR)",
"role": "system"
},
{
"content": "What is the name of the position of the person whose hometown is Queens, NY?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_45 WHERE hometown = \"queens, ny\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_45 (position VARCHAR, hometown VARCHAR)<|im_end|>
<|im_start|>user
What is the name of the position of the person whose hometown is Queens, NY?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29475589_3 (episode_title VARCHAR, no VARCHAR)",
"role": "system"
},
{
"content": "When 22 is the number what is the episode title?",
"role": "user"
},
{
"content": "SELECT episode_title FROM table_29475589_3 WHERE no = 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_29475589_3 (episode_title VARCHAR, no VARCHAR)<|im_end|>
<|im_start|>user
When 22 is the number what is the episode 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_1153898_1 (semi_ddm_class VARCHAR, comparisons VARCHAR)",
"role": "system"
},
{
"content": "Is drawing tablet support part of the semi-DDM class?",
"role": "user"
},
{
"content": "SELECT semi_ddm_class FROM table_1153898_1 WHERE comparisons = \"Drawing Tablet Support\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1153898_1 (semi_ddm_class VARCHAR, comparisons VARCHAR)<|im_end|>
<|im_start|>user
Is drawing tablet support part of the semi-DDM class?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_78 (date VARCHAR, surface VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "On what date did Jesse Levine play on a hard surface?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_78 WHERE surface = \"hard\" AND opponent = \"jesse levine\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_78 (date VARCHAR, surface VARCHAR, opponent VARCHAR)<|im_end|>
<|im_start|>user
On what date did Jesse Levine play on a hard surface?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (week_11_nov_16 VARCHAR, week_13_nov_30 VARCHAR)",
"role": "system"
},
{
"content": "What is the week 11 nov 16 standing with wisconsin (10-1) on week 13 Nov 30?",
"role": "user"
},
{
"content": "SELECT week_11_nov_16 FROM table_name_50 WHERE week_13_nov_30 = \"wisconsin (10-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_50 (week_11_nov_16 VARCHAR, week_13_nov_30 VARCHAR)<|im_end|>
<|im_start|>user
What is the week 11 nov 16 standing with wisconsin (10-1) on week 13 Nov 30?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_63 (date VARCHAR, surface VARCHAR, event VARCHAR)",
"role": "system"
},
{
"content": "When has a surface of road and an event of half marathon?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_63 WHERE surface = \"road\" AND event = \"half marathon\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (date VARCHAR, surface VARCHAR, event VARCHAR)<|im_end|>
<|im_start|>user
When has a surface of road and an event of half marathon?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1590652_4 (no INTEGER, tournament VARCHAR)",
"role": "system"
},
{
"content": "Name the most number when tournament is madrid masters",
"role": "user"
},
{
"content": "SELECT MAX(no) FROM table_1590652_4 WHERE tournament = \"Madrid Masters\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1590652_4 (no INTEGER, tournament VARCHAR)<|im_end|>
<|im_start|>user
Name the most number when tournament is madrid masters<|im_end|>
|
[
{
"content": "You are an text to SQL query 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_5 (_number VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the # listed when the score is 70-69-69-70=278?",
"role": "user"
},
{
"content": "SELECT _number FROM table_28498999_5 WHERE score = 70 - 69 - 69 - 70 = 278",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query 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_5 (_number VARCHAR, score VARCHAR)<|im_end|>
<|im_start|>user
What is the # listed when the score is 70-69-69-70=278?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (position VARCHAR, agg VARCHAR)",
"role": "system"
},
{
"content": "What position has a 2-6 agg.?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_8 WHERE agg = \"2-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_8 (position VARCHAR, agg VARCHAR)<|im_end|>
<|im_start|>user
What position has a 2-6 agg.?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (season VARCHAR, goals VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "In what season were there 27 goals and 58 points?",
"role": "user"
},
{
"content": "SELECT season FROM table_name_54 WHERE goals = \"27\" AND points = \"58\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (season VARCHAR, goals VARCHAR, points VARCHAR)<|im_end|>
<|im_start|>user
In what season were there 27 goals and 58 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_88 (zone INTEGER, managed_by VARCHAR, platforms VARCHAR)",
"role": "system"
},
{
"content": "Which Zone is the lowest when Managed By Southern and has Platforms under 2?",
"role": "user"
},
{
"content": "SELECT MIN(zone) FROM table_name_88 WHERE managed_by = \"southern\" AND platforms < 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 (zone INTEGER, managed_by VARCHAR, platforms VARCHAR)<|im_end|>
<|im_start|>user
Which Zone is the lowest when Managed By Southern and has Platforms under 2?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_16 (position VARCHAR, wins VARCHAR, podiums VARCHAR)",
"role": "system"
},
{
"content": "What position has over 0 wins and under 3 podiums?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_16 WHERE wins > 0 AND podiums < 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_16 (position VARCHAR, wins VARCHAR, podiums VARCHAR)<|im_end|>
<|im_start|>user
What position has over 0 wins and under 3 podiums?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_4 (win__percentage VARCHAR, losses VARCHAR)",
"role": "system"
},
{
"content": "What percentage of wins has 48 losses?",
"role": "user"
},
{
"content": "SELECT win__percentage FROM table_name_4 WHERE losses = \"48\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_4 (win__percentage VARCHAR, losses VARCHAR)<|im_end|>
<|im_start|>user
What percentage of wins has 48 losses?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20246201_9 (office VARCHAR, states___third_place VARCHAR)",
"role": "system"
},
{
"content": "Which office has 1 New Hampshire as a third place state?",
"role": "user"
},
{
"content": "SELECT office FROM table_20246201_9 WHERE states___third_place = \"1 New Hampshire\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_20246201_9 (office VARCHAR, states___third_place VARCHAR)<|im_end|>
<|im_start|>user
Which office has 1 New Hampshire as a third place state?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_73 (total VARCHAR, rank VARCHAR, gold VARCHAR)",
"role": "system"
},
{
"content": "What's the total number that had a rank larger than 17 and a gold greater than 0?",
"role": "user"
},
{
"content": "SELECT COUNT(total) FROM table_name_73 WHERE rank > 17 AND gold > 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_73 (total VARCHAR, rank VARCHAR, gold VARCHAR)<|im_end|>
<|im_start|>user
What's the total number that had a rank larger than 17 and a gold 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_29 (ensemble_name VARCHAR, area VARCHAR)",
"role": "system"
},
{
"content": "What is Oxfordshire Area's Ensemble Name?",
"role": "user"
},
{
"content": "SELECT ensemble_name FROM table_name_29 WHERE area = \"oxfordshire\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (ensemble_name VARCHAR, area VARCHAR)<|im_end|>
<|im_start|>user
What is Oxfordshire Area's Ensemble Name?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16034882_2 (games_played INTEGER)",
"role": "system"
},
{
"content": "What is the fewest number of games played?",
"role": "user"
},
{
"content": "SELECT MIN(games_played) FROM table_16034882_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_16034882_2 (games_played INTEGER)<|im_end|>
<|im_start|>user
What is the fewest number of games played?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29218221_2 (rider VARCHAR, fri_3_june VARCHAR)",
"role": "system"
},
{
"content": "Who was the rider with a Fri 3 June time of 18' 19.68 123.516mph?",
"role": "user"
},
{
"content": "SELECT rider FROM table_29218221_2 WHERE fri_3_june = \"18' 19.68 123.516mph\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_29218221_2 (rider VARCHAR, fri_3_june VARCHAR)<|im_end|>
<|im_start|>user
Who was the rider with a Fri 3 June time of 18' 19.68 123.516mph?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (state VARCHAR, peak_population__year_ VARCHAR)",
"role": "system"
},
{
"content": "what is the state when the peak population (year) is 134995 (1950)?",
"role": "user"
},
{
"content": "SELECT state FROM table_name_33 WHERE peak_population__year_ = \"134995 (1950)\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_33 (state VARCHAR, peak_population__year_ VARCHAR)<|im_end|>
<|im_start|>user
what is the state when the peak population (year) is 134995 (1950)?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (goals_for INTEGER, team VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "W hat was the lowest Goals For when they played Team Goole Town and had a position lower than 9?",
"role": "user"
},
{
"content": "SELECT MIN(goals_for) FROM table_name_65 WHERE team = \"goole town\" AND position < 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_65 (goals_for INTEGER, team VARCHAR, position VARCHAR)<|im_end|>
<|im_start|>user
W hat was the lowest Goals For when they played Team Goole Town and had a position lower 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_name_30 (away_team VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What did the away team score at Junction oval?",
"role": "user"
},
{
"content": "SELECT away_team AS score FROM table_name_30 WHERE venue = \"junction oval\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR)<|im_end|>
<|im_start|>user
What did the away team score at Junction oval?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_39 (Box VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "What was the box score during a home game of the Adelaide 36ers?",
"role": "user"
},
{
"content": "SELECT Box AS score FROM table_name_39 WHERE home_team = \"adelaide 36ers\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (Box VARCHAR, home_team VARCHAR)<|im_end|>
<|im_start|>user
What was the box score during a home game of the Adelaide 36ers?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (gold VARCHAR, bronze INTEGER)",
"role": "system"
},
{
"content": "What is the total number of Gold medals for the Nation with more than 3 Bronze?",
"role": "user"
},
{
"content": "SELECT COUNT(gold) FROM table_name_15 WHERE bronze > 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_15 (gold VARCHAR, bronze INTEGER)<|im_end|>
<|im_start|>user
What is the total number of Gold medals for the Nation with more than 3 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_name_51 (year INTEGER, best_finish VARCHAR, scoring_average VARCHAR)",
"role": "system"
},
{
"content": "What is the latest year when the best finish is 2 and the scoring average is less than 71.24?",
"role": "user"
},
{
"content": "SELECT MAX(year) FROM table_name_51 WHERE best_finish = \"2\" AND scoring_average < 71.24",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_51 (year INTEGER, best_finish VARCHAR, scoring_average VARCHAR)<|im_end|>
<|im_start|>user
What is the latest year when the best finish is 2 and the scoring average is less than 71.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_2160215_1 (original_japanese VARCHAR, english___manga_uk__ VARCHAR)",
"role": "system"
},
{
"content": "Who was the original Japanese cast if Sean Barrett acted on the English (Manga UK) version?",
"role": "user"
},
{
"content": "SELECT original_japanese FROM table_2160215_1 WHERE english___manga_uk__ = \"Sean Barrett\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_2160215_1 (original_japanese VARCHAR, english___manga_uk__ VARCHAR)<|im_end|>
<|im_start|>user
Who was the original Japanese cast if Sean Barrett acted on the English (Manga UK) version?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26375386_22 (total VARCHAR, public VARCHAR)",
"role": "system"
},
{
"content": "Name the total number for 3 public",
"role": "user"
},
{
"content": "SELECT COUNT(total) FROM table_26375386_22 WHERE public = 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_26375386_22 (total VARCHAR, public VARCHAR)<|im_end|>
<|im_start|>user
Name the total number for 3 public<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "On which date was the match in Manama, Bahrain?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_63 WHERE venue = \"manama, bahrain\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (date VARCHAR, venue VARCHAR)<|im_end|>
<|im_start|>user
On which date was the match in Manama, Bahrain?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (year VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "What year was The Walking Dead?",
"role": "user"
},
{
"content": "SELECT COUNT(year) FROM table_name_95 WHERE game = \"the walking dead\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (year VARCHAR, game VARCHAR)<|im_end|>
<|im_start|>user
What year was The Walking Dead?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1140076_2 (report VARCHAR, race VARCHAR)",
"role": "system"
},
{
"content": "What is the report listed for the race in San Marino Grand Prix?",
"role": "user"
},
{
"content": "SELECT report FROM table_1140076_2 WHERE race = \"San Marino Grand Prix\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1140076_2 (report VARCHAR, race VARCHAR)<|im_end|>
<|im_start|>user
What is the report listed for the race in San Marino Grand Prix?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (points VARCHAR, try_bonus VARCHAR)",
"role": "system"
},
{
"content": "How many points were there when the try bonus was 2?",
"role": "user"
},
{
"content": "SELECT points FROM table_name_35 WHERE try_bonus = \"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_35 (points VARCHAR, try_bonus VARCHAR)<|im_end|>
<|im_start|>user
How many points were there when the try bonus was 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_54 (director VARCHAR, role VARCHAR)",
"role": "system"
},
{
"content": "Who directed the movie when John Wayne played the role of John Travers?",
"role": "user"
},
{
"content": "SELECT director FROM table_name_54 WHERE role = \"john travers\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (director VARCHAR, role VARCHAR)<|im_end|>
<|im_start|>user
Who directed the movie when John Wayne played the role of John Travers?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16295365_1 (record VARCHAR, school VARCHAR)",
"role": "system"
},
{
"content": "What was the overall record of Oral Roberts college?",
"role": "user"
},
{
"content": "SELECT record FROM table_16295365_1 WHERE school = \"Oral Roberts\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_16295365_1 (record VARCHAR, school VARCHAR)<|im_end|>
<|im_start|>user
What was the overall record of Oral Roberts college?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (margin_of_victory VARCHAR, runner_s__up VARCHAR)",
"role": "system"
},
{
"content": "In the tournament where Stuart Appleby was the runner-up, what was the margin of victory?",
"role": "user"
},
{
"content": "SELECT margin_of_victory FROM table_name_41 WHERE runner_s__up = \"stuart appleby\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (margin_of_victory VARCHAR, runner_s__up VARCHAR)<|im_end|>
<|im_start|>user
In the tournament where Stuart Appleby was the runner-up, what was the margin of victory?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25802689_14 (stage INTEGER, mountains_classification VARCHAR)",
"role": "system"
},
{
"content": "What is the earliest stage where mountains classifications was awarded to Peter Stetina? ",
"role": "user"
},
{
"content": "SELECT MIN(stage) FROM table_25802689_14 WHERE mountains_classification = \"Peter Stetina\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_25802689_14 (stage INTEGER, mountains_classification VARCHAR)<|im_end|>
<|im_start|>user
What is the earliest stage where mountains classifications was awarded to Peter Stetina? <|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (player_name VARCHAR, position VARCHAR, college VARCHAR)",
"role": "system"
},
{
"content": "Who was a linebacker at Tennessee?",
"role": "user"
},
{
"content": "SELECT player_name FROM table_name_64 WHERE position = \"linebacker\" AND college = \"tennessee\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_64 (player_name VARCHAR, position VARCHAR, college VARCHAR)<|im_end|>
<|im_start|>user
Who was a linebacker at Tennessee?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1137718_2 (fastest_lap VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "How many drivers had the fastest lap at Silverstone?",
"role": "user"
},
{
"content": "SELECT COUNT(fastest_lap) FROM table_1137718_2 WHERE location = \"Silverstone\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1137718_2 (fastest_lap VARCHAR, location VARCHAR)<|im_end|>
<|im_start|>user
How many drivers had the fastest lap at Silverstone?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_34 (city__town VARCHAR, year_founded VARCHAR)",
"role": "system"
},
{
"content": "In what City/town was their institution founded in 1860?",
"role": "user"
},
{
"content": "SELECT city__town FROM table_name_34 WHERE year_founded = 1860",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_34 (city__town VARCHAR, year_founded VARCHAR)<|im_end|>
<|im_start|>user
In what City/town was their institution founded in 1860?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What is Date, when Opponent is \"Philadelphia 76ers\"?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_6 WHERE opponent = \"philadelphia 76ers\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (date VARCHAR, opponent VARCHAR)<|im_end|>
<|im_start|>user
What is Date, when Opponent is "Philadelphia 76ers"?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (treasurer VARCHAR, president VARCHAR)",
"role": "system"
},
{
"content": "Which treasurer has a President of sebastian ihler?",
"role": "user"
},
{
"content": "SELECT treasurer FROM table_name_74 WHERE president = \"sebastian ihler\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (treasurer VARCHAR, president VARCHAR)<|im_end|>
<|im_start|>user
Which treasurer has a President of sebastian ihler?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (player VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Who is the player with a 75-68-70=213 score?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_79 WHERE score = 75 - 68 - 70 = 213",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_79 (player VARCHAR, score VARCHAR)<|im_end|>
<|im_start|>user
Who is the player with a 75-68-70=213 score?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_42 (duration VARCHAR, actor VARCHAR)",
"role": "system"
},
{
"content": "What is the duration that has pietro genuardi as the actor?",
"role": "user"
},
{
"content": "SELECT duration FROM table_name_42 WHERE actor = \"pietro genuardi\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_42 (duration VARCHAR, actor VARCHAR)<|im_end|>
<|im_start|>user
What is the duration that has pietro genuardi as the actor?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11793221_2 (wounded VARCHAR, complement VARCHAR)",
"role": "system"
},
{
"content": "How many were wounded when the complement was 173 off 2059 men?",
"role": "user"
},
{
"content": "SELECT wounded FROM table_11793221_2 WHERE complement = \"173 off 2059 men\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_11793221_2 (wounded VARCHAR, complement VARCHAR)<|im_end|>
<|im_start|>user
How many were wounded when the complement was 173 off 2059 men?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE user_profiles (name VARCHAR, email VARCHAR)",
"role": "system"
},
{
"content": "Find the name and email of the user whose name contains the word ‘Swift’.",
"role": "user"
},
{
"content": "SELECT name, email FROM user_profiles WHERE name LIKE '%Swift%'",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE user_profiles (name VARCHAR, email VARCHAR)<|im_end|>
<|im_start|>user
Find the name and email of the user whose name contains the word ‘Swift’.<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (party VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "What party has an incumbent of Stanyarne Wilson?",
"role": "user"
},
{
"content": "SELECT party FROM table_name_86 WHERE incumbent = \"stanyarne wilson\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (party VARCHAR, incumbent VARCHAR)<|im_end|>
<|im_start|>user
What party has an incumbent of Stanyarne Wilson?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (away_team VARCHAR, crowd INTEGER)",
"role": "system"
},
{
"content": "What did the away team score in the game with a crowd size larger than 22,000?",
"role": "user"
},
{
"content": "SELECT away_team AS score FROM table_name_1 WHERE crowd > 22 OFFSET 000",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (away_team VARCHAR, crowd INTEGER)<|im_end|>
<|im_start|>user
What did the away team score in the game with a crowd size larger than 22,000?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (played INTEGER, drawn VARCHAR, against VARCHAR)",
"role": "system"
},
{
"content": "What is the smallest played amount when there are 2 draws and an against of more than 73?",
"role": "user"
},
{
"content": "SELECT MIN(played) FROM table_name_66 WHERE drawn = 2 AND against > 73",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (played INTEGER, drawn VARCHAR, against VARCHAR)<|im_end|>
<|im_start|>user
What is the smallest played amount when there are 2 draws and an against of more than 73?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_68 (record VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "What was the Record on Game 50?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_68 WHERE game = 50",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_68 (record VARCHAR, game VARCHAR)<|im_end|>
<|im_start|>user
What was the Record on Game 50?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_78 (date VARCHAR, votes VARCHAR)",
"role": "system"
},
{
"content": "On what date were there 50,324 votes?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_78 WHERE votes = \"50,324\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_78 (date VARCHAR, votes VARCHAR)<|im_end|>
<|im_start|>user
On what date were there 50,324 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_31 (engine VARCHAR, chassis VARCHAR, driver VARCHAR)",
"role": "system"
},
{
"content": "What engine was used when Aguri Suzuki drove the FA13B FA14 Chassis?",
"role": "user"
},
{
"content": "SELECT engine FROM table_name_31 WHERE chassis = \"fa13b fa14\" AND driver = \"aguri suzuki\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (engine VARCHAR, chassis VARCHAR, driver VARCHAR)<|im_end|>
<|im_start|>user
What engine was used when Aguri Suzuki drove the FA13B FA14 Chassis?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26173058_2 (ahli VARCHAR, ramtha VARCHAR)",
"role": "system"
},
{
"content": "what is the location where the record is 1-0",
"role": "user"
},
{
"content": "SELECT ahli FROM table_26173058_2 WHERE ramtha = \"1-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_26173058_2 (ahli VARCHAR, ramtha VARCHAR)<|im_end|>
<|im_start|>user
what is the location where the record is 1-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_3 (overall INTEGER, pick__number VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Which Overall is the highest one that has a Pick # smaller than 9, and a Name of mike pearson?",
"role": "user"
},
{
"content": "SELECT MAX(overall) FROM table_name_3 WHERE pick__number < 9 AND name = \"mike pearson\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_3 (overall INTEGER, pick__number VARCHAR, name VARCHAR)<|im_end|>
<|im_start|>user
Which Overall is the highest one that has a Pick # smaller than 9, and a Name of mike pearson?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (player VARCHAR, round INTEGER)",
"role": "system"
},
{
"content": "What is the name of the player picked before round 2?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_75 WHERE round < 2",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_75 (player VARCHAR, round INTEGER)<|im_end|>
<|im_start|>user
What is the name of the player picked before round 2?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1601792_4 (network VARCHAR, television_station VARCHAR)",
"role": "system"
},
{
"content": "What are the network(s) for tv1?",
"role": "user"
},
{
"content": "SELECT network FROM table_1601792_4 WHERE television_station = \"TV1\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1601792_4 (network VARCHAR, television_station VARCHAR)<|im_end|>
<|im_start|>user
What are the network(s) for tv1?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (total INTEGER, nation VARCHAR, gold VARCHAR)",
"role": "system"
},
{
"content": "What is the average Total, when Nation is Soviet Union, and when Gold is greater than 9?",
"role": "user"
},
{
"content": "SELECT AVG(total) FROM table_name_33 WHERE nation = \"soviet union\" AND gold > 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_33 (total INTEGER, nation VARCHAR, gold VARCHAR)<|im_end|>
<|im_start|>user
What is the average Total, when Nation is Soviet Union, and when Gold is greater than 9?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_92 (texas VARCHAR, north_dakota VARCHAR)",
"role": "system"
},
{
"content": "What Texas has Johnson from Nort Dakota?",
"role": "user"
},
{
"content": "SELECT texas FROM table_name_92 WHERE north_dakota = \"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_name_92 (texas VARCHAR, north_dakota VARCHAR)<|im_end|>
<|im_start|>user
What Texas has Johnson from Nort Dakota?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2249087_1 (south_american_rank INTEGER, nation VARCHAR)",
"role": "system"
},
{
"content": "Name the south american rank for venezuela",
"role": "user"
},
{
"content": "SELECT MIN(south_american_rank) FROM table_2249087_1 WHERE nation = \"Venezuela\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_2249087_1 (south_american_rank INTEGER, nation VARCHAR)<|im_end|>
<|im_start|>user
Name the south american rank for venezuela<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (record_medal_event VARCHAR, medal_count VARCHAR, sport VARCHAR, athlete VARCHAR)",
"role": "system"
},
{
"content": "What record medal event has athletics as the sport, with robert garrett as the athlete, and a medal count less than 3?",
"role": "user"
},
{
"content": "SELECT record_medal_event FROM table_name_33 WHERE sport = \"athletics\" AND athlete = \"robert garrett\" AND medal_count < 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_33 (record_medal_event VARCHAR, medal_count VARCHAR, sport VARCHAR, athlete VARCHAR)<|im_end|>
<|im_start|>user
What record medal event has athletics as the sport, with robert garrett as the athlete, and a medal count less 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_2669287_1 (season VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "How many seasons was the rank equal to #50?",
"role": "user"
},
{
"content": "SELECT COUNT(season) FROM table_2669287_1 WHERE rank = \"#50\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_2669287_1 (season VARCHAR, rank VARCHAR)<|im_end|>
<|im_start|>user
How many seasons was the rank equal to #50?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_70 (party VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "Which party had an incumbent of W. Jasper Talbert?",
"role": "user"
},
{
"content": "SELECT party FROM table_name_70 WHERE incumbent = \"w. jasper talbert\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_70 (party VARCHAR, incumbent VARCHAR)<|im_end|>
<|im_start|>user
Which party had an incumbent of W. Jasper Talbert?<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. 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 (rank INTEGER, placings VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "I want to know the highest rank with placings more than 123 and points greater than 88.06",
"role": "user"
},
{
"content": "SELECT MAX(rank) FROM table_name_75 WHERE placings > 123 AND points > 88.06",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. 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 (rank INTEGER, placings VARCHAR, points VARCHAR)<|im_end|>
<|im_start|>user
I want to know the highest rank with placings more than 123 and points greater than 88.06<|im_end|>
|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11147852_1 (city_of_license_market VARCHAR, station VARCHAR)",
"role": "system"
},
{
"content": "What market is KTFK-DT in?",
"role": "user"
},
{
"content": "SELECT city_of_license_market FROM table_11147852_1 WHERE station = \"KTFK-DT\"",
"role": "assistant"
}
] | <|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_11147852_1 (city_of_license_market VARCHAR, station VARCHAR)<|im_end|>
<|im_start|>user
What market is KTFK-DT in?<|im_end|>
|