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_12588029_3\" (\n \"year\" real,\n \"song_title\" text,\n \"artist\" text,\n \"master_recording\" text,\n \"release_date\" text,\n \"single_pack\" text\n);\n\nQuestion: How many master recordings are there for \"Famous for Nothing\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"master_recording\") FROM \"table1_12588029_3\" WHERE \"song_title\"='\\\"Famous For Nothing\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"full_time_teams\" (\n \"team\" text,\n \"car_s\" text,\n \"num\" real,\n \"driver_s\" text,\n \"primary_sponsor_s\" text,\n \"owner_s\" text,\n \"crew_chief\" text\n);\n\nQuestion: What is the biggest number of the team who's owned by Jeff Gordon?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"num\") FROM \"full_time_teams\" WHERE \"owner_s\"='Jeff Gordon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"full_time_teams\" (\n \"team\" text,\n \"car_s\" text,\n \"num\" real,\n \"driver_s\" text,\n \"primary_sponsor_s\" text,\n \"owner_s\" text,\n \"crew_chief\" text\n);\n\nQuestion: What is the driver for the team whose primary sponsor is Quicken Loans / Haas Automation?"
},
{
"role": "assistant",
"content": "SELECT \"driver_s\" FROM \"full_time_teams\" WHERE \"primary_sponsor_s\"='Quicken Loans / Haas Automation';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"full_time_teams\" (\n \"team\" text,\n \"car_s\" text,\n \"num\" real,\n \"driver_s\" text,\n \"primary_sponsor_s\" text,\n \"owner_s\" text,\n \"crew_chief\" text\n);\n\nQuestion: What's the total number of crew chiefs of the Fas Lane Racing team?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"crew_chief\") FROM \"full_time_teams\" WHERE \"team\"='FAS Lane Racing';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"loans\" (\n \"no\" real,\n \"p\" text,\n \"name\" text,\n \"country\" text,\n \"age\" real,\n \"loan_club\" text,\n \"started\" text,\n \"ended\" text,\n \"start_source\" text,\n \"end_source\" text\n);\n\nQuestion: What date did De Vries start?"
},
{
"role": "assistant",
"content": "SELECT \"started\" FROM \"loans\" WHERE \"name\"='de Vries';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"loans\" (\n \"no\" real,\n \"p\" text,\n \"name\" text,\n \"country\" text,\n \"age\" real,\n \"loan_club\" text,\n \"started\" text,\n \"ended\" text,\n \"start_source\" text,\n \"end_source\" text\n);\n\nQuestion: What is the number for De Vries?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"no\") FROM \"loans\" WHERE \"name\"='de Vries';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"loans\" (\n \"no\" real,\n \"p\" text,\n \"name\" text,\n \"country\" text,\n \"age\" real,\n \"loan_club\" text,\n \"started\" text,\n \"ended\" text,\n \"start_source\" text,\n \"end_source\" text\n);\n\nQuestion: What was the loan club when Derry played?"
},
{
"role": "assistant",
"content": "SELECT \"loan_club\" FROM \"loans\" WHERE \"name\"='Derry';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"loans\" (\n \"no\" real,\n \"p\" text,\n \"name\" text,\n \"country\" text,\n \"age\" real,\n \"loan_club\" text,\n \"started\" text,\n \"ended\" text,\n \"start_source\" text,\n \"end_source\" text\n);\n\nQuestion: Who was the loan club for the Westlake game?"
},
{
"role": "assistant",
"content": "SELECT \"loan_club\" FROM \"loans\" WHERE \"name\"='Westlake';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"loans\" (\n \"no\" real,\n \"p\" text,\n \"name\" text,\n \"country\" text,\n \"age\" real,\n \"loan_club\" text,\n \"started\" text,\n \"ended\" text,\n \"start_source\" text,\n \"end_source\" text\n);\n\nQuestion: What was the position (P) for Clapham?"
},
{
"role": "assistant",
"content": "SELECT \"p\" FROM \"loans\" WHERE \"name\"='Clapham';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members_of_the_baltimore_county_\" (\n \"district\" text,\n \"counties_represented\" text,\n \"delegate\" text,\n \"party\" text,\n \"first_elected\" real,\n \"committee\" text\n);\n\nQuestion: What district is represented by a Republican Appropriations Committee?"
},
{
"role": "assistant",
"content": "SELECT \"district\" FROM \"current_members_of_the_baltimore_county_\" WHERE \"party\"='Republican' AND \"committee\"='Appropriations';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members_of_the_baltimore_county_\" (\n \"district\" text,\n \"counties_represented\" text,\n \"delegate\" text,\n \"party\" text,\n \"first_elected\" real,\n \"committee\" text\n);\n\nQuestion: What are the districts represented by the Democratic Party and a Committee in Economic Matters?"
},
{
"role": "assistant",
"content": "SELECT \"district\" FROM \"current_members_of_the_baltimore_county_\" WHERE \"committee\"='Economic Matters' AND \"party\"='Democratic';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12707313_2\" (\n \"pos\" real,\n \"manufacturer\" text,\n \"seasons\" text,\n \"starts\" real,\n \"wins\" real,\n \"sole_supplier\" real,\n \"first_win\" text,\n \"last_win\" text,\n \"drivers\" real,\n \"constr\" real\n);\n\nQuestion: Name the number of constr with the first win at the 1978 brazilian grand prix"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"constr\") FROM \"table1_12707313_2\" WHERE \"first_win\"='1978 Brazilian Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12707313_2\" (\n \"pos\" real,\n \"manufacturer\" text,\n \"seasons\" text,\n \"starts\" real,\n \"wins\" real,\n \"sole_supplier\" real,\n \"first_win\" text,\n \"last_win\" text,\n \"drivers\" real,\n \"constr\" real\n);\n\nQuestion: What was the first win for pos 6?"
},
{
"role": "assistant",
"content": "SELECT \"first_win\" FROM \"table1_12707313_2\" WHERE \"pos\"=6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"clinical_pipeline_of_marine_pharmacology\" (\n \"clinical_status\" text,\n \"compound_name\" text,\n \"trademark\" text,\n \"marine_organism\" text,\n \"chemical_class\" text,\n \"molecular_target\" text,\n \"clinical_trials\" text,\n \"disease_area\" text\n);\n\nQuestion: What is the molecular target listed under the compounded name of hemiasterlin (e7974)"
},
{
"role": "assistant",
"content": "SELECT \"molecular_target\" FROM \"clinical_pipeline_of_marine_pharmacology\" WHERE \"compound_name\"='Hemiasterlin (E7974)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"clinical_pipeline_of_marine_pharmacology\" (\n \"clinical_status\" text,\n \"compound_name\" text,\n \"trademark\" text,\n \"marine_organism\" text,\n \"chemical_class\" text,\n \"molecular_target\" text,\n \"clinical_trials\" text,\n \"disease_area\" text\n);\n\nQuestion: What is the molecular target listed under the trademark of irvalec \u00ae"
},
{
"role": "assistant",
"content": "SELECT \"molecular_target\" FROM \"clinical_pipeline_of_marine_pharmacology\" WHERE \"trademark\"='Irvalec \u00ae';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"clinical_pipeline_of_marine_pharmacology\" (\n \"clinical_status\" text,\n \"compound_name\" text,\n \"trademark\" text,\n \"marine_organism\" text,\n \"chemical_class\" text,\n \"molecular_target\" text,\n \"clinical_trials\" text,\n \"disease_area\" text\n);\n\nQuestion: What is the compound name listed where marine organism \u03b1 is worm"
},
{
"role": "assistant",
"content": "SELECT \"compound_name\" FROM \"clinical_pipeline_of_marine_pharmacology\" WHERE \"marine_organism\"='Worm';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"clinical_pipeline_of_marine_pharmacology\" (\n \"clinical_status\" text,\n \"compound_name\" text,\n \"trademark\" text,\n \"marine_organism\" text,\n \"chemical_class\" text,\n \"molecular_target\" text,\n \"clinical_trials\" text,\n \"disease_area\" text\n);\n\nQuestion: How many compound names list a chemical class of depsipeptide and a clinical trials \u03b2 value of 1/7?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"compound_name\") FROM \"clinical_pipeline_of_marine_pharmacology\" WHERE \"chemical_class\"='Depsipeptide' AND \"clinical_trials\"='1/7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"clinical_pipeline_of_marine_pharmacology\" (\n \"clinical_status\" text,\n \"compound_name\" text,\n \"trademark\" text,\n \"marine_organism\" text,\n \"chemical_class\" text,\n \"molecular_target\" text,\n \"clinical_trials\" text,\n \"disease_area\" text\n);\n\nQuestion: What is the trademark listed for the molecular target : dna-binding?"
},
{
"role": "assistant",
"content": "SELECT \"trademark\" FROM \"clinical_pipeline_of_marine_pharmacology\" WHERE \"molecular_target\"='DNA-Binding';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"clinical_pipeline_of_marine_pharmacology\" (\n \"clinical_status\" text,\n \"compound_name\" text,\n \"trademark\" text,\n \"marine_organism\" text,\n \"chemical_class\" text,\n \"molecular_target\" text,\n \"clinical_trials\" text,\n \"disease_area\" text\n);\n\nQuestion: How many trademarks list a molecular target of minor groove of dna and a clinical status value of phase i?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"trademark\") FROM \"clinical_pipeline_of_marine_pharmacology\" WHERE \"molecular_target\"='Minor Groove of DNA' AND \"clinical_status\"='Phase I';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12722302_3\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"bens_location\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What's the number of the episode directed by Tucker Gates?"
},
{
"role": "assistant",
"content": "SELECT \"no\" FROM \"table1_12722302_3\" WHERE \"directed_by\"='Tucker Gates';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12722302_3\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"bens_location\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who is the director of the episode titled \"Cheyenne, WY\"?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_12722302_3\" WHERE \"title\"='\\\"Cheyenne, WY\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12722302_2\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"bens_location\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What was the original air date for the episode with 3.90 u.s. viewers (millions)?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_12722302_2\" WHERE \"u_s_viewers_million\"='3.90';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12722302_2\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"bens_location\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the original air date for no. 2?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_12722302_2\" WHERE \"no\"=2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12722302_2\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"bens_location\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who directed \"hot and bothered\"?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_12722302_2\" WHERE \"title\"='\\\"Hot and Bothered\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12722302_2\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"bens_location\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who directed the episode with 3.19 million u.s. viewers?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_12722302_2\" WHERE \"u_s_viewers_million\"='3.19';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12740151_8\" (\n \"model_number\" text,\n \"clock_speed\" text,\n \"l2\" text,\n \"l3\" text,\n \"fsb_speed\" text,\n \"multiplier\" text,\n \"cores\" real,\n \"threads_per_core\" real,\n \"voltage\" text,\n \"tdp_w\" text,\n \"socket\" text,\n \"release_date\" text,\n \"price_usd\" text\n);\n\nQuestion: What's the price (in USD) of the model whose L3 is 18 mb?"
},
{
"role": "assistant",
"content": "SELECT \"price_usd\" FROM \"table1_12740151_8\" WHERE \"l3\"='18 MB';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12740151_8\" (\n \"model_number\" text,\n \"clock_speed\" text,\n \"l2\" text,\n \"l3\" text,\n \"fsb_speed\" text,\n \"multiplier\" text,\n \"cores\" real,\n \"threads_per_core\" real,\n \"voltage\" text,\n \"tdp_w\" text,\n \"socket\" text,\n \"release_date\" text,\n \"price_usd\" text\n);\n\nQuestion: What's the clock speed of the model that costs $910?"
},
{
"role": "assistant",
"content": "SELECT \"clock_speed\" FROM \"table1_12740151_8\" WHERE \"price_usd\"='$910';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goalscorers\" (\n \"player\" text,\n \"league\" real,\n \"scottish_cup\" real,\n \"league_cup\" real,\n \"challenge_cup\" real,\n \"total\" real\n);\n\nQuestion: what is the least amount in the tournament?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"league_cup\") FROM \"goalscorers\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goalscorers\" (\n \"player\" text,\n \"league\" real,\n \"scottish_cup\" real,\n \"league_cup\" real,\n \"challenge_cup\" real,\n \"total\" real\n);\n\nQuestion: what is the tourney where the winner is kevin mckinlay?"
},
{
"role": "assistant",
"content": "SELECT \"league_cup\" FROM \"goalscorers\" WHERE \"player\"='Kevin McKinlay';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"greco_roman_tradition\" (\n \"day_see_irregularities\" text,\n \"sunday_s_l_sun\" text,\n \"monday_luna_moon\" text,\n \"tuesday_mars_mars\" text,\n \"wednesday_mercurius_mercury\" text,\n \"thursday_iuppiter_jupiter\" text,\n \"friday_venus_venus\" text,\n \"saturday_saturnus_saturn\" text\n);\n\nQuestion: what's the\u00a0thursday iuppiter (jupiter)\u00a0with\u00a0tuesday mars (mars)\u00a0being marter\u00ec"
},
{
"role": "assistant",
"content": "SELECT \"thursday_iuppiter_jupiter\" FROM \"greco_roman_tradition\" WHERE \"tuesday_mars_mars\"='Marter\u00ec';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"greco_roman_tradition\" (\n \"day_see_irregularities\" text,\n \"sunday_s_l_sun\" text,\n \"monday_luna_moon\" text,\n \"tuesday_mars_mars\" text,\n \"wednesday_mercurius_mercury\" text,\n \"thursday_iuppiter_jupiter\" text,\n \"friday_venus_venus\" text,\n \"saturday_saturnus_saturn\" text\n);\n\nQuestion: what's the\u00a0sunday s\u014dl (sun)\u00a0with\u00a0friday venus (venus)\u00a0being vernes"
},
{
"role": "assistant",
"content": "SELECT \"sunday_s_l_sun\" FROM \"greco_roman_tradition\" WHERE \"friday_venus_venus\"='vernes';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"greco_roman_tradition\" (\n \"day_see_irregularities\" text,\n \"sunday_s_l_sun\" text,\n \"monday_luna_moon\" text,\n \"tuesday_mars_mars\" text,\n \"wednesday_mercurius_mercury\" text,\n \"thursday_iuppiter_jupiter\" text,\n \"friday_venus_venus\" text,\n \"saturday_saturnus_saturn\" text\n);\n\nQuestion: what's the\u00a0thursday iuppiter (jupiter)\u00a0with\u00a0friday venus (venus)\u00a0being vendredi"
},
{
"role": "assistant",
"content": "SELECT \"thursday_iuppiter_jupiter\" FROM \"greco_roman_tradition\" WHERE \"friday_venus_venus\"='vendredi';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"greco_roman_tradition\" (\n \"day_see_irregularities\" text,\n \"sunday_s_l_sun\" text,\n \"monday_luna_moon\" text,\n \"tuesday_mars_mars\" text,\n \"wednesday_mercurius_mercury\" text,\n \"thursday_iuppiter_jupiter\" text,\n \"friday_venus_venus\" text,\n \"saturday_saturnus_saturn\" text\n);\n\nQuestion: what's the\u00a0tuesday mars (mars)\u00a0with\u00a0day: (see irregularities )\u00a0being ancient greek"
},
{
"role": "assistant",
"content": "SELECT \"tuesday_mars_mars\" FROM \"greco_roman_tradition\" WHERE \"day_see_irregularities\"='Ancient Greek';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"greco_roman_tradition\" (\n \"day_see_irregularities\" text,\n \"sunday_s_l_sun\" text,\n \"monday_luna_moon\" text,\n \"tuesday_mars_mars\" text,\n \"wednesday_mercurius_mercury\" text,\n \"thursday_iuppiter_jupiter\" text,\n \"friday_venus_venus\" text,\n \"saturday_saturnus_saturn\" text\n);\n\nQuestion: what's the\u00a0saturday saturnus ( saturn)\u00a0with\u00a0wednesday mercurius (mercury)\u00a0being mercuridi"
},
{
"role": "assistant",
"content": "SELECT \"saturday_saturnus_saturn\" FROM \"greco_roman_tradition\" WHERE \"wednesday_mercurius_mercury\"='Mercuridi';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"greco_roman_tradition\" (\n \"day_see_irregularities\" text,\n \"sunday_s_l_sun\" text,\n \"monday_luna_moon\" text,\n \"tuesday_mars_mars\" text,\n \"wednesday_mercurius_mercury\" text,\n \"thursday_iuppiter_jupiter\" text,\n \"friday_venus_venus\" text,\n \"saturday_saturnus_saturn\" text\n);\n\nQuestion: what's the\u00a0thursday iuppiter (jupiter)\u00a0with\u00a0saturday saturnus ( saturn)\u00a0being jesarn"
},
{
"role": "assistant",
"content": "SELECT \"thursday_iuppiter_jupiter\" FROM \"greco_roman_tradition\" WHERE \"saturday_saturnus_saturn\"='Jesarn';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison\" (\n \"sequencer\" text,\n \"ion_torrent_pgm\" text,\n \"454_gs_flx\" text,\n \"hi_seq_2000\" text,\n \"so_li_dv4\" text,\n \"pac_bio\" text,\n \"sanger_3730xl\" text\n);\n\nQuestion: What is the sequencer when ion torrent pgm is 200-400 bp?"
},
{
"role": "assistant",
"content": "SELECT \"sequencer\" FROM \"comparison\" WHERE \"ion_torrent_pgm\"='200-400 bp';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison\" (\n \"sequencer\" text,\n \"ion_torrent_pgm\" text,\n \"454_gs_flx\" text,\n \"hi_seq_2000\" text,\n \"so_li_dv4\" text,\n \"pac_bio\" text,\n \"sanger_3730xl\" text\n);\n\nQuestion: How many times was Sanger 3730xl $2400 usd?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"ion_torrent_pgm\") FROM \"comparison\" WHERE \"sanger_3730xl\"='$2400 USD';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison\" (\n \"sequencer\" text,\n \"ion_torrent_pgm\" text,\n \"454_gs_flx\" text,\n \"hi_seq_2000\" text,\n \"so_li_dv4\" text,\n \"pac_bio\" text,\n \"sanger_3730xl\" text\n);\n\nQuestion: How much was solidv4 when pacbio is $300 usd?"
},
{
"role": "assistant",
"content": "SELECT \"so_li_dv4\" FROM \"comparison\" WHERE \"pac_bio\"='$300 USD';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison\" (\n \"sequencer\" text,\n \"ion_torrent_pgm\" text,\n \"454_gs_flx\" text,\n \"hi_seq_2000\" text,\n \"so_li_dv4\" text,\n \"pac_bio\" text,\n \"sanger_3730xl\" text\n);\n\nQuestion: What is solidv4 when sequencer is data output per run?"
},
{
"role": "assistant",
"content": "SELECT \"so_li_dv4\" FROM \"comparison\" WHERE \"sequencer\"='Data output per run';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison\" (\n \"sequencer\" text,\n \"ion_torrent_pgm\" text,\n \"454_gs_flx\" text,\n \"hi_seq_2000\" text,\n \"so_li_dv4\" text,\n \"pac_bio\" text,\n \"sanger_3730xl\" text\n);\n\nQuestion: WHat is hiseq 2000 when 454 gs flx is 700 bp?"
},
{
"role": "assistant",
"content": "SELECT \"hi_seq_2000\" FROM \"comparison\" WHERE \"454_gs_flx\"='700 bp';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison\" (\n \"sequencer\" text,\n \"ion_torrent_pgm\" text,\n \"454_gs_flx\" text,\n \"hi_seq_2000\" text,\n \"so_li_dv4\" text,\n \"pac_bio\" text,\n \"sanger_3730xl\" text\n);\n\nQuestion: What is 454 gs flx when pacbio is 100-500 mb?"
},
{
"role": "assistant",
"content": "SELECT \"454_gs_flx\" FROM \"comparison\" WHERE \"pac_bio\"='100-500 Mb';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1276219_1\" (\n \"year\" real,\n \"celebrity_partner\" text,\n \"week_num\" text,\n \"dance\" text,\n \"horwood\" real,\n \"phillips\" real,\n \"goodman\" real,\n \"tonioli\" real,\n \"total\" real\n);\n\nQuestion: How was times was the dance the jive and the week # was 10?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"phillips\") FROM \"table1_1276219_1\" WHERE \"dance\"='Jive' AND \"week_num\"='10';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"days_numbered_from_monday\" (\n \"day_see_irregularities\" text,\n \"monday_first_day\" text,\n \"tuesday_second_day\" text,\n \"wednesday_third_day\" text,\n \"thursday_fourth_day\" text,\n \"friday_fifth_day\" text,\n \"saturday_sixth_day\" text,\n \"sunday_seventh_day\" text\n);\n\nQuestion: What's the Slovene word for Thursday?"
},
{
"role": "assistant",
"content": "SELECT \"thursday_fourth_day\" FROM \"days_numbered_from_monday\" WHERE \"day_see_irregularities\"='Slovene';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"days_numbered_from_monday\" (\n \"day_see_irregularities\" text,\n \"monday_first_day\" text,\n \"tuesday_second_day\" text,\n \"wednesday_third_day\" text,\n \"thursday_fourth_day\" text,\n \"friday_fifth_day\" text,\n \"saturday_sixth_day\" text,\n \"sunday_seventh_day\" text\n);\n\nQuestion: How do you say Friday in Polish?"
},
{
"role": "assistant",
"content": "SELECT \"friday_fifth_day\" FROM \"days_numbered_from_monday\" WHERE \"day_see_irregularities\"='Polish';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"days_numbered_from_monday\" (\n \"day_see_irregularities\" text,\n \"monday_first_day\" text,\n \"tuesday_second_day\" text,\n \"wednesday_third_day\" text,\n \"thursday_fourth_day\" text,\n \"friday_fifth_day\" text,\n \"saturday_sixth_day\" text,\n \"sunday_seventh_day\" text\n);\n\nQuestion: What's the Croatian word for Saturday?"
},
{
"role": "assistant",
"content": "SELECT \"saturday_sixth_day\" FROM \"days_numbered_from_monday\" WHERE \"day_see_irregularities\"='Croatian';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indian_astrology\" (\n \"day\" text,\n \"sunday_surya_the_sun\" text,\n \"monday_soma_the_moon\" text,\n \"tuesday_mangala_mars\" text,\n \"wednesday_budha_mercury\" text,\n \"thursday_guru_jupiter\" text,\n \"friday_shukra_venus\" text,\n \"saturday_shani_saturn\" text\n);\n\nQuestion: In the system where Sunday is \u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1 \u0b95\u0bbf\u0bb4\u0bae\u0bc8 ny\u0101yitru kizhamai, what is Saturday?"
},
{
"role": "assistant",
"content": "SELECT \"saturday_shani_saturn\" FROM \"indian_astrology\" WHERE \"sunday_surya_the_sun\"='\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1 \u0b95\u0bbf\u0bb4\u0bae\u0bc8 Ny\u0101yitru kizhamai';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indian_astrology\" (\n \"day\" text,\n \"sunday_surya_the_sun\" text,\n \"monday_soma_the_moon\" text,\n \"tuesday_mangala_mars\" text,\n \"wednesday_budha_mercury\" text,\n \"thursday_guru_jupiter\" text,\n \"friday_shukra_venus\" text,\n \"saturday_shani_saturn\" text\n);\n\nQuestion: In language where Wednesday is \u09ac\u09c1\u09a7\u09ac\u09be\u09b0 budhbar, what is Thursday?"
},
{
"role": "assistant",
"content": "SELECT \"thursday_guru_jupiter\" FROM \"indian_astrology\" WHERE \"wednesday_budha_mercury\"='\u09ac\u09c1\u09a7\u09ac\u09be\u09b0 Budhbar';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indian_astrology\" (\n \"day\" text,\n \"sunday_surya_the_sun\" text,\n \"monday_soma_the_moon\" text,\n \"tuesday_mangala_mars\" text,\n \"wednesday_budha_mercury\" text,\n \"thursday_guru_jupiter\" text,\n \"friday_shukra_venus\" text,\n \"saturday_shani_saturn\" text\n);\n\nQuestion: In language where Saturday is \u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf senasuraadaa, what is Tuesday?"
},
{
"role": "assistant",
"content": "SELECT \"tuesday_mangala_mars\" FROM \"indian_astrology\" WHERE \"saturday_shani_saturn\"='\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf Senasuraadaa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indian_astrology\" (\n \"day\" text,\n \"sunday_surya_the_sun\" text,\n \"monday_soma_the_moon\" text,\n \"tuesday_mangala_mars\" text,\n \"wednesday_budha_mercury\" text,\n \"thursday_guru_jupiter\" text,\n \"friday_shukra_venus\" text,\n \"saturday_shani_saturn\" text\n);\n\nQuestion: In language where Thursday is \u0628\u0631\u0633 \u0648\u0627\u0631 bres'var, what is Sunday?"
},
{
"role": "assistant",
"content": "SELECT \"sunday_surya_the_sun\" FROM \"indian_astrology\" WHERE \"thursday_guru_jupiter\"='\u0628\u0631\u0633 \u0648\u0627\u0631 Bres''var';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indian_astrology\" (\n \"day\" text,\n \"sunday_surya_the_sun\" text,\n \"monday_soma_the_moon\" text,\n \"tuesday_mangala_mars\" text,\n \"wednesday_budha_mercury\" text,\n \"thursday_guru_jupiter\" text,\n \"friday_shukra_venus\" text,\n \"saturday_shani_saturn\" text\n);\n\nQuestion: In language where Wednesday is \u0628\u0631\u06be \u0648\u0627\u0631 budh'var, what is Saturday?"
},
{
"role": "assistant",
"content": "SELECT \"saturday_shani_saturn\" FROM \"indian_astrology\" WHERE \"wednesday_budha_mercury\"='\u0628\u0631\u06be \u0648\u0627\u0631 Budh''var';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1277350_7\" (\n \"day_see_irregularities\" text,\n \"sunday_day_one\" text,\n \"monday_day_two\" text,\n \"tuesday_day_three\" text,\n \"wednesday_day_four\" text,\n \"thursday_day_five\" text,\n \"friday_day_six\" text,\n \"saturday_day_seven\" text\n);\n\nQuestion: What is saturday day seven when thursday day five is \u1210\u1219\u1235 hamus?"
},
{
"role": "assistant",
"content": "SELECT \"saturday_day_seven\" FROM \"table1_1277350_7\" WHERE \"thursday_day_five\"='\u1210\u1219\u1235 hamus';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1277350_7\" (\n \"day_see_irregularities\" text,\n \"sunday_day_one\" text,\n \"monday_day_two\" text,\n \"tuesday_day_three\" text,\n \"wednesday_day_four\" text,\n \"thursday_day_five\" text,\n \"friday_day_six\" text,\n \"saturday_day_seven\" text\n);\n\nQuestion: What is thursday day five when friday day six is \u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8 p'arask'evi?"
},
{
"role": "assistant",
"content": "SELECT \"thursday_day_five\" FROM \"table1_1277350_7\" WHERE \"friday_day_six\"='\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8 p''arask''evi';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1277350_7\" (\n \"day_see_irregularities\" text,\n \"sunday_day_one\" text,\n \"monday_day_two\" text,\n \"tuesday_day_three\" text,\n \"wednesday_day_four\" text,\n \"thursday_day_five\" text,\n \"friday_day_six\" text,\n \"saturday_day_seven\" text\n);\n\nQuestion: What is tuesday day three when thursday day five is kamis?"
},
{
"role": "assistant",
"content": "SELECT \"tuesday_day_three\" FROM \"table1_1277350_7\" WHERE \"thursday_day_five\"='Kamis';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1277350_7\" (\n \"day_see_irregularities\" text,\n \"sunday_day_one\" text,\n \"monday_day_two\" text,\n \"tuesday_day_three\" text,\n \"wednesday_day_four\" text,\n \"thursday_day_five\" text,\n \"friday_day_six\" text,\n \"saturday_day_seven\" text\n);\n\nQuestion: What is friday day six when thursday day five is \u067e\u0686\u06be\u0645\u0628\u06d2 pachhambey?"
},
{
"role": "assistant",
"content": "SELECT \"friday_day_six\" FROM \"table1_1277350_7\" WHERE \"thursday_day_five\"='\u067e\u0686\u06be\u0645\u0628\u06d2 pachhambey';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1277350_7\" (\n \"day_see_irregularities\" text,\n \"sunday_day_one\" text,\n \"monday_day_two\" text,\n \"tuesday_day_three\" text,\n \"wednesday_day_four\" text,\n \"thursday_day_five\" text,\n \"friday_day_six\" text,\n \"saturday_day_seven\" text\n);\n\nQuestion: What is friday day six when monday day two is isnin?"
},
{
"role": "assistant",
"content": "SELECT \"friday_day_six\" FROM \"table1_1277350_7\" WHERE \"monday_day_two\"='Isnin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1277350_7\" (\n \"day_see_irregularities\" text,\n \"sunday_day_one\" text,\n \"monday_day_two\" text,\n \"tuesday_day_three\" text,\n \"wednesday_day_four\" text,\n \"thursday_day_five\" text,\n \"friday_day_six\" text,\n \"saturday_day_seven\" text\n);\n\nQuestion: How many time is sunday day one is ahad?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"thursday_day_five\") FROM \"table1_1277350_7\" WHERE \"sunday_day_one\"='Ahad';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"year\" real,\n \"road_opened\" text,\n \"road_closed\" text,\n \"freight_carried_s_tonne\" real,\n \"super_b_capacity_reached_citation_needed\" text,\n \"number_of_truck_loads_north\" real\n);\n\nQuestion: What is the least amount of freight carried when the super b capacity reached was February 26?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"freight_carried_s_tonne\") FROM \"statistics\" WHERE \"super_b_capacity_reached_citation_needed\"='February 26';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"year\" real,\n \"road_opened\" text,\n \"road_closed\" text,\n \"freight_carried_s_tonne\" real,\n \"super_b_capacity_reached_citation_needed\" text,\n \"number_of_truck_loads_north\" real\n);\n\nQuestion: What is the most number of truck loads north?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"number_of_truck_loads_north\") FROM \"statistics\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"year\" real,\n \"road_opened\" text,\n \"road_closed\" text,\n \"freight_carried_s_tonne\" real,\n \"super_b_capacity_reached_citation_needed\" text,\n \"number_of_truck_loads_north\" real\n);\n\nQuestion: What is thea year the road closed April 13?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year\") FROM \"statistics\" WHERE \"road_closed\"='April 13';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"year\" real,\n \"road_opened\" text,\n \"road_closed\" text,\n \"freight_carried_s_tonne\" real,\n \"super_b_capacity_reached_citation_needed\" text,\n \"number_of_truck_loads_north\" real\n);\n\nQuestion: When was the Super B capacity reached when the number of truck loads north was 7735?"
},
{
"role": "assistant",
"content": "SELECT \"super_b_capacity_reached_citation_needed\" FROM \"statistics\" WHERE \"number_of_truck_loads_north\"=7735;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"year\" real,\n \"road_opened\" text,\n \"road_closed\" text,\n \"freight_carried_s_tonne\" real,\n \"super_b_capacity_reached_citation_needed\" text,\n \"number_of_truck_loads_north\" real\n);\n\nQuestion: When was the super b capacity reached when the freight carried s tonne was 198818?"
},
{
"role": "assistant",
"content": "SELECT \"super_b_capacity_reached_citation_needed\" FROM \"statistics\" WHERE \"freight_carried_s_tonne\"=198818;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010_2011_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many loses corresponded to giving up 714 points?"
},
{
"role": "assistant",
"content": "SELECT \"lost\" FROM \"2010_2011_table\" WHERE \"points_against\"='714';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010_2011_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many draws were there when there were 30 tries against?"
},
{
"role": "assistant",
"content": "SELECT \"drawn\" FROM \"2010_2011_table\" WHERE \"tries_against\"='30';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010_2011_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many try bonuses were there when there were 64 tries for?"
},
{
"role": "assistant",
"content": "SELECT \"try_bonus\" FROM \"2010_2011_table\" WHERE \"tries_for\"='64';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010_2011_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: Which club gave up 714 points?"
},
{
"role": "assistant",
"content": "SELECT \"club\" FROM \"2010_2011_table\" WHERE \"points_against\"='714';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010_2011_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What is the third entry in the row with a first entry of \"club\"?"
},
{
"role": "assistant",
"content": "SELECT \"won\" FROM \"2010_2011_table\" WHERE \"club\"='Club';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010_2011_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What is the 8th entry in the row with a first entry of \"club\"?"
},
{
"role": "assistant",
"content": "SELECT \"tries_for\" FROM \"2010_2011_table\" WHERE \"club\"='Club';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many were won with the points against was 450?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"won\") FROM \"2009_2010_table\" WHERE \"points_against\"='450';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what was the drawn when the tries for was 46?"
},
{
"role": "assistant",
"content": "SELECT \"drawn\" FROM \"2009_2010_table\" WHERE \"tries_for\"='46';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What was the won when the points for was 496?"
},
{
"role": "assistant",
"content": "SELECT \"won\" FROM \"2009_2010_table\" WHERE \"points_for\"='496';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What was the losing bonus when the points against was 445?"
},
{
"role": "assistant",
"content": "SELECT \"losing_bonus\" FROM \"2009_2010_table\" WHERE \"points_against\"='445';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What was the tries against when the drawn was 2?"
},
{
"role": "assistant",
"content": "SELECT \"tries_against\" FROM \"2009_2010_table\" WHERE \"drawn\"='2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What was the drawn when the tries against was 89?"
},
{
"role": "assistant",
"content": "SELECT \"drawn\" FROM \"2009_2010_table\" WHERE \"tries_against\"='89';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_daimy\" (\n \"num\" real,\n \"name\" text,\n \"tenure\" text,\n \"courtesy_title\" text,\n \"court_rank\" text,\n \"revenues\" text,\n \"lineage\" text\n);\n\nQuestion: What is the number of the name for number 4?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"name\") FROM \"list_of_daimy\" WHERE \"num\"=4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_daimy\" (\n \"num\" real,\n \"name\" text,\n \"tenure\" text,\n \"courtesy_title\" text,\n \"court_rank\" text,\n \"revenues\" text,\n \"lineage\" text\n);\n\nQuestion: What is the most number?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"num\") FROM \"list_of_daimy\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what amount played tried for 60? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"played\") FROM \"2007_2008_table\" WHERE \"tries_for\"='60';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many played where the points were 80?"
},
{
"role": "assistant",
"content": "SELECT \"played\" FROM \"2007_2008_table\" WHERE \"points\"='80';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what amount of points were lost by 13?"
},
{
"role": "assistant",
"content": "SELECT \"points\" FROM \"2007_2008_table\" WHERE \"lost\"='13';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what are the total points agains the score of 63?"
},
{
"role": "assistant",
"content": "SELECT \"points_against\" FROM \"2007_2008_table\" WHERE \"points\"='63';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007_2008_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What amount of points where points were 389?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"points\") FROM \"2007_2008_table\" WHERE \"points_against\"='389';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: HOW MANY PLAYERS PLAYED IN THE GAME THAT WON WITH 438 POINTS"
},
{
"role": "assistant",
"content": "SELECT \"played\" FROM \"2009_2010_table\" WHERE \"points_for\"='438';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: HOW MANY GAMES HAD A WIN WITH A BONUS OF 11"
},
{
"role": "assistant",
"content": "SELECT \"won\" FROM \"2009_2010_table\" WHERE \"try_bonus\"='11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: HOW MANY GAMES WERE TIED AT 3?"
},
{
"role": "assistant",
"content": "SELECT \"tries_for\" FROM \"2009_2010_table\" WHERE \"drawn\"='3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: HOW MANY GAMES HAD BONUS POINTS OF 6?"
},
{
"role": "assistant",
"content": "SELECT \"points_for\" FROM \"2009_2010_table\" WHERE \"try_bonus\"='6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: HOW MANY GAMES WERE TIED AT 76?"
},
{
"role": "assistant",
"content": "SELECT \"drawn\" FROM \"2009_2010_table\" WHERE \"points\"='76';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: HOW MANY GAMES WERE LOST BY 12 POINTS?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"points_for\") FROM \"2009_2010_table\" WHERE \"lost\"='12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"european_tour_professional_career_summar\" (\n \"year\" real,\n \"starts\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"3rd\" real,\n \"top_10\" real,\n \"top_25\" real,\n \"earnings\" real,\n \"money_list_rank\" real\n);\n\nQuestion: What was the number of earnings were cuts made are 19 and money list rank is 3?"
},
{
"role": "assistant",
"content": "SELECT \"earnings\" FROM \"european_tour_professional_career_summar\" WHERE \"cuts_made\"=19 AND \"money_list_rank\"=3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"european_tour_professional_career_summar\" (\n \"year\" real,\n \"starts\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"3rd\" real,\n \"top_10\" real,\n \"top_25\" real,\n \"earnings\" real,\n \"money_list_rank\" real\n);\n\nQuestion: How many listings are under money list rank wher 2nd' value is larger than 2.0?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"money_list_rank\") FROM \"european_tour_professional_career_summar\" WHERE \"2nd\">2.0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"r_series_models\" (\n \"colt_model_no\" text,\n \"name\" text,\n \"stock\" text,\n \"fire_control\" text,\n \"rear_sight\" text,\n \"forward_assist\" text,\n \"case_deflector\" text,\n \"barrel_length\" text,\n \"barrel_profile\" text,\n \"barrel_twist\" text,\n \"hand_guards\" text,\n \"bayonet_lug\" text,\n \"muzzle_device\" text\n);\n\nQuestion: what are all the barrel lengths whith the name ar-15a3 competition hbar"
},
{
"role": "assistant",
"content": "SELECT \"barrel_length\" FROM \"r_series_models\" WHERE \"name\"='AR-15A3 Competition HBAR';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"r_series_models\" (\n \"colt_model_no\" text,\n \"name\" text,\n \"stock\" text,\n \"fire_control\" text,\n \"rear_sight\" text,\n \"forward_assist\" text,\n \"case_deflector\" text,\n \"barrel_length\" text,\n \"barrel_profile\" text,\n \"barrel_twist\" text,\n \"hand_guards\" text,\n \"bayonet_lug\" text,\n \"muzzle_device\" text\n);\n\nQuestion: What is the fire control for the sporter target"
},
{
"role": "assistant",
"content": "SELECT \"fire_control\" FROM \"r_series_models\" WHERE \"name\"='Sporter Target';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"climate\" (\n \"city_town\" text,\n \"july_av_t\" text,\n \"rain\" text,\n \"days_with_rain_year_summer\" text,\n \"days_with_frost\" real,\n \"sunlight_hours\" real\n);\n\nQuestion: What is the days with rain figure for the city of Santiago de Compostela?"
},
{
"role": "assistant",
"content": "SELECT \"days_with_rain_year_summer\" FROM \"climate\" WHERE \"city_town\"='Santiago de Compostela';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"climate\" (\n \"city_town\" text,\n \"july_av_t\" text,\n \"rain\" text,\n \"days_with_rain_year_summer\" text,\n \"days_with_frost\" real,\n \"sunlight_hours\" real\n);\n\nQuestion: How many rain figures are provided for sunlight hours in 1966?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rain\") FROM \"climate\" WHERE \"sunlight_hours\"=1966;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"diemaco_colt_canada_models\" (\n \"colt_model_no\" text,\n \"diemaco_model\" text,\n \"stock\" text,\n \"fire_control\" text,\n \"rear_sight\" text,\n \"forward_assist\" text,\n \"barrel_length\" text,\n \"barrel_profile\" text,\n \"barrel_twist\" text,\n \"hand_guards\" text,\n \"bayonet_lug\" text,\n \"muzzle_device\" text\n);\n\nQuestion: What is the value of barrel twist when the barrel profile is SFW?"
},
{
"role": "assistant",
"content": "SELECT \"barrel_twist\" FROM \"diemaco_colt_canada_models\" WHERE \"barrel_profile\"='SFW';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"diemaco_colt_canada_models\" (\n \"colt_model_no\" text,\n \"diemaco_model\" text,\n \"stock\" text,\n \"fire_control\" text,\n \"rear_sight\" text,\n \"forward_assist\" text,\n \"barrel_length\" text,\n \"barrel_profile\" text,\n \"barrel_twist\" text,\n \"hand_guards\" text,\n \"bayonet_lug\" text,\n \"muzzle_device\" text\n);\n\nQuestion: What kind of hand guards are associated with a rear sight of A1 and stock of A2?"
},
{
"role": "assistant",
"content": "SELECT \"hand_guards\" FROM \"diemaco_colt_canada_models\" WHERE \"rear_sight\"='A1' AND \"stock\"='A2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"diemaco_colt_canada_models\" (\n \"colt_model_no\" text,\n \"diemaco_model\" text,\n \"stock\" text,\n \"fire_control\" text,\n \"rear_sight\" text,\n \"forward_assist\" text,\n \"barrel_length\" text,\n \"barrel_profile\" text,\n \"barrel_twist\" text,\n \"hand_guards\" text,\n \"bayonet_lug\" text,\n \"muzzle_device\" text\n);\n\nQuestion: How many inches is the barrel length when the rear sight is weaver and the barrel profile is A2?"
},
{
"role": "assistant",
"content": "SELECT \"barrel_length\" FROM \"diemaco_colt_canada_models\" WHERE \"rear_sight\"='Weaver' AND \"barrel_profile\"='A2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"le_series_models\" (\n \"colt_model_no\" text,\n \"name\" text,\n \"stock\" text,\n \"fire_control\" text,\n \"rear_sight\" text,\n \"forward_assist\" text,\n \"barrel_length\" text,\n \"barrel_profile\" text,\n \"barrel_twist\" text,\n \"hand_guards\" text,\n \"bayonet_lug\" text,\n \"muzzle_device\" text\n);\n\nQuestion: What is the muzzle device on the colt model le1020?"
},
{
"role": "assistant",
"content": "SELECT \"muzzle_device\" FROM \"le_series_models\" WHERE \"colt_model_no\"='LE1020';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"le_series_models\" (\n \"colt_model_no\" text,\n \"name\" text,\n \"stock\" text,\n \"fire_control\" text,\n \"rear_sight\" text,\n \"forward_assist\" text,\n \"barrel_length\" text,\n \"barrel_profile\" text,\n \"barrel_twist\" text,\n \"hand_guards\" text,\n \"bayonet_lug\" text,\n \"muzzle_device\" text\n);\n\nQuestion: What is the barrell profile that goes with the gas piston carbine?"
},
{
"role": "assistant",
"content": "SELECT \"barrel_profile\" FROM \"le_series_models\" WHERE \"name\"='Gas Piston Carbine';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"le_series_models\" (\n \"colt_model_no\" text,\n \"name\" text,\n \"stock\" text,\n \"fire_control\" text,\n \"rear_sight\" text,\n \"forward_assist\" text,\n \"barrel_length\" text,\n \"barrel_profile\" text,\n \"barrel_twist\" text,\n \"hand_guards\" text,\n \"bayonet_lug\" text,\n \"muzzle_device\" text\n);\n\nQuestion: What models have an a2 barrel profile?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"le_series_models\" WHERE \"barrel_profile\"='A2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"le_series_models\" (\n \"colt_model_no\" text,\n \"name\" text,\n \"stock\" text,\n \"fire_control\" text,\n \"rear_sight\" text,\n \"forward_assist\" text,\n \"barrel_length\" text,\n \"barrel_profile\" text,\n \"barrel_twist\" text,\n \"hand_guards\" text,\n \"bayonet_lug\" text,\n \"muzzle_device\" text\n);\n\nQuestion: What hand guard system is used with a gas piston commando?"
},
{
"role": "assistant",
"content": "SELECT \"hand_guards\" FROM \"le_series_models\" WHERE \"name\"='Gas Piston Commando';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"le_series_models\" (\n \"colt_model_no\" text,\n \"name\" text,\n \"stock\" text,\n \"fire_control\" text,\n \"rear_sight\" text,\n \"forward_assist\" text,\n \"barrel_length\" text,\n \"barrel_profile\" text,\n \"barrel_twist\" text,\n \"hand_guards\" text,\n \"bayonet_lug\" text,\n \"muzzle_device\" text\n);\n\nQuestion: What is the bayonet lug status for a m4 hbar and m4le carbine equipped?"
},
{
"role": "assistant",
"content": "SELECT \"bayonet_lug\" FROM \"le_series_models\" WHERE \"barrel_profile\"='M4 HBAR' AND \"name\"='M4LE Carbine';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.