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 \"table1_1682865_1\" (\n \"english_name\" text,\n \"irish_name\" text,\n \"numeral\" text,\n \"reverse\" text,\n \"introduction\" text,\n \"withdrawal\" text,\n \"1_fraction\" text\n);\n\nQuestion: What is the numeral where the English name is Florin?"
},
{
"role": "assistant",
"content": "SELECT \"numeral\" FROM \"table1_1682865_1\" WHERE \"english_name\"='Florin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1682865_1\" (\n \"english_name\" text,\n \"irish_name\" text,\n \"numeral\" text,\n \"reverse\" text,\n \"introduction\" text,\n \"withdrawal\" text,\n \"1_fraction\" text\n);\n\nQuestion: What is the \u00a31 fraction when the reverse is hare?"
},
{
"role": "assistant",
"content": "SELECT \"1_fraction\" FROM \"table1_1682865_1\" WHERE \"reverse\"='Hare';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1682865_1\" (\n \"english_name\" text,\n \"irish_name\" text,\n \"numeral\" text,\n \"reverse\" text,\n \"introduction\" text,\n \"withdrawal\" text,\n \"1_fraction\" text\n);\n\nQuestion: What date was the 6d introduced?"
},
{
"role": "assistant",
"content": "SELECT \"introduction\" FROM \"table1_1682865_1\" WHERE \"numeral\"='6d';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1682865_1\" (\n \"english_name\" text,\n \"irish_name\" text,\n \"numeral\" text,\n \"reverse\" text,\n \"introduction\" text,\n \"withdrawal\" text,\n \"1_fraction\" text\n);\n\nQuestion: What is the Irish name for the \u00a31 fraction of 1/240?"
},
{
"role": "assistant",
"content": "SELECT \"irish_name\" FROM \"table1_1682865_1\" WHERE \"1_fraction\"='1/240';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1682865_1\" (\n \"english_name\" text,\n \"irish_name\" text,\n \"numeral\" text,\n \"reverse\" text,\n \"introduction\" text,\n \"withdrawal\" text,\n \"1_fraction\" text\n);\n\nQuestion: What is the reverse when the \u00a31 fraction is 1/480?"
},
{
"role": "assistant",
"content": "SELECT \"reverse\" FROM \"table1_1682865_1\" WHERE \"1_fraction\"='1/480';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"election_results\" (\n \"election\" real,\n \"candidates_fielded\" real,\n \"num_of_seats_won\" real,\n \"total_votes\" real,\n \"pct_of_popular_vote\" text,\n \"place\" text\n);\n\nQuestion: What is the largest number of seats won?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"num_of_seats_won\") FROM \"election_results\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"election_results\" (\n \"election\" real,\n \"candidates_fielded\" real,\n \"num_of_seats_won\" real,\n \"total_votes\" real,\n \"pct_of_popular_vote\" text,\n \"place\" text\n);\n\nQuestion: How many percentages are listed for the election in 1983?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"pct_of_popular_vote\") FROM \"election_results\" WHERE \"election\"=1983;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"election_results\" (\n \"election\" real,\n \"candidates_fielded\" real,\n \"num_of_seats_won\" real,\n \"total_votes\" real,\n \"pct_of_popular_vote\" text,\n \"place\" text\n);\n\nQuestion: What place did the party finish in the year when they earned 0.86% of the vote?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"election_results\" WHERE \"pct_of_popular_vote\"='0.86%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"homologs\" (\n \"species\" text,\n \"species_common_name\" text,\n \"ncbi_accession_number_m_rna_protein\" text,\n \"length_bp_aa\" text,\n \"protein_identity\" text\n);\n\nQuestion: What is the NCBI Accession Number for the length of 5304bp/377aa?"
},
{
"role": "assistant",
"content": "SELECT \"ncbi_accession_number_m_rna_protein\" FROM \"homologs\" WHERE \"length_bp_aa\"='5304bp/377aa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"homologs\" (\n \"species\" text,\n \"species_common_name\" text,\n \"ncbi_accession_number_m_rna_protein\" text,\n \"length_bp_aa\" text,\n \"protein_identity\" text\n);\n\nQuestion: What is the NCBI Accession Number of the Homo Sapiens species?"
},
{
"role": "assistant",
"content": "SELECT \"ncbi_accession_number_m_rna_protein\" FROM \"homologs\" WHERE \"species\"='Homo sapiens';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"homologs\" (\n \"species\" text,\n \"species_common_name\" text,\n \"ncbi_accession_number_m_rna_protein\" text,\n \"length_bp_aa\" text,\n \"protein_identity\" text\n);\n\nQuestion: What is the common name for the Felis Catus species?"
},
{
"role": "assistant",
"content": "SELECT \"species_common_name\" FROM \"homologs\" WHERE \"species\"='Felis catus';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"homologs\" (\n \"species\" text,\n \"species_common_name\" text,\n \"ncbi_accession_number_m_rna_protein\" text,\n \"length_bp_aa\" text,\n \"protein_identity\" text\n);\n\nQuestion: What is the species with the common name \"mouse\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"species\") FROM \"homologs\" WHERE \"species_common_name\"='Mouse';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"homologs\" (\n \"species\" text,\n \"species_common_name\" text,\n \"ncbi_accession_number_m_rna_protein\" text,\n \"length_bp_aa\" text,\n \"protein_identity\" text\n);\n\nQuestion: What is the protein identity with a length of 5304bp/377aa?"
},
{
"role": "assistant",
"content": "SELECT \"protein_identity\" FROM \"homologs\" WHERE \"length_bp_aa\"='5304bp/377aa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"releases\" (\n \"cat_num\" text,\n \"artist\" text,\n \"title\" text,\n \"release_date\" text,\n \"format\" text,\n \"other_information\" text\n);\n\nQuestion: When was \"Tell You When\" released?"
},
{
"role": "assistant",
"content": "SELECT \"release_date\" FROM \"releases\" WHERE \"title\"='Tell You When';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Where was game 62 played? "
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"game_log\" WHERE \"game\"=62;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What was the final score when the Maple Leafs played the Columbus Blue Jackets? "
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"opponent\"='Columbus Blue Jackets';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16884579_1\" (\n \"country\" text,\n \"name\" text,\n \"network\" text,\n \"premiere\" text,\n \"host_s\" text,\n \"judges\" text,\n \"seasons_and_winners\" text\n);\n\nQuestion: Name the network for dr\u00e9 steemans ann van elsen"
},
{
"role": "assistant",
"content": "SELECT \"network\" FROM \"table1_16884579_1\" WHERE \"host_s\"='Dr\u00e9 Steemans Ann Van Elsen';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16884579_1\" (\n \"country\" text,\n \"name\" text,\n \"network\" text,\n \"premiere\" text,\n \"host_s\" text,\n \"judges\" text,\n \"seasons_and_winners\" text\n);\n\nQuestion: Name the seasons and winners that airs 28 january 2007"
},
{
"role": "assistant",
"content": "SELECT \"seasons_and_winners\" FROM \"table1_16884579_1\" WHERE \"premiere\"='28 January 2007';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16884579_1\" (\n \"country\" text,\n \"name\" text,\n \"network\" text,\n \"premiere\" text,\n \"host_s\" text,\n \"judges\" text,\n \"seasons_and_winners\" text\n);\n\nQuestion: Name the host for prime"
},
{
"role": "assistant",
"content": "SELECT \"host_s\" FROM \"table1_16884579_1\" WHERE \"network\"='Prime';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16884579_1\" (\n \"country\" text,\n \"name\" text,\n \"network\" text,\n \"premiere\" text,\n \"host_s\" text,\n \"judges\" text,\n \"seasons_and_winners\" text\n);\n\nQuestion: Name the number of judges for dr\u00e9 steemans ann van elsen"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"judges\") FROM \"table1_16884579_1\" WHERE \"host_s\"='Dr\u00e9 Steemans Ann Van Elsen';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canada\" (\n \"team_name_affiliation\" text,\n \"year_started\" real,\n \"number_of_cars\" real,\n \"current_car\" text,\n \"car_num\" text,\n \"website\" text\n);\n\nQuestion: Name the website for car number of 92"
},
{
"role": "assistant",
"content": "SELECT \"website\" FROM \"canada\" WHERE \"car_num\"='92';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canada\" (\n \"team_name_affiliation\" text,\n \"year_started\" real,\n \"number_of_cars\" real,\n \"current_car\" text,\n \"car_num\" text,\n \"website\" text\n);\n\nQuestion: Name the year started where car number is 55"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year_started\") FROM \"canada\" WHERE \"car_num\"='55';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canada\" (\n \"team_name_affiliation\" text,\n \"year_started\" real,\n \"number_of_cars\" real,\n \"current_car\" text,\n \"car_num\" text,\n \"website\" text\n);\n\nQuestion: Name the car number for 1997"
},
{
"role": "assistant",
"content": "SELECT \"car_num\" FROM \"canada\" WHERE \"year_started\"=1997;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demography\" (\n \"religion\" text,\n \"suriname\" text,\n \"paramaribo\" text,\n \"wanica\" text,\n \"nickerie\" text,\n \"coronie\" text,\n \"saramacca\" text,\n \"commewijne\" text,\n \"marowijne\" text,\n \"para\" text,\n \"brokopondo\" text,\n \"sipaliwini\" text\n);\n\nQuestion: Name the nickerie for marowijne being 4.7%"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"nickerie\") FROM \"demography\" WHERE \"marowijne\"='4.7%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demography\" (\n \"religion\" text,\n \"suriname\" text,\n \"paramaribo\" text,\n \"wanica\" text,\n \"nickerie\" text,\n \"coronie\" text,\n \"saramacca\" text,\n \"commewijne\" text,\n \"marowijne\" text,\n \"para\" text,\n \"brokopondo\" text,\n \"sipaliwini\" text\n);\n\nQuestion: Name the coronie for marowijne being 6.8%"
},
{
"role": "assistant",
"content": "SELECT \"coronie\" FROM \"demography\" WHERE \"marowijne\"='6.8%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demography\" (\n \"religion\" text,\n \"suriname\" text,\n \"paramaribo\" text,\n \"wanica\" text,\n \"nickerie\" text,\n \"coronie\" text,\n \"saramacca\" text,\n \"commewijne\" text,\n \"marowijne\" text,\n \"para\" text,\n \"brokopondo\" text,\n \"sipaliwini\" text\n);\n\nQuestion: Name the para for 1.5% commewijne"
},
{
"role": "assistant",
"content": "SELECT \"para\" FROM \"demography\" WHERE \"commewijne\"='1.5%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" real,\n \"class\" text,\n \"motorcycle\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"podiums\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"points\" text,\n \"placement\" text\n);\n\nQuestion: Name the least amount of races for 2 poles"
},
{
"role": "assistant",
"content": "SELECT MIN(\"races\") FROM \"by_season\" WHERE \"poles\"=2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" real,\n \"class\" text,\n \"motorcycle\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"podiums\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"points\" text,\n \"placement\" text\n);\n\nQuestion: Name the motorcycle for season 2012"
},
{
"role": "assistant",
"content": "SELECT \"motorcycle\" FROM \"by_season\" WHERE \"season\"=2012;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" real,\n \"class\" text,\n \"motorcycle\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"podiums\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"points\" text,\n \"placement\" text\n);\n\nQuestion: Name the number of flaps for 63 points "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"f_laps\") FROM \"by_season\" WHERE \"points\"='63';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" real,\n \"class\" text,\n \"motorcycle\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"podiums\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"points\" text,\n \"placement\" text\n);\n\nQuestion: Name the least flaps"
},
{
"role": "assistant",
"content": "SELECT MIN(\"f_laps\") FROM \"by_season\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"returning\" (\n \"player\" text,\n \"gp\" real,\n \"k_ret\" real,\n \"kr_yds\" real,\n \"kr_avg\" text,\n \"kr_td\" real,\n \"kr_lg\" real,\n \"p_ret\" real,\n \"pr_yds\" real,\n \"pr_avg\" text,\n \"pr_td\" real,\n \"pr_lg\" real,\n \"mfg_ret\" real,\n \"mfg_yds\" real,\n \"mfg_avg\" text,\n \"mfg_lg\" real,\n \"mfg_td\" real\n);\n\nQuestion: How many p.ret are there when kr avg is 11.3 ? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"p_ret\") FROM \"returning\" WHERE \"kr_avg\"='11.3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"returning\" (\n \"player\" text,\n \"gp\" real,\n \"k_ret\" real,\n \"kr_yds\" real,\n \"kr_avg\" text,\n \"kr_td\" real,\n \"kr_lg\" real,\n \"p_ret\" real,\n \"pr_yds\" real,\n \"pr_avg\" text,\n \"pr_td\" real,\n \"pr_lg\" real,\n \"mfg_ret\" real,\n \"mfg_yds\" real,\n \"mfg_avg\" text,\n \"mfg_lg\" real,\n \"mfg_td\" real\n);\n\nQuestion: What is the kr td when mfg lg is 64?"
},
{
"role": "assistant",
"content": "SELECT \"kr_td\" FROM \"returning\" WHERE \"mfg_lg\"=64;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"returning\" (\n \"player\" text,\n \"gp\" real,\n \"k_ret\" real,\n \"kr_yds\" real,\n \"kr_avg\" text,\n \"kr_td\" real,\n \"kr_lg\" real,\n \"p_ret\" real,\n \"pr_yds\" real,\n \"pr_avg\" text,\n \"pr_td\" real,\n \"pr_lg\" real,\n \"mfg_ret\" real,\n \"mfg_yds\" real,\n \"mfg_avg\" text,\n \"mfg_lg\" real,\n \"mfg_td\" real\n);\n\nQuestion: Who's average is 24.8?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"returning\" WHERE \"kr_avg\"='24.8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"returning\" (\n \"player\" text,\n \"gp\" real,\n \"k_ret\" real,\n \"kr_yds\" real,\n \"kr_avg\" text,\n \"kr_td\" real,\n \"kr_lg\" real,\n \"p_ret\" real,\n \"pr_yds\" real,\n \"pr_avg\" text,\n \"pr_td\" real,\n \"pr_lg\" real,\n \"mfg_ret\" real,\n \"mfg_yds\" real,\n \"mfg_avg\" text,\n \"mfg_lg\" real,\n \"mfg_td\" real\n);\n\nQuestion: What is the pr avg, when kr lg is 49?"
},
{
"role": "assistant",
"content": "SELECT \"pr_avg\" FROM \"returning\" WHERE \"kr_lg\"=49;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"municipalities\" (\n \"municipality\" text,\n \"income_class\" text,\n \"district\" text,\n \"population_2010\" real,\n \"area_km\" real\n);\n\nQuestion: what is the population where municipality is san jacinto?"
},
{
"role": "assistant",
"content": "SELECT \"population_2010\" FROM \"municipalities\" WHERE \"municipality\"='San Jacinto';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"municipalities\" (\n \"municipality\" text,\n \"income_class\" text,\n \"district\" text,\n \"population_2010\" real,\n \"area_km\" real\n);\n\nQuestion: what is the income class for area 75?"
},
{
"role": "assistant",
"content": "SELECT \"income_class\" FROM \"municipalities\" WHERE \"area_km\"=75;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"municipalities\" (\n \"municipality\" text,\n \"income_class\" text,\n \"district\" text,\n \"population_2010\" real,\n \"area_km\" real\n);\n\nQuestion: what is th area where the municipaity is labrador?"
},
{
"role": "assistant",
"content": "SELECT \"area_km\" FROM \"municipalities\" WHERE \"municipality\"='Labrador';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"municipalities\" (\n \"municipality\" text,\n \"income_class\" text,\n \"district\" text,\n \"population_2010\" real,\n \"area_km\" real\n);\n\nQuestion: what is the municipality where the area is 73?"
},
{
"role": "assistant",
"content": "SELECT \"municipality\" FROM \"municipalities\" WHERE \"area_km\"=73;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"riders\" (\n \"position\" real,\n \"driver_passenger\" text,\n \"equipment\" text,\n \"bike_no\" real,\n \"points\" real\n);\n\nQuestion: Name the equipment for bike number 6"
},
{
"role": "assistant",
"content": "SELECT \"equipment\" FROM \"riders\" WHERE \"bike_no\"=6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"riders\" (\n \"position\" real,\n \"driver_passenger\" text,\n \"equipment\" text,\n \"bike_no\" real,\n \"points\" real\n);\n\nQuestion: Name the driver passenger for 394 points"
},
{
"role": "assistant",
"content": "SELECT \"driver_passenger\" FROM \"riders\" WHERE \"points\"=394;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"riders\" (\n \"position\" real,\n \"driver_passenger\" text,\n \"equipment\" text,\n \"bike_no\" real,\n \"points\" real\n);\n\nQuestion: Name the equipment for bike number being 3"
},
{
"role": "assistant",
"content": "SELECT \"equipment\" FROM \"riders\" WHERE \"bike_no\"=3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1694492_2\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: In district New York 10th, what was the reason for change?"
},
{
"role": "assistant",
"content": "SELECT \"reason_for_change\" FROM \"table1_1694492_2\" WHERE \"district\"='New York 10th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1694505_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: In the district Wisconsin 2nd, what was the reason for change?"
},
{
"role": "assistant",
"content": "SELECT \"reason_for_change\" FROM \"table1_1694505_4\" WHERE \"district\"='Wisconsin 2nd';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sterilization_operations_by_age_date\" (\n \"date_of_sterilization\" text,\n \"age_10_19\" real,\n \"age_20_29\" real,\n \"age_30_39\" real,\n \"age_40_49\" real,\n \"age_50_59\" real,\n \"age_unknown\" real,\n \"total\" real\n);\n\nQuestion: Name the least age 30-39 where age 20-29 is 593"
},
{
"role": "assistant",
"content": "SELECT MIN(\"age_30_39\") FROM \"sterilization_operations_by_age_date\" WHERE \"age_20_29\"=593;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sterilization_operations_by_age_date\" (\n \"date_of_sterilization\" text,\n \"age_10_19\" real,\n \"age_20_29\" real,\n \"age_30_39\" real,\n \"age_40_49\" real,\n \"age_50_59\" real,\n \"age_unknown\" real,\n \"total\" real\n);\n\nQuestion: Name the least age 40-49"
},
{
"role": "assistant",
"content": "SELECT MIN(\"age_40_49\") FROM \"sterilization_operations_by_age_date\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sterilization_operations_by_age_date\" (\n \"date_of_sterilization\" text,\n \"age_10_19\" real,\n \"age_20_29\" real,\n \"age_30_39\" real,\n \"age_40_49\" real,\n \"age_50_59\" real,\n \"age_unknown\" real,\n \"total\" real\n);\n\nQuestion: Name the age 30-39 and age 10-19 380"
},
{
"role": "assistant",
"content": "SELECT \"age_30_39\" FROM \"sterilization_operations_by_age_date\" WHERE \"age_10_19\"=380;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" text,\n \"date\" text,\n \"at_vs\" text,\n \"opponent\" text,\n \"score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the score for number 4"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"num\"='4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"religious_group_breakdown\" (\n \"religion\" text,\n \"chester\" text,\n \"congleton\" text,\n \"crewe_and_nantwich\" text,\n \"ellesmere_port_and_neston\" text,\n \"macclesfield\" text,\n \"vale_royal\" text,\n \"total\" text\n);\n\nQuestion: How many numbers were recorded for Chester when the religion was Hindu?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"chester\") FROM \"religious_group_breakdown\" WHERE \"religion\"='Hindu';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pga_tour_results\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"best_finish\" text,\n \"earnings\" real,\n \"money_list_rank\" text\n);\n\nQuestion: what was Casey Martin's minimum yearly earnings?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"earnings\") FROM \"pga_tour_results\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pga_tour_results\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"best_finish\" text,\n \"earnings\" real,\n \"money_list_rank\" text\n);\n\nQuestion: when Casey Martin's best finish was t-65, where did he land in the money list rankings?"
},
{
"role": "assistant",
"content": "SELECT \"money_list_rank\" FROM \"pga_tour_results\" WHERE \"best_finish\"='T-65';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pga_tour_results\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"best_finish\" text,\n \"earnings\" real,\n \"money_list_rank\" text\n);\n\nQuestion: how many times did Casey Martin win?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"wins\") FROM \"pga_tour_results\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16976547_2\" (\n \"cycle_no\" text,\n \"air_dates\" text,\n \"reward\" text,\n \"immunity\" text,\n \"eliminated\" text,\n \"vote\" text,\n \"finish\" text\n);\n\nQuestion: Name the total number of air dates for 05 cycle"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"air_dates\") FROM \"table1_16976547_2\" WHERE \"cycle_no\"='05';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16976547_2\" (\n \"cycle_no\" text,\n \"air_dates\" text,\n \"reward\" text,\n \"immunity\" text,\n \"eliminated\" text,\n \"vote\" text,\n \"finish\" text\n);\n\nQuestion: Name the vote for gigit"
},
{
"role": "assistant",
"content": "SELECT \"vote\" FROM \"table1_16976547_2\" WHERE \"eliminated\"='Gigit';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16976547_2\" (\n \"cycle_no\" text,\n \"air_dates\" text,\n \"reward\" text,\n \"immunity\" text,\n \"eliminated\" text,\n \"vote\" text,\n \"finish\" text\n);\n\nQuestion: Name the finish for patani"
},
{
"role": "assistant",
"content": "SELECT \"finish\" FROM \"table1_16976547_2\" WHERE \"eliminated\"='Patani';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16976547_2\" (\n \"cycle_no\" text,\n \"air_dates\" text,\n \"reward\" text,\n \"immunity\" text,\n \"eliminated\" text,\n \"vote\" text,\n \"finish\" text\n);\n\nQuestion: Name the total number of immunity for cycle number of 13"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"immunity\") FROM \"table1_16976547_2\" WHERE \"cycle_no\"='13';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"programs_returning_during_2000\" (\n \"show\" text,\n \"last_aired\" real,\n \"previous_network\" text,\n \"retitled_as_same\" text,\n \"new_returning_same_network\" text,\n \"returning\" text\n);\n\nQuestion: For the NBC network, what was the new/returning/same network status?"
},
{
"role": "assistant",
"content": "SELECT \"new_returning_same_network\" FROM \"programs_returning_during_2000\" WHERE \"previous_network\"='NBC';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"programs_returning_during_2000\" (\n \"show\" text,\n \"last_aired\" real,\n \"previous_network\" text,\n \"retitled_as_same\" text,\n \"new_returning_same_network\" text,\n \"returning\" text\n);\n\nQuestion: Which show was sent to syndication for its new/returning/same network."
},
{
"role": "assistant",
"content": "SELECT \"show\" FROM \"programs_returning_during_2000\" WHERE \"new_returning_same_network\"='Syndication';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"programs_returning_during_2000\" (\n \"show\" text,\n \"last_aired\" real,\n \"previous_network\" text,\n \"retitled_as_same\" text,\n \"new_returning_same_network\" text,\n \"returning\" text\n);\n\nQuestion: What is the new/returning/same network name for This Week in Baseball?"
},
{
"role": "assistant",
"content": "SELECT \"new_returning_same_network\" FROM \"programs_returning_during_2000\" WHERE \"show\"='This Week in Baseball';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"programs_returning_during_2000\" (\n \"show\" text,\n \"last_aired\" real,\n \"previous_network\" text,\n \"retitled_as_same\" text,\n \"new_returning_same_network\" text,\n \"returning\" text\n);\n\nQuestion: Which show as previously on The Family Channel?"
},
{
"role": "assistant",
"content": "SELECT \"show\" FROM \"programs_returning_during_2000\" WHERE \"previous_network\"='The Family Channel';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"programs_returning_during_2000\" (\n \"show\" text,\n \"last_aired\" real,\n \"previous_network\" text,\n \"retitled_as_same\" text,\n \"new_returning_same_network\" text,\n \"returning\" text\n);\n\nQuestion: Did the name change for the program last aired in 1958?"
},
{
"role": "assistant",
"content": "SELECT \"retitled_as_same\" FROM \"programs_returning_during_2000\" WHERE \"last_aired\"=1958;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s_nielsen_ratings\" (\n \"episode_number\" real,\n \"episode\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" text,\n \"rank_overall\" text\n);\n\nQuestion: What was the rating of the episode with an overall ranking of 190?"
},
{
"role": "assistant",
"content": "SELECT \"rating\" FROM \"u_s_nielsen_ratings\" WHERE \"rank_overall\"='190';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s_nielsen_ratings\" (\n \"episode_number\" real,\n \"episode\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" text,\n \"rank_overall\" text\n);\n\nQuestion: What was the rating of episode titled \"110\"?"
},
{
"role": "assistant",
"content": "SELECT \"rating\" FROM \"u_s_nielsen_ratings\" WHERE \"episode\"='\\\"110\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s_nielsen_ratings\" (\n \"episode_number\" real,\n \"episode\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" text,\n \"rank_overall\" text\n);\n\nQuestion: How much were the shares during the episode \"113\"?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"share\") FROM \"u_s_nielsen_ratings\" WHERE \"episode\"='\\\"113\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s_nielsen_ratings\" (\n \"episode_number\" real,\n \"episode\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" text,\n \"rank_overall\" text\n);\n\nQuestion: How many were the shares when the viewers reached 3.11 million?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"share\") FROM \"u_s_nielsen_ratings\" WHERE \"viewers_millions\"='3.11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparative_table_showing_corresponding_\" (\n \"months_in_malayalam_era\" text,\n \"in_malayalam\" text,\n \"gregorian_calendar\" text,\n \"tamil_calendar\" text,\n \"saka_era\" text,\n \"sign_of_zodiac\" text\n);\n\nQuestion: Name the saka era for malayalam \u0d2e\u0d3f\u0d25\u0d41\u0d28\u0d02"
},
{
"role": "assistant",
"content": "SELECT \"saka_era\" FROM \"comparative_table_showing_corresponding_\" WHERE \"in_malayalam\"='\u0d2e\u0d3f\u0d25\u0d41\u0d28\u0d02';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparative_table_showing_corresponding_\" (\n \"months_in_malayalam_era\" text,\n \"in_malayalam\" text,\n \"gregorian_calendar\" text,\n \"tamil_calendar\" text,\n \"saka_era\" text,\n \"sign_of_zodiac\" text\n);\n\nQuestion: Name the months in the malayalam era for \u0d15\u0d41\u0d02\u0d2d\u0d02"
},
{
"role": "assistant",
"content": "SELECT \"months_in_malayalam_era\" FROM \"comparative_table_showing_corresponding_\" WHERE \"in_malayalam\"='\u0d15\u0d41\u0d02\u0d2d\u0d02';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparative_table_showing_corresponding_\" (\n \"months_in_malayalam_era\" text,\n \"in_malayalam\" text,\n \"gregorian_calendar\" text,\n \"tamil_calendar\" text,\n \"saka_era\" text,\n \"sign_of_zodiac\" text\n);\n\nQuestion: Name the sign of zodiac for chithirai"
},
{
"role": "assistant",
"content": "SELECT \"sign_of_zodiac\" FROM \"comparative_table_showing_corresponding_\" WHERE \"tamil_calendar\"='Chithirai';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparative_table_showing_corresponding_\" (\n \"months_in_malayalam_era\" text,\n \"in_malayalam\" text,\n \"gregorian_calendar\" text,\n \"tamil_calendar\" text,\n \"saka_era\" text,\n \"sign_of_zodiac\" text\n);\n\nQuestion: Name the saka era for sign of zodiac being pisces"
},
{
"role": "assistant",
"content": "SELECT \"saka_era\" FROM \"comparative_table_showing_corresponding_\" WHERE \"sign_of_zodiac\"='Pisces';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparative_table_showing_corresponding_\" (\n \"months_in_malayalam_era\" text,\n \"in_malayalam\" text,\n \"gregorian_calendar\" text,\n \"tamil_calendar\" text,\n \"saka_era\" text,\n \"sign_of_zodiac\" text\n);\n\nQuestion: Name the number of gregorian calenda rof gemini"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"gregorian_calendar\") FROM \"comparative_table_showing_corresponding_\" WHERE \"sign_of_zodiac\"='Gemini';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" 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: For High Assists of Raymond Felton (12), who were the High rebounds?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"high_assists\"='Raymond Felton (12)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" 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: On what date was the team Philadelphia?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"team\"='Philadelphia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" 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 was the high rebound for the high assists of d. j. augustin (8)?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"high_assists\"='D. J. Augustin (8)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" 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 final score of the game with gerald wallace (14) as the High Rebound?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"high_rebounds\"='Gerald Wallace (14)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" 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 final score in game 15? "
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"game\"=15;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" 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 had the most assists and how many did they have in the game against Miami? "
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"team\"='Miami';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" 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 location attendance for game 55"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"game\"=55;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" 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 got the game high rebounds in game 46?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"game\"=46;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" 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 scores are listed for game 37?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"score\") FROM \"game_log\" WHERE \"game\"=37;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" 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 date was the opposing team Milwaukee?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"team\"='Milwaukee';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mean_free_path_in_kinetic_theory\" (\n \"vacuum_range\" text,\n \"pressure_in_h_pa_mbar\" text,\n \"molecules_cm_3\" text,\n \"molecules_m_3\" text,\n \"mean_free_path\" text\n);\n\nQuestion: What is the pressure in ultra high vacuum?"
},
{
"role": "assistant",
"content": "SELECT \"pressure_in_h_pa_mbar\" FROM \"mean_free_path_in_kinetic_theory\" WHERE \"vacuum_range\"='Ultra high vacuum';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ratings\" (\n \"episode_number_production_number\" text,\n \"title\" text,\n \"sydney\" real,\n \"melbourne\" real,\n \"brisbane\" real,\n \"adelaide\" real,\n \"perth\" real,\n \"total\" real,\n \"weekly_rank\" text,\n \"nightly_rank\" text\n);\n\nQuestion: what is the nightly rank where the episode number production number is 06 1-06?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"nightly_rank\") FROM \"ratings\" WHERE \"episode_number_production_number\"='06 1-06';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ratings\" (\n \"episode_number_production_number\" text,\n \"title\" text,\n \"sydney\" real,\n \"melbourne\" real,\n \"brisbane\" real,\n \"adelaide\" real,\n \"perth\" real,\n \"total\" real,\n \"weekly_rank\" text,\n \"nightly_rank\" text\n);\n\nQuestion: what is the number of weekly rank where the total is 1980000?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"weekly_rank\") FROM \"ratings\" WHERE \"total\"=1980000;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" 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 assists for 70 game"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"game\"=70;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"subdivisions\" (\n \"no\" real,\n \"hanyu\" text,\n \"tongyong\" text,\n \"pe_h_e_j\" text,\n \"chinese\" text,\n \"area_km\" text,\n \"no_of_villages\" real,\n \"population_2010\" real\n);\n\nQuestion: Name the pe\u030dh-\u014de-j\u012b for \u524d\u91d1\u5340"
},
{
"role": "assistant",
"content": "SELECT \"pe_h_e_j\" FROM \"subdivisions\" WHERE \"chinese\"='\u524d\u91d1\u5340';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"subdivisions\" (\n \"no\" real,\n \"hanyu\" text,\n \"tongyong\" text,\n \"pe_h_e_j\" text,\n \"chinese\" text,\n \"area_km\" text,\n \"no_of_villages\" real,\n \"population_2010\" real\n);\n\nQuestion: Name the number of villages for mituo"
},
{
"role": "assistant",
"content": "SELECT \"no_of_villages\" FROM \"subdivisions\" WHERE \"hanyu\"='Mituo';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"subdivisions\" (\n \"no\" real,\n \"hanyu\" text,\n \"tongyong\" text,\n \"pe_h_e_j\" text,\n \"chinese\" text,\n \"area_km\" text,\n \"no_of_villages\" real,\n \"population_2010\" real\n);\n\nQuestion: Name the number where population 2010 is 171906"
},
{
"role": "assistant",
"content": "SELECT \"no\" FROM \"subdivisions\" WHERE \"population_2010\"=171906;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"subdivisions\" (\n \"no\" real,\n \"hanyu\" text,\n \"tongyong\" text,\n \"pe_h_e_j\" text,\n \"chinese\" text,\n \"area_km\" text,\n \"no_of_villages\" real,\n \"population_2010\" real\n);\n\nQuestion: Name the tongyong for chinese of \u6e56\u5167\u5340"
},
{
"role": "assistant",
"content": "SELECT \"tongyong\" FROM \"subdivisions\" WHERE \"chinese\"='\u6e56\u5167\u5340';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"subdivisions\" (\n \"no\" real,\n \"hanyu\" text,\n \"tongyong\" text,\n \"pe_h_e_j\" text,\n \"chinese\" text,\n \"area_km\" text,\n \"no_of_villages\" real,\n \"population_2010\" real\n);\n\nQuestion: Name the tongyong for qiaotou"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"tongyong\") FROM \"subdivisions\" WHERE \"hanyu\"='Qiaotou';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1701371_2\" (\n \"graphics_mode\" real,\n \"char_cells\" text,\n \"pixels\" text,\n \"hardware_colours\" real,\n \"used_kb\" real,\n \"map\" text,\n \"type\" text\n);\n\nQuestion: How many pixels would be found in a hardware colour of 8?"
},
{
"role": "assistant",
"content": "SELECT \"pixels\" FROM \"table1_1701371_2\" WHERE \"hardware_colours\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1701371_2\" (\n \"graphics_mode\" real,\n \"char_cells\" text,\n \"pixels\" text,\n \"hardware_colours\" real,\n \"used_kb\" real,\n \"map\" text,\n \"type\" text\n);\n\nQuestion: If hardware colours is 8 what would the char cells be?"
},
{
"role": "assistant",
"content": "SELECT \"char_cells\" FROM \"table1_1701371_2\" WHERE \"hardware_colours\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17025328_1\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: Name the year for le confessional"
},
{
"role": "assistant",
"content": "SELECT \"year_ceremony\" FROM \"table1_17025328_1\" WHERE \"original_title\"='Le Confessional';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17025328_1\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: Name the year for les portes tournantes"
},
{
"role": "assistant",
"content": "SELECT \"year_ceremony\" FROM \"table1_17025328_1\" WHERE \"original_title\"='Les portes tournantes';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"province\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: How many values are in the PF cell when Jennifer Jones is skip?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"pf\") FROM \"standings\" WHERE \"skip\"='Jennifer Jones';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"province\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: How many points for did the team with Shannon Kleibrink as skip score?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"pf\") FROM \"standings\" WHERE \"skip\"='Shannon Kleibrink';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"province\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: Of the teams that lost 5 games, what is the highest number of wins?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"w\") FROM \"standings\" WHERE \"l\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"province\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: What is the highest number of ends lost?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"ends_lost\") FROM \"standings\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"province\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: How many values are in the ends won cell corresponding to a PA of 39?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"ends_won\") FROM \"standings\" WHERE \"pa\"=39;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"province\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: When the skip is Glenn Howard, what the minimum PF?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"pf\") FROM \"standings\" WHERE \"skip\"='Glenn Howard';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"province\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: Who was Alberta's skip when the shot pct was 88?"
},
{
"role": "assistant",
"content": "SELECT \"skip\" FROM \"standings\" WHERE \"shot_pct\"=88 AND \"province\"='Alberta';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"province\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: What is the top Points Allowed?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"pa\") FROM \"standings\";"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.