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 \"roster\" (\n \"name\" text,\n \"num\" real,\n \"height\" text,\n \"weight\" real,\n \"position\" text,\n \"year\" text,\n \"home_town\" text,\n \"high_school\" text\n);\n\nQuestion: What is the position of the player who's hometown is North Babylon, NY?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"roster\" WHERE \"home_town\"='North Babylon, NY';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"num\" real,\n \"height\" text,\n \"weight\" real,\n \"position\" text,\n \"year\" text,\n \"home_town\" text,\n \"high_school\" text\n);\n\nQuestion: What position is the player from Chapel Hill, NC?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"roster\" WHERE \"home_town\"='Chapel Hill, NC';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"num\" real,\n \"height\" text,\n \"weight\" real,\n \"position\" text,\n \"year\" text,\n \"home_town\" text,\n \"high_school\" text\n);\n\nQuestion: What is the height of the player from Gulfport, MS?"
},
{
"role": "assistant",
"content": "SELECT \"height\" FROM \"roster\" WHERE \"home_town\"='Gulfport, MS';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"obamanum\" real,\n \"obamapct\" text,\n \"mc_cainnum\" real,\n \"mc_cainpct\" text\n);\n\nQuestion: In what county did McCain get 57.8%?"
},
{
"role": "assistant",
"content": "SELECT \"county\" FROM \"by_county\" WHERE \"mc_cainpct\"='57.8%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"obamanum\" real,\n \"obamapct\" text,\n \"mc_cainnum\" real,\n \"mc_cainpct\" text\n);\n\nQuestion: How many figures are given for McCain's % in Davidson county?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"mc_cainpct\") FROM \"by_county\" WHERE \"county\"='DAVIDSON';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"obamanum\" real,\n \"obamapct\" text,\n \"mc_cainnum\" real,\n \"mc_cainpct\" text\n);\n\nQuestion: What percentage did Obama get in Rutherford county?"
},
{
"role": "assistant",
"content": "SELECT \"obamapct\" FROM \"by_county\" WHERE \"county\"='RUTHERFORD';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"obamanum\" real,\n \"obamapct\" text,\n \"mc_cainnum\" real,\n \"mc_cainpct\" text\n);\n\nQuestion: What percentage did McCain get in Hamilton county?"
},
{
"role": "assistant",
"content": "SELECT \"mc_cainpct\" FROM \"by_county\" WHERE \"county\"='HAMILTON';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"obamanum\" real,\n \"obamapct\" text,\n \"mc_cainnum\" real,\n \"mc_cainpct\" text\n);\n\nQuestion: What percentage did Obama get when McCain got 52.8%?"
},
{
"role": "assistant",
"content": "SELECT \"obamapct\" FROM \"by_county\" WHERE \"mc_cainpct\"='52.8%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"obamanum\" real,\n \"obamapct\" text,\n \"mc_cainnum\" real,\n \"mc_cainpct\" text\n);\n\nQuestion: How many votes did Obama get in Lake County?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"obamanum\") FROM \"by_county\" WHERE \"county\"='LAKE';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"obamapct\" text,\n \"obamanum\" real,\n \"mc_cainpct\" text,\n \"mc_cainnum\" real\n);\n\nQuestion: In how many counties did McCain get 65.72% of the votes?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"county\") FROM \"by_county\" WHERE \"mc_cainpct\"='65.72%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"obamapct\" text,\n \"obamanum\" real,\n \"mc_cainpct\" text,\n \"mc_cainnum\" real\n);\n\nQuestion: How many people voted for Obama in the county where McCain got 72.75% of the votes?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"obamanum\") FROM \"by_county\" WHERE \"mc_cainpct\"='72.75%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"obamapct\" text,\n \"obamanum\" real,\n \"mc_cainpct\" text,\n \"mc_cainnum\" real\n);\n\nQuestion: What percentage of the votes did McCain get in Hinds?"
},
{
"role": "assistant",
"content": "SELECT \"mc_cainpct\" FROM \"by_county\" WHERE \"county\"='Hinds';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"obamapct\" text,\n \"obamanum\" real,\n \"mc_cainpct\" text,\n \"mc_cainnum\" real\n);\n\nQuestion: How many votes did McCain get in Scott?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"mc_cainnum\") FROM \"by_county\" WHERE \"county\"='Scott';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"obamapct\" text,\n \"obamanum\" real,\n \"mc_cainpct\" text,\n \"mc_cainnum\" real\n);\n\nQuestion: What percentage of the votes in Tippah did Obama get?"
},
{
"role": "assistant",
"content": "SELECT \"obamapct\" FROM \"by_county\" WHERE \"county\"='Tippah';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"obamapct\" text,\n \"obamanum\" real,\n \"mc_cainpct\" text,\n \"mc_cainnum\" real\n);\n\nQuestion: What percentage of the votes in Copiah did McCain get?"
},
{
"role": "assistant",
"content": "SELECT \"mc_cainpct\" FROM \"by_county\" WHERE \"county\"='Copiah';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fares\" (\n \"type_of_fare\" text,\n \"cash_fare\" text,\n \"day_pass\" text,\n \"31_day_pass\" text,\n \"monthly_pass\" text\n);\n\nQuestion: When n/a is the cash fate and n/a is the 31-day pass how many types of fare are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"type_of_fare\") FROM \"fares\" WHERE \"31_day_pass\"='N/A' AND \"cash_fare\"='N/A';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fares\" (\n \"type_of_fare\" text,\n \"cash_fare\" text,\n \"day_pass\" text,\n \"31_day_pass\" text,\n \"monthly_pass\" text\n);\n\nQuestion: When fixed route is the type of fare how much is the 31-day pass?"
},
{
"role": "assistant",
"content": "SELECT \"31_day_pass\" FROM \"fares\" WHERE \"type_of_fare\"='Fixed Route';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fares\" (\n \"type_of_fare\" text,\n \"cash_fare\" text,\n \"day_pass\" text,\n \"31_day_pass\" text,\n \"monthly_pass\" text\n);\n\nQuestion: When mega pass* (senior/disabled) is the type of fare what is the cash fare?"
},
{
"role": "assistant",
"content": "SELECT \"cash_fare\" FROM \"fares\" WHERE \"type_of_fare\"='Mega Pass* (Senior/Disabled)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fares\" (\n \"type_of_fare\" text,\n \"cash_fare\" text,\n \"day_pass\" text,\n \"31_day_pass\" text,\n \"monthly_pass\" text\n);\n\nQuestion: When mega pass* (senior/disabled) is the type of fare what is the day pass?"
},
{
"role": "assistant",
"content": "SELECT \"day_pass\" FROM \"fares\" WHERE \"type_of_fare\"='Mega Pass* (Senior/Disabled)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fares\" (\n \"type_of_fare\" text,\n \"cash_fare\" text,\n \"day_pass\" text,\n \"31_day_pass\" text,\n \"monthly_pass\" text\n);\n\nQuestion: When fort irwin-barstow/victorville is the type of fare what is the cash fare?"
},
{
"role": "assistant",
"content": "SELECT \"cash_fare\" FROM \"fares\" WHERE \"type_of_fare\"='Fort Irwin-Barstow/Victorville';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_statistics\" (\n \"no\" real,\n \"player\" text,\n \"league_apps\" real,\n \"league_goals\" real,\n \"cup_apps\" real,\n \"cup_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real,\n \"yc\" real,\n \"rc\" real\n);\n\nQuestion: Where total goals is 1 and total apps is 33, what is the smallest no.?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"no\") FROM \"player_statistics\" WHERE \"total_goals\"=1 AND \"total_apps\"=33;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2082992_5\" (\n \"city_utility\" text,\n \"residential_monthly_usage_1000_k_wh\" text,\n \"small_power_power_demand_40_k_w_consumption_10_000_k_wh_load_factor_35pct\" text,\n \"medium_power_power_demand_1_000_k_w_consumption_400_000_k_wh_load_factor_56_pct\" text,\n \"large_power_power_demand_50_000_k_w_consumption_30_600_000_k_wh_load_factor_85pct\" text\n);\n\nQuestion: What is every residential monthly usage if large power demand is 6.86?"
},
{
"role": "assistant",
"content": "SELECT \"residential_monthly_usage_1000_k_wh\" FROM \"table1_2082992_5\" WHERE \"large_power_power_demand_50_000_k_w_consumption_30_600_000_k_wh_load_factor_85pct\"='6.86';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2082992_5\" (\n \"city_utility\" text,\n \"residential_monthly_usage_1000_k_wh\" text,\n \"small_power_power_demand_40_k_w_consumption_10_000_k_wh_load_factor_35pct\" text,\n \"medium_power_power_demand_1_000_k_w_consumption_400_000_k_wh_load_factor_56_pct\" text,\n \"large_power_power_demand_50_000_k_w_consumption_30_600_000_k_wh_load_factor_85pct\" text\n);\n\nQuestion: How many values for small power demand occur when medium power demand is 11.07?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"small_power_power_demand_40_k_w_consumption_10_000_k_wh_load_factor_35pct\") FROM \"table1_2082992_5\" WHERE \"medium_power_power_demand_1_000_k_w_consumption_400_000_k_wh_load_factor_56_pct\"='11.07';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2082992_5\" (\n \"city_utility\" text,\n \"residential_monthly_usage_1000_k_wh\" text,\n \"small_power_power_demand_40_k_w_consumption_10_000_k_wh_load_factor_35pct\" text,\n \"medium_power_power_demand_1_000_k_w_consumption_400_000_k_wh_load_factor_56_pct\" text,\n \"large_power_power_demand_50_000_k_w_consumption_30_600_000_k_wh_load_factor_85pct\" text\n);\n\nQuestion: What is every value for large power demand when small power demand is 13.41?"
},
{
"role": "assistant",
"content": "SELECT \"large_power_power_demand_50_000_k_w_consumption_30_600_000_k_wh_load_factor_85pct\" FROM \"table1_2082992_5\" WHERE \"small_power_power_demand_40_k_w_consumption_10_000_k_wh_load_factor_35pct\"='13.41';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2082992_5\" (\n \"city_utility\" text,\n \"residential_monthly_usage_1000_k_wh\" text,\n \"small_power_power_demand_40_k_w_consumption_10_000_k_wh_load_factor_35pct\" text,\n \"medium_power_power_demand_1_000_k_w_consumption_400_000_k_wh_load_factor_56_pct\" text,\n \"large_power_power_demand_50_000_k_w_consumption_30_600_000_k_wh_load_factor_85pct\" text\n);\n\nQuestion: What is every city with a residential monthly usage of 11.80?"
},
{
"role": "assistant",
"content": "SELECT \"city_utility\" FROM \"table1_2082992_5\" WHERE \"residential_monthly_usage_1000_k_wh\"='11.80';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What position is the boat with 20.12 LOA (metres)?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"position\") FROM \"line_honours_results_top_10\" WHERE \"loa_metres\"='20.12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What are the LOA (metres) of boat with sail number M10?"
},
{
"role": "assistant",
"content": "SELECT \"loa_metres\" FROM \"line_honours_results_top_10\" WHERE \"sail_number\"='M10';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What is the race number with time 1:23:19:31?"
},
{
"role": "assistant",
"content": "SELECT \"race_number\" FROM \"line_honours_results_top_10\" WHERE \"elapsed_time_d_hh_mm_ss\"='1:23:19:31';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: How many LOA (metres) reported for Black Jack?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"loa_metres\") FROM \"line_honours_results_top_10\" WHERE \"yacht\"='Black Jack';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What race number had sail number AUS 98888?"
},
{
"role": "assistant",
"content": "SELECT \"race_number\" FROM \"line_honours_results_top_10\" WHERE \"sail_number\"='AUS 98888';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: How many sail numbers for boat skippered by Geoff Ross?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"sail_number\") FROM \"line_honours_results_top_10\" WHERE \"skipper\"='Geoff Ross';"
}
]
|
[
{
"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 \"orangemen_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: When did they play against West Virginia?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"opponent\"='West Virginia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season_record\" (\n \"season\" text,\n \"gp\" real,\n \"w_ot_so\" text,\n \"l_ot_so\" text,\n \"pts\" real,\n \"pts_gp\" text,\n \"gf_ga\" text,\n \"rank_league_conference\" text,\n \"top_scorer\" text\n);\n\nQuestion: When l (ot/so) is 22 (3/4), what is the season?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"regular_season_record\" WHERE \"l_ot_so\"='22 (3/4)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season_record\" (\n \"season\" text,\n \"gp\" real,\n \"w_ot_so\" text,\n \"l_ot_so\" text,\n \"pts\" real,\n \"pts_gp\" text,\n \"gf_ga\" text,\n \"rank_league_conference\" text,\n \"top_scorer\" text\n);\n\nQuestion: In season is 2008\u201309, how many wins did they have?"
},
{
"role": "assistant",
"content": "SELECT \"w_ot_so\" FROM \"regular_season_record\" WHERE \"season\"='2008\u201309';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20860739_1\" (\n \"round\" real,\n \"choice\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: What is the weight of Eben Britton?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"weight\") FROM \"table1_20860739_1\" WHERE \"player\"='Eben Britton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20860739_1\" (\n \"round\" real,\n \"choice\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: How many rounds did Virginia have?"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"table1_20860739_1\" WHERE \"college\"='Virginia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20860739_1\" (\n \"round\" real,\n \"choice\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: How many rounds were there a height of 6'5?"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"table1_20860739_1\" WHERE \"height\"='6''5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20860739_1\" (\n \"round\" real,\n \"choice\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: What college has a player that is 6'1?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"table1_20860739_1\" WHERE \"height\"='6''1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20860739_1\" (\n \"round\" real,\n \"choice\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: What is the number of Mike Thomas?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"position\") FROM \"table1_20860739_1\" WHERE \"player\"='Mike Thomas';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20861261_4\" (\n \"round\" real,\n \"choice\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"college\" text\n);\n\nQuestion: What college did Terrance Taylor play for?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"table1_20861261_4\" WHERE \"player\"='Terrance Taylor';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20861261_4\" (\n \"round\" real,\n \"choice\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"college\" text\n);\n\nQuestion: What's Curtis Painter's position?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"table1_20861261_4\" WHERE \"player\"='Curtis Painter';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20861261_4\" (\n \"round\" real,\n \"choice\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"college\" text\n);\n\nQuestion: How much does the player from Southern California weight?"
},
{
"role": "assistant",
"content": "SELECT \"weight\" FROM \"table1_20861261_4\" WHERE \"college\"='Southern California';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20861261_4\" (\n \"round\" real,\n \"choice\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"college\" text\n);\n\nQuestion: What's Curtis Painter's position?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"table1_20861261_4\" WHERE \"player\"='Curtis Painter';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20861261_4\" (\n \"round\" real,\n \"choice\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"college\" text\n);\n\nQuestion: In what round did the player who weights 192lb (87kg) play?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"round\") FROM \"table1_20861261_4\" WHERE \"weight\"='192lb (87kg)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20861261_4\" (\n \"round\" real,\n \"choice\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"college\" text\n);\n\nQuestion: What's the choice score of the player who weights 303lb (137kg)?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"choice\") FROM \"table1_20861261_4\" WHERE \"weight\"='303lb (137kg)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"technical_specifications\" (\n \"model_type\" text,\n \"model_designation\" text,\n \"engine\" text,\n \"wheelbase_mm_inch\" text,\n \"gvw_kg_ton\" text,\n \"axle_ratio\" text\n);\n\nQuestion: How many different engines are there for the model with model designation 97G00?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"engine\") FROM \"technical_specifications\" WHERE \"model_designation\"='97G00';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"technical_specifications\" (\n \"model_type\" text,\n \"model_designation\" text,\n \"engine\" text,\n \"wheelbase_mm_inch\" text,\n \"gvw_kg_ton\" text,\n \"axle_ratio\" text\n);\n\nQuestion: What's the engine for the model model designation 97G00 and GVW of 2500/2.46 kg/ton?"
},
{
"role": "assistant",
"content": "SELECT \"engine\" FROM \"technical_specifications\" WHERE \"gvw_kg_ton\"='2500/2.46' AND \"model_designation\"='97G00';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"technical_specifications\" (\n \"model_type\" text,\n \"model_designation\" text,\n \"engine\" text,\n \"wheelbase_mm_inch\" text,\n \"gvw_kg_ton\" text,\n \"axle_ratio\" text\n);\n\nQuestion: What model type has model designation 97500?"
},
{
"role": "assistant",
"content": "SELECT \"model_type\" FROM \"technical_specifications\" WHERE \"model_designation\"='97500';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"technical_specifications\" (\n \"model_type\" text,\n \"model_designation\" text,\n \"engine\" text,\n \"wheelbase_mm_inch\" text,\n \"gvw_kg_ton\" text,\n \"axle_ratio\" text\n);\n\nQuestion: What's the axle ratio of the model with model designation 97G00?"
},
{
"role": "assistant",
"content": "SELECT \"axle_ratio\" FROM \"technical_specifications\" WHERE \"model_designation\"='97G00';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"technical_specifications\" (\n \"model_type\" text,\n \"model_designation\" text,\n \"engine\" text,\n \"wheelbase_mm_inch\" text,\n \"gvw_kg_ton\" text,\n \"axle_ratio\" text\n);\n\nQuestion: What model type has 97100 model designation?"
},
{
"role": "assistant",
"content": "SELECT \"model_type\" FROM \"technical_specifications\" WHERE \"model_designation\"='97100';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"technical_specifications\" (\n \"model_type\" text,\n \"model_designation\" text,\n \"engine\" text,\n \"wheelbase_mm_inch\" text,\n \"gvw_kg_ton\" text,\n \"axle_ratio\" text\n);\n\nQuestion: What type of engine does the model with model designation 97100 have?"
},
{
"role": "assistant",
"content": "SELECT \"engine\" FROM \"technical_specifications\" WHERE \"model_designation\"='97100';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"technical_specifications\" (\n \"model_type\" text,\n \"model_designation\" text,\n \"engine\" text,\n \"wheelbase_mm_inch\" text,\n \"gvw_kg_ton\" text,\n \"axle_ratio\" text\n);\n\nQuestion: What's the wheelbase (in mm/inch) of the model with model designation 97G00?"
},
{
"role": "assistant",
"content": "SELECT \"wheelbase_mm_inch\" FROM \"technical_specifications\" WHERE \"model_designation\"='97G00';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"technical_specifications\" (\n \"model_type\" text,\n \"model_designation\" text,\n \"engine\" text,\n \"wheelbase_mm_inch\" text,\n \"gvw_kg_ton\" text,\n \"axle_ratio\" text\n);\n\nQuestion: What type of engine does the model with model designation 97F00 have?"
},
{
"role": "assistant",
"content": "SELECT \"engine\" FROM \"technical_specifications\" WHERE \"model_designation\"='97F00';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"technical_specifications\" (\n \"model_type\" text,\n \"model_designation\" text,\n \"engine\" text,\n \"wheelbase_mm_inch\" text,\n \"gvw_kg_ton\" text,\n \"axle_ratio\" text\n);\n\nQuestion: What's the model designation of the model with GVW of 2828/2.78 kg/ton and axle ratio of 9/47?"
},
{
"role": "assistant",
"content": "SELECT \"model_designation\" FROM \"technical_specifications\" WHERE \"gvw_kg_ton\"='2828/2.78' AND \"axle_ratio\"='9/47';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20871703_1\" (\n \"round\" real,\n \"choice\" real,\n \"player_name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: Who is the player name when eastern michigan is the college?"
},
{
"role": "assistant",
"content": "SELECT \"player_name\" FROM \"table1_20871703_1\" WHERE \"college\"='Eastern Michigan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20871703_1\" (\n \"round\" real,\n \"choice\" real,\n \"player_name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: What is the height if ot is the position?"
},
{
"role": "assistant",
"content": "SELECT \"height\" FROM \"table1_20871703_1\" WHERE \"position\"='OT';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20871703_1\" (\n \"round\" real,\n \"choice\" real,\n \"player_name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: Who is the player for south carolina college?"
},
{
"role": "assistant",
"content": "SELECT \"player_name\" FROM \"table1_20871703_1\" WHERE \"college\"='South Carolina';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20871703_1\" (\n \"round\" real,\n \"choice\" real,\n \"player_name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: What is the height if de is the position?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"height\") FROM \"table1_20871703_1\" WHERE \"position\"='DE';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20871703_1\" (\n \"round\" real,\n \"choice\" real,\n \"player_name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: Which college has fb as the position?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"table1_20871703_1\" WHERE \"position\"='FB';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"technical_specifications\" (\n \"model_type\" text,\n \"model_designation\" text,\n \"engine\" text,\n \"wheelbase_mm_inch\" text,\n \"gvw_kg_ton\" text,\n \"axle_ratio\" text\n);\n\nQuestion: What is the GVW for model 97H00?"
},
{
"role": "assistant",
"content": "SELECT \"gvw_kg_ton\" FROM \"technical_specifications\" WHERE \"model_designation\"='97H00';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"technical_specifications\" (\n \"model_type\" text,\n \"model_designation\" text,\n \"engine\" text,\n \"wheelbase_mm_inch\" text,\n \"gvw_kg_ton\" text,\n \"axle_ratio\" text\n);\n\nQuestion: How many engines are there for model 97H00?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"engine\") FROM \"technical_specifications\" WHERE \"model_designation\"='97H00';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"technical_specifications\" (\n \"model_type\" text,\n \"model_designation\" text,\n \"engine\" text,\n \"wheelbase_mm_inch\" text,\n \"gvw_kg_ton\" text,\n \"axle_ratio\" text\n);\n\nQuestion: What is the Wheelbase for Model 97300?"
},
{
"role": "assistant",
"content": "SELECT \"wheelbase_mm_inch\" FROM \"technical_specifications\" WHERE \"model_designation\"='97300';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"technical_specifications\" (\n \"model_type\" text,\n \"model_designation\" text,\n \"engine\" text,\n \"wheelbase_mm_inch\" text,\n \"gvw_kg_ton\" text,\n \"axle_ratio\" text\n);\n\nQuestion: Name the Engine for model CF350."
},
{
"role": "assistant",
"content": "SELECT \"engine\" FROM \"technical_specifications\" WHERE \"model_type\"='CF350';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"rd\" real,\n \"race_title\" text,\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"format\" text,\n \"winner\" text,\n \"team\" text,\n \"report\" text\n);\n\nQuestion: Was the result of the supercheap auto bathurst 1000 reported?"
},
{
"role": "assistant",
"content": "SELECT \"report\" FROM \"race_calendar\" WHERE \"race_title\"='Supercheap Auto Bathurst 1000';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"rd\" real,\n \"race_title\" text,\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"format\" text,\n \"winner\" text,\n \"team\" text,\n \"report\" text\n);\n\nQuestion: Who was the winner of the race at barbagallo raceway?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"race_calendar\" WHERE \"circuit\"='Barbagallo Raceway';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_pittsburgh_steelers_draft_selection\" (\n \"round\" real,\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"college\" text,\n \"status\" text\n);\n\nQuestion: how many players played running back where status is made 53-man roster at start of 2009 season"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"player\") FROM \"2009_pittsburgh_steelers_draft_selection\" WHERE \"status\"='Made 53-man roster at start of 2009 season' AND \"position\"='Running back';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_pittsburgh_steelers_draft_selection\" (\n \"round\" real,\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"college\" text,\n \"status\" text\n);\n\nQuestion: howe many positions did wallace, mike mike wallace play for "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"position\") FROM \"2009_pittsburgh_steelers_draft_selection\" WHERE \"player\"='Wallace, Mike Mike Wallace';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_pittsburgh_steelers_draft_selection\" (\n \"round\" real,\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"college\" text,\n \"status\" text\n);\n\nQuestion: state the status of pick # 32"
},
{
"role": "assistant",
"content": "SELECT \"status\" FROM \"2009_pittsburgh_steelers_draft_selection\" WHERE \"pick_num\"=32;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_pittsburgh_steelers_draft_selection\" (\n \"round\" real,\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"college\" text,\n \"status\" text\n);\n\nQuestion: which college had a running back player"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"2009_pittsburgh_steelers_draft_selection\" WHERE \"position\"='Running back';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_pittsburgh_steelers_draft_selection\" (\n \"round\" real,\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"college\" text,\n \"status\" text\n);\n\nQuestion: what is the position of the player of height ft0in (m)"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"2009_pittsburgh_steelers_draft_selection\" WHERE \"height\"='ft0in (m)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_pittsburgh_steelers_draft_selection\" (\n \"round\" real,\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"college\" text,\n \"status\" text\n);\n\nQuestion: what's the position of pick # 79"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"2009_pittsburgh_steelers_draft_selection\" WHERE \"pick_num\"=79;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_career_passing_records\" (\n \"name\" text,\n \"completions\" real,\n \"attempts\" real,\n \"completion_pct\" text,\n \"yards\" real,\n \"touchdowns\" real,\n \"interceptions\" real,\n \"qb_rating\" text\n);\n\nQuestion: How many touchdowns were scored when QB rating was 82.7?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"touchdowns\") FROM \"team_career_passing_records\" WHERE \"qb_rating\"='82.7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_career_passing_records\" (\n \"name\" text,\n \"completions\" real,\n \"attempts\" real,\n \"completion_pct\" text,\n \"yards\" real,\n \"touchdowns\" real,\n \"interceptions\" real,\n \"qb_rating\" text\n);\n\nQuestion: What was the QB rating for Neil lomax?"
},
{
"role": "assistant",
"content": "SELECT \"qb_rating\" FROM \"team_career_passing_records\" WHERE \"name\"='Neil Lomax';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_career_passing_records\" (\n \"name\" text,\n \"completions\" real,\n \"attempts\" real,\n \"completion_pct\" text,\n \"yards\" real,\n \"touchdowns\" real,\n \"interceptions\" real,\n \"qb_rating\" text\n);\n\nQuestion: How many attempts did Charley Johnson have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"attempts\") FROM \"team_career_passing_records\" WHERE \"name\"='Charley Johnson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_career_passing_records\" (\n \"name\" text,\n \"completions\" real,\n \"attempts\" real,\n \"completion_pct\" text,\n \"yards\" real,\n \"touchdowns\" real,\n \"interceptions\" real,\n \"qb_rating\" text\n);\n\nQuestion: How many touchdowns were there with QB rating of 66.6?"
},
{
"role": "assistant",
"content": "SELECT \"touchdowns\" FROM \"team_career_passing_records\" WHERE \"qb_rating\"='66.6';"
}
]
|
[
{
"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 \"cardinals_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Name the number opponent for loss result"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"opponent\") FROM \"schedule\" WHERE \"result\"='Loss';"
}
]
|
[
{
"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 \"cardinals_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Name the game for record being 3-0"
},
{
"role": "assistant",
"content": "SELECT \"game\" FROM \"schedule\" WHERE \"record\"='3-0';"
}
]
|
[
{
"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 \"cardinals_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What was the date of game 6?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"game\"=6;"
}
]
|
[
{
"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 \"cardinals_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What was the record for the game where the cardinals scored 7 points?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"cardinals_points\"=7;"
}
]
|
[
{
"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 \"cardinals_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What game date had the record of 1-2?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"record\"='1-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 \"cardinals_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: How many opponents were in North Carolina state game?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"opponents\") FROM \"schedule\" WHERE \"opponent\"='North Carolina State';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"date\" text,\n \"grand_prix\" text,\n \"circuit\" text,\n \"moto_gp_winner\" text,\n \"moto2_winner\" text,\n \"125cc_winner\" text,\n \"report\" text\n);\n\nQuestion: How many 125cc winners were in the same events as when the Moto2 winner was Shoya Tomizawa?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"125cc_winner\") FROM \"grands_prix\" WHERE \"moto2_winner\"='Shoya Tomizawa';"
}
]
|
[
{
"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 \"hurricanes_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: After how many opponents was the overall record 1-0-0?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"opponents\") FROM \"schedule\" WHERE \"record\"='1-0-0';"
}
]
|
[
{
"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 \"hurricanes_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What was the record after the game in which the Hurricanes scored 24 points?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"hurricanes_points\"=24;"
}
]
|
[
{
"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 \"hurricanes_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Which game number was played against Georgia?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"game\") FROM \"schedule\" WHERE \"opponent\"='Georgia';"
}
]
|
[
{
"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 \"hurricanes_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: How many games were played against Tulane?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"opponents\") FROM \"schedule\" WHERE \"opponent\"='Tulane';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2093995_1\" (\n \"stations\" text,\n \"connections\" text,\n \"city_neighborhood\" text,\n \"parking\" text,\n \"date_opened\" text\n);\n\nQuestion: How much parking is in Van Nuys at the Sepulveda station? "
},
{
"role": "assistant",
"content": "SELECT \"parking\" FROM \"table1_2093995_1\" WHERE \"city_neighborhood\"='Van Nuys' AND \"stations\"='Sepulveda';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2093995_1\" (\n \"stations\" text,\n \"connections\" text,\n \"city_neighborhood\" text,\n \"parking\" text,\n \"date_opened\" text\n);\n\nQuestion: What are the stations in Tarzana? "
},
{
"role": "assistant",
"content": "SELECT \"stations\" FROM \"table1_2093995_1\" WHERE \"city_neighborhood\"='Tarzana';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2093995_1\" (\n \"stations\" text,\n \"connections\" text,\n \"city_neighborhood\" text,\n \"parking\" text,\n \"date_opened\" text\n);\n\nQuestion: How many connection catagories are there for Tampa? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"connections\") FROM \"table1_2093995_1\" WHERE \"stations\"='Tampa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2093995_1\" (\n \"stations\" text,\n \"connections\" text,\n \"city_neighborhood\" text,\n \"parking\" text,\n \"date_opened\" text\n);\n\nQuestion: Which station has park & ride lot parking? "
},
{
"role": "assistant",
"content": "SELECT \"stations\" FROM \"table1_2093995_1\" WHERE \"parking\"='Park & Ride Lot';"
}
]
|
[
{
"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 \"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: Which player has a 92.58 3-dart average?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"statistics\" WHERE \"3_dart_average\"='92.58';"
}
]
|
[
{
"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 \"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: What is the 3-dart average with a high checkout of 112?"
},
{
"role": "assistant",
"content": "SELECT \"3_dart_average\" FROM \"statistics\" WHERE \"high_checkout\"=112;"
}
]
|
[
{
"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 \"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: What is the high checkout when played is 2 and 36 is 100+?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"high_checkout\") FROM \"statistics\" WHERE \"played\"=2 AND \"100\"=36;"
}
]
|
[
{
"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 \"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 180s have legs won of 45?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"180s\") FROM \"statistics\" WHERE \"legs_won\"=45;"
}
]
|
[
{
"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 \"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 legs won have 95.29 as a 3-dart average?"
},
{
"role": "assistant",
"content": "SELECT \"legs_won\" FROM \"statistics\" WHERE \"3_dart_average\"='95.29';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2003_fed_ex_ground_winners\" (\n \"week\" real,\n \"player\" text,\n \"team\" text,\n \"opponent\" text,\n \"carries\" real,\n \"yards\" real,\n \"average\" text,\n \"touchdowns\" real\n);\n\nQuestion: The player who had 145 yards had how many touchdowns?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"touchdowns\") FROM \"2003_fed_ex_ground_winners\" WHERE \"yards\"=145;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2003_fed_ex_ground_winners\" (\n \"week\" real,\n \"player\" text,\n \"team\" text,\n \"opponent\" text,\n \"carries\" real,\n \"yards\" real,\n \"average\" text,\n \"touchdowns\" real\n);\n\nQuestion: Which team did the player have who had 27 total carries?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"2003_fed_ex_ground_winners\" WHERE \"carries\"=27;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2003_fed_ex_ground_winners\" (\n \"week\" real,\n \"player\" text,\n \"team\" text,\n \"opponent\" text,\n \"carries\" real,\n \"yards\" real,\n \"average\" text,\n \"touchdowns\" real\n);\n\nQuestion: What was the player's team's opponent for Week 12?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"2003_fed_ex_ground_winners\" WHERE \"week\"=12;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20967430_4\" (\n \"ep\" real,\n \"season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text\n);\n\nQuestion: Who directed the episode that originally aired on March 18, 1988?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_20967430_4\" WHERE \"original_air_date\"='March 18, 1988';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20967430_4\" (\n \"ep\" real,\n \"season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text\n);\n\nQuestion: What is the episode number in the series for \"graduation\" that was directed by Don Corvan?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"ep\") FROM \"table1_20967430_4\" WHERE \"directed_by\"='Don Corvan' AND \"title\"='\\\"Graduation\\\"';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.