chat_prompt
stringlengths 438
1.53k
|
|---|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24547593_1\" (\n \"round\" real,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_rider\" text,\n \"winning_team\" text\n);\n\nQuestion: Who was in the pole position for knockhill?"
},
{
"role": "assistant",
"content": "SELECT \"pole_position\" FROM \"table1_24547593_1\" WHERE \"circuit\"='Knockhill';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24547593_1\" (\n \"round\" real,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_rider\" text,\n \"winning_team\" text\n);\n\nQuestion: How many dates was knockhill?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"date\") FROM \"table1_24547593_1\" WHERE \"circuit\"='Knockhill';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"core_i7\" (\n \"codename_main_article\" text,\n \"brand_name_list\" text,\n \"cores\" real,\n \"l3_cache\" text,\n \"socket\" text,\n \"tdp\" text,\n \"process\" text,\n \"i_o_bus\" text,\n \"release_date\" text\n);\n\nQuestion: Name the l3 cache for core i7-2xxxqe, i7-26xxqm, i7-27xxqm"
},
{
"role": "assistant",
"content": "SELECT \"l3_cache\" FROM \"core_i7\" WHERE \"brand_name_list\"='Core i7-2xxxQE, i7-26xxQM, i7-27xxQM';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2005_indy_car_series_schedule\" (\n \"rnd\" real,\n \"date\" text,\n \"race_name\" text,\n \"track\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"most_laps_led\" text,\n \"winner\" text\n);\n\nQuestion: Who had most laps led at Chicagoland speedway? "
},
{
"role": "assistant",
"content": "SELECT \"most_laps_led\" FROM \"2005_indy_car_series_schedule\" WHERE \"track\"='Chicagoland Speedway';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2005_indy_car_series_schedule\" (\n \"rnd\" real,\n \"date\" text,\n \"race_name\" text,\n \"track\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"most_laps_led\" text,\n \"winner\" text\n);\n\nQuestion: In what race did Buddy Rice hav fastest lap? "
},
{
"role": "assistant",
"content": "SELECT \"race_name\" FROM \"2005_indy_car_series_schedule\" WHERE \"fastest_lap\"='Buddy Rice';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2005_indy_car_series_schedule\" (\n \"rnd\" real,\n \"date\" text,\n \"race_name\" text,\n \"track\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"most_laps_led\" text,\n \"winner\" text\n);\n\nQuestion: On what tra k was the march 19 race held? "
},
{
"role": "assistant",
"content": "SELECT \"track\" FROM \"2005_indy_car_series_schedule\" WHERE \"date\"='March 19';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2005_indy_car_series_schedule\" (\n \"rnd\" real,\n \"date\" text,\n \"race_name\" text,\n \"track\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"most_laps_led\" text,\n \"winner\" text\n);\n\nQuestion: On what track is the Argent mortgage Indy 300 held? "
},
{
"role": "assistant",
"content": "SELECT \"track\" FROM \"2005_indy_car_series_schedule\" WHERE \"race_name\"='Argent Mortgage Indy 300';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2005_indy_car_series_schedule\" (\n \"rnd\" real,\n \"date\" text,\n \"race_name\" text,\n \"track\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"most_laps_led\" text,\n \"winner\" text\n);\n\nQuestion: who held the fastes lap in Phoenix, Arizona? "
},
{
"role": "assistant",
"content": "SELECT \"fastest_lap\" FROM \"2005_indy_car_series_schedule\" WHERE \"location\"='Phoenix, Arizona';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"player\" text,\n \"played\" real,\n \"sets_won\" real,\n \"sets_lost\" real,\n \"legs_won\" real,\n \"legs_lost\" real,\n \"lwat\" real,\n \"100\" real,\n \"140\" real,\n \"180s\" real,\n \"high_checkout\" real,\n \"3_dart_average\" text\n);\n\nQuestion: How many games were played with 25 legs won with 35 100+?"
},
{
"role": "assistant",
"content": "SELECT \"played\" FROM \"statistics\" WHERE \"legs_won\"=25 AND \"100\"=35;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"player\" text,\n \"played\" real,\n \"sets_won\" real,\n \"sets_lost\" real,\n \"legs_won\" real,\n \"legs_lost\" real,\n \"lwat\" real,\n \"100\" real,\n \"140\" real,\n \"180s\" real,\n \"high_checkout\" real,\n \"3_dart_average\" text\n);\n\nQuestion: How many sets were lost with a 3-dart average of 87.55?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"sets_lost\") FROM \"statistics\" WHERE \"3_dart_average\"='87.55';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"player\" text,\n \"played\" real,\n \"sets_won\" real,\n \"sets_lost\" real,\n \"legs_won\" real,\n \"legs_lost\" real,\n \"lwat\" real,\n \"100\" real,\n \"140\" real,\n \"180s\" real,\n \"high_checkout\" real,\n \"3_dart_average\" text\n);\n\nQuestion: How man players checked out at 84?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"player\") FROM \"statistics\" WHERE \"high_checkout\"=84;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"player\" text,\n \"played\" real,\n \"sets_won\" real,\n \"sets_lost\" real,\n \"legs_won\" real,\n \"legs_lost\" real,\n \"lwat\" real,\n \"100\" real,\n \"140\" real,\n \"180s\" real,\n \"high_checkout\" real,\n \"3_dart_average\" text\n);\n\nQuestion: How man 3-dart averages did gary anderson have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"3_dart_average\") FROM \"statistics\" WHERE \"player\"='Gary Anderson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: List all results from the 3-3 scoring game."
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"record\"='3-3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: List all opponents from the 4-4 scoring game."
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"record\"='4-4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: List the record from the game where Wildcats had 48 points."
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"wildcats_points\"=48;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: How many points did the Wildcats get when Baylor was an opponent?"
},
{
"role": "assistant",
"content": "SELECT \"wildcats_points\" FROM \"schedule\" WHERE \"opponent\"='Baylor';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Who was the opponent on Oct. 4?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"date\"='Oct. 4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What was the minimum number for opponents?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"opponents\") FROM \"schedule\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What is the minimum number of opponents' points for the game at Michigan State?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"opponents\") FROM \"schedule\" WHERE \"opponent\"='at Michigan State';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Which opponent led to a 5-2 record?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"record\"='5-2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: How many opponents' points numbers are associated with the game at Ole Miss?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"opponents\") FROM \"schedule\" WHERE \"opponent\"='at Ole Miss';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"l\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: Name the total number of period for yvon le roux"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"period\") FROM \"l\" WHERE \"name\"='Yvon Le Roux';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"l\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: Name the period for michel llodra"
},
{
"role": "assistant",
"content": "SELECT \"period\" FROM \"l\" WHERE \"name\"='Michel Llodra';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"l\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: Name the number of position for democratic republic of the congo"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"position\") FROM \"l\" WHERE \"nationality\"='Democratic Republic of the Congo';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: How many names correspond to the value 101 for appearances?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"name\") FROM \"m\" WHERE \"appearances\"=101;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: What positions correspond to the name Thierry Morin?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"m\" WHERE \"name\"='Thierry Morin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"j\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: What time period had appearances of 219?"
},
{
"role": "assistant",
"content": "SELECT \"period\" FROM \"j\" WHERE \"appearances\"=219;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"j\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: How many periods had 15 goals?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"period\") FROM \"j\" WHERE \"goals\"=15;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"v\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: at least how many times was Pierre Vermeulen at a game?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"appearances\") FROM \"v\" WHERE \"name\"='Pierre Vermeulen';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"v\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: What country is Richard Vanquelef from?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"v\" WHERE \"name\"='Richard Vanquelef';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"v\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: What country is Pierre Vermeulen from?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"v\" WHERE \"name\"='Pierre Vermeulen';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"s\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: Name the number of appearances for yugoslavia"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"appearances\") FROM \"s\" WHERE \"nationality\"='Yugoslavia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"s\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: Name the nationality for defender 201"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"s\" WHERE \"position\"='Defender' AND \"appearances\"=201;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"s\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: Name the goals for daniel sanchez"
},
{
"role": "assistant",
"content": "SELECT \"goals\" FROM \"s\" WHERE \"name\"='Daniel Sanchez';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"s\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: Name the most goals for algeria"
},
{
"role": "assistant",
"content": "SELECT MIN(\"goals\") FROM \"s\" WHERE \"nationality\"='Algeria';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"t\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: What was the lowest score."
},
{
"role": "assistant",
"content": "SELECT MIN(\"goals\") FROM \"t\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"t\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: List the minimum impressions for sammy traor\u00e9"
},
{
"role": "assistant",
"content": "SELECT MIN(\"appearances\") FROM \"t\" WHERE \"name\"='Sammy Traor\u00e9';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"t\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: During what years did nabatingue toko play. "
},
{
"role": "assistant",
"content": "SELECT \"period\" FROM \"t\" WHERE \"name\"='Nabatingue Toko';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"p\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: Name the number of goals for mauricio pochettino"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"goals\") FROM \"p\" WHERE \"name\"='Mauricio Pochettino';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"p\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: Name the period for michel prost"
},
{
"role": "assistant",
"content": "SELECT \"period\" FROM \"p\" WHERE \"name\"='Michel Prost';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"p\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: Name the goals for mauricio pochettino"
},
{
"role": "assistant",
"content": "SELECT \"goals\" FROM \"p\" WHERE \"name\"='Mauricio Pochettino';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"a\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: Name the period for appearances being 380"
},
{
"role": "assistant",
"content": "SELECT \"period\" FROM \"a\" WHERE \"appearances\"=380;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"a\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: Name the appearances for bernard allou"
},
{
"role": "assistant",
"content": "SELECT \"appearances\" FROM \"a\" WHERE \"name\"='Bernard Allou';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"a\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: Name the most appearances for bernard allou"
},
{
"role": "assistant",
"content": "SELECT MAX(\"appearances\") FROM \"a\" WHERE \"name\"='Bernard Allou';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"f\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: What is the highest number of goals scored"
},
{
"role": "assistant",
"content": "SELECT MAX(\"goals\") FROM \"f\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"f\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: What is the lowest number of appearances a player had"
},
{
"role": "assistant",
"content": "SELECT MIN(\"appearances\") FROM \"f\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"f\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: What is the nationality of Louis floch"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"f\" WHERE \"name\"='Louis Floch';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"f\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: Which player had 252 appearances"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"f\" WHERE \"appearances\"=252;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"f\" (\n \"name\" text,\n \"position\" text,\n \"period\" text,\n \"appearances\" real,\n \"goals\" real,\n \"nationality\" text\n);\n\nQuestion: What is the nationality of the player who scored 13 goals"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"f\" WHERE \"goals\"=13;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"season\" real,\n \"regular_season\" text,\n \"playoffs\" text,\n \"u_s_open_cup\" text,\n \"concacaf\" text,\n \"final_record\" text\n);\n\nQuestion: how many time is the final record is 9\u201316\u20135?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"season\") FROM \"year_by_year\" WHERE \"final_record\"='9\u201316\u20135';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"station_crews\" (\n \"expedition\" text,\n \"crew\" text,\n \"launch_date\" text,\n \"flight_up\" text,\n \"landing_date\" text,\n \"flight_down\" text,\n \"duration_days\" text\n);\n\nQuestion: What station was sent on flight up and was launched on 23 July 1980 18:33:03?"
},
{
"role": "assistant",
"content": "SELECT \"flight_up\" FROM \"station_crews\" WHERE \"launch_date\"='23 July 1980 18:33:03';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"station_crews\" (\n \"expedition\" text,\n \"crew\" text,\n \"launch_date\" text,\n \"flight_up\" text,\n \"landing_date\" text,\n \"flight_down\" text,\n \"duration_days\" text\n);\n\nQuestion: Who were the crews on the flight up of Soyuz T-3?"
},
{
"role": "assistant",
"content": "SELECT \"crew\" FROM \"station_crews\" WHERE \"flight_up\"='Soyuz T-3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"station_crews\" (\n \"expedition\" text,\n \"crew\" text,\n \"launch_date\" text,\n \"flight_up\" text,\n \"landing_date\" text,\n \"flight_down\" text,\n \"duration_days\" text\n);\n\nQuestion: How many days were the station of Soyuz 35 in flight down were in orbit?"
},
{
"role": "assistant",
"content": "SELECT \"duration_days\" FROM \"station_crews\" WHERE \"flight_down\"='Soyuz 35';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24574438_1\" (\n \"ds_division\" text,\n \"main_town\" text,\n \"gn_divisions\" real,\n \"area_km_2\" real,\n \"sri_lankan_tamil\" real,\n \"sri_lankan_moors\" real,\n \"sinhalese\" real,\n \"indian_tamil\" real,\n \"other\" real,\n \"total\" real,\n \"population_density_km_2\" real\n);\n\nQuestion: Name the number of gn divisions for mannar"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"gn_divisions\") FROM \"table1_24574438_1\" WHERE \"ds_division\"='Mannar';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24574438_1\" (\n \"ds_division\" text,\n \"main_town\" text,\n \"gn_divisions\" real,\n \"area_km_2\" real,\n \"sri_lankan_tamil\" real,\n \"sri_lankan_moors\" real,\n \"sinhalese\" real,\n \"indian_tamil\" real,\n \"other\" real,\n \"total\" real,\n \"population_density_km_2\" real\n);\n\nQuestion: Name the sinhalese for manthai west"
},
{
"role": "assistant",
"content": "SELECT MAX(\"sinhalese\") FROM \"table1_24574438_1\" WHERE \"ds_division\"='Manthai West';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24574438_1\" (\n \"ds_division\" text,\n \"main_town\" text,\n \"gn_divisions\" real,\n \"area_km_2\" real,\n \"sri_lankan_tamil\" real,\n \"sri_lankan_moors\" real,\n \"sinhalese\" real,\n \"indian_tamil\" real,\n \"other\" real,\n \"total\" real,\n \"population_density_km_2\" real\n);\n\nQuestion: Name the least indian tamil for population density being 240"
},
{
"role": "assistant",
"content": "SELECT MIN(\"indian_tamil\") FROM \"table1_24574438_1\" WHERE \"population_density_km_2\"=240;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24574438_1\" (\n \"ds_division\" text,\n \"main_town\" text,\n \"gn_divisions\" real,\n \"area_km_2\" real,\n \"sri_lankan_tamil\" real,\n \"sri_lankan_moors\" real,\n \"sinhalese\" real,\n \"indian_tamil\" real,\n \"other\" real,\n \"total\" real,\n \"population_density_km_2\" real\n);\n\nQuestion: Name the popultion density being manthai west"
},
{
"role": "assistant",
"content": "SELECT \"population_density_km_2\" FROM \"table1_24574438_1\" WHERE \"ds_division\"='Manthai West';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24574438_1\" (\n \"ds_division\" text,\n \"main_town\" text,\n \"gn_divisions\" real,\n \"area_km_2\" real,\n \"sri_lankan_tamil\" real,\n \"sri_lankan_moors\" real,\n \"sinhalese\" real,\n \"indian_tamil\" real,\n \"other\" real,\n \"total\" real,\n \"population_density_km_2\" real\n);\n\nQuestion: Name the total number of sinhalese for indian tamil being 177"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"sinhalese\") FROM \"table1_24574438_1\" WHERE \"indian_tamil\"=177;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24574438_1\" (\n \"ds_division\" text,\n \"main_town\" text,\n \"gn_divisions\" real,\n \"area_km_2\" real,\n \"sri_lankan_tamil\" real,\n \"sri_lankan_moors\" real,\n \"sinhalese\" real,\n \"indian_tamil\" real,\n \"other\" real,\n \"total\" real,\n \"population_density_km_2\" real\n);\n\nQuestion: Name the least area "
},
{
"role": "assistant",
"content": "SELECT MIN(\"area_km_2\") FROM \"table1_24574438_1\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recent_champions\" (\n \"season\" text,\n \"premier_division\" text,\n \"division_one\" text,\n \"division_two\" text,\n \"division_three\" text,\n \"division_four\" text,\n \"division_five\" text\n);\n\nQuestion: When westcott is in division one how many leagues are in division 5?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"division_five\") FROM \"recent_champions\" WHERE \"division_one\"='Westcott';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recent_champions\" (\n \"season\" text,\n \"premier_division\" text,\n \"division_one\" text,\n \"division_two\" text,\n \"division_three\" text,\n \"division_four\" text,\n \"division_five\" text\n);\n\nQuestion: When godstone is in division five who is in division four?"
},
{
"role": "assistant",
"content": "SELECT \"division_four\" FROM \"recent_champions\" WHERE \"division_five\"='Godstone';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recent_champions\" (\n \"season\" text,\n \"premier_division\" text,\n \"division_one\" text,\n \"division_two\" text,\n \"division_three\" text,\n \"division_four\" text,\n \"division_five\" text\n);\n\nQuestion: When the wallington new foresters are in division four what is the season?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"recent_champions\" WHERE \"division_four\"='Wallington New Foresters';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recent_champions\" (\n \"season\" text,\n \"premier_division\" text,\n \"division_one\" text,\n \"division_two\" text,\n \"division_three\" text,\n \"division_four\" text,\n \"division_five\" text\n);\n\nQuestion: When racing epsom is in division two how many seasons are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"season\") FROM \"recent_champions\" WHERE \"division_two\"='Racing Epsom';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recent_champions\" (\n \"season\" text,\n \"premier_division\" text,\n \"division_one\" text,\n \"division_two\" text,\n \"division_three\" text,\n \"division_four\" text,\n \"division_five\" text\n);\n\nQuestion: When westcott 1935 is in division two how many leagues are in division three?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"division_three\") FROM \"recent_champions\" WHERE \"division_two\"='Westcott 1935';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recent_champions\" (\n \"season\" text,\n \"premier_division\" text,\n \"division_one\" text,\n \"division_two\" text,\n \"division_three\" text,\n \"division_four\" text,\n \"division_five\" text\n);\n\nQuestion: When real holmesdale reserves is division four who is in division one?"
},
{
"role": "assistant",
"content": "SELECT \"division_one\" FROM \"recent_champions\" WHERE \"division_four\"='Real Holmesdale Reserves';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"spacewalks\" (\n \"spacecraft\" text,\n \"spacewalker\" text,\n \"start_utc\" text,\n \"end_utc\" text,\n \"duration\" text,\n \"comments\" text\n);\n\nQuestion: When salyut 7 \u2013 ve-4 \u2013 eva 1 is the spacecraft, what is the duration?"
},
{
"role": "assistant",
"content": "SELECT \"duration\" FROM \"spacewalks\" WHERE \"spacecraft\"='Salyut 7 \u2013 VE-4 \u2013 EVA 1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"spacewalks\" (\n \"spacecraft\" text,\n \"spacewalker\" text,\n \"start_utc\" text,\n \"end_utc\" text,\n \"duration\" text,\n \"comments\" text\n);\n\nQuestion: When first woman eva is the comment what is the end -utc?"
},
{
"role": "assistant",
"content": "SELECT \"end_utc\" FROM \"spacewalks\" WHERE \"comments\"='First woman EVA';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_results\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What series did the racer earn 68 points in?"
},
{
"role": "assistant",
"content": "SELECT \"series\" FROM \"career_results\" WHERE \"points\"='68';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"expeditions\" (\n \"expedition\" text,\n \"crew\" text,\n \"launch_date\" text,\n \"flight_up\" text,\n \"landing_date\" text,\n \"flight_down\" text,\n \"duration_days\" text\n);\n\nQuestion: Name the duration for georgi grechko"
},
{
"role": "assistant",
"content": "SELECT \"duration_days\" FROM \"expeditions\" WHERE \"crew\"='Georgi Grechko';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"expeditions\" (\n \"expedition\" text,\n \"crew\" text,\n \"launch_date\" text,\n \"flight_up\" text,\n \"landing_date\" text,\n \"flight_down\" text,\n \"duration_days\" text\n);\n\nQuestion: Name the flight up for 10 december 1982 19:02:36 utc"
},
{
"role": "assistant",
"content": "SELECT \"flight_up\" FROM \"expeditions\" WHERE \"landing_date\"='10 December 1982 19:02:36 UTC';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"expeditions\" (\n \"expedition\" text,\n \"crew\" text,\n \"launch_date\" text,\n \"flight_up\" text,\n \"landing_date\" text,\n \"flight_down\" text,\n \"duration_days\" text\n);\n\nQuestion: Name the launch date for vladimir lyakhov , aleksandr pavlovich aleksandrov"
},
{
"role": "assistant",
"content": "SELECT \"launch_date\" FROM \"expeditions\" WHERE \"crew\"='Vladimir Lyakhov , Aleksandr Pavlovich Aleksandrov';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"expeditions\" (\n \"expedition\" text,\n \"crew\" text,\n \"launch_date\" text,\n \"flight_up\" text,\n \"landing_date\" text,\n \"flight_down\" text,\n \"duration_days\" text\n);\n\nQuestion: Name the flight down for vladimir vasyutin , alexander volkov"
},
{
"role": "assistant",
"content": "SELECT \"flight_down\" FROM \"expeditions\" WHERE \"crew\"='Vladimir Vasyutin , Alexander Volkov';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"expeditions\" (\n \"expedition\" text,\n \"crew\" text,\n \"launch_date\" text,\n \"flight_up\" text,\n \"landing_date\" text,\n \"flight_down\" text,\n \"duration_days\" text\n);\n\nQuestion: Name the duration for vladimir vasyutin , alexander volkov"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"duration_days\") FROM \"expeditions\" WHERE \"crew\"='Vladimir Vasyutin , Alexander Volkov';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: What team was he on the year he had 38 points? "
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"career_summary\" WHERE \"points\"=38;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: What was the least amount of wins when he had 10 poles? "
},
{
"role": "assistant",
"content": "SELECT MIN(\"wins\") FROM \"career_summary\" WHERE \"poles\"=10;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: Name the team for 22 points"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"career_summary\" WHERE \"points\"='22';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: Name the f/laps for gp2 series"
},
{
"role": "assistant",
"content": "SELECT \"f_laps\" FROM \"career_summary\" WHERE \"series\"='GP2 Series';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: Name the most wins"
},
{
"role": "assistant",
"content": "SELECT MIN(\"wins\") FROM \"career_summary\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: Name the least races for carlin"
},
{
"role": "assistant",
"content": "SELECT MIN(\"races\") FROM \"career_summary\" WHERE \"team\"='Carlin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: Name the position for 0 podiums and carlin team"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"career_summary\" WHERE \"podiums\"=0 AND \"team\"='Carlin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"topographical_survey\" (\n \"name_of_village\" text,\n \"name_in_syriac\" text,\n \"number_of_believers\" real,\n \"number_of_priests\" real,\n \"number_of_churches\" real\n);\n\nQuestion: Name the name in syriac for 500 believers"
},
{
"role": "assistant",
"content": "SELECT \"name_in_syriac\" FROM \"topographical_survey\" WHERE \"number_of_believers\"=500;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"topographical_survey\" (\n \"name_of_village\" text,\n \"name_in_syriac\" text,\n \"number_of_believers\" real,\n \"number_of_priests\" real,\n \"number_of_churches\" real\n);\n\nQuestion: Name the least number of believers"
},
{
"role": "assistant",
"content": "SELECT MIN(\"number_of_believers\") FROM \"topographical_survey\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"topographical_survey\" (\n \"name_of_village\" text,\n \"name_in_syriac\" text,\n \"number_of_believers\" real,\n \"number_of_priests\" real,\n \"number_of_churches\" real\n);\n\nQuestion: Name the most number of believers for \u0713\u0718\u071d\u0720\u0722"
},
{
"role": "assistant",
"content": "SELECT MAX(\"number_of_believers\") FROM \"topographical_survey\" WHERE \"name_in_syriac\"='\u0713\u0718\u071d\u0720\u0722';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"topographical_survey\" (\n \"name_of_village\" text,\n \"name_in_syriac\" text,\n \"number_of_believers\" real,\n \"number_of_priests\" real,\n \"number_of_churches\" real\n);\n\nQuestion: Name the number of believers for khosrowa"
},
{
"role": "assistant",
"content": "SELECT \"number_of_believers\" FROM \"topographical_survey\" WHERE \"name_of_village\"='Khosrowa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"topographical_survey\" (\n \"name_of_village\" text,\n \"name_in_syriac\" text,\n \"number_of_believers\" real,\n \"number_of_priests\" real,\n \"number_of_churches\" real\n);\n\nQuestion: Name the number of believers for patavur"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"number_of_believers\") FROM \"topographical_survey\" WHERE \"name_of_village\"='Patavur';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24598274_20\" (\n \"country\" text,\n \"local_title\" text,\n \"presenter_s\" text,\n \"judges\" text,\n \"channel\" text,\n \"series\" text\n);\n\nQuestion: The local title \"Live to Dance\" was aired in which channel?"
},
{
"role": "assistant",
"content": "SELECT \"channel\" FROM \"table1_24598274_20\" WHERE \"local_title\"='Live to Dance';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24598274_20\" (\n \"country\" text,\n \"local_title\" text,\n \"presenter_s\" text,\n \"judges\" text,\n \"channel\" text,\n \"series\" text\n);\n\nQuestion: Which country did Johanna Klum presented the show?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"table1_24598274_20\" WHERE \"presenter_s\"='Johanna Klum';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tracklist\" (\n \"artist_band\" text,\n \"song\" text,\n \"disney_affiliated\" text,\n \"released\" real,\n \"us_exclusive\" text,\n \"eu_exclusive\" text\n);\n\nQuestion: Name the most released for the in crowd"
},
{
"role": "assistant",
"content": "SELECT MAX(\"released\") FROM \"tracklist\" WHERE \"song\"='The In Crowd';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tracklist\" (\n \"artist_band\" text,\n \"song\" text,\n \"disney_affiliated\" text,\n \"released\" real,\n \"us_exclusive\" text,\n \"eu_exclusive\" text\n);\n\nQuestion: Name the most released for apologize"
},
{
"role": "assistant",
"content": "SELECT MAX(\"released\") FROM \"tracklist\" WHERE \"song\"='Apologize';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tracklist\" (\n \"artist_band\" text,\n \"song\" text,\n \"disney_affiliated\" text,\n \"released\" real,\n \"us_exclusive\" text,\n \"eu_exclusive\" text\n);\n\nQuestion: Name the most released for right here, right now"
},
{
"role": "assistant",
"content": "SELECT MAX(\"released\") FROM \"tracklist\" WHERE \"song\"='Right Here, Right Now';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tracklist\" (\n \"artist_band\" text,\n \"song\" text,\n \"disney_affiliated\" text,\n \"released\" real,\n \"us_exclusive\" text,\n \"eu_exclusive\" text\n);\n\nQuestion: Name the us exclusive for miley cyrus"
},
{
"role": "assistant",
"content": "SELECT \"us_exclusive\" FROM \"tracklist\" WHERE \"artist_band\"='Miley Cyrus';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24620684_2\" (\n \"vehicle\" text,\n \"operating_mode\" text,\n \"epa_rated_all_electric_range\" text,\n \"epa_rated_combined_fuel_economy\" text,\n \"clean_electric_grid_california_san_francisco\" text,\n \"u_s_national_average_electric_mix\" text,\n \"dirty_electric_grid_rocky_mountains_denver\" text\n);\n\nQuestion: When bmw activee is the vehicle type how many clean electric grid california (san francisco) measurements are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"clean_electric_grid_california_san_francisco\") FROM \"table1_24620684_2\" WHERE \"vehicle\"='BMW ActiveE';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24620684_2\" (\n \"vehicle\" text,\n \"operating_mode\" text,\n \"epa_rated_all_electric_range\" text,\n \"epa_rated_combined_fuel_economy\" text,\n \"clean_electric_grid_california_san_francisco\" text,\n \"u_s_national_average_electric_mix\" text,\n \"dirty_electric_grid_rocky_mountains_denver\" text\n);\n\nQuestion: When 102 mpg-e (33kw-hrs/100mi) is the epa rated combined fuel economy what is the vehicle type? "
},
{
"role": "assistant",
"content": "SELECT \"vehicle\" FROM \"table1_24620684_2\" WHERE \"epa_rated_combined_fuel_economy\"='102 mpg-e (33kW-hrs/100mi)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24620684_2\" (\n \"vehicle\" text,\n \"operating_mode\" text,\n \"epa_rated_all_electric_range\" text,\n \"epa_rated_combined_fuel_economy\" text,\n \"clean_electric_grid_california_san_francisco\" text,\n \"u_s_national_average_electric_mix\" text,\n \"dirty_electric_grid_rocky_mountains_denver\" text\n);\n\nQuestion: When 100 g/mi (62 g/km) is the clean electric grid california (san francisco) how many vehicles are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"vehicle\") FROM \"table1_24620684_2\" WHERE \"clean_electric_grid_california_san_francisco\"='100 g/mi (62 g/km)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24620684_2\" (\n \"vehicle\" text,\n \"operating_mode\" text,\n \"epa_rated_all_electric_range\" text,\n \"epa_rated_combined_fuel_economy\" text,\n \"clean_electric_grid_california_san_francisco\" text,\n \"u_s_national_average_electric_mix\" text,\n \"dirty_electric_grid_rocky_mountains_denver\" text\n);\n\nQuestion: When 380 g/mi (236 g/km) is the dirty electric grid rocky mountains (denver) what is the u.s national average electric mix?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_national_average_electric_mix\" FROM \"table1_24620684_2\" WHERE \"dirty_electric_grid_rocky_mountains_denver\"='380 g/mi (236 g/km)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24620684_2\" (\n \"vehicle\" text,\n \"operating_mode\" text,\n \"epa_rated_all_electric_range\" text,\n \"epa_rated_combined_fuel_economy\" text,\n \"clean_electric_grid_california_san_francisco\" text,\n \"u_s_national_average_electric_mix\" text,\n \"dirty_electric_grid_rocky_mountains_denver\" text\n);\n\nQuestion: When bmw activee is the vehicle type what is the u.s national average electric mix?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_national_average_electric_mix\" FROM \"table1_24620684_2\" WHERE \"vehicle\"='BMW ActiveE';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24620684_2\" (\n \"vehicle\" text,\n \"operating_mode\" text,\n \"epa_rated_all_electric_range\" text,\n \"epa_rated_combined_fuel_economy\" text,\n \"clean_electric_grid_california_san_francisco\" text,\n \"u_s_national_average_electric_mix\" text,\n \"dirty_electric_grid_rocky_mountains_denver\" text\n);\n\nQuestion: When 87 mpg-e (39kw-hrs/100mi) is the epa rated combined fuel economy how many operating modes are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"operating_mode\") FROM \"table1_24620684_2\" WHERE \"epa_rated_combined_fuel_economy\"='87 mpg-e (39kW-hrs/100mi)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wta_tier_i_19_finals_13_titles_6_runner_\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: Name the opponents for 6\u20132, 3\u20136, 6\u20133"
},
{
"role": "assistant",
"content": "SELECT \"opponents\" FROM \"wta_tier_i_19_finals_13_titles_6_runner_\" WHERE \"score\"='6\u20132, 3\u20136, 6\u20133';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wta_tier_i_19_finals_13_titles_6_runner_\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: Name the championship for outcome being winner for 7\u20135, 4\u20136, 6\u20131"
},
{
"role": "assistant",
"content": "SELECT \"championship\" FROM \"wta_tier_i_19_finals_13_titles_6_runner_\" WHERE \"outcome\"='Winner' AND \"score\"='7\u20135, 4\u20136, 6\u20131';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wta_tier_i_19_finals_13_titles_6_runner_\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: Name the score for winner and julie halard-decugis ai sugiyama"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"wta_tier_i_19_finals_13_titles_6_runner_\" WHERE \"outcome\"='Winner' AND \"opponents\"='Julie Halard-Decugis Ai Sugiyama';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.