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 \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"mascot\" text,\n \"location\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"ihsaa_football_class\" text,\n \"county\" text\n);\n\nQuestion: What county is Whiteland Community School in?"
},
{
"role": "assistant",
"content": "SELECT \"county\" FROM \"indiana_high_school_athletics_conference\" WHERE \"school\"='whiteland community';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"mascot\" text,\n \"location\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"ihsaa_football_class\" text,\n \"county\" text\n);\n\nQuestion: What county has a football team in IHSAA class AAAAA and a school macot of the Grizzly Cubs?"
},
{
"role": "assistant",
"content": "SELECT \"county\" FROM \"indiana_high_school_athletics_conference\" WHERE \"ihsaa_football_class\"='aaaaa' AND \"mascot\"='grizzly cubs';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"mascot\" text,\n \"location\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"ihsaa_football_class\" text,\n \"county\" text\n);\n\nQuestion: What county has a school mascot of the Pioneers?"
},
{
"role": "assistant",
"content": "SELECT \"county\" FROM \"indiana_high_school_athletics_conference\" WHERE \"mascot\"='pioneers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"mascot\" text,\n \"location\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"ihsaa_football_class\" text,\n \"county\" text\n);\n\nQuestion: What are the IHSAA classes of the Indianapolis schools?"
},
{
"role": "assistant",
"content": "SELECT \"ihsaa_class\" FROM \"indiana_high_school_athletics_conference\" WHERE \"location\"='indianapolis';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semi_final_2_7_february_2009\" (\n \"draw\" real,\n \"artist\" text,\n \"song\" text,\n \"points\" real,\n \"place\" real\n);\n\nQuestion: Which Song has Points smaller than 53, and a Place larger than 8, and a Draw larger than 1?"
},
{
"role": "assistant",
"content": "SELECT \"song\" FROM \"semi_final_2_7_february_2009\" WHERE \"points\"<53 AND \"place\">8 AND \"draw\">1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"116_seats_needed_for_a_majority\" (\n \"date_released\" text,\n \"polling_institute\" text,\n \"social_democratic\" text,\n \"socialist\" text,\n \"green_communist\" text,\n \"people_s_party\" text,\n \"left_bloc\" text,\n \"lead\" text\n);\n\nQuestion: What is the result for the Green-Communist party when the Left Bloc has 3.6%?"
},
{
"role": "assistant",
"content": "SELECT \"green_communist\" FROM \"116_seats_needed_for_a_majority\" WHERE \"left_bloc\"='3.6%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"116_seats_needed_for_a_majority\" (\n \"date_released\" text,\n \"polling_institute\" text,\n \"social_democratic\" text,\n \"socialist\" text,\n \"green_communist\" text,\n \"people_s_party\" text,\n \"left_bloc\" text,\n \"lead\" text\n);\n\nQuestion: What is the result for the Green-Communist party when the Left Bloc has 3.0%?"
},
{
"role": "assistant",
"content": "SELECT \"green_communist\" FROM \"116_seats_needed_for_a_majority\" WHERE \"left_bloc\"='3.0%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"116_seats_needed_for_a_majority\" (\n \"date_released\" text,\n \"polling_institute\" text,\n \"social_democratic\" text,\n \"socialist\" text,\n \"green_communist\" text,\n \"people_s_party\" text,\n \"left_bloc\" text,\n \"lead\" text\n);\n\nQuestion: What is the result for the Socialist party when the People's Party has 6.8%?"
},
{
"role": "assistant",
"content": "SELECT \"socialist\" FROM \"116_seats_needed_for_a_majority\" WHERE \"people_s_party\"='6.8%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"116_seats_needed_for_a_majority\" (\n \"date_released\" text,\n \"polling_institute\" text,\n \"social_democratic\" text,\n \"socialist\" text,\n \"green_communist\" text,\n \"people_s_party\" text,\n \"left_bloc\" text,\n \"lead\" text\n);\n\nQuestion: What is the date released when the Left Bloc had 3.2%?"
},
{
"role": "assistant",
"content": "SELECT \"date_released\" FROM \"116_seats_needed_for_a_majority\" WHERE \"left_bloc\"='3.2%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cardinal_electors\" (\n \"elector\" text,\n \"nationality\" text,\n \"cardinalatial_order_and_title\" text,\n \"elevated\" text,\n \"elevator\" text\n);\n\nQuestion: What is the cardinalatial order of the elector elevated circa 1116?"
},
{
"role": "assistant",
"content": "SELECT \"cardinalatial_order_and_title\" FROM \"cardinal_electors\" WHERE \"elevated\"='circa 1116';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cardinal_electors\" (\n \"elector\" text,\n \"nationality\" text,\n \"cardinalatial_order_and_title\" text,\n \"elevated\" text,\n \"elevator\" text\n);\n\nQuestion: When was the elector from pisa elevated?"
},
{
"role": "assistant",
"content": "SELECT \"elevated\" FROM \"cardinal_electors\" WHERE \"nationality\"='pisa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cardinal_electors\" (\n \"elector\" text,\n \"nationality\" text,\n \"cardinalatial_order_and_title\" text,\n \"elevated\" text,\n \"elevator\" text\n);\n\nQuestion: What is the cardinalatial order and title of bosone?"
},
{
"role": "assistant",
"content": "SELECT \"cardinalatial_order_and_title\" FROM \"cardinal_electors\" WHERE \"elector\"='bosone';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cardinal_electors\" (\n \"elector\" text,\n \"nationality\" text,\n \"cardinalatial_order_and_title\" text,\n \"elevated\" text,\n \"elevator\" text\n);\n\nQuestion: Who is the elevator from crema?"
},
{
"role": "assistant",
"content": "SELECT \"elevator\" FROM \"cardinal_electors\" WHERE \"nationality\"='crema';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What is the name of the swimmer from Australia in lane 4 with a heat larger than 4?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"heats\" WHERE \"heat\">4 AND \"lane\"=4 AND \"nationality\"='australia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What is the lowest heat number for a swimmer with a time of 2:34.94?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"heat\") FROM \"heats\" WHERE \"time\"='2:34.94';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heat_7\" (\n \"rank\" real,\n \"lane\" real,\n \"athlete\" text,\n \"nationality\" text,\n \"time\" real,\n \"react\" real\n);\n\nQuestion: What is the rank of the player from Ukraine with react less than 0.26?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rank\") FROM \"heat_7\" WHERE \"nationality\"='ukraine' AND \"react\"<0.26;"
}
]
|
[
{
"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 highest week with a w 21-17 result, and more than 45,254 in attendance?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"week\") FROM \"schedule\" WHERE \"result\"='w 21-17' AND \"attendance\">'45,254';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"germanic_origins\" (\n \"proto_germanic\" text,\n \"west_germanic\" text,\n \"old_english\" text,\n \"german\" text,\n \"dutch\" text\n);\n\nQuestion: What's the Proto-Germanic when the Old English is /d/?"
},
{
"role": "assistant",
"content": "SELECT \"proto_germanic\" FROM \"germanic_origins\" WHERE \"old_english\"='/d/';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"germanic_origins\" (\n \"proto_germanic\" text,\n \"west_germanic\" text,\n \"old_english\" text,\n \"german\" text,\n \"dutch\" text\n);\n\nQuestion: What's the Proto Germanic when then German is /s/ or /ts/?"
},
{
"role": "assistant",
"content": "SELECT \"proto_germanic\" FROM \"germanic_origins\" WHERE \"german\"='/s/ or /ts/';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"germanic_origins\" (\n \"proto_germanic\" text,\n \"west_germanic\" text,\n \"old_english\" text,\n \"german\" text,\n \"dutch\" text\n);\n\nQuestion: What's the Dutch when then Old English is /d/?"
},
{
"role": "assistant",
"content": "SELECT \"dutch\" FROM \"germanic_origins\" WHERE \"old_english\"='/d/';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"germanic_origins\" (\n \"proto_germanic\" text,\n \"west_germanic\" text,\n \"old_english\" text,\n \"german\" text,\n \"dutch\" text\n);\n\nQuestion: What's the West Germanic when the German is /s/ or /ts/?"
},
{
"role": "assistant",
"content": "SELECT \"west_germanic\" FROM \"germanic_origins\" WHERE \"german\"='/s/ or /ts/';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"germanic_origins\" (\n \"proto_germanic\" text,\n \"west_germanic\" text,\n \"old_english\" text,\n \"german\" text,\n \"dutch\" text\n);\n\nQuestion: What's the Proto-Germanic when the German is /t/?"
},
{
"role": "assistant",
"content": "SELECT \"proto_germanic\" FROM \"germanic_origins\" WHERE \"german\"='/t/';"
}
]
|
[
{
"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\" text\n);\n\nQuestion: What is the to par for japan"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"final_round\" WHERE \"country\"='japan';"
}
]
|
[
{
"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\" text\n);\n\nQuestion: what player has $187,500 and score 66-75-71-69=281"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"final_round\" WHERE \"money\"='187,500' AND \"score\"='66-75-71-69=281';"
}
]
|
[
{
"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\" text\n);\n\nQuestion: what place has score 66-74-68-73=281"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"final_round\" WHERE \"score\"='66-74-68-73=281';"
}
]
|
[
{
"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\" text\n);\n\nQuestion: what player has place t10"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"final_round\" WHERE \"place\"='t10';"
}
]
|
[
{
"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\" text\n);\n\nQuestion: what is the to par for $242,813 with score 68-72-74-66=280"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"final_round\" WHERE \"money\"='242,813' AND \"score\"='68-72-74-66=280';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"size\" real,\n \"ihsaa_class\" text,\n \"county\" text\n);\n\nQuestion: Which School has a Size larger than 408, and a Mascot of pacers?"
},
{
"role": "assistant",
"content": "SELECT \"school\" FROM \"indiana_high_school_athletics_conference\" WHERE \"size\">408 AND \"mascot\"='pacers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"size\" real,\n \"ihsaa_class\" text,\n \"county\" text\n);\n\nQuestion: Which Size has an IHSAA Class of aa, and a Location of milan?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"size\") FROM \"indiana_high_school_athletics_conference\" WHERE \"ihsaa_class\"='aa' AND \"location\"='milan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"size\" real,\n \"ihsaa_class\" text,\n \"county\" text\n);\n\nQuestion: Which County has a Mascot of pacers?"
},
{
"role": "assistant",
"content": "SELECT \"county\" FROM \"indiana_high_school_athletics_conference\" WHERE \"mascot\"='pacers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"size\" real,\n \"ihsaa_class\" text,\n \"county\" text\n);\n\nQuestion: Which Mascot has a County of 69 ripley, and an IHSAA Class of aa, and a School of south ripley?"
},
{
"role": "assistant",
"content": "SELECT \"mascot\" FROM \"indiana_high_school_athletics_conference\" WHERE \"county\"='69 ripley' AND \"ihsaa_class\"='aa' AND \"school\"='south ripley';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: Who was in Lane 5 and had a heat of 7?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"heats\" WHERE \"heat\"=7 AND \"lane\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What lane number was Hungary and had a heat of 4?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"lane\") FROM \"heats\" WHERE \"heat\"=4 AND \"nationality\"='hungary';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"world_record_progression\" (\n \"score\" text,\n \"shooter\" text,\n \"date\" text,\n \"comp\" text,\n \"place\" text\n);\n\nQuestion: What's the date when the score was 690.3?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"world_record_progression\" WHERE \"score\"='690.3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"world_record_progression\" (\n \"score\" text,\n \"shooter\" text,\n \"date\" text,\n \"comp\" text,\n \"place\" text\n);\n\nQuestion: What's the place of 1989 with a comp of ECH?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"world_record_progression\" WHERE \"comp\"='ech' AND \"date\"='1989';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"world_record_progression\" (\n \"score\" text,\n \"shooter\" text,\n \"date\" text,\n \"comp\" text,\n \"place\" text\n);\n\nQuestion: Who was the shooter with a score of 686.4?"
},
{
"role": "assistant",
"content": "SELECT \"shooter\" FROM \"world_record_progression\" WHERE \"score\"='686.4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"games_tm\" (\n \"year\" real,\n \"game\" text,\n \"genre\" text,\n \"platform_s\" text,\n \"developer_s\" text\n);\n\nQuestion: what is the year for borderlands 2?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"games_tm\" WHERE \"game\"='borderlands 2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"games_tm\" (\n \"year\" real,\n \"game\" text,\n \"genre\" text,\n \"platform_s\" text,\n \"developer_s\" text\n);\n\nQuestion: what is the year for the game dead space 2?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"games_tm\" WHERE \"game\"='dead space 2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"games_tm\" (\n \"year\" real,\n \"game\" text,\n \"genre\" text,\n \"platform_s\" text,\n \"developer_s\" text\n);\n\nQuestion: who is the developers for demon's souls?"
},
{
"role": "assistant",
"content": "SELECT \"developer_s\" FROM \"games_tm\" WHERE \"game\"='demon''s souls';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"arcade_awards_electronic_gaming_awards\" (\n \"year\" text,\n \"arcade\" text,\n \"standalone\" text,\n \"console\" text,\n \"computer\" text\n);\n\nQuestion: In what year is Zaxxon the Standalone?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"arcade_awards_electronic_gaming_awards\" WHERE \"standalone\"='zaxxon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"arcade_awards_electronic_gaming_awards\" (\n \"year\" text,\n \"arcade\" text,\n \"standalone\" text,\n \"console\" text,\n \"computer\" text\n);\n\nQuestion: What is the Standalone in the year when Space Invaders is the Console?"
},
{
"role": "assistant",
"content": "SELECT \"standalone\" FROM \"arcade_awards_electronic_gaming_awards\" WHERE \"console\"='space invaders';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"arcade_awards_electronic_gaming_awards\" (\n \"year\" text,\n \"arcade\" text,\n \"standalone\" text,\n \"console\" text,\n \"computer\" text\n);\n\nQuestion: What is the Standalone when Tron is the Arcade?"
},
{
"role": "assistant",
"content": "SELECT \"standalone\" FROM \"arcade_awards_electronic_gaming_awards\" WHERE \"arcade\"='tron';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"arcade_awards_electronic_gaming_awards\" (\n \"year\" text,\n \"arcade\" text,\n \"standalone\" text,\n \"console\" text,\n \"computer\" text\n);\n\nQuestion: What is the Console when Space Invaders is the Arcade?"
},
{
"role": "assistant",
"content": "SELECT \"console\" FROM \"arcade_awards_electronic_gaming_awards\" WHERE \"arcade\"='space invaders';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"supplemental_first_round_selections\" (\n \"pick\" real,\n \"player\" text,\n \"team\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: What position does the player from the Arizona Diamondbacks play?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"supplemental_first_round_selections\" WHERE \"team\"='arizona diamondbacks';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"supplemental_first_round_selections\" (\n \"pick\" real,\n \"player\" text,\n \"team\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: What school did P Jay Gehrke of the Kansas City Royals attend?"
},
{
"role": "assistant",
"content": "SELECT \"school\" FROM \"supplemental_first_round_selections\" WHERE \"position\"='p' AND \"team\"='kansas city royals' AND \"player\"='jay gehrke';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heat_1\" (\n \"rank\" real,\n \"athletes\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What country does Adam van Koeverden play for?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"heat_1\" WHERE \"athletes\"='adam van koeverden';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_selections\" (\n \"pick\" real,\n \"player\" text,\n \"team\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: what is the pick when the school is jasper hs (jasper, texas)?"
},
{
"role": "assistant",
"content": "SELECT \"pick\" FROM \"first_round_selections\" WHERE \"school\"='jasper hs (jasper, texas)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_selections\" (\n \"pick\" real,\n \"player\" text,\n \"team\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: who is the player when the position is p and the team is oakland athletics?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"first_round_selections\" WHERE \"position\"='p' AND \"team\"='oakland athletics';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_selections\" (\n \"pick\" real,\n \"player\" text,\n \"team\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: what is the school when the team is new york yankees?"
},
{
"role": "assistant",
"content": "SELECT \"school\" FROM \"first_round_selections\" WHERE \"team\"='new york yankees';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_selections\" (\n \"pick\" real,\n \"player\" text,\n \"team\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: who is the player when the school is spring hs (spring, texas)?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"first_round_selections\" WHERE \"school\"='spring hs (spring, texas)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tests_conducted_by_aqsiq\" (\n \"producer\" text,\n \"product\" text,\n \"samples_taken\" real,\n \"samples_failed\" real,\n \"melamine_content_mg_kg\" real\n);\n\nQuestion: What's the melamine content of \u82f1\u96c4\u724c\u5b30\u5e7c\u5152\u914d\u65b9\u4e73\u7c89 having more than 1 samples failed?"
},
{
"role": "assistant",
"content": "SELECT \"melamine_content_mg_kg\" FROM \"tests_conducted_by_aqsiq\" WHERE \"samples_failed\">1 AND \"product\"='\u82f1\u96c4\u724c\u5b30\u5e7c\u5152\u914d\u65b9\u4e73\u7c89';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tests_conducted_by_aqsiq\" (\n \"producer\" text,\n \"product\" text,\n \"samples_taken\" real,\n \"samples_failed\" real,\n \"melamine_content_mg_kg\" real\n);\n\nQuestion: What's the most melamine content that has more than 1 samples failed and produced by Guangzhou Jinding Dairy Products Factory?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"melamine_content_mg_kg\") FROM \"tests_conducted_by_aqsiq\" WHERE \"producer\"='guangzhou jinding dairy products factory' AND \"samples_failed\">1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tests_conducted_by_aqsiq\" (\n \"producer\" text,\n \"product\" text,\n \"samples_taken\" real,\n \"samples_failed\" real,\n \"melamine_content_mg_kg\" real\n);\n\nQuestion: What's the product that has less than 98.6 melamine content, more than 1 sample failed and took less than 3 samples?"
},
{
"role": "assistant",
"content": "SELECT \"product\" FROM \"tests_conducted_by_aqsiq\" WHERE \"melamine_content_mg_kg\"<98.6 AND \"samples_failed\">1 AND \"samples_taken\"<3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tests_conducted_by_aqsiq\" (\n \"producer\" text,\n \"product\" text,\n \"samples_taken\" real,\n \"samples_failed\" real,\n \"melamine_content_mg_kg\" real\n);\n\nQuestion: What the most samples failed for \u53ef\u6dc7\u724c\u5b30\u5e7c\u5152\u914d\u65b9\u4e73\u7c89 and had less than 1 samples taken?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"samples_failed\") FROM \"tests_conducted_by_aqsiq\" WHERE \"product\"='\u53ef\u6dc7\u724c\u5b30\u5e7c\u5152\u914d\u65b9\u4e73\u7c89' AND \"samples_taken\"<1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tests_conducted_by_aqsiq\" (\n \"producer\" text,\n \"product\" text,\n \"samples_taken\" real,\n \"samples_failed\" real,\n \"melamine_content_mg_kg\" real\n);\n\nQuestion: How many samples taken from producer Qingdao Suncare Nutritional Technology with a melamine content less than 53.4?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"samples_taken\") FROM \"tests_conducted_by_aqsiq\" WHERE \"melamine_content_mg_kg\"<53.4 AND \"producer\"='qingdao suncare nutritional technology';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What did the golfer from Australia score?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"third_round\" WHERE \"country\"='australia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"europe_usage_share_data_from_at_internet\" (\n \"date\" text,\n \"internet_explorer\" text,\n \"firefox\" text,\n \"opera\" text,\n \"safari\" text,\n \"source\" text\n);\n\nQuestion: Which date has an Opera usage percentage of 5.1% and Internet Explorer usage of 59.5%?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"europe_usage_share_data_from_at_internet\" WHERE \"opera\"='5.1%' AND \"internet_explorer\"='59.5%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"europe_usage_share_data_from_at_internet\" (\n \"date\" text,\n \"internet_explorer\" text,\n \"firefox\" text,\n \"opera\" text,\n \"safari\" text,\n \"source\" text\n);\n\nQuestion: Which source has a date of June 2008?"
},
{
"role": "assistant",
"content": "SELECT \"source\" FROM \"europe_usage_share_data_from_at_internet\" WHERE \"date\"='june 2008';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"europe_usage_share_data_from_at_internet\" (\n \"date\" text,\n \"internet_explorer\" text,\n \"firefox\" text,\n \"opera\" text,\n \"safari\" text,\n \"source\" text\n);\n\nQuestion: Which source date has an Internet Explorer usage of 60.2%?"
},
{
"role": "assistant",
"content": "SELECT \"source\" FROM \"europe_usage_share_data_from_at_internet\" WHERE \"internet_explorer\"='60.2%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_or_demolished_stadiums\" (\n \"stadium\" text,\n \"capacity\" real,\n \"city\" text,\n \"country\" text,\n \"home_team_s\" text,\n \"closed_as_a_rl_stadium\" real\n);\n\nQuestion: What city has the home team of the brisbane broncos?"
},
{
"role": "assistant",
"content": "SELECT \"city\" FROM \"former_or_demolished_stadiums\" WHERE \"home_team_s\"='brisbane broncos';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_or_demolished_stadiums\" (\n \"stadium\" text,\n \"capacity\" real,\n \"city\" text,\n \"country\" text,\n \"home_team_s\" text,\n \"closed_as_a_rl_stadium\" real\n);\n\nQuestion: What is the earliest closed year in the country of france?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"closed_as_a_rl_stadium\") FROM \"former_or_demolished_stadiums\" WHERE \"country\"='france';"
}
]
|
[
{
"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\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What is the result for the event that lasted 2:20?"
},
{
"role": "assistant",
"content": "SELECT \"res\" FROM \"mixed_martial_arts_record\" WHERE \"time\"='2:20';"
}
]
|
[
{
"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\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Who was the fight against when loss was the result at the Gladiator Challenge 87: Collision Course event?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"mixed_martial_arts_record\" WHERE \"res\"='loss' AND \"event\"='gladiator challenge 87: collision course';"
}
]
|
[
{
"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\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: For the Cage Combat Fighting Championships: Mayhem, what was the record?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='cage combat fighting championships: mayhem';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"volleyball_at_the_2008_summer_olympics_m\" (\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"spike\" text,\n \"2008_club\" text\n);\n\nQuestion: What is the Name of the Gabeca Montichiari Club?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"volleyball_at_the_2008_summer_olympics_m\" WHERE \"2008_club\"='gabeca montichiari';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"volleyball_at_the_2008_summer_olympics_m\" (\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"spike\" text,\n \"2008_club\" text\n);\n\nQuestion: What is the Height of the Player from the 2008 Club of RPA Perugia?"
},
{
"role": "assistant",
"content": "SELECT \"height\" FROM \"volleyball_at_the_2008_summer_olympics_m\" WHERE \"2008_club\"='rpa perugia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_1\" (\n \"restaurant_name\" text,\n \"original_name\" text,\n \"location\" text,\n \"chef\" text,\n \"designer\" text,\n \"still_open\" text\n);\n\nQuestion: Who was the designer for The Grapefruit Moon?"
},
{
"role": "assistant",
"content": "SELECT \"designer\" FROM \"season_1\" WHERE \"restaurant_name\"='the grapefruit moon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_1\" (\n \"restaurant_name\" text,\n \"original_name\" text,\n \"location\" text,\n \"chef\" text,\n \"designer\" text,\n \"still_open\" text\n);\n\nQuestion: Who is the chef at Lakes Bar and Grill?"
},
{
"role": "assistant",
"content": "SELECT \"chef\" FROM \"season_1\" WHERE \"restaurant_name\"='lakes bar and grill';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_1\" (\n \"restaurant_name\" text,\n \"original_name\" text,\n \"location\" text,\n \"chef\" text,\n \"designer\" text,\n \"still_open\" text\n);\n\nQuestion: What is the name of the Cobourg, ON restaurant that had Robin de Groot as designer?"
},
{
"role": "assistant",
"content": "SELECT \"restaurant_name\" FROM \"season_1\" WHERE \"designer\"='robin de groot' AND \"location\"='cobourg, on';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_by_season\" (\n \"season\" text,\n \"tier\" real,\n \"league\" text,\n \"pos\" real,\n \"turkish_cup\" text,\n \"european_competitions\" text\n);\n\nQuestion: What European competitions have a tier of 2 and a position of 3?"
},
{
"role": "assistant",
"content": "SELECT \"european_competitions\" FROM \"season_by_season\" WHERE \"tier\"=2 AND \"pos\"=3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"all_time_medal_table_women_s_1984_2012\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Which Nation won 5 Silver, and more than 4 Gold?"
},
{
"role": "assistant",
"content": "SELECT \"nation\" FROM \"all_time_medal_table_women_s_1984_2012\" WHERE \"silver\"=5 AND \"gold\">4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"rank\" real,\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What is the sum of heat for christophe lebon when lane is less than 4?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"heat\") FROM \"heats\" WHERE \"lane\"<4 AND \"name\"='christophe lebon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"rank\" real,\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: Who is from the united states, has a rank less than 9, and heat more than 5?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"heats\" WHERE \"rank\"<9 AND \"heat\">5 AND \"nationality\"='united states';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"rank\" real,\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: Serbia has a heat less than 2 and what sum of rank?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rank\") FROM \"heats\" WHERE \"nationality\"='serbia' AND \"heat\"<2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"rank\" real,\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: When rank is 33, what is the smallest lane?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"lane\") FROM \"heats\" WHERE \"rank\"=33;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"s_390_computers\" (\n \"model\" text,\n \"year_introduced\" real,\n \"number_of_cp_us\" text,\n \"performance_mips\" text,\n \"memory_gb\" text\n);\n\nQuestion: Which Model has a Number of CPUs of 1\u201310, and a Performance (MIPS) of 49\u2013447?"
},
{
"role": "assistant",
"content": "SELECT \"model\" FROM \"s_390_computers\" WHERE \"number_of_cp_us\"='1\u201310' AND \"performance_mips\"='49\u2013447';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"s_390_computers\" (\n \"model\" text,\n \"year_introduced\" real,\n \"number_of_cp_us\" text,\n \"performance_mips\" text,\n \"memory_gb\" text\n);\n\nQuestion: Which Year Introduced has a Memory (GB) of 0.125\u20132?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year_introduced\") FROM \"s_390_computers\" WHERE \"memory_gb\"='0.125\u20132';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"s_390_computers\" (\n \"model\" text,\n \"year_introduced\" real,\n \"number_of_cp_us\" text,\n \"performance_mips\" text,\n \"memory_gb\" text\n);\n\nQuestion: Which Number of CPUs has a Memory (GB) of 0.5\u201316?"
},
{
"role": "assistant",
"content": "SELECT \"number_of_cp_us\" FROM \"s_390_computers\" WHERE \"memory_gb\"='0.5\u201316';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"s_390_computers\" (\n \"model\" text,\n \"year_introduced\" real,\n \"number_of_cp_us\" text,\n \"performance_mips\" text,\n \"memory_gb\" text\n);\n\nQuestion: Which Memory (GB) has a Number of CPUs of 1\u20136?"
},
{
"role": "assistant",
"content": "SELECT \"memory_gb\" FROM \"s_390_computers\" WHERE \"number_of_cp_us\"='1\u20136';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"manufacturer\" text,\n \"model\" text,\n \"transmission\" text,\n \"engine_capacity\" text,\n \"fuel_type\" text,\n \"l_100km_urban_cold\" real,\n \"l_100km_extra_urban\" real,\n \"l_100km_combined\" real,\n \"mpg_uk_urban_cold\" real,\n \"mpg_uk_extra_urban\" real,\n \"mpg_uk_combined\" real,\n \"mpg_us_urban\" real,\n \"mpg_us_extra_urban\" real,\n \"mpg_us_combined\" real,\n \"co_2_g_km\" real,\n \"green_rating\" text\n);\n\nQuestion: Which Fuel Type that has a mpg-US Extra-Urban larger than 53.5, and a mpg-US Combined larger than 50 from renault?"
},
{
"role": "assistant",
"content": "SELECT \"fuel_type\" FROM \"see_also\" WHERE \"mpg_us_extra_urban\">53.5 AND \"mpg_us_combined\">50 AND \"manufacturer\"='renault';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinal_a_b_1\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What is the Country of the Rowers with a Rank larger than 4 and Time of 5:59.56?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"semifinal_a_b_1\" WHERE \"rank\">4 AND \"time\"='5:59.56';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinal_a_b_1\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What is the Time of the Belarus Player with a Rank larger than 2 and Notes of FB?"
},
{
"role": "assistant",
"content": "SELECT \"time\" FROM \"semifinal_a_b_1\" WHERE \"rank\">2 AND \"notes\"='fb' AND \"country\"='belarus';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinal_a_b_1\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What is the Time of the Player with a Rank of 1 or 2 and Notes of FA?"
},
{
"role": "assistant",
"content": "SELECT \"time\" FROM \"semifinal_a_b_1\" WHERE \"notes\"='fa' AND \"rank\"<2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinal_a_b_1\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: Who are the Rowers from Poland?"
},
{
"role": "assistant",
"content": "SELECT \"rowers\" FROM \"semifinal_a_b_1\" WHERE \"country\"='poland';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinal_a_b_1\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: Who are the Rowers with a Time of 5:56.38?"
},
{
"role": "assistant",
"content": "SELECT \"rowers\" FROM \"semifinal_a_b_1\" WHERE \"time\"='5:56.38';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1954\" (\n \"title\" text,\n \"series\" text,\n \"director\" text,\n \"production_number\" real,\n \"release_date\" text,\n \"reissue\" text\n);\n\nQuestion: What's the release date for Claws For Alarm who has a director of Charles M. Jones, no reissue, and a production number less than 1323?"
},
{
"role": "assistant",
"content": "SELECT \"release_date\" FROM \"1954\" WHERE \"production_number\"<1323 AND \"reissue\"='no' AND \"director\"='charles m. jones' AND \"title\"='claws for alarm';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1954\" (\n \"title\" text,\n \"series\" text,\n \"director\" text,\n \"production_number\" real,\n \"release_date\" text,\n \"reissue\" text\n);\n\nQuestion: What's the title of the film with the release date of 1954-12-18?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"1954\" WHERE \"release_date\"='1954-12-18';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1954\" (\n \"title\" text,\n \"series\" text,\n \"director\" text,\n \"production_number\" real,\n \"release_date\" text,\n \"reissue\" text\n);\n\nQuestion: Was there a reissue with a release date of 1954-09-04 having a production number more than 1289 and a director of Robert McKimson?"
},
{
"role": "assistant",
"content": "SELECT \"reissue\" FROM \"1954\" WHERE \"director\"='robert mckimson' AND \"production_number\">1289 AND \"release_date\"='1954-09-04';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1954\" (\n \"title\" text,\n \"series\" text,\n \"director\" text,\n \"production_number\" real,\n \"release_date\" text,\n \"reissue\" text\n);\n\nQuestion: What is the production number for Bell Hoppy in the MM Series?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"production_number\") FROM \"1954\" WHERE \"series\"='mm' AND \"title\"='bell hoppy';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: How much Scored has Losses smaller than 0?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"scored\") FROM \"torneo_clausura\" WHERE \"losses\"<0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: Which Wins have Losses smaller than 6, and a Position of 4, and Played larger than 9?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"wins\") FROM \"torneo_clausura\" WHERE \"losses\"<6 AND \"position\"=4 AND \"played\">9;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: How much Conceded has Wins smaller than 3, and Points larger than 11?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"conceded\") FROM \"torneo_clausura\" WHERE \"wins\"<3 AND \"points\">11;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: Which Draws has Points smaller than 15, and a Conceded larger than 10, and a Position larger than 8, and Wins of 1?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"draws\") FROM \"torneo_clausura\" WHERE \"points\"<15 AND \"conceded\">10 AND \"position\">8 AND \"wins\"=1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: How many losses have 11 points?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"losses\") FROM \"torneo_clausura\" WHERE \"points\"=11;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"song_list\" (\n \"number\" real,\n \"song_title\" text,\n \"lyricist\" text,\n \"singer_s\" text,\n \"length\" text\n);\n\nQuestion: What is the song title sung by Sonu Nigam with lyricists of Dev Kohli/Biddu, and number over 8?"
},
{
"role": "assistant",
"content": "SELECT \"song_title\" FROM \"song_list\" WHERE \"singer_s\"='sonu nigam' AND \"lyricist\"='dev kohli/biddu' AND \"number\">8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"song_list\" (\n \"number\" real,\n \"song_title\" text,\n \"lyricist\" text,\n \"singer_s\" text,\n \"length\" text\n);\n\nQuestion: Who was the singer for the song numbered 3, with lyricist Dev Kohli?"
},
{
"role": "assistant",
"content": "SELECT \"singer_s\" FROM \"song_list\" WHERE \"lyricist\"='dev kohli' AND \"number\"=3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"song_list\" (\n \"number\" real,\n \"song_title\" text,\n \"lyricist\" text,\n \"singer_s\" text,\n \"length\" text\n);\n\nQuestion: What is the average number for the song \"O Sudha\"?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"number\") FROM \"song_list\" WHERE \"song_title\"='o sudha';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"song_list\" (\n \"number\" real,\n \"song_title\" text,\n \"lyricist\" text,\n \"singer_s\" text,\n \"length\" text\n);\n\nQuestion: What is the average length for the song \"Ma Ke Jaisi\"?"
},
{
"role": "assistant",
"content": "SELECT \"length\" FROM \"song_list\" WHERE \"song_title\"='ma ke jaisi';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"appearances_and_goals\" (\n \"name\" text,\n \"position\" text,\n \"league_apps\" text,\n \"league_goals\" real,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"league_cup_apps\" text,\n \"league_cup_goals\" real,\n \"total_apps\" text,\n \"total_goals\" real\n);\n\nQuestion: Who had fa cup goals of 0, league cup goals less than 2, and total goals of 2?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"appearances_and_goals\" WHERE \"fa_cup_goals\"=0 AND \"league_cup_goals\"<2 AND \"total_goals\"=2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"appearances_and_goals\" (\n \"name\" text,\n \"position\" text,\n \"league_apps\" text,\n \"league_goals\" real,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"league_cup_apps\" text,\n \"league_cup_goals\" real,\n \"total_apps\" text,\n \"total_goals\" real\n);\n\nQuestion: what is the fa cup goals when total apps is 10 (4)?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"fa_cup_goals\") FROM \"appearances_and_goals\" WHERE \"total_apps\"='10 (4)';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.