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 \"round_three\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Name the college/junior club team for john campbell"
},
{
"role": "assistant",
"content": "SELECT \"college_junior_club_team\" FROM \"round_three\" WHERE \"player\"='John Campbell';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Name the least pick # for doug gibson"
},
{
"role": "assistant",
"content": "SELECT MIN(\"pick_num\") FROM \"round_three\" WHERE \"player\"='Doug Gibson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: How many nationalities does Tom Colley have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"nationality\") FROM \"round_four\" WHERE \"player\"='Tom Colley';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What's the NHL team that drafted the player from Sudbury Wolves (OHA)?"
},
{
"role": "assistant",
"content": "SELECT \"nhl_team\" FROM \"round_four\" WHERE \"college_junior_club_team\"='Sudbury Wolves (OHA)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What's the number of positions of the player playing in Minnesota North Stars?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"position\") FROM \"round_four\" WHERE \"nhl_team\"='Minnesota North Stars';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What's the smallest pick number of a player playing in Minnesota North Stars?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"pick_num\") FROM \"round_four\" WHERE \"nhl_team\"='Minnesota North Stars';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What's the nationality of the player coming from Edmonton Oil Kings (WCHL)?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"round_four\" WHERE \"college_junior_club_team\"='Edmonton Oil Kings (WCHL)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What's Steve Langdon's naitionality?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"round_four\" WHERE \"player\"='Steve Langdon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_nine\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: When michigan technological university (ncaa) is the college, junior, or club team what is the nationality?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"round_nine\" WHERE \"college_junior_club_team\"='Michigan Technological University (NCAA)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_nine\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: When kitchener rangers (oha) is the college, junior, or club team team who is the player?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"round_nine\" WHERE \"college_junior_club_team\"='Kitchener Rangers (OHA)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_nine\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: When sault ste. marie greyhounds (oha) is the college, junior, or club team how many nationalities are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"nationality\") FROM \"round_nine\" WHERE \"college_junior_club_team\"='Sault Ste. Marie Greyhounds (OHA)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_nine\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: When kitchener rangers (oha) is the college, junior, or club team what is the position?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"round_nine\" WHERE \"college_junior_club_team\"='Kitchener Rangers (OHA)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: How many positions for denis patry?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"position\") FROM \"round_six\" WHERE \"player\"='Denis Patry';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What nationality for neil korzack?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"round_six\" WHERE \"player\"='Neil Korzack';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: Name the college that has 10000 enrolled"
},
{
"role": "assistant",
"content": "SELECT \"institution\" FROM \"current_members\" WHERE \"enrollment\"=10000;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: Name the most joined for molloy college"
},
{
"role": "assistant",
"content": "SELECT MAX(\"joined\") FROM \"current_members\" WHERE \"institution\"='Molloy College';"
}
]
|
[
{
"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 \"starky_num\" real,\n \"starky_pct\" text,\n \"hancock_num\" real,\n \"hancock_pct\" text,\n \"mc_cain_num\" real,\n \"mc_cain_pct\" text,\n \"total\" real\n);\n\nQuestion: how many times was total considered when hancock # was 1394"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total\") FROM \"by_county\" WHERE \"hancock_num\"=1394;"
}
]
|
[
{
"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 \"starky_num\" real,\n \"starky_pct\" text,\n \"hancock_num\" real,\n \"hancock_pct\" text,\n \"mc_cain_num\" real,\n \"mc_cain_pct\" text,\n \"total\" real\n);\n\nQuestion: how many times was hancock % considered when starky % was 20.96%"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"hancock_pct\") FROM \"by_county\" WHERE \"starky_pct\"='20.96%';"
}
]
|
[
{
"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 \"starky_num\" real,\n \"starky_pct\" text,\n \"hancock_num\" real,\n \"hancock_pct\" text,\n \"mc_cain_num\" real,\n \"mc_cain_pct\" text,\n \"total\" real\n);\n\nQuestion: How many times was country considered when starky % was 20.96%"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"county\") FROM \"by_county\" WHERE \"starky_pct\"='20.96%';"
}
]
|
[
{
"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 \"starky_num\" real,\n \"starky_pct\" text,\n \"hancock_num\" real,\n \"hancock_pct\" text,\n \"mc_cain_num\" real,\n \"mc_cain_pct\" text,\n \"total\" real\n);\n\nQuestion: which country did stary get 17.41%"
},
{
"role": "assistant",
"content": "SELECT \"county\" FROM \"by_county\" WHERE \"starky_pct\"='17.41%';"
}
]
|
[
{
"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 \"starky_num\" real,\n \"starky_pct\" text,\n \"hancock_num\" real,\n \"hancock_pct\" text,\n \"mc_cain_num\" real,\n \"mc_cain_pct\" text,\n \"total\" real\n);\n\nQuestion: what is the least total in gila"
},
{
"role": "assistant",
"content": "SELECT MIN(\"total\") FROM \"by_county\" WHERE \"county\"='Gila';"
}
]
|
[
{
"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 \"starky_num\" real,\n \"starky_pct\" text,\n \"hancock_num\" real,\n \"hancock_pct\" text,\n \"mc_cain_num\" real,\n \"mc_cain_pct\" text,\n \"total\" real\n);\n\nQuestion: where did hancock get 3.09%"
},
{
"role": "assistant",
"content": "SELECT \"county\" FROM \"by_county\" WHERE \"hancock_pct\"='3.09%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowling_average\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"economy_rate\" text,\n \"average\" text,\n \"strike_rate\" text,\n \"bbi\" text,\n \"bbm\" text\n);\n\nQuestion: What is the BBM when the strike rate is 42.2?"
},
{
"role": "assistant",
"content": "SELECT \"bbm\" FROM \"bowling_average\" WHERE \"strike_rate\"='42.2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowling_average\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"economy_rate\" text,\n \"average\" text,\n \"strike_rate\" text,\n \"bbi\" text,\n \"bbm\" text\n);\n\nQuestion: What is the economy when the strike rate is 54.0?"
},
{
"role": "assistant",
"content": "SELECT \"economy_rate\" FROM \"bowling_average\" WHERE \"strike_rate\"='54.0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowling_average\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"economy_rate\" text,\n \"average\" text,\n \"strike_rate\" text,\n \"bbi\" text,\n \"bbm\" text\n);\n\nQuestion: How many averages are there when the economy rate is 2.26?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"average\") FROM \"bowling_average\" WHERE \"economy_rate\"='2.26';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowling_average\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"economy_rate\" text,\n \"average\" text,\n \"strike_rate\" text,\n \"bbi\" text,\n \"bbm\" text\n);\n\nQuestion: What is the BBM when the strike rate is 42.2?"
},
{
"role": "assistant",
"content": "SELECT \"bbm\" FROM \"bowling_average\" WHERE \"strike_rate\"='42.2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowling_average\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"economy_rate\" text,\n \"average\" text,\n \"strike_rate\" text,\n \"bbi\" text,\n \"bbm\" text\n);\n\nQuestion: How many figures for wickets when the strike rate is 54.0?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"wickets\") FROM \"bowling_average\" WHERE \"strike_rate\"='54.0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowling_average\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"economy_rate\" text,\n \"average\" text,\n \"strike_rate\" text,\n \"bbi\" text,\n \"bbm\" text\n);\n\nQuestion: What is the strike rate when there are 17 wickets?"
},
{
"role": "assistant",
"content": "SELECT \"strike_rate\" FROM \"bowling_average\" WHERE \"wickets\"=17;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"lga_name\" text,\n \"area_km_2\" real,\n \"census_2006_population\" real,\n \"administrative_capital\" text,\n \"postal_code\" real\n);\n\nQuestion: How many areas (km 2) have 151511 as the census 2006 population?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"area_km_2\") FROM \"administrative_divisions\" WHERE \"census_2006_population\"=151511;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"lga_name\" text,\n \"area_km_2\" real,\n \"census_2006_population\" real,\n \"administrative_capital\" text,\n \"postal_code\" real\n);\n\nQuestion: What is the LGA name where the 2006 census population is bigger than 425208.9417698913 and administrative capital is port harcourt?"
},
{
"role": "assistant",
"content": "SELECT \"lga_name\" FROM \"administrative_divisions\" WHERE \"census_2006_population\">425208.9417698913 AND \"administrative_capital\"='Port Harcourt';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"lga_name\" text,\n \"area_km_2\" real,\n \"census_2006_population\" real,\n \"administrative_capital\" text,\n \"postal_code\" real\n);\n\nQuestion: What is the administrative capital of LGA name Akuku-Toru?"
},
{
"role": "assistant",
"content": "SELECT \"administrative_capital\" FROM \"administrative_divisions\" WHERE \"lga_name\"='Akuku-Toru';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"lga_name\" text,\n \"area_km_2\" real,\n \"census_2006_population\" real,\n \"administrative_capital\" text,\n \"postal_code\" real\n);\n\nQuestion: What is the administrative capital that has a 2006 census population of 249425?"
},
{
"role": "assistant",
"content": "SELECT \"administrative_capital\" FROM \"administrative_divisions\" WHERE \"census_2006_population\"=249425;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"lga_name\" text,\n \"area_km_2\" real,\n \"census_2006_population\" real,\n \"administrative_capital\" text,\n \"postal_code\" real\n);\n\nQuestion: What is the maximum 2006 census population of LGA name Opobo/Nkoro?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"census_2006_population\") FROM \"administrative_divisions\" WHERE \"lga_name\"='Opobo/Nkoro';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"left\" real,\n \"current_conference\" text\n);\n\nQuestion: What's the minimal enrollment of any of the schools?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"enrollment\") FROM \"former_members\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"left\" real,\n \"current_conference\" text\n);\n\nQuestion: When was the school whose students are nicknamed Rams founded?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"founded\") FROM \"former_members\" WHERE \"nickname\"='Rams';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"left\" real,\n \"current_conference\" text\n);\n\nQuestion: What's the type of the school whose students are nicknamed Chargers?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"former_members\" WHERE \"nickname\"='Chargers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"left\" real,\n \"current_conference\" text\n);\n\nQuestion: When was the school in Philadelphia, Pennsylvania founded?"
},
{
"role": "assistant",
"content": "SELECT \"founded\" FROM \"former_members\" WHERE \"location\"='Philadelphia, Pennsylvania';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary_of_general_election_performance\" (\n \"year\" text,\n \"number_of_candidates\" real,\n \"total_votes\" real,\n \"average_voters_per_candidate\" real,\n \"percentage_of_vote\" text,\n \"saved_deposits\" real,\n \"change_percentage_points\" text,\n \"number_of_m_ps\" real\n);\n\nQuestion: What was the total number of votes in the 2005 elections?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"total_votes\") FROM \"summary_of_general_election_performance\" WHERE \"year\"='2005';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary_of_general_election_performance\" (\n \"year\" text,\n \"number_of_candidates\" real,\n \"total_votes\" real,\n \"average_voters_per_candidate\" real,\n \"percentage_of_vote\" text,\n \"saved_deposits\" real,\n \"change_percentage_points\" text,\n \"number_of_m_ps\" real\n);\n\nQuestion: How many elections had 1423 average voters per candidate?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"change_percentage_points\") FROM \"summary_of_general_election_performance\" WHERE \"average_voters_per_candidate\"=1423;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary_of_general_election_performance\" (\n \"year\" text,\n \"number_of_candidates\" real,\n \"total_votes\" real,\n \"average_voters_per_candidate\" real,\n \"percentage_of_vote\" text,\n \"saved_deposits\" real,\n \"change_percentage_points\" text,\n \"number_of_m_ps\" real\n);\n\nQuestion: How many candidates were there in the year of 1987?"
},
{
"role": "assistant",
"content": "SELECT \"number_of_candidates\" FROM \"summary_of_general_election_performance\" WHERE \"year\"='1987';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_and_riding_the_mt125_r\" (\n \"rpm\" real,\n \"standard_hp\" text,\n \"standard_torque_lb_ft\" text,\n \"standard_speed_6th_gear\" text,\n \"modified_speed_6th_gear\" real,\n \"modified_hp\" text,\n \"modified_torque_lb_ft\" text\n);\n\nQuestion: What is the modified torque (lb/ft) when the standard hp n/a?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"modified_torque_lb_ft\") FROM \"performance_and_riding_the_mt125_r\" WHERE \"standard_hp\"='n/a';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_and_riding_the_mt125_r\" (\n \"rpm\" real,\n \"standard_hp\" text,\n \"standard_torque_lb_ft\" text,\n \"standard_speed_6th_gear\" text,\n \"modified_speed_6th_gear\" real,\n \"modified_hp\" text,\n \"modified_torque_lb_ft\" text\n);\n\nQuestion: When the standard speed (6th gear) is 114, what is the minimum rpm?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rpm\") FROM \"performance_and_riding_the_mt125_r\" WHERE \"standard_speed_6th_gear\"='114';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_and_riding_the_mt125_r\" (\n \"rpm\" real,\n \"standard_hp\" text,\n \"standard_torque_lb_ft\" text,\n \"standard_speed_6th_gear\" text,\n \"modified_speed_6th_gear\" real,\n \"modified_hp\" text,\n \"modified_torque_lb_ft\" text\n);\n\nQuestion: when standard speed (6th gear) is 88, what is the rpm?"
},
{
"role": "assistant",
"content": "SELECT \"rpm\" FROM \"performance_and_riding_the_mt125_r\" WHERE \"standard_speed_6th_gear\"='88';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_and_riding_the_mt125_r\" (\n \"rpm\" real,\n \"standard_hp\" text,\n \"standard_torque_lb_ft\" text,\n \"standard_speed_6th_gear\" text,\n \"modified_speed_6th_gear\" real,\n \"modified_hp\" text,\n \"modified_torque_lb_ft\" text\n);\n\nQuestion: What is the modified speed (6th gear) when standard torque (lb/ft) is 10.3 and modified torque (lb/ft) is 8.75?"
},
{
"role": "assistant",
"content": "SELECT \"modified_speed_6th_gear\" FROM \"performance_and_riding_the_mt125_r\" WHERE \"standard_torque_lb_ft\"='10.3' AND \"modified_torque_lb_ft\"='8.75';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_and_riding_the_mt125_r\" (\n \"rpm\" real,\n \"standard_hp\" text,\n \"standard_torque_lb_ft\" text,\n \"standard_speed_6th_gear\" text,\n \"modified_speed_6th_gear\" real,\n \"modified_hp\" text,\n \"modified_torque_lb_ft\" text\n);\n\nQuestion: when the max speed for modified speed (6th gear) where standard speed (6th gear) is 98"
},
{
"role": "assistant",
"content": "SELECT MAX(\"modified_speed_6th_gear\") FROM \"performance_and_riding_the_mt125_r\" WHERE \"standard_speed_6th_gear\"='98';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_and_riding_the_mt125_r\" (\n \"rpm\" real,\n \"standard_hp\" text,\n \"standard_torque_lb_ft\" text,\n \"standard_speed_6th_gear\" text,\n \"modified_speed_6th_gear\" real,\n \"modified_hp\" text,\n \"modified_torque_lb_ft\" text\n);\n\nQuestion: When the standard torque (lb/ft) is 11.53 how much does more is the modified hp?"
},
{
"role": "assistant",
"content": "SELECT \"modified_hp\" FROM \"performance_and_riding_the_mt125_r\" WHERE \"standard_torque_lb_ft\"='11.53';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s_television_ratings\" (\n \"season\" real,\n \"episodes\" real,\n \"timeslot_est\" text,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"ranking\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: Which time slot did the season finale on May 18, 2004 hold?"
},
{
"role": "assistant",
"content": "SELECT \"timeslot_est\" FROM \"u_s_television_ratings\" WHERE \"season_finale\"='May 18, 2004';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"minutes\" real,\n \"field_goals\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: how many assists did the player who played 195 minutes make"
},
{
"role": "assistant",
"content": "SELECT \"assists\" FROM \"player_stats\" WHERE \"minutes\"=195;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"minutes\" real,\n \"field_goals\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: what is the lowest number of blocks"
},
{
"role": "assistant",
"content": "SELECT MIN(\"blocks\") FROM \"player_stats\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"minutes\" real,\n \"field_goals\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: what is the lowest points scored by a player who blocked 21 times"
},
{
"role": "assistant",
"content": "SELECT MIN(\"points\") FROM \"player_stats\" WHERE \"blocks\"=21;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"minutes\" real,\n \"field_goals\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: how many times did debbie black block"
},
{
"role": "assistant",
"content": "SELECT \"blocks\" FROM \"player_stats\" WHERE \"player\"='Debbie Black';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"minutes\" real,\n \"field_goals\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: what is the highest number of goals did the player with 27 asists score"
},
{
"role": "assistant",
"content": "SELECT MAX(\"field_goals\") FROM \"player_stats\" WHERE \"assists\"=27;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"minutes\" real,\n \"field_goals\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: how many assists did the player who scored 251 points make"
},
{
"role": "assistant",
"content": "SELECT \"assists\" FROM \"player_stats\" WHERE \"points\"=251;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1971734_1\" (\n \"episode_num\" real,\n \"prod_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"originalairdate\" text,\n \"filmed\" text\n);\n\nQuestion: What was the production number of the episode filmed in aug/sept 1968?"
},
{
"role": "assistant",
"content": "SELECT \"prod_num\" FROM \"table1_1971734_1\" WHERE \"filmed\"='Aug/Sept 1968';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1971734_1\" (\n \"episode_num\" real,\n \"prod_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"originalairdate\" text,\n \"filmed\" text\n);\n\nQuestion: Who directed \"report 2493:kidnap whose pretty girl are you\"?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_1971734_1\" WHERE \"title\"='\\\"REPORT 2493:KIDNAP Whose Pretty Girl Are You\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1971734_1\" (\n \"episode_num\" real,\n \"prod_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"originalairdate\" text,\n \"filmed\" text\n);\n\nQuestion: When was \"report 4407: heart no choice for the donor\" filmed?"
},
{
"role": "assistant",
"content": "SELECT \"filmed\" FROM \"table1_1971734_1\" WHERE \"title\"='\\\"REPORT 4407: HEART No Choice for the Donor\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: What's the highest enrollment among the schools?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"enrollment\") FROM \"current_members\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: When did the school from Logan Township, Pennsylvania join the Conference?"
},
{
"role": "assistant",
"content": "SELECT \"joined\" FROM \"current_members\" WHERE \"location\"='Logan Township, Pennsylvania';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: When was the private/non-sectarian school founded?"
},
{
"role": "assistant",
"content": "SELECT \"founded\" FROM \"current_members\" WHERE \"type\"='Private/Non-sectarian';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: Where is the school whose students are nicknamed Panthers located?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"current_members\" WHERE \"nickname\"='Panthers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: How many different enrollment numbers are there for the school whose students are nicknamed Barons?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"enrollment\") FROM \"current_members\" WHERE \"nickname\"='Barons';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: In how many different years did schools located in Logan Township, Pennsylvania join the Conference?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"joined\") FROM \"current_members\" WHERE \"location\"='Logan Township, Pennsylvania';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_18_washington_mountain_peaks_with_27\" (\n \"rank\" real,\n \"mountain_peak\" text,\n \"mountain_range\" text,\n \"elevation\" text,\n \"prominence\" text,\n \"isolation\" text\n);\n\nQuestion: How many different isolation numbers does the Jack Mountain peak have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"isolation\") FROM \"the_18_washington_mountain_peaks_with_27\" WHERE \"mountain_peak\"='Jack Mountain';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_18_washington_mountain_peaks_with_27\" (\n \"rank\" real,\n \"mountain_peak\" text,\n \"mountain_range\" text,\n \"elevation\" text,\n \"prominence\" text,\n \"isolation\" text\n);\n\nQuestion: What's the isolation of the mountain peak with a prominence of 1340.549 = 4,397feet 1,340m?"
},
{
"role": "assistant",
"content": "SELECT \"isolation\" FROM \"the_18_washington_mountain_peaks_with_27\" WHERE \"prominence\"='1340.549 = 4,397feet 1,340m';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_18_washington_mountain_peaks_with_27\" (\n \"rank\" real,\n \"mountain_peak\" text,\n \"mountain_range\" text,\n \"elevation\" text,\n \"prominence\" text,\n \"isolation\" text\n);\n\nQuestion: How many different isolation numbers does the peak with an elevation of 2782.622 = 9,127feet 2782m have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"isolation\") FROM \"the_18_washington_mountain_peaks_with_27\" WHERE \"elevation\"='2782.622 = 9,127feet 2782m';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_18_washington_mountain_peaks_with_27\" (\n \"rank\" real,\n \"mountain_peak\" text,\n \"mountain_range\" text,\n \"elevation\" text,\n \"prominence\" text,\n \"isolation\" text\n);\n\nQuestion: What's the isolation of the mountain peak with an elevation of 2705.793 = 8,875feet 2705m?"
},
{
"role": "assistant",
"content": "SELECT \"isolation\" FROM \"the_18_washington_mountain_peaks_with_27\" WHERE \"elevation\"='2705.793 = 8,875feet 2705m';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_18_washington_mountain_peaks_with_27\" (\n \"rank\" real,\n \"mountain_peak\" text,\n \"mountain_range\" text,\n \"elevation\" text,\n \"prominence\" text,\n \"isolation\" text\n);\n\nQuestion: What's the isolation of the mountain peak with prominence of 1340.549 = 4,397feet 1,340m?"
},
{
"role": "assistant",
"content": "SELECT \"isolation\" FROM \"the_18_washington_mountain_peaks_with_27\" WHERE \"prominence\"='1340.549 = 4,397feet 1,340m';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: How many steals did Nicole Levandusky make?"
},
{
"role": "assistant",
"content": "SELECT \"steals\" FROM \"player_stats\" WHERE \"player\"='Nicole Levandusky';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: How many rebounds did Rhonda Mapp make?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rebounds\") FROM \"player_stats\" WHERE \"player\"='Rhonda Mapp';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: What is the largest amount of assists that Nicole Levandusky made?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"assists\") FROM \"player_stats\" WHERE \"player\"='Nicole Levandusky';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: What is the maximum number of blocks where rebounds equal 35?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"blocks\") FROM \"player_stats\" WHERE \"rebounds\"=35;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"steals\" real,\n \"blocks\" real,\n \"points\" real\n);\n\nQuestion: How many assists did Delisha Milton-Jones make?"
},
{
"role": "assistant",
"content": "SELECT \"assists\" FROM \"player_stats\" WHERE \"player\"='DeLisha Milton-Jones';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fa_cup_appearances_and_goals\" (\n \"name\" text,\n \"nation\" text,\n \"position\" text,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real\n);\n\nQuestion: Name the total apps for eddie carr"
},
{
"role": "assistant",
"content": "SELECT MAX(\"total_apps\") FROM \"fa_cup_appearances_and_goals\" WHERE \"name\"='Eddie Carr';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fa_cup_appearances_and_goals\" (\n \"name\" text,\n \"nation\" text,\n \"position\" text,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real\n);\n\nQuestion: Name the fa cup apps for arthur morton"
},
{
"role": "assistant",
"content": "SELECT \"fa_cup_apps\" FROM \"fa_cup_appearances_and_goals\" WHERE \"name\"='Arthur Morton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fa_cup_appearances_and_goals\" (\n \"name\" text,\n \"nation\" text,\n \"position\" text,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real\n);\n\nQuestion: Name the position for billy price"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"fa_cup_appearances_and_goals\" WHERE \"name\"='Billy Price';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fa_cup_appearances_and_goals\" (\n \"name\" text,\n \"nation\" text,\n \"position\" text,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real\n);\n\nQuestion: Name the total number of position for don clegg"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"position\") FROM \"fa_cup_appearances_and_goals\" WHERE \"name\"='Don Clegg';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fa_cup_appearances_and_goals\" (\n \"name\" text,\n \"nation\" text,\n \"position\" text,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real\n);\n\nQuestion: Name the nation where jeff barker is from"
},
{
"role": "assistant",
"content": "SELECT \"nation\" FROM \"fa_cup_appearances_and_goals\" WHERE \"name\"='Jeff Barker';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fa_cup_appearances_and_goals\" (\n \"name\" text,\n \"nation\" text,\n \"position\" text,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real\n);\n\nQuestion: Name the fa cup apps for george green"
},
{
"role": "assistant",
"content": "SELECT \"fa_cup_apps\" FROM \"fa_cup_appearances_and_goals\" WHERE \"name\"='George Green';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text\n);\n\nQuestion: Name the school that was founded in 1950"
},
{
"role": "assistant",
"content": "SELECT \"institution\" FROM \"current_members\" WHERE \"founded\"=1950;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text\n);\n\nQuestion: Name the most founded for sea gulls"
},
{
"role": "assistant",
"content": "SELECT MAX(\"founded\") FROM \"current_members\" WHERE \"nickname\"='Sea Gulls';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text\n);\n\nQuestion: Name the location for eagles"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"current_members\" WHERE \"nickname\"='Eagles';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text\n);\n\nQuestion: Name the enrollment for 2007-08"
},
{
"role": "assistant",
"content": "SELECT \"enrollment\" FROM \"current_members\" WHERE \"joined\"='2007-08';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1999_australian_open\" (\n \"sd\" real,\n \"rk\" real,\n \"player\" text,\n \"points\" real,\n \"points_defending\" real,\n \"points_won\" real,\n \"new_points\" real,\n \"status\" text\n);\n\nQuestion: Name the least new points for steffi graf"
},
{
"role": "assistant",
"content": "SELECT MIN(\"new_points\") FROM \"1999_australian_open\" WHERE \"player\"='Steffi Graf';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1999_australian_open\" (\n \"sd\" real,\n \"rk\" real,\n \"player\" text,\n \"points\" real,\n \"points_defending\" real,\n \"points_won\" real,\n \"new_points\" real,\n \"status\" text\n);\n\nQuestion: Name the most points for champion, won in the final against am\u00e9lie mauresmo"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"1999_australian_open\" WHERE \"status\"='Champion, won in the final against Am\u00e9lie Mauresmo';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"hills_of_g_d_ll\" (\n \"further_cities\" text,\n \"county_oblast_or_state\" text,\n \"country\" text,\n \"distance\" text,\n \"direction\" text\n);\n\nQuestion: Name the further cities for slovakia and west direction"
},
{
"role": "assistant",
"content": "SELECT \"further_cities\" FROM \"hills_of_g_d_ll\" WHERE \"country\"='Slovakia' AND \"direction\"='West';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"hills_of_g_d_ll\" (\n \"further_cities\" text,\n \"county_oblast_or_state\" text,\n \"country\" text,\n \"distance\" text,\n \"direction\" text\n);\n\nQuestion: Name the distance from north"
},
{
"role": "assistant",
"content": "SELECT \"distance\" FROM \"hills_of_g_d_ll\" WHERE \"direction\"='North';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"hills_of_g_d_ll\" (\n \"further_cities\" text,\n \"county_oblast_or_state\" text,\n \"country\" text,\n \"distance\" text,\n \"direction\" text\n);\n\nQuestion: Name the number of direction for gy\u0151r-moson-sopron"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"direction\") FROM \"hills_of_g_d_ll\" WHERE \"county_oblast_or_state\"='Gy\u0151r-Moson-Sopron';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"hills_of_g_d_ll\" (\n \"further_cities\" text,\n \"county_oblast_or_state\" text,\n \"country\" text,\n \"distance\" text,\n \"direction\" text\n);\n\nQuestion: Name the further cities for east romania"
},
{
"role": "assistant",
"content": "SELECT \"further_cities\" FROM \"hills_of_g_d_ll\" WHERE \"direction\"='East' AND \"country\"='Romania';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"hills_of_g_d_ll\" (\n \"further_cities\" text,\n \"county_oblast_or_state\" text,\n \"country\" text,\n \"distance\" text,\n \"direction\" text\n);\n\nQuestion: Name the number of direction for debrecen"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"direction\") FROM \"hills_of_g_d_ll\" WHERE \"further_cities\"='Debrecen';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: What's the nickname of the students of the school founded in 1933?"
},
{
"role": "assistant",
"content": "SELECT \"nickname\" FROM \"current_members\" WHERE \"founded\"=1933;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: On how many locations is the Saint Joseph's College of Maine located?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location\") FROM \"current_members\" WHERE \"institution\"='Saint Joseph''s College of Maine';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: On how many different dates did schools from Chestnut Hill, Massachusetts join the conference?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"joined\") FROM \"current_members\" WHERE \"location\"='Chestnut Hill, Massachusetts';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: What is the type of the school whose students' nickname is tigers?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"current_members\" WHERE \"nickname\"='Tigers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: What's the type of the school whose students' name is spirits?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"current_members\" WHERE \"nickname\"='Spirits';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: What school is located in Chestnut Hill, Massachusetts?"
},
{
"role": "assistant",
"content": "SELECT \"institution\" FROM \"current_members\" WHERE \"location\"='Chestnut Hill, Massachusetts';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: What type is the school located in Macon, Georgia?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"current_members\" WHERE \"location\"='Macon, Georgia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"left\" text,\n \"current_conference\" text\n);\n\nQuestion: What's the nickname of the school in Maryville, Tennessee?"
},
{
"role": "assistant",
"content": "SELECT \"nickname\" FROM \"former_members\" WHERE \"location\"='Maryville, Tennessee';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"left\" text,\n \"current_conference\" text\n);\n\nQuestion: Where is the school with nickname Tigers located?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"former_members\" WHERE \"nickname\"='Tigers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"left\" text,\n \"current_conference\" text\n);\n\nQuestion: What's the nickname of the students of the school that joined the Conference in 2010?"
},
{
"role": "assistant",
"content": "SELECT \"nickname\" FROM \"former_members\" WHERE \"joined\"=2010;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"left\" real,\n \"current_conference\" text\n);\n\nQuestion: When was Daniel Webster College founded?"
},
{
"role": "assistant",
"content": "SELECT \"founded\" FROM \"former_members\" WHERE \"institution\"='Daniel Webster College';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.