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 \"international_broadcasts\" (\n \"country\" text,\n \"tv_network_s\" text,\n \"series_premiere\" text,\n \"weekly_schedule\" text,\n \"status\" text\n);\n\nQuestion: What is every TV network with a weekly schedule of Monday to Thursday @ 11:00 pm?"
},
{
"role": "assistant",
"content": "SELECT \"tv_network_s\" FROM \"international_broadcasts\" WHERE \"weekly_schedule\"='Monday to Thursday @ 11:00 pm';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_broadcasts\" (\n \"country\" text,\n \"tv_network_s\" text,\n \"series_premiere\" text,\n \"weekly_schedule\" text,\n \"status\" text\n);\n\nQuestion: What is every country with a TV network of AXN India?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"international_broadcasts\" WHERE \"tv_network_s\"='AXN India';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_broadcasts\" (\n \"country\" text,\n \"tv_network_s\" text,\n \"series_premiere\" text,\n \"weekly_schedule\" text,\n \"status\" text\n);\n\nQuestion: What is every weekly schedule in the country of Norway?"
},
{
"role": "assistant",
"content": "SELECT \"weekly_schedule\" FROM \"international_broadcasts\" WHERE \"country\"='Norway';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_broadcasts\" (\n \"country\" text,\n \"tv_network_s\" text,\n \"series_premiere\" text,\n \"weekly_schedule\" text,\n \"status\" text\n);\n\nQuestion: What is every TV network in Belgium?"
},
{
"role": "assistant",
"content": "SELECT \"tv_network_s\" FROM \"international_broadcasts\" WHERE \"country\"='Belgium';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_broadcasts\" (\n \"country\" text,\n \"tv_network_s\" text,\n \"series_premiere\" text,\n \"weekly_schedule\" text,\n \"status\" text\n);\n\nQuestion: What is every status with a weekly schedule of Monday to Thursday @ 11:00 pm?"
},
{
"role": "assistant",
"content": "SELECT \"status\" FROM \"international_broadcasts\" WHERE \"weekly_schedule\"='Monday to Thursday @ 11:00 pm';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_broadcasts\" (\n \"country\" text,\n \"tv_network_s\" text,\n \"series_premiere\" text,\n \"weekly_schedule\" text,\n \"status\" text\n);\n\nQuestion: What is every weekly schedule of TV network Viasat 4?"
},
{
"role": "assistant",
"content": "SELECT \"weekly_schedule\" FROM \"international_broadcasts\" WHERE \"tv_network_s\"='Viasat 4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_results\" (\n \"year\" real,\n \"champion_average_in_final\" text,\n \"legs\" text,\n \"runner_up_average_in_final\" text,\n \"sponsor\" text,\n \"prize_fund\" text,\n \"champion\" text,\n \"runner_up\" text,\n \"venue\" text\n);\n\nQuestion: How much was the prize money for rwe-sporthalle, m\u00fclheim ?"
},
{
"role": "assistant",
"content": "SELECT \"prize_fund\" FROM \"final_results\" WHERE \"venue\"='RWE-Sporthalle, M\u00fclheim';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_results\" (\n \"year\" real,\n \"champion_average_in_final\" text,\n \"legs\" text,\n \"runner_up_average_in_final\" text,\n \"sponsor\" text,\n \"prize_fund\" text,\n \"champion\" text,\n \"runner_up\" text,\n \"venue\" text\n);\n\nQuestion: In 2009, how many were runner-up?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"runner_up\") FROM \"final_results\" WHERE \"year\"=2009;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_results\" (\n \"year\" real,\n \"champion_average_in_final\" text,\n \"legs\" text,\n \"runner_up_average_in_final\" text,\n \"sponsor\" text,\n \"prize_fund\" text,\n \"champion\" text,\n \"runner_up\" text,\n \"venue\" text\n);\n\nQuestion: How much does the champion get for stadthalle dinslaken, dinslaken?"
},
{
"role": "assistant",
"content": "SELECT \"champion\" FROM \"final_results\" WHERE \"venue\"='Stadthalle Dinslaken, Dinslaken';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"aqueous_solution\" (\n \"a_mol_l\" text,\n \"p_h\" text,\n \"h_3_po_4_a_pct\" text,\n \"h_2_po_4_a_pct\" text,\n \"hpo_4_2_a_pct\" text,\n \"po_4_3_a_pct\" text\n);\n\nQuestion: what is [po 4 3\u2212 ]/[a] (%) where [h 2 po 4 \u2212 ]/[a] (%) is 94.5?"
},
{
"role": "assistant",
"content": "SELECT \"po_4_3_a_pct\" FROM \"aqueous_solution\" WHERE \"h_2_po_4_a_pct\"='94.5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"aqueous_solution\" (\n \"a_mol_l\" text,\n \"p_h\" text,\n \"h_3_po_4_a_pct\" text,\n \"h_2_po_4_a_pct\" text,\n \"hpo_4_2_a_pct\" text,\n \"po_4_3_a_pct\" text\n);\n\nQuestion: what is the [a] (mol/l) where [hpo 4 2\u2212 ]/[a] (%) is 0.612?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"a_mol_l\") FROM \"aqueous_solution\" WHERE \"hpo_4_2_a_pct\"='0.612';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"45_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"i_o_bus\" text,\n \"mult\" text,\n \"memory\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: When by80607002529af is the part number and september 2009 is the release date what is the l2 cache?"
},
{
"role": "assistant",
"content": "SELECT \"l2_cache\" FROM \"45_nm\" WHERE \"release_date\"='September 2009' AND \"part_number_s\"='BY80607002529AF';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"45_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"i_o_bus\" text,\n \"mult\" text,\n \"memory\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: When by80607002907ahbx80607i7720qm is the part number what is the socket?"
},
{
"role": "assistant",
"content": "SELECT \"socket\" FROM \"45_nm\" WHERE \"part_number_s\"='BY80607002907AHBX80607I7720QM';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"45_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"i_o_bus\" text,\n \"mult\" text,\n \"memory\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: When slblw(b1) is the sspec number what is the mult.?"
},
{
"role": "assistant",
"content": "SELECT \"mult\" FROM \"45_nm\" WHERE \"s_spec_number\"='SLBLW(B1)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"45_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"i_o_bus\" text,\n \"mult\" text,\n \"memory\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: When socketg1 is the socket what is the release price in dollars?"
},
{
"role": "assistant",
"content": "SELECT \"release_price_usd\" FROM \"45_nm\" WHERE \"socket\"='SocketG1';"
}
]
|
[
{
"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 \"record\" text,\n \"attendance\" real\n);\n\nQuestion: How many points did the opposing team score on Dec. 19, 1982?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"opponents\") FROM \"schedule\" WHERE \"date\"='Dec. 19';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"legislation_sponsored_by_john_mc_cain\" (\n \"years_covered\" text,\n \"all_bills_sponsored\" real,\n \"all_amendments_sponsored\" real,\n \"all_bills_cosponsored\" real,\n \"all_amendments_cosponsored\" real,\n \"bills_originally_cosponsored\" real,\n \"amendments_originally_cosponsored\" real\n);\n\nQuestion: How many bills where originally cosponsored in those years where the total of all amendments cosponsored was 0?"
},
{
"role": "assistant",
"content": "SELECT \"bills_originally_cosponsored\" FROM \"legislation_sponsored_by_john_mc_cain\" WHERE \"all_amendments_cosponsored\"=0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"legislation_sponsored_by_john_mc_cain\" (\n \"years_covered\" text,\n \"all_bills_sponsored\" real,\n \"all_amendments_sponsored\" real,\n \"all_bills_cosponsored\" real,\n \"all_amendments_cosponsored\" real,\n \"bills_originally_cosponsored\" real,\n \"amendments_originally_cosponsored\" real\n);\n\nQuestion: How many bill cosponsored during those years where bills originally cosponsored is 113?"
},
{
"role": "assistant",
"content": "SELECT \"all_bills_cosponsored\" FROM \"legislation_sponsored_by_john_mc_cain\" WHERE \"bills_originally_cosponsored\"=113;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"legislation_sponsored_by_john_mc_cain\" (\n \"years_covered\" text,\n \"all_bills_sponsored\" real,\n \"all_amendments_sponsored\" real,\n \"all_bills_cosponsored\" real,\n \"all_amendments_cosponsored\" real,\n \"bills_originally_cosponsored\" real,\n \"amendments_originally_cosponsored\" real\n);\n\nQuestion: What is the greatest number of bills sponsored in any year?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"all_bills_sponsored\") FROM \"legislation_sponsored_by_john_mc_cain\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"numbers_and_names\" (\n \"hr_no\" text,\n \"hr_name\" text,\n \"cr_no\" real,\n \"lms_no\" real,\n \"built\" text,\n \"works\" text,\n \"withdrawn\" text\n);\n\nQuestion: What is the lowest cr number?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"cr_no\") FROM \"numbers_and_names\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"numbers_and_names\" (\n \"hr_no\" text,\n \"hr_name\" text,\n \"cr_no\" real,\n \"lms_no\" real,\n \"built\" text,\n \"works\" text,\n \"withdrawn\" text\n);\n\nQuestion: When 2/1939 is the withdrawn when was it built?"
},
{
"role": "assistant",
"content": "SELECT \"built\" FROM \"numbers_and_names\" WHERE \"withdrawn\"='2/1939';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"numbers_and_names\" (\n \"hr_no\" text,\n \"hr_name\" text,\n \"cr_no\" real,\n \"lms_no\" real,\n \"built\" text,\n \"works\" text,\n \"withdrawn\" text\n);\n\nQuestion: When river ness is the hr name what is the hr number?"
},
{
"role": "assistant",
"content": "SELECT \"hr_no\" FROM \"numbers_and_names\" WHERE \"hr_name\"='River Ness';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"numbers_and_names\" (\n \"hr_no\" text,\n \"hr_name\" text,\n \"cr_no\" real,\n \"lms_no\" real,\n \"built\" text,\n \"works\" text,\n \"withdrawn\" text\n);\n\nQuestion: When (river garry) is the hr name how many builts are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"built\") FROM \"numbers_and_names\" WHERE \"hr_name\"='(River Garry)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"numbers_and_names\" (\n \"hr_no\" text,\n \"hr_name\" text,\n \"cr_no\" real,\n \"lms_no\" real,\n \"built\" text,\n \"works\" text,\n \"withdrawn\" text\n);\n\nQuestion: What is the highest cr number?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"cr_no\") FROM \"numbers_and_names\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"numbers_and_names\" (\n \"hr_no\" text,\n \"hr_name\" text,\n \"cr_no\" real,\n \"lms_no\" real,\n \"built\" text,\n \"works\" text,\n \"withdrawn\" text\n);\n\nQuestion: When river ness is the hr name how many builts are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"built\") FROM \"numbers_and_names\" WHERE \"hr_name\"='River Ness';"
}
]
|
[
{
"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 \"dolphins_points\" real,\n \"opponents\" real,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: How many opponents are at Minnesota Vikings?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"opponents\") FROM \"schedule\" WHERE \"opponent\"='at Minnesota Vikings';"
}
]
|
[
{
"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 \"dolphins_points\" real,\n \"opponents\" real,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What is the date when the opponent is the New England Patriots?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"opponent\"='New England Patriots';"
}
]
|
[
{
"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 \"dolphins_points\" real,\n \"opponents\" real,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: How many dates do the dolphins have 6 points?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"dolphins_points\"=6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"western_open\" (\n \"year\" real,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"margin\" real,\n \"earnings\" real\n);\n\nQuestion: What country does robert allenby represent?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"western_open\" WHERE \"player\"='Robert Allenby';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"western_open\" (\n \"year\" real,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"margin\" real,\n \"earnings\" real\n);\n\nQuestion: What score to par won in 1998?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"western_open\" WHERE \"year\"=1998;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"western_open\" (\n \"year\" real,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"margin\" real,\n \"earnings\" real\n);\n\nQuestion: What player(s) had the score of 64-70-67-69=270?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"western_open\" WHERE \"score\"='64-70-67-69=270';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"western_open\" (\n \"year\" real,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"margin\" real,\n \"earnings\" real\n);\n\nQuestion: What players had teh score of 64-71-67-67=269?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"western_open\" WHERE \"score\"='64-71-67-67=269';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"western_open\" (\n \"year\" real,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"margin\" real,\n \"earnings\" real\n);\n\nQuestion: What is the first yar that someone won with a score of 68-66-68-71=273?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"western_open\" WHERE \"score\"='68-66-68-71=273';"
}
]
|
[
{
"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 \"democratic_and_social_centre\" text,\n \"lead\" text\n);\n\nQuestion: How many socialist have a lead of 12.6%?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"socialist\") FROM \"116_seats_needed_for_a_majority\" WHERE \"lead\"='12.6%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1888157_1\" (\n \"season\" text,\n \"league\" text,\n \"division\" text,\n \"gp\" real,\n \"w\" real,\n \"l\" real,\n \"t\" real,\n \"otl\" real,\n \"sol\" real,\n \"pts\" real,\n \"pct\" text,\n \"gf\" real,\n \"ga\" real,\n \"pim\" real,\n \"coach_es\" text,\n \"result\" text\n);\n\nQuestion: What is every GA if coach is Bob Ferguson and T is 6?"
},
{
"role": "assistant",
"content": "SELECT \"ga\" FROM \"table1_1888157_1\" WHERE \"coach_es\"='Bob Ferguson' AND \"t\"=6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1888157_1\" (\n \"season\" text,\n \"league\" text,\n \"division\" text,\n \"gp\" real,\n \"w\" real,\n \"l\" real,\n \"t\" real,\n \"otl\" real,\n \"sol\" real,\n \"pts\" real,\n \"pct\" text,\n \"gf\" real,\n \"ga\" real,\n \"pim\" real,\n \"coach_es\" text,\n \"result\" text\n);\n\nQuestion: What is the lowest SOL?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"sol\") FROM \"table1_1888157_1\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1888157_1\" (\n \"season\" text,\n \"league\" text,\n \"division\" text,\n \"gp\" real,\n \"w\" real,\n \"l\" real,\n \"t\" real,\n \"otl\" real,\n \"sol\" real,\n \"pts\" real,\n \"pct\" text,\n \"gf\" real,\n \"ga\" real,\n \"pim\" real,\n \"coach_es\" text,\n \"result\" text\n);\n\nQuestion: What is the highest GA when GF is 39?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"ga\") FROM \"table1_1888157_1\" WHERE \"gf\"=39;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1888157_1\" (\n \"season\" text,\n \"league\" text,\n \"division\" text,\n \"gp\" real,\n \"w\" real,\n \"l\" real,\n \"t\" real,\n \"otl\" real,\n \"sol\" real,\n \"pts\" real,\n \"pct\" text,\n \"gf\" real,\n \"ga\" real,\n \"pim\" real,\n \"coach_es\" text,\n \"result\" text\n);\n\nQuestion: What is every league for coach Jim Burton?"
},
{
"role": "assistant",
"content": "SELECT \"league\" FROM \"table1_1888157_1\" WHERE \"coach_es\"='Jim Burton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: How many different records were there in the games that ended in w 70-66?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"record\") FROM \"regular_season\" WHERE \"score\"='W 70-66';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: What was the record of the game in which Dydek (10) did the most high rebounds?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"regular_season\" WHERE \"high_rebounds\"='Dydek (10)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: Who did the most high rebounds in the game where Sales (17) did the high points?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"regular_season\" WHERE \"high_points\"='Sales (17)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1889619_5\" (\n \"doctor\" text,\n \"season\" text,\n \"story_no\" text,\n \"serial\" text,\n \"number_of_episodes\" text,\n \"total_footage_remaining_from_missing_episodes_mm_ss\" text,\n \"missing_episodes_with_recovered_footage\" text,\n \"country_territory\" text,\n \"source\" text,\n \"format\" text,\n \"total_footage_mm_ss\" text\n);\n\nQuestion: When a private individual is the source and 018 is the story number what is the total footage remaining from missing episodes (mm:ss)?"
},
{
"role": "assistant",
"content": "SELECT \"total_footage_remaining_from_missing_episodes_mm_ss\" FROM \"table1_1889619_5\" WHERE \"story_no\"='018' AND \"source\"='Private individual';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1889619_5\" (\n \"doctor\" text,\n \"season\" text,\n \"story_no\" text,\n \"serial\" text,\n \"number_of_episodes\" text,\n \"total_footage_remaining_from_missing_episodes_mm_ss\" text,\n \"missing_episodes_with_recovered_footage\" text,\n \"country_territory\" text,\n \"source\" text,\n \"format\" text,\n \"total_footage_mm_ss\" text\n);\n\nQuestion: When 01:18 is the total footage remaining from missing episodes (mm:ss) and bbc is the source what is the country/territory? "
},
{
"role": "assistant",
"content": "SELECT \"country_territory\" FROM \"table1_1889619_5\" WHERE \"source\"='BBC' AND \"total_footage_remaining_from_missing_episodes_mm_ss\"='01:18';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1889619_5\" (\n \"doctor\" text,\n \"season\" text,\n \"story_no\" text,\n \"serial\" text,\n \"number_of_episodes\" text,\n \"total_footage_remaining_from_missing_episodes_mm_ss\" text,\n \"missing_episodes_with_recovered_footage\" text,\n \"country_territory\" text,\n \"source\" text,\n \"format\" text,\n \"total_footage_mm_ss\" text\n);\n\nQuestion: When 00:21 is the total footage (mm:ss) what is the serial?"
},
{
"role": "assistant",
"content": "SELECT \"serial\" FROM \"table1_1889619_5\" WHERE \"total_footage_mm_ss\"='00:21';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1889619_5\" (\n \"doctor\" text,\n \"season\" text,\n \"story_no\" text,\n \"serial\" text,\n \"number_of_episodes\" text,\n \"total_footage_remaining_from_missing_episodes_mm_ss\" text,\n \"missing_episodes_with_recovered_footage\" text,\n \"country_territory\" text,\n \"source\" text,\n \"format\" text,\n \"total_footage_mm_ss\" text\n);\n\nQuestion: When episode 4 is the missing episode with recovered footage and the 032 is the story number what is the country/territory?"
},
{
"role": "assistant",
"content": "SELECT \"country_territory\" FROM \"table1_1889619_5\" WHERE \"story_no\"='032' AND \"missing_episodes_with_recovered_footage\"='Episode 4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1889619_5\" (\n \"doctor\" text,\n \"season\" text,\n \"story_no\" text,\n \"serial\" text,\n \"number_of_episodes\" text,\n \"total_footage_remaining_from_missing_episodes_mm_ss\" text,\n \"missing_episodes_with_recovered_footage\" text,\n \"country_territory\" text,\n \"source\" text,\n \"format\" text,\n \"total_footage_mm_ss\" text\n);\n\nQuestion: When 00:02 is the total footage (mm:ss) what is the story number?"
},
{
"role": "assistant",
"content": "SELECT \"story_no\" FROM \"table1_1889619_5\" WHERE \"total_footage_mm_ss\"='00:02';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the least game for 8-3"
},
{
"role": "assistant",
"content": "SELECT MIN(\"game\") FROM \"regular_season\" WHERE \"record\"='8-3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the opponent for record 10-4"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"regular_season\" WHERE \"record\"='10-4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the high rebounds for record 7-1"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"regular_season\" WHERE \"record\"='7-1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the game for june 16"
},
{
"role": "assistant",
"content": "SELECT \"game\" FROM \"regular_season\" WHERE \"date\"='June 16';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the game for june 7"
},
{
"role": "assistant",
"content": "SELECT \"game\" FROM \"regular_season\" WHERE \"date\"='June 7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who did the high rebounds in the game with a 19-6 record?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"regular_season\" WHERE \"record\"='19-6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Where was the game with a 13-5 record played, and in front of how many people?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"regular_season\" WHERE \"record\"='13-5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who did the high rebounds in the game where Douglas (28) did the high points?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"regular_season\" WHERE \"high_points\"='Douglas (28)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the record on the game played on July 1?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"regular_season\" WHERE \"date\"='July 1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many opponents was a game with a record 17-6 played against?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"opponent\") FROM \"regular_season\" WHERE \"record\"='17-6';"
}
]
|
[
{
"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 \"career\" text,\n \"matches\" real,\n \"overs\" text,\n \"maidens\" real,\n \"runs\" real,\n \"wickets\" real,\n \"average\" text,\n \"best\" text,\n \"5w\" real,\n \"10w\" real\n);\n\nQuestion: What was the career duration of the bowler who played 60 matches?"
},
{
"role": "assistant",
"content": "SELECT \"career\" FROM \"references\" WHERE \"matches\"=60;"
}
]
|
[
{
"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 \"career\" text,\n \"matches\" real,\n \"overs\" text,\n \"maidens\" real,\n \"runs\" real,\n \"wickets\" real,\n \"average\" text,\n \"best\" text,\n \"5w\" real,\n \"10w\" real\n);\n\nQuestion: What is the Best score if the Maidens is 547 and Overs is 2755.1?"
},
{
"role": "assistant",
"content": "SELECT \"best\" FROM \"references\" WHERE \"maidens\"=547 AND \"overs\"='2755.1';"
}
]
|
[
{
"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 \"career\" text,\n \"matches\" real,\n \"overs\" text,\n \"maidens\" real,\n \"runs\" real,\n \"wickets\" real,\n \"average\" text,\n \"best\" text,\n \"5w\" real,\n \"10w\" real\n);\n\nQuestion: What was the Overs score of the career played from 1993-2007?"
},
{
"role": "assistant",
"content": "SELECT \"overs\" FROM \"references\" WHERE \"career\"='1993-2007';"
}
]
|
[
{
"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 \"career\" text,\n \"matches\" real,\n \"overs\" text,\n \"maidens\" real,\n \"runs\" real,\n \"wickets\" real,\n \"average\" text,\n \"best\" text,\n \"5w\" real,\n \"10w\" real\n);\n\nQuestion: What was the Best score during the game played from 1971-1984?"
},
{
"role": "assistant",
"content": "SELECT \"best\" FROM \"references\" WHERE \"career\"='1971-1984';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: When dydek (11) has the highest rebounds what is the date?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"regular_season\" WHERE \"high_rebounds\"='Dydek (11)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: When mcwilliams-franklin (8) has the highest rebounds what is the date?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"regular_season\" WHERE \"high_rebounds\"='McWilliams-Franklin (8)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: When dydek (8) has the highest rebounds who has the highest amount of points?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"regular_season\" WHERE \"high_rebounds\"='Dydek (8)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: When w 73-70 is the score what is the location?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"regular_season\" WHERE \"score\"='W 73-70';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: What was the score in the game that had a record of 25-8?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"regular_season\" WHERE \"record\"='25-8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: What was # of the first game played on August 20?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"game\") FROM \"regular_season\" WHERE \"date\"='August 20';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: What were the high points for the game played at the MCI Center?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_points\") FROM \"regular_season\" WHERE \"location\"='MCI Center';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: Where was the game played that had a record of 19-6?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"regular_season\" WHERE \"record\"='19-6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_31_s_ultra_prominent_summit_of_papua\" (\n \"rank\" real,\n \"peak\" text,\n \"country\" text,\n \"island\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: What is the col (m) of the Barurumea Ridge peak? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"col_m\") FROM \"the_31_s_ultra_prominent_summit_of_papua\" WHERE \"peak\"='Barurumea Ridge';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_31_s_ultra_prominent_summit_of_papua\" (\n \"rank\" real,\n \"peak\" text,\n \"country\" text,\n \"island\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: What is the elevation (m) of the Mount Wilhelm peak? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"elevation_m\") FROM \"the_31_s_ultra_prominent_summit_of_papua\" WHERE \"peak\"='Mount Wilhelm';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_31_s_ultra_prominent_summit_of_papua\" (\n \"rank\" real,\n \"peak\" text,\n \"country\" text,\n \"island\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: What is the col (m) of the Bewani Mountains High Point peak? "
},
{
"role": "assistant",
"content": "SELECT MIN(\"col_m\") FROM \"the_31_s_ultra_prominent_summit_of_papua\" WHERE \"peak\"='Bewani Mountains High Point';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_12_s_ultra_prominent_summit_of_papua\" (\n \"rank\" real,\n \"peak\" text,\n \"country\" text,\n \"island\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: When mount wondiwoi is the peak what is the island?"
},
{
"role": "assistant",
"content": "SELECT \"island\" FROM \"the_12_s_ultra_prominent_summit_of_papua\" WHERE \"peak\"='Mount Wondiwoi';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_12_s_ultra_prominent_summit_of_papua\" (\n \"rank\" real,\n \"peak\" text,\n \"country\" text,\n \"island\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: When mount gauttier is the peak what is the island?"
},
{
"role": "assistant",
"content": "SELECT \"island\" FROM \"the_12_s_ultra_prominent_summit_of_papua\" WHERE \"peak\"='Mount Gauttier';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_12_s_ultra_prominent_summit_of_papua\" (\n \"rank\" real,\n \"peak\" text,\n \"country\" text,\n \"island\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: When mount kobowre is the peak what is the highest elevation in meters?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"elevation_m\") FROM \"the_12_s_ultra_prominent_summit_of_papua\" WHERE \"peak\"='Mount Kobowre';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_12_s_ultra_prominent_summit_of_papua\" (\n \"rank\" real,\n \"peak\" text,\n \"country\" text,\n \"island\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: When mount gauttier is the peak what is the highest prominence in meters?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"prominence_m\") FROM \"the_12_s_ultra_prominent_summit_of_papua\" WHERE \"peak\"='Mount Gauttier';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_12_s_ultra_prominent_summit_of_papua\" (\n \"rank\" real,\n \"peak\" text,\n \"country\" text,\n \"island\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: When 44 is the col in meters what is the country?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"the_12_s_ultra_prominent_summit_of_papua\" WHERE \"col_m\"=44;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio\" (\n \"albumnum\" text,\n \"english_title\" text,\n \"chinese_traditional\" text,\n \"chinese_simplified\" text,\n \"release_date\" text,\n \"label\" text\n);\n\nQuestion: Name the release date for album # 2nd"
},
{
"role": "assistant",
"content": "SELECT \"release_date\" FROM \"studio\" WHERE \"albumnum\"='2nd';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio\" (\n \"albumnum\" text,\n \"english_title\" text,\n \"chinese_traditional\" text,\n \"chinese_simplified\" text,\n \"release_date\" text,\n \"label\" text\n);\n\nQuestion: Name the label for grown up overnight"
},
{
"role": "assistant",
"content": "SELECT \"label\" FROM \"studio\" WHERE \"english_title\"='Grown Up Overnight';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio\" (\n \"albumnum\" text,\n \"english_title\" text,\n \"chinese_traditional\" text,\n \"chinese_simplified\" text,\n \"release_date\" text,\n \"label\" text\n);\n\nQuestion: Name the label for traditional chinese \u60c5\u6b4c\u6c92\u6709\u544a\u8a34\u4f60"
},
{
"role": "assistant",
"content": "SELECT \"label\" FROM \"studio\" WHERE \"chinese_traditional\"='\u60c5\u6b4c\u6c92\u6709\u544a\u8a34\u4f60';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio\" (\n \"albumnum\" text,\n \"english_title\" text,\n \"chinese_traditional\" text,\n \"chinese_simplified\" text,\n \"release_date\" text,\n \"label\" text\n);\n\nQuestion: Name the number of traditional chinese for album number 6th"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"chinese_traditional\") FROM \"studio\" WHERE \"albumnum\"='6th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio\" (\n \"albumnum\" text,\n \"english_title\" text,\n \"chinese_traditional\" text,\n \"chinese_simplified\" text,\n \"release_date\" text,\n \"label\" text\n);\n\nQuestion: Name the chinese traditional for \u7f8e\u4e3d\u4eba\u751f"
},
{
"role": "assistant",
"content": "SELECT \"chinese_traditional\" FROM \"studio\" WHERE \"chinese_simplified\"='\u7f8e\u4e3d\u4eba\u751f';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio\" (\n \"albumnum\" text,\n \"english_title\" text,\n \"chinese_traditional\" text,\n \"chinese_simplified\" text,\n \"release_date\" text,\n \"label\" text\n);\n\nQuestion: Name the english title for album # 2nd"
},
{
"role": "assistant",
"content": "SELECT \"english_title\" FROM \"studio\" WHERE \"albumnum\"='2nd';"
}
]
|
[
{
"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\" text\n);\n\nQuestion: How many samples were taken of \u5b30\u5e7c\u5152\u914d\u65b9\u4e73\u7c892\u6bb5\u57fa\u7c89 ?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"samples_taken\") FROM \"tests_conducted_by_aqsiq\" WHERE \"product\"='\u5b30\u5e7c\u5152\u914d\u65b9\u4e73\u7c892\u6bb5\u57fa\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\" text\n);\n\nQuestion: What are the producers of \u78ca\u78ca\u724c\u5b30\u5e7c\u5152\u914d\u65b9\u4e73\u7c89 ?"
},
{
"role": "assistant",
"content": "SELECT \"producer\" FROM \"tests_conducted_by_aqsiq\" WHERE \"product\"='\u78ca\u78ca\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\" text\n);\n\nQuestion: What is the smallest amount sampled of product \u8499\u725b\u724c\u5b30\u5e7c\u5152\u914d\u65b9\u4e73\u7c89 ?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"samples_taken\") FROM \"tests_conducted_by_aqsiq\" WHERE \"product\"='\u8499\u725b\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\" text\n);\n\nQuestion: Who is the producer of \u91d1\u5fc5\u6c0f\u724c\u5b30\u5e7c\u5152\u914d\u65b9\u4e73\u7c89 ?"
},
{
"role": "assistant",
"content": "SELECT \"producer\" FROM \"tests_conducted_by_aqsiq\" WHERE \"product\"='\u91d1\u5fc5\u6c0f\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 \"table1_18950570_2\" (\n \"period\" text,\n \"live_births_per_year\" text,\n \"deaths_per_year\" text,\n \"natural_change_per_year\" text,\n \"cbr\" text,\n \"cdr\" text,\n \"nc\" text,\n \"tfr\" text,\n \"imr\" real,\n \"life_expectancy_total\" text,\n \"life_expectancy_males\" text,\n \"life_expectancy_females\" text\n);\n\nQuestion: How many live births per year are there in the period where the life expectancy for females is 73.3?"
},
{
"role": "assistant",
"content": "SELECT \"live_births_per_year\" FROM \"table1_18950570_2\" WHERE \"life_expectancy_females\"='73.3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18950570_2\" (\n \"period\" text,\n \"live_births_per_year\" text,\n \"deaths_per_year\" text,\n \"natural_change_per_year\" text,\n \"cbr\" text,\n \"cdr\" text,\n \"nc\" text,\n \"tfr\" text,\n \"imr\" real,\n \"life_expectancy_total\" text,\n \"life_expectancy_males\" text,\n \"life_expectancy_females\" text\n);\n\nQuestion: What's the CDR for the period where the life expectancy is 61.5?"
},
{
"role": "assistant",
"content": "SELECT \"cdr\" FROM \"table1_18950570_2\" WHERE \"life_expectancy_total\"='61.5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18950570_2\" (\n \"period\" text,\n \"live_births_per_year\" text,\n \"deaths_per_year\" text,\n \"natural_change_per_year\" text,\n \"cbr\" text,\n \"cdr\" text,\n \"nc\" text,\n \"tfr\" text,\n \"imr\" real,\n \"life_expectancy_total\" text,\n \"life_expectancy_males\" text,\n \"life_expectancy_females\" text\n);\n\nQuestion: What's the IMR for the period with a life expectancy of 69.3?"
},
{
"role": "assistant",
"content": "SELECT \"imr\" FROM \"table1_18950570_2\" WHERE \"life_expectancy_total\"='69.3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18950570_2\" (\n \"period\" text,\n \"live_births_per_year\" text,\n \"deaths_per_year\" text,\n \"natural_change_per_year\" text,\n \"cbr\" text,\n \"cdr\" text,\n \"nc\" text,\n \"tfr\" text,\n \"imr\" real,\n \"life_expectancy_total\" text,\n \"life_expectancy_males\" text,\n \"life_expectancy_females\" text\n);\n\nQuestion: What's the CBR for the period with 1 058 000 deaths per year?"
},
{
"role": "assistant",
"content": "SELECT \"cbr\" FROM \"table1_18950570_2\" WHERE \"deaths_per_year\"='1 058 000';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18950570_2\" (\n \"period\" text,\n \"live_births_per_year\" text,\n \"deaths_per_year\" text,\n \"natural_change_per_year\" text,\n \"cbr\" text,\n \"cdr\" text,\n \"nc\" text,\n \"tfr\" text,\n \"imr\" real,\n \"life_expectancy_total\" text,\n \"life_expectancy_males\" text,\n \"life_expectancy_females\" text\n);\n\nQuestion: How many births per year are there for the period with 998 000 deaths per year?"
},
{
"role": "assistant",
"content": "SELECT \"live_births_per_year\" FROM \"table1_18950570_2\" WHERE \"deaths_per_year\"='998 000';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18950570_2\" (\n \"period\" text,\n \"live_births_per_year\" text,\n \"deaths_per_year\" text,\n \"natural_change_per_year\" text,\n \"cbr\" text,\n \"cdr\" text,\n \"nc\" text,\n \"tfr\" text,\n \"imr\" real,\n \"life_expectancy_total\" text,\n \"life_expectancy_males\" text,\n \"life_expectancy_females\" text\n);\n\nQuestion: What's the TFR for the period with NC of 13.4?"
},
{
"role": "assistant",
"content": "SELECT \"tfr\" FROM \"table1_18950570_2\" WHERE \"nc\"='13.4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_ten_s_ultra_prominent_summit_of_the_\" (\n \"rank\" real,\n \"peak\" text,\n \"country\" text,\n \"island\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: What is the highest value for col(m) when prominence(m) is 3755?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"col_m\") FROM \"the_ten_s_ultra_prominent_summit_of_the_\" WHERE \"prominence_m\"=3755;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_ten_s_ultra_prominent_summit_of_the_\" (\n \"rank\" real,\n \"peak\" text,\n \"country\" text,\n \"island\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: What is the highest value for col(m) at North Island?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"col_m\") FROM \"the_ten_s_ultra_prominent_summit_of_the_\" WHERE \"island\"='North Island';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_ten_s_ultra_prominent_summit_of_the_\" (\n \"rank\" real,\n \"peak\" text,\n \"country\" text,\n \"island\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: What is the lowest elevation(m) for the peak Mount Taylor?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"elevation_m\") FROM \"the_ten_s_ultra_prominent_summit_of_the_\" WHERE \"peak\"='Mount Taylor';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_ten_s_ultra_prominent_summit_of_the_\" (\n \"rank\" real,\n \"peak\" text,\n \"country\" text,\n \"island\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: How many values of prominence(m) occur at rank 5?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"prominence_m\") FROM \"the_ten_s_ultra_prominent_summit_of_the_\" WHERE \"rank\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18950570_4\" (\n \"age_group\" text,\n \"brazil_100pct_percent_of_the_population\" text,\n \"white_47_73pct_percent_in_the_race_percent_in_the_age_group\" text,\n \"black_7_61pct_percent_in_the_race_percent_in_the_age_group\" text,\n \"yellow_1_09pct_percent_in_the_race_percent_in_the_age_group\" text,\n \"brown_multiracial_43_13pct_percent_in_the_race_percent_in_the_age_group\" text,\n \"indians_0_43pct_percent_in_the_race_percent_in_the_age_group\" text,\n \"unspecified_0_0034pct\" text\n);\n\nQuestion: what ae all of the brazil 100% where the age group is 15-17?"
},
{
"role": "assistant",
"content": "SELECT \"brazil_100pct_percent_of_the_population\" FROM \"table1_18950570_4\" WHERE \"age_group\"='15-17';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"size_of_intervals_in_15_equal_temperamen\" (\n \"interval_name\" text,\n \"size_steps\" real,\n \"size_cents\" real,\n \"just_ratio\" text,\n \"just_cents\" text,\n \"error\" text,\n \"audio\" text\n);\n\nQuestion: If the just ratio is 11:8 and the cents size is 560, what is the interval name?"
},
{
"role": "assistant",
"content": "SELECT \"interval_name\" FROM \"size_of_intervals_in_15_equal_temperamen\" WHERE \"size_cents\"=560 AND \"just_ratio\"='11:8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"size_of_intervals_in_15_equal_temperamen\" (\n \"interval_name\" text,\n \"size_steps\" real,\n \"size_cents\" real,\n \"just_ratio\" text,\n \"just_cents\" text,\n \"error\" text,\n \"audio\" text\n);\n\nQuestion: If the just cents is 84.46, what is the just ratio?"
},
{
"role": "assistant",
"content": "SELECT \"just_ratio\" FROM \"size_of_intervals_in_15_equal_temperamen\" WHERE \"just_cents\"='84.46';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"size_of_intervals_in_15_equal_temperamen\" (\n \"interval_name\" text,\n \"size_steps\" real,\n \"size_cents\" real,\n \"just_ratio\" text,\n \"just_cents\" text,\n \"error\" text,\n \"audio\" text\n);\n\nQuestion: If the just cents is 701.96, what is the interval name?"
},
{
"role": "assistant",
"content": "SELECT \"interval_name\" FROM \"size_of_intervals_in_15_equal_temperamen\" WHERE \"just_cents\"='701.96';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.