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 \"former_professional_football_teams\" (\n \"team\" text,\n \"sport\" text,\n \"played\" text,\n \"venue\" text,\n \"championships\" text\n);\n\nQuestion: What sport was played at the bosse field?"
},
{
"role": "assistant",
"content": "SELECT \"sport\" FROM \"former_professional_football_teams\" WHERE \"venue\"='bosse field';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_professional_football_teams\" (\n \"team\" text,\n \"sport\" text,\n \"played\" text,\n \"venue\" text,\n \"championships\" text\n);\n\nQuestion: What sport was played between the years of 2008-2010?"
},
{
"role": "assistant",
"content": "SELECT \"sport\" FROM \"former_professional_football_teams\" WHERE \"played\"='2008-2010';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_professional_football_teams\" (\n \"team\" text,\n \"sport\" text,\n \"played\" text,\n \"venue\" text,\n \"championships\" text\n);\n\nQuestion: What venue did the team, evansville bluecats play on?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"former_professional_football_teams\" WHERE \"team\"='evansville bluecats';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_professional_football_teams\" (\n \"team\" text,\n \"sport\" text,\n \"played\" text,\n \"venue\" text,\n \"championships\" text\n);\n\nQuestion: What team played between the years of 2008-2010?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"former_professional_football_teams\" WHERE \"played\"='2008-2010';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Name the Score of craig stadler?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"second_round\" WHERE \"player\"='craig stadler';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Name the Score that has a Place of t5 of tom watson?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"second_round\" WHERE \"place\"='t5' AND \"player\"='tom watson';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Name the Place with a Score of 72-68=140?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"second_round\" WHERE \"score\"='72-68=140';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Name the Score of jack nicklaus, united states, ?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"second_round\" WHERE \"country\"='united states' AND \"player\"='jack nicklaus';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Name the Place of seve ballesteros?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"second_round\" WHERE \"player\"='seve ballesteros';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"female_names\" (\n \"region_year\" text,\n \"no_1\" text,\n \"no_2\" text,\n \"no_3\" text,\n \"no_4\" text,\n \"no_5\" text,\n \"no_6\" text,\n \"no_7\" text,\n \"no_8\" text,\n \"no_9\" text\n);\n\nQuestion: Who was No. 9 when Ava was No. 4 and Addison was No. 6?"
},
{
"role": "assistant",
"content": "SELECT \"no_9\" FROM \"female_names\" WHERE \"no_4\"='ava' AND \"no_6\"='addison';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"female_names\" (\n \"region_year\" text,\n \"no_1\" text,\n \"no_2\" text,\n \"no_3\" text,\n \"no_4\" text,\n \"no_5\" text,\n \"no_6\" text,\n \"no_7\" text,\n \"no_8\" text,\n \"no_9\" text\n);\n\nQuestion: What was the No. 6 name when Emma was No. 2 and Sophia was No. 3?"
},
{
"role": "assistant",
"content": "SELECT \"no_6\" FROM \"female_names\" WHERE \"no_2\"='emma' AND \"no_3\"='sophia';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"female_names\" (\n \"region_year\" text,\n \"no_1\" text,\n \"no_2\" text,\n \"no_3\" text,\n \"no_4\" text,\n \"no_5\" text,\n \"no_6\" text,\n \"no_7\" text,\n \"no_8\" text,\n \"no_9\" text\n);\n\nQuestion: What was the No. 8 name when Chloe was No. 9 and Abigail was No. 7?"
},
{
"role": "assistant",
"content": "SELECT \"no_8\" FROM \"female_names\" WHERE \"no_9\"='chloe' AND \"no_7\"='abigail';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"female_names\" (\n \"region_year\" text,\n \"no_1\" text,\n \"no_2\" text,\n \"no_3\" text,\n \"no_4\" text,\n \"no_5\" text,\n \"no_6\" text,\n \"no_7\" text,\n \"no_8\" text,\n \"no_9\" text\n);\n\nQuestion: What was the No. 4 name when Madison was No. 5 and Abigail was No. 9?"
},
{
"role": "assistant",
"content": "SELECT \"no_4\" FROM \"female_names\" WHERE \"no_5\"='madison' AND \"no_9\"='abigail';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: Which player had a to par score of +2?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"final_round\" WHERE \"to_par\"='+2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"urban_area_locality\" text,\n \"population\" real,\n \"land_area_hectares\" real,\n \"density_inh_km\" real,\n \"code\" real\n);\n\nQuestion: How many codes have a density of 621.68, and a Land area (hectares) larger than 75.28?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"code\") FROM \"references\" WHERE \"density_inh_km\"=621.68 AND \"land_area_hectares\">75.28;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"urban_area_locality\" text,\n \"population\" real,\n \"land_area_hectares\" real,\n \"density_inh_km\" real,\n \"code\" real\n);\n\nQuestion: What is the average density with a land area of 123.02, and a Code larger than 2356?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"density_inh_km\") FROM \"references\" WHERE \"land_area_hectares\"=123.02 AND \"code\">2356;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"urban_area_locality\" text,\n \"population\" real,\n \"land_area_hectares\" real,\n \"density_inh_km\" real,\n \"code\" real\n);\n\nQuestion: What is the average land area with a density of 815.48, and a Population larger than 411?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"land_area_hectares\") FROM \"references\" WHERE \"density_inh_km\"=815.48 AND \"population\">411;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_finals_36_18_18\" (\n \"outcome\" text,\n \"date\" text,\n \"location\" text,\n \"surface\" text,\n \"partnering\" text,\n \"opponent_in_final\" text,\n \"score\" text\n);\n\nQuestion: What is the Date, when Partnering is \"Francesca Lubiani\", and when Opponent in Final is \"Yuliya Beygelzimer / Jennifer Hopkins\"?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"doubles_finals_36_18_18\" WHERE \"partnering\"='francesca lubiani' AND \"opponent_in_final\"='yuliya beygelzimer / jennifer hopkins';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_finals_36_18_18\" (\n \"outcome\" text,\n \"date\" text,\n \"location\" text,\n \"surface\" text,\n \"partnering\" text,\n \"opponent_in_final\" text,\n \"score\" text\n);\n\nQuestion: What is Score, when Outcome is \"winner\", when Partnering is \"Nicole Sewell\", and when Opponent in Final is \"Victoria Davies / Kate Warne-Holland\"?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"doubles_finals_36_18_18\" WHERE \"outcome\"='winner' AND \"partnering\"='nicole sewell' AND \"opponent_in_final\"='victoria davies / kate warne-holland';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is Tie No., when Away Team is \"Manchester United\"?"
},
{
"role": "assistant",
"content": "SELECT \"tie_no\" FROM \"fourth_round_proper\" WHERE \"away_team\"='manchester united';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is Away Team, when Home Team is \"Ipswich Town\", and when Date is \"6 February 1986\"?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"fourth_round_proper\" WHERE \"home_team\"='ipswich town' AND \"date\"='6 february 1986';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is Date, when Home Team is \"Luton Town\"?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"fourth_round_proper\" WHERE \"home_team\"='luton town';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is Away Team, when Date is \"25 January 1986\", and when Tie No is \"6\"?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"fourth_round_proper\" WHERE \"date\"='25 january 1986' AND \"tie_no\"='6';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: WHAT IS THE LEAGUE WITH A ROUND LARGER THAN 6?"
},
{
"role": "assistant",
"content": "SELECT \"college_junior_club_team_league\" FROM \"draft_picks\" WHERE \"round\">6;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: WHAT IS THE ROUND FOR ZACH BOYCHUK?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"round\") FROM \"draft_picks\" WHERE \"player\"='zach boychuk';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: WHAT IS THE POSITION FOR CANADA, ROUND SMALLER THAN 7, PLAYER ZACH BOYCHUK?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"draft_picks\" WHERE \"nationality\"='canada' AND \"round\"<7 AND \"player\"='zach boychuk';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the date of week 8?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"week\"=8;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the result of the September 8, 1985 game?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"date\"='september 8, 1985';"
}
] |
[
{
"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 \"bills_points\" real,\n \"opponents\" real,\n \"bills_first_downs\" real,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: Which date did the oakland raiders play as the opponent when the Bills first downs were under 28?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"bills_first_downs\"<28 AND \"opponent\"='oakland raiders';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_in_paraguayan_football\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"comp\" text,\n \"paraguay_scorers\" text,\n \"report\" text\n);\n\nQuestion: Who were the Paraguay scorers on June 15, 2008?"
},
{
"role": "assistant",
"content": "SELECT \"paraguay_scorers\" FROM \"2008_in_paraguayan_football\" WHERE \"date\"='june 15, 2008';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: What is the To par of the player with a t14 Finish?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"made_the_cut\" WHERE \"finish\"='t14';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: What country is player Raymond Floyd from?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"made_the_cut\" WHERE \"player\"='raymond floyd';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: What is the Year(s) won from the United States as country with a To Par of +4?"
},
{
"role": "assistant",
"content": "SELECT \"year_s_won\" FROM \"made_the_cut\" WHERE \"country\"='united states' AND \"to_par\"='+4';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Who is the player from the United States and a place of t2?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"first_round\" WHERE \"country\"='united states' AND \"place\"='t2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"acute_toxicity\" (\n \"method_of_administration_citation_needed\" text,\n \"category_1\" real,\n \"category_2\" real,\n \"category_3\" text,\n \"category_4\" text,\n \"category_5\" text\n);\n\nQuestion: What's the sum of all values in category 1 when category 3 is equal to 300?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"category_1\") FROM \"acute_toxicity\" WHERE \"category_3\"='300';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"acute_toxicity\" (\n \"method_of_administration_citation_needed\" text,\n \"category_1\" real,\n \"category_2\" real,\n \"category_3\" text,\n \"category_4\" text,\n \"category_5\" text\n);\n\nQuestion: If category 1 is 0.05, what is category 3?"
},
{
"role": "assistant",
"content": "SELECT \"category_3\" FROM \"acute_toxicity\" WHERE \"category_1\"=0.05;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_wickets\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"wickets\" real,\n \"average\" real,\n \"best_bowling\" text\n);\n\nQuestion: Which player has an average of 38.22?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"most_wickets\" WHERE \"average\"=38.22;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_wickets\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"wickets\" real,\n \"average\" real,\n \"best_bowling\" text\n);\n\nQuestion: What is the highest number of matches for Australia when the wickets are more than 13, the average is less than 23.33, and the best bowling is 5/36?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"matches\") FROM \"most_wickets\" WHERE \"wickets\">13 AND \"team\"='australia' AND \"best_bowling\"='5/36' AND \"average\"<23.33;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_wickets\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"wickets\" real,\n \"average\" real,\n \"best_bowling\" text\n);\n\nQuestion: What is the total average for the England team when the wickets are less than 18, the best bowling is 4/138, and there are less than 3 matches?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"average\") FROM \"most_wickets\" WHERE \"team\"='england' AND \"wickets\"<18 AND \"best_bowling\"='4/138' AND \"matches\"<3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: Which To par has a Money ($) larger than 5,500?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"final_leaderboard\" WHERE \"money\">'5,500';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: Which Score has a Place of 4?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"final_leaderboard\" WHERE \"place\"='4';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"religious_affiliation_by_geography_and_b\" (\n \"ethnic_group\" text,\n \"main_regions\" text,\n \"population\" real,\n \"percentage_of_total_population\" text,\n \"christians\" text,\n \"muslims\" text,\n \"other\" text\n);\n\nQuestion: Which ethnic group has 5% of people categorizing religion as other?"
},
{
"role": "assistant",
"content": "SELECT \"ethnic_group\" FROM \"religious_affiliation_by_geography_and_b\" WHERE \"other\"='5%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"religious_affiliation_by_geography_and_b\" (\n \"ethnic_group\" text,\n \"main_regions\" text,\n \"population\" real,\n \"percentage_of_total_population\" text,\n \"christians\" text,\n \"muslims\" text,\n \"other\" text\n);\n\nQuestion: Which ehtinc group consists of 93% muslims?"
},
{
"role": "assistant",
"content": "SELECT \"ethnic_group\" FROM \"religious_affiliation_by_geography_and_b\" WHERE \"muslims\"='93%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the Venue when the score was 1 \u2013 1, and the result was 2 \u2013 2?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"score\"='1 \u2013 1' AND \"result\"='2 \u2013 2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the score of the 2006 Fifa World Cup Qualification?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"international_goals\" WHERE \"competition\"='2006 fifa world cup qualification';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What venue was the game held at when the Score was 3 \u2013 0?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"score\"='3 \u2013 0';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the result of the game when the competition was a friendly match, and the Score was 1 \u2013 1?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"international_goals\" WHERE \"competition\"='friendly match' AND \"score\"='1 \u2013 1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tac_v8_supercar_showdown\" (\n \"driver\" text,\n \"race_1\" text,\n \"race_2\" text,\n \"race_3\" text,\n \"race_4\" text\n);\n\nQuestion: What is Race 1, when Race 4 is 1?"
},
{
"role": "assistant",
"content": "SELECT \"race_1\" FROM \"tac_v8_supercar_showdown\" WHERE \"race_4\"='1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tac_v8_supercar_showdown\" (\n \"driver\" text,\n \"race_1\" text,\n \"race_2\" text,\n \"race_3\" text,\n \"race_4\" text\n);\n\nQuestion: What is Race 2, when Race 1 is 30?"
},
{
"role": "assistant",
"content": "SELECT \"race_2\" FROM \"tac_v8_supercar_showdown\" WHERE \"race_1\"='30';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tac_v8_supercar_showdown\" (\n \"driver\" text,\n \"race_1\" text,\n \"race_2\" text,\n \"race_3\" text,\n \"race_4\" text\n);\n\nQuestion: What is Race 2, when Driver is John Faulkner?"
},
{
"role": "assistant",
"content": "SELECT \"race_2\" FROM \"tac_v8_supercar_showdown\" WHERE \"driver\"='john faulkner';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tac_v8_supercar_showdown\" (\n \"driver\" text,\n \"race_1\" text,\n \"race_2\" text,\n \"race_3\" text,\n \"race_4\" text\n);\n\nQuestion: What is Driver, when Race 2 is 14?"
},
{
"role": "assistant",
"content": "SELECT \"driver\" FROM \"tac_v8_supercar_showdown\" WHERE \"race_2\"='14';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tac_v8_supercar_showdown\" (\n \"driver\" text,\n \"race_1\" text,\n \"race_2\" text,\n \"race_3\" text,\n \"race_4\" text\n);\n\nQuestion: What is Race 4, when Race 1 is 28?"
},
{
"role": "assistant",
"content": "SELECT \"race_4\" FROM \"tac_v8_supercar_showdown\" WHERE \"race_1\"='28';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tac_v8_supercar_showdown\" (\n \"driver\" text,\n \"race_1\" text,\n \"race_2\" text,\n \"race_3\" text,\n \"race_4\" text\n);\n\nQuestion: What is Race 2, when Race 4 is 28?"
},
{
"role": "assistant",
"content": "SELECT \"race_2\" FROM \"tac_v8_supercar_showdown\" WHERE \"race_4\"='28';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international\" (\n \"season\" real,\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"competition_round\" text\n);\n\nQuestion: What is the score of the copa libertadores group 3 competition round on 2 February 1994?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"international\" WHERE \"competition_round\"='copa libertadores group 3' AND \"date\"='2 february 1994';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international\" (\n \"season\" real,\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"competition_round\" text\n);\n\nQuestion: What is the score of the copa libertadores group 4 competition round on 14 March 1972 with universitario as the away team?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"international\" WHERE \"competition_round\"='copa libertadores group 4' AND \"away_team\"='universitario' AND \"date\"='14 march 1972';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international\" (\n \"season\" real,\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"competition_round\" text\n);\n\nQuestion: What is the venue of season 1983, which had alianza lima as the home team?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"international\" WHERE \"home_team\"='alianza lima' AND \"season\"=1983;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international\" (\n \"season\" real,\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"competition_round\" text\n);\n\nQuestion: What is the score of the match on 3 March 1988 at the estadio nacional?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"international\" WHERE \"venue\"='estadio nacional' AND \"date\"='3 march 1988';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What were the Points on December 13?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"game_log\" WHERE \"date\"='december 13';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_women_s_teams\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"enrollment\" text,\n \"established\" real\n);\n\nQuestion: What is the year established of North Jersey Phoenix?"
},
{
"role": "assistant",
"content": "SELECT \"established\" FROM \"current_women_s_teams\" WHERE \"institution\"='north jersey phoenix';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_women_s_teams\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"enrollment\" text,\n \"established\" real\n);\n\nQuestion: What is the nickname of the school established in 2009?"
},
{
"role": "assistant",
"content": "SELECT \"nickname\" FROM \"current_women_s_teams\" WHERE \"established\"=2009;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_women_s_teams\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"enrollment\" text,\n \"established\" real\n);\n\nQuestion: What is the location of the school established in 2013?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"current_women_s_teams\" WHERE \"established\"=2013;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_women_s_teams\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"enrollment\" text,\n \"established\" real\n);\n\nQuestion: What is the nickname of Columbia University?"
},
{
"role": "assistant",
"content": "SELECT \"nickname\" FROM \"current_women_s_teams\" WHERE \"institution\"='columbia university';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" text,\n \"location\" text\n);\n\nQuestion: The match against Valentijn Overeem had what method?"
},
{
"role": "assistant",
"content": "SELECT \"method\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='valentijn overeem';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" text,\n \"location\" text\n);\n\nQuestion: Where was the match held when the result was win, and tko as the method?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"mixed_martial_arts_record\" WHERE \"res\"='win' AND \"method\"='tko';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" text,\n \"location\" text\n);\n\nQuestion: What round did the match go to when the event was Bars - Moscow vs St. Petersburg?"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='bars - moscow vs st. petersburg';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" text,\n \"location\" text\n);\n\nQuestion: With a method of tko (kick) what is the record of the match?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"mixed_martial_arts_record\" WHERE \"method\"='tko (kick)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" text,\n \"location\" text\n);\n\nQuestion: What round did the match go to when tko (cut) was the method?"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"mixed_martial_arts_record\" WHERE \"method\"='tko (cut)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" text\n);\n\nQuestion: what is the place when the score is 68-72-77-74=291?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"final_round\" WHERE \"score\"='68-72-77-74=291';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" text\n);\n\nQuestion: how many times is the country united states and the score 72-71-73-73=289?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"to_par\") FROM \"final_round\" WHERE \"country\"='united states' AND \"score\"='72-71-73-73=289';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" text\n);\n\nQuestion: Who is the player when the to par is more than 11 and the score is 71-71-71-79=292?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"final_round\" WHERE \"to_par\">11 AND \"score\"='71-71-71-79=292';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" text\n);\n\nQuestion: what is the country when the player is bill nary?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"final_round\" WHERE \"player\"='bill nary';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" text\n);\n\nQuestion: what is the score when the country is united states and the player is george fazio?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"final_round\" WHERE \"country\"='united states' AND \"player\"='george fazio';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"holders\" (\n \"name\" text,\n \"heir_of\" text,\n \"birth\" text,\n \"ceased_to_be_duke_of_girona\" text,\n \"death\" text\n);\n\nQuestion: WHAT IS THE DEATH WHEN BIRTH DATE IS 2 AUGUST 1424?"
},
{
"role": "assistant",
"content": "SELECT \"death\" FROM \"holders\" WHERE \"birth\"='2 august 1424';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"holders\" (\n \"name\" text,\n \"heir_of\" text,\n \"birth\" text,\n \"ceased_to_be_duke_of_girona\" text,\n \"death\" text\n);\n\nQuestion: WHAT IS THE Ceased to be Duke of Girona THAT HAS PETER IV?"
},
{
"role": "assistant",
"content": "SELECT \"ceased_to_be_duke_of_girona\" FROM \"holders\" WHERE \"heir_of\"='peter iv';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"holders\" (\n \"name\" text,\n \"heir_of\" text,\n \"birth\" text,\n \"ceased_to_be_duke_of_girona\" text,\n \"death\" text\n);\n\nQuestion: WHAT IS THE BIRTH DATE THAT HAS Ceased to be Duke of Girona OF 21 NOVEMBER 1582?"
},
{
"role": "assistant",
"content": "SELECT \"birth\" FROM \"holders\" WHERE \"ceased_to_be_duke_of_girona\"='21 november 1582';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"holders\" (\n \"name\" text,\n \"heir_of\" text,\n \"birth\" text,\n \"ceased_to_be_duke_of_girona\" text,\n \"death\" text\n);\n\nQuestion: WHAT IS THE BIRTH DATE WITH A DEATH OF OCTOBER 1389?"
},
{
"role": "assistant",
"content": "SELECT \"birth\" FROM \"holders\" WHERE \"death\"='october 1389';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: What is the total number of Laps, when Ride is Aleix Espargaro?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"laps\") FROM \"250cc_classification\" WHERE \"rider\"='aleix espargaro';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_ministers_for_the_police_force\" (\n \"minister\" text,\n \"party\" text,\n \"start_date\" text,\n \"end_date\" text,\n \"prime_minister\" text\n);\n\nQuestion: What was the start date for the party of LSAP with a Prime Minister of Jean-Claude Juncker?"
},
{
"role": "assistant",
"content": "SELECT \"start_date\" FROM \"list_of_ministers_for_the_police_force\" WHERE \"party\"='lsap' AND \"prime_minister\"='jean-claude juncker';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text\n);\n\nQuestion: What is the County of Howard Street Tunnel?"
},
{
"role": "assistant",
"content": "SELECT \"county\" FROM \"references\" WHERE \"name\"='howard street tunnel';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text\n);\n\nQuestion: What is the Location of the Bridge Built in 1869?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"references\" WHERE \"built\"='1869';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text\n);\n\nQuestion: What is the date Listed of the B & O Bridge in Washington?"
},
{
"role": "assistant",
"content": "SELECT \"listed\" FROM \"references\" WHERE \"county\"='washington' AND \"name\"='b & o bridge';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text\n);\n\nQuestion: What is the date Listed of the Bridge Built CA.1876?"
},
{
"role": "assistant",
"content": "SELECT \"listed\" FROM \"references\" WHERE \"built\"='ca.1876';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"county\" text\n);\n\nQuestion: What is the date Listed of the Bridge Built in 1864?"
},
{
"role": "assistant",
"content": "SELECT \"listed\" FROM \"references\" WHERE \"built\"='1864';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"result_of_national_final\" (\n \"draw\" real,\n \"song\" text,\n \"artist\" text,\n \"televotes\" real,\n \"place\" real\n);\n\nQuestion: What is the total number of Draw(s), when Televotes is greater than 1761, when Song is \"Ils Sont L\u00e0\", and when Place is less than 2?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"draw\") FROM \"result_of_national_final\" WHERE \"televotes\">1761 AND \"song\"='ils sont l\u00e0' AND \"place\"<2;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"result_of_national_final\" (\n \"draw\" real,\n \"song\" text,\n \"artist\" text,\n \"televotes\" real,\n \"place\" real\n);\n\nQuestion: What is the lowest Place, when Televotes is 15424?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"place\") FROM \"result_of_national_final\" WHERE \"televotes\"=15424;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"result_of_national_final\" (\n \"draw\" real,\n \"song\" text,\n \"artist\" text,\n \"televotes\" real,\n \"place\" real\n);\n\nQuestion: What is the average Place, when Song is \"Dis Oui\"?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"place\") FROM \"result_of_national_final\" WHERE \"song\"='dis oui';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_team\" (\n \"exit_date\" text,\n \"pos\" text,\n \"player\" text,\n \"to_club\" text,\n \"transfer_fee\" text\n);\n\nQuestion: What club received a DF player for free?"
},
{
"role": "assistant",
"content": "SELECT \"to_club\" FROM \"first_team\" WHERE \"transfer_fee\"='free' AND \"pos\"='df';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_team\" (\n \"exit_date\" text,\n \"pos\" text,\n \"player\" text,\n \"to_club\" text,\n \"transfer_fee\" text\n);\n\nQuestion: Which player was transferred to Reggina?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"first_team\" WHERE \"to_club\"='reggina';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_team\" (\n \"exit_date\" text,\n \"pos\" text,\n \"player\" text,\n \"to_club\" text,\n \"transfer_fee\" text\n);\n\nQuestion: What is the exit date of the player transferred to Reggina for free?"
},
{
"role": "assistant",
"content": "SELECT \"exit_date\" FROM \"first_team\" WHERE \"transfer_fee\"='free' AND \"to_club\"='reggina';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"overall_results\" (\n \"position\" real,\n \"pilot\" text,\n \"country\" text,\n \"glider\" text,\n \"points\" real\n);\n\nQuestion: What is the lowest position of pilot mario kiessling from Germany?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"position\") FROM \"overall_results\" WHERE \"country\"='germany' AND \"pilot\"='mario kiessling';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"overall_results\" (\n \"position\" real,\n \"pilot\" text,\n \"country\" text,\n \"glider\" text,\n \"points\" real\n);\n\nQuestion: What is the average position of pilot petr krejcirik, who has less than 11 points?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"position\") FROM \"overall_results\" WHERE \"points\"<11 AND \"pilot\"='petr krejcirik';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_tournament_timeline\" (\n \"tournament\" text,\n \"1980\" text,\n \"1981\" text,\n \"1982\" text,\n \"1983\" text,\n \"1984\" text,\n \"1985\" text,\n \"1986\" text,\n \"1987\" text,\n \"career_sr\" text\n);\n\nQuestion: What is the career SR with a 1r in 1985?"
},
{
"role": "assistant",
"content": "SELECT \"career_sr\" FROM \"grand_slam_singles_tournament_timeline\" WHERE \"1985\"='1r';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_tournament_timeline\" (\n \"tournament\" text,\n \"1980\" text,\n \"1981\" text,\n \"1982\" text,\n \"1983\" text,\n \"1984\" text,\n \"1985\" text,\n \"1986\" text,\n \"1987\" text,\n \"career_sr\" text\n);\n\nQuestion: What tournament has a 3r in 1983?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"grand_slam_singles_tournament_timeline\" WHERE \"1983\"='3r';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_tournament_timeline\" (\n \"tournament\" text,\n \"1980\" text,\n \"1981\" text,\n \"1982\" text,\n \"1983\" text,\n \"1984\" text,\n \"1985\" text,\n \"1986\" text,\n \"1987\" text,\n \"career_sr\" text\n);\n\nQuestion: What is the 1980 value with a 1r in 1984 and a 1r in 1981?"
},
{
"role": "assistant",
"content": "SELECT \"1980\" FROM \"grand_slam_singles_tournament_timeline\" WHERE \"1984\"='1r' AND \"1981\"='1r';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: What is the finish of Australia?"
},
{
"role": "assistant",
"content": "SELECT \"finish\" FROM \"made_the_cut\" WHERE \"country\"='australia';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: What is the total with a +4 to par?"
},
{
"role": "assistant",
"content": "SELECT \"total\" FROM \"made_the_cut\" WHERE \"to_par\"='+4';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: What country has a +3 to par?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"made_the_cut\" WHERE \"to_par\"='+3';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_ten_best_selling_albums_recorded_by_\" (\n \"rank\" real,\n \"year\" real,\n \"title\" text,\n \"artist\" text,\n \"sales\" real\n);\n\nQuestion: What was the first year that the artist of every little thing ranked lower than 10?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"top_ten_best_selling_albums_recorded_by_\" WHERE \"artist\"='every little thing' AND \"rank\"<10;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wins_13\" (\n \"year\" real,\n \"championship\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Which Championship was louise suggs the runner-up by 3 strokes?"
},
{
"role": "assistant",
"content": "SELECT \"championship\" FROM \"wins_13\" WHERE \"runner_s_up\"='louise suggs' AND \"margin\"='3 strokes';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wins_13\" (\n \"year\" real,\n \"championship\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: When was the most recent year that kathy whitworth was the runner-up?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year\") FROM \"wins_13\" WHERE \"runner_s_up\"='kathy whitworth';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.