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 \"night\" (\n \"time\" text,\n \"06_00_pm\" text,\n \"07_00_pm\" text,\n \"08_00_pm\" text,\n \"09_00_pm\" text,\n \"10_00_pm\" text,\n \"10_30_pm\" text,\n \"11_00_pm\" text\n);\n\nQuestion: Name the 8 pm when time is thursday"
},
{
"role": "assistant",
"content": "SELECT \"08_00_pm\" FROM \"night\" WHERE \"time\"='Thursday';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television_stations\" (\n \"city_of_license_market\" text,\n \"station\" text,\n \"channel_tv_dt\" text,\n \"years_owned\" text,\n \"current_affiliation\" text\n);\n\nQuestion: What channel tv (dt) plays the KPIX station?"
},
{
"role": "assistant",
"content": "SELECT \"channel_tv_dt\" FROM \"television_stations\" WHERE \"station\"='KPIX';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television_stations\" (\n \"city_of_license_market\" text,\n \"station\" text,\n \"channel_tv_dt\" text,\n \"years_owned\" text,\n \"current_affiliation\" text\n);\n\nQuestion: Which city of license/market has 3 (26) as their channel tv (dt)?"
},
{
"role": "assistant",
"content": "SELECT \"city_of_license_market\" FROM \"television_stations\" WHERE \"channel_tv_dt\"='3 (26)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television_stations\" (\n \"city_of_license_market\" text,\n \"station\" text,\n \"channel_tv_dt\" text,\n \"years_owned\" text,\n \"current_affiliation\" text\n);\n\nQuestion: Which channel tv (dt) plays in San Francisco - Oakland - San Jose?"
},
{
"role": "assistant",
"content": "SELECT \"channel_tv_dt\" FROM \"television_stations\" WHERE \"city_of_license_market\"='San Francisco - Oakland - San Jose';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television_stations\" (\n \"city_of_license_market\" text,\n \"station\" text,\n \"channel_tv_dt\" text,\n \"years_owned\" text,\n \"current_affiliation\" text\n);\n\nQuestion: How many years has station KPIX been owned?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"years_owned\") FROM \"television_stations\" WHERE \"station\"='KPIX';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television_stations\" (\n \"city_of_license_market\" text,\n \"station\" text,\n \"channel_tv_dt\" text,\n \"years_owned\" text,\n \"current_affiliation\" text\n);\n\nQuestion: Which city of license/market plays 3 (26)?"
},
{
"role": "assistant",
"content": "SELECT \"city_of_license_market\" FROM \"television_stations\" WHERE \"channel_tv_dt\"='3 (26)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television_stations\" (\n \"city_of_license_market\" text,\n \"station\" text,\n \"channel_tv_dt\" text,\n \"years_owned\" text,\n \"current_affiliation\" text\n);\n\nQuestion: Who currently affiliates in San Francisco - Oakland - San Jose?"
},
{
"role": "assistant",
"content": "SELECT \"current_affiliation\" FROM \"television_stations\" WHERE \"city_of_license_market\"='San Francisco - Oakland - San Jose';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: In which condition(s) is bleeding time prolonged and prothrombin time unaffected?"
},
{
"role": "assistant",
"content": "SELECT \"condition\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"bleeding_time\"='Prolonged' AND \"prothrombin_time\"='Unaffected';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: How many entries for prothrombin time are there where platelet count is \"decreased or unaffected\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"prothrombin_time\") FROM \"laboratory_findings_in_various_platelet_\" WHERE \"platelet_count\"='Decreased or unaffected';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: How is the bleeding time wherein platelet count is decreased and prothrombin time is unaffected?"
},
{
"role": "assistant",
"content": "SELECT \"bleeding_time\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"platelet_count\"='Decreased' AND \"prothrombin_time\"='Unaffected';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: What are all the possible bleeding time results where prothrombin time and platelet count are both unaffected?"
},
{
"role": "assistant",
"content": "SELECT \"bleeding_time\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"prothrombin_time\"='Unaffected' AND \"platelet_count\"='Unaffected';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15555661_2\" (\n \"ecozone\" text,\n \"area_km\" real,\n \"percentage_of_total_area\" text,\n \"percentage_of_land_area\" text,\n \"percentage_protected\" text\n);\n\nQuestion: What is the percentage of land area in the ecozone that the percentage protected is 7.96?"
},
{
"role": "assistant",
"content": "SELECT \"percentage_of_land_area\" FROM \"table1_15555661_2\" WHERE \"percentage_protected\"='7.96';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15555661_2\" (\n \"ecozone\" text,\n \"area_km\" real,\n \"percentage_of_total_area\" text,\n \"percentage_of_land_area\" text,\n \"percentage_protected\" text\n);\n\nQuestion: What is the percentage of total area in the ecozone that the percentage of land area is 2.2?"
},
{
"role": "assistant",
"content": "SELECT \"percentage_of_total_area\" FROM \"table1_15555661_2\" WHERE \"percentage_of_land_area\"='2.2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15555661_2\" (\n \"ecozone\" text,\n \"area_km\" real,\n \"percentage_of_total_area\" text,\n \"percentage_of_land_area\" text,\n \"percentage_protected\" text\n);\n\nQuestion: What is the percentage of total area in the ecozone that the percentage protected is 8.06?"
},
{
"role": "assistant",
"content": "SELECT \"percentage_of_total_area\" FROM \"table1_15555661_2\" WHERE \"percentage_protected\"='8.06';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15555661_2\" (\n \"ecozone\" text,\n \"area_km\" real,\n \"percentage_of_total_area\" text,\n \"percentage_of_land_area\" text,\n \"percentage_protected\" text\n);\n\nQuestion: What is the percentage of land area in the ecozone that the percentage protected is 15.28?"
},
{
"role": "assistant",
"content": "SELECT \"percentage_of_land_area\" FROM \"table1_15555661_2\" WHERE \"percentage_protected\"='15.28';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15555661_2\" (\n \"ecozone\" text,\n \"area_km\" real,\n \"percentage_of_total_area\" text,\n \"percentage_of_land_area\" text,\n \"percentage_protected\" text\n);\n\nQuestion: How large is the Boreal Shield in km2?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"area_km\") FROM \"table1_15555661_2\" WHERE \"ecozone\"='Boreal Shield';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15555661_2\" (\n \"ecozone\" text,\n \"area_km\" real,\n \"percentage_of_total_area\" text,\n \"percentage_of_land_area\" text,\n \"percentage_protected\" text\n);\n\nQuestion: What is the percentage of total area in the ecozone that the area is 1782252 km2?"
},
{
"role": "assistant",
"content": "SELECT \"percentage_of_total_area\" FROM \"table1_15555661_2\" WHERE \"area_km\"=1782252;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: What is the condition of the platelet counts in hemophilia?"
},
{
"role": "assistant",
"content": "SELECT \"platelet_count\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"condition\"='Hemophilia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: What is the prothrombin time in Von willebrand disease?"
},
{
"role": "assistant",
"content": "SELECT \"prothrombin_time\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"condition\"='Von Willebrand disease';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: If the partial thromboplastin and bleeding time is prolonged, what is the prothrombin time?"
},
{
"role": "assistant",
"content": "SELECT \"prothrombin_time\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"partial_thromboplastin_time\"='Prolonged' AND \"bleeding_time\"='Prolonged';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: What is the bleeding time in Bernard-soulier syndrome?"
},
{
"role": "assistant",
"content": "SELECT \"bleeding_time\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"condition\"='Bernard-Soulier syndrome';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list\" (\n \"ring_name\" text,\n \"current_rank\" text,\n \"debut\" text,\n \"stable\" text,\n \"birthplace\" text,\n \"career_and_other_notes\" text\n);\n\nQuestion: Which ring names are currently ranked f0 j\u016bry\u014d 3 west?"
},
{
"role": "assistant",
"content": "SELECT \"ring_name\" FROM \"list\" WHERE \"current_rank\"='f0 J\u016bry\u014d 3 West';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list\" (\n \"ring_name\" text,\n \"current_rank\" text,\n \"debut\" text,\n \"stable\" text,\n \"birthplace\" text,\n \"career_and_other_notes\" text\n);\n\nQuestion: How many wrestlers were born in nara, and have a completed 'career and other notes' section?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"career_and_other_notes\") FROM \"list\" WHERE \"birthplace\"='Nara';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list\" (\n \"ring_name\" text,\n \"current_rank\" text,\n \"debut\" text,\n \"stable\" text,\n \"birthplace\" text,\n \"career_and_other_notes\" text\n);\n\nQuestion: What are the debut year for wrestlers born in Nara?"
},
{
"role": "assistant",
"content": "SELECT \"debut\" FROM \"list\" WHERE \"birthplace\"='Nara';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list\" (\n \"ring_name\" text,\n \"current_rank\" text,\n \"debut\" text,\n \"stable\" text,\n \"birthplace\" text,\n \"career_and_other_notes\" text\n);\n\nQuestion: Where were the wrestlers born who debuted in 2002-7?"
},
{
"role": "assistant",
"content": "SELECT \"birthplace\" FROM \"list\" WHERE \"debut\"='2002-7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list\" (\n \"ring_name\" text,\n \"current_rank\" text,\n \"debut\" text,\n \"stable\" text,\n \"birthplace\" text,\n \"career_and_other_notes\" text\n);\n\nQuestion: What are the career and other notes for wrestlers whose stable is oguruma?"
},
{
"role": "assistant",
"content": "SELECT \"career_and_other_notes\" FROM \"list\" WHERE \"stable\"='Oguruma';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"kinship_terms\" (\n \"kinship\" text,\n \"proto_austronesian\" text,\n \"proto_malayo_polynesian\" text,\n \"proto_oceanic\" text,\n \"proto_polynesian\" text\n);\n\nQuestion: Name the kinship for *t-ina"
},
{
"role": "assistant",
"content": "SELECT \"kinship\" FROM \"kinship_terms\" WHERE \"proto_malayo_polynesian\"='*t-ina';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"kinship_terms\" (\n \"kinship\" text,\n \"proto_austronesian\" text,\n \"proto_malayo_polynesian\" text,\n \"proto_oceanic\" text,\n \"proto_polynesian\" text\n);\n\nQuestion: Name the number of proto austronesian for *natu"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"proto_austronesian\") FROM \"kinship_terms\" WHERE \"proto_oceanic\"='*natu';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"kinship_terms\" (\n \"kinship\" text,\n \"proto_austronesian\" text,\n \"proto_malayo_polynesian\" text,\n \"proto_oceanic\" text,\n \"proto_polynesian\" text\n);\n\nQuestion: Name the ptor-austronesian for father"
},
{
"role": "assistant",
"content": "SELECT \"proto_austronesian\" FROM \"kinship_terms\" WHERE \"kinship\"='father';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"kinship_terms\" (\n \"kinship\" text,\n \"proto_austronesian\" text,\n \"proto_malayo_polynesian\" text,\n \"proto_oceanic\" text,\n \"proto_polynesian\" text\n);\n\nQuestion: Name the proto oceanic for *fafine"
},
{
"role": "assistant",
"content": "SELECT \"proto_oceanic\" FROM \"kinship_terms\" WHERE \"proto_polynesian\"='*fafine';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"kinship_terms\" (\n \"kinship\" text,\n \"proto_austronesian\" text,\n \"proto_malayo_polynesian\" text,\n \"proto_oceanic\" text,\n \"proto_polynesian\" text\n);\n\nQuestion: Name the proto-austrronesian for *pine, *papine"
},
{
"role": "assistant",
"content": "SELECT \"proto_austronesian\" FROM \"kinship_terms\" WHERE \"proto_oceanic\"='*pine, *papine';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15584067_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Name who wrote number 47"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_15584067_4\" WHERE \"no_in_series\"=47;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"early_u_s_unmanned_lunar_missions_1958_1\" (\n \"u_s_mission\" text,\n \"mass_kg\" real,\n \"launch_vehicle\" text,\n \"launched\" text,\n \"mission_goal\" text,\n \"mission_result\" text\n);\n\nQuestion: What is the largest mass(kg)?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"mass_kg\") FROM \"early_u_s_unmanned_lunar_missions_1958_1\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15582870_1\" (\n \"round\" real,\n \"choice\" real,\n \"player_name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: Which college did draft pick #143 attend?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"table1_15582870_1\" WHERE \"choice\"=143;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15582870_1\" (\n \"round\" real,\n \"choice\" real,\n \"player_name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: How heavy were the players who attended Arkansas?"
},
{
"role": "assistant",
"content": "SELECT \"weight\" FROM \"table1_15582870_1\" WHERE \"college\"='Arkansas';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15582870_1\" (\n \"round\" real,\n \"choice\" real,\n \"player_name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: Which college did the player weighing 207 pounds attend?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"table1_15582870_1\" WHERE \"weight\"=207;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15584067_7\" (\n \"no_in_series\" text,\n \"no_in_season\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Name who wrote the episode when the viewers was 1.81"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_15584067_7\" WHERE \"u_s_viewers_million\"='1.81';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15584067_7\" (\n \"no_in_series\" text,\n \"no_in_season\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Name who directed the 114 episode in the series"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_15584067_7\" WHERE \"no_in_series\"='114';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15584067_7\" (\n \"no_in_series\" text,\n \"no_in_season\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Name the total number of air dates for 102 episode"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"original_air_date\") FROM \"table1_15584067_7\" WHERE \"no_in_series\"='102';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15584067_7\" (\n \"no_in_series\" text,\n \"no_in_season\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Name who wrote the 11 number in the season"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_15584067_7\" WHERE \"no_in_season\"='11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recent_winners\" (\n \"year_theme\" text,\n \"award_name\" text,\n \"team_name\" text,\n \"team_number\" real,\n \"city_state_country\" text\n);\n\nQuestion: Name the award name for black ocean current"
},
{
"role": "assistant",
"content": "SELECT \"award_name\" FROM \"recent_winners\" WHERE \"team_name\"='BLACK OCEAN CURRENT';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15592941_1\" (\n \"round\" real,\n \"choice\" real,\n \"player_name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: What position(s) do players from florida state play?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"table1_15592941_1\" WHERE \"college\"='Florida State';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15592941_1\" (\n \"round\" real,\n \"choice\" real,\n \"player_name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: How much does geno hayes weigh?"
},
{
"role": "assistant",
"content": "SELECT \"weight\" FROM \"table1_15592941_1\" WHERE \"player_name\"='Geno Hayes';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15592941_1\" (\n \"round\" real,\n \"choice\" real,\n \"player_name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: What college did jeremy zuttah attend?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"table1_15592941_1\" WHERE \"player_name\"='Jeremy Zuttah';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_robin_standings\" (\n \"locale\" 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 was brian rafuse's pf?"
},
{
"role": "assistant",
"content": "SELECT \"pf\" FROM \"round_robin_standings\" WHERE \"skip\"='Brian Rafuse';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_robin_standings\" (\n \"locale\" 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 stolen ends equal 5 whats the amount of pa?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"pa\") FROM \"round_robin_standings\" WHERE \"stolen_ends\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_clubs_2014_season\" (\n \"club\" text,\n \"position_in_2013\" text,\n \"first_season\" real,\n \"first_season_of_current_spell\" real,\n \"number_of_seasons_in_superettan\" real,\n \"number_of_seasons_in_second_tier\" text\n);\n\nQuestion: What position is the player whose first year is 2014"
},
{
"role": "assistant",
"content": "SELECT \"position_in_2013\" FROM \"current_clubs_2014_season\" WHERE \"first_season\"=2014;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_clubs_2014_season\" (\n \"club\" text,\n \"position_in_2013\" text,\n \"first_season\" real,\n \"first_season_of_current_spell\" real,\n \"number_of_seasons_in_superettan\" real,\n \"number_of_seasons_in_second_tier\" text\n);\n\nQuestion: What was the players position in 2013 who had 29 seasons in the second tier"
},
{
"role": "assistant",
"content": "SELECT \"position_in_2013\" FROM \"current_clubs_2014_season\" WHERE \"number_of_seasons_in_second_tier\"='29';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_clubs_2014_season\" (\n \"club\" text,\n \"position_in_2013\" text,\n \"first_season\" real,\n \"first_season_of_current_spell\" real,\n \"number_of_seasons_in_superettan\" real,\n \"number_of_seasons_in_second_tier\" text\n);\n\nQuestion: What was the first season for Syrianska FC"
},
{
"role": "assistant",
"content": "SELECT \"first_season\" FROM \"current_clubs_2014_season\" WHERE \"club\"='Syrianska FC';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_clubs_2014_season\" (\n \"club\" text,\n \"position_in_2013\" text,\n \"first_season\" real,\n \"first_season_of_current_spell\" real,\n \"number_of_seasons_in_superettan\" real,\n \"number_of_seasons_in_second_tier\" text\n);\n\nQuestion: What was the earliest season recorded for any team"
},
{
"role": "assistant",
"content": "SELECT MIN(\"first_season\") FROM \"current_clubs_2014_season\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"result\" text,\n \"record\" text,\n \"opponent\" text,\n \"points_for\" real,\n \"points_against\" real,\n \"first_downs\" real,\n \"attendance\" real\n);\n\nQuestion: Name the number of points for october 11"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points_for\") FROM \"schedule\" WHERE \"date\"='October 11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"result\" text,\n \"record\" text,\n \"opponent\" text,\n \"points_for\" real,\n \"points_against\" real,\n \"first_downs\" real,\n \"attendance\" real\n);\n\nQuestion: Name the date for week 9"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"week\"=9;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"result\" text,\n \"record\" text,\n \"opponent\" text,\n \"points_for\" real,\n \"points_against\" real,\n \"first_downs\" real,\n \"attendance\" real\n);\n\nQuestion: Name the points against for november 7"
},
{
"role": "assistant",
"content": "SELECT \"points_against\" FROM \"schedule\" WHERE \"date\"='November 7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"result\" text,\n \"record\" text,\n \"opponent\" text,\n \"points_for\" real,\n \"points_against\" real,\n \"first_downs\" real,\n \"attendance\" real\n);\n\nQuestion: Name the points against for november 14"
},
{
"role": "assistant",
"content": "SELECT \"points_against\" FROM \"schedule\" WHERE \"date\"='November 14';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"result\" text,\n \"record\" text,\n \"opponent\" text,\n \"points_for\" real,\n \"points_against\" real,\n \"first_downs\" real,\n \"attendance\" real\n);\n\nQuestion: Name the first downs for points against being 0"
},
{
"role": "assistant",
"content": "SELECT \"first_downs\" FROM \"schedule\" WHERE \"points_against\"=0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"result\" text,\n \"record\" text,\n \"opponent\" text,\n \"points_for\" real,\n \"points_against\" real,\n \"first_downs\" real,\n \"attendance\" real\n);\n\nQuestion: Name the record for new york giants"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"opponent\"='New York Giants';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" real,\n \"dates\" text,\n \"champion\" text,\n \"country\" text,\n \"score\" text,\n \"margin_of_victory\" text,\n \"tournament_location\" text,\n \"purse_us\" real,\n \"winners_share\" real\n);\n\nQuestion: Name the least purse for 2011"
},
{
"role": "assistant",
"content": "SELECT MIN(\"purse_us\") FROM \"winners\" WHERE \"year\"=2011;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"lner\" (\n \"class\" text,\n \"wheel_arrangement\" text,\n \"railway\" text,\n \"number_at_doncaster\" real,\n \"number_at_pyewipe\" real,\n \"number_at_march\" real\n);\n\nQuestion: Name the number of wheel arrangement when class is d14"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"wheel_arrangement\") FROM \"lner\" WHERE \"class\"='D14';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"lner\" (\n \"class\" text,\n \"wheel_arrangement\" text,\n \"railway\" text,\n \"number_at_doncaster\" real,\n \"number_at_pyewipe\" real,\n \"number_at_march\" real\n);\n\nQuestion: Name the most number of pyewipe"
},
{
"role": "assistant",
"content": "SELECT MAX(\"number_at_pyewipe\") FROM \"lner\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"lner\" (\n \"class\" text,\n \"wheel_arrangement\" text,\n \"railway\" text,\n \"number_at_doncaster\" real,\n \"number_at_pyewipe\" real,\n \"number_at_march\" real\n);\n\nQuestion: Name the number at march when class is j66"
},
{
"role": "assistant",
"content": "SELECT \"number_at_march\" FROM \"lner\" WHERE \"class\"='J66';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"lner\" (\n \"class\" text,\n \"wheel_arrangement\" text,\n \"railway\" text,\n \"number_at_doncaster\" real,\n \"number_at_pyewipe\" real,\n \"number_at_march\" real\n);\n\nQuestion: Name the railway when class is j19"
},
{
"role": "assistant",
"content": "SELECT \"railway\" FROM \"lner\" WHERE \"class\"='J19';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"lner\" (\n \"class\" text,\n \"wheel_arrangement\" text,\n \"railway\" text,\n \"number_at_doncaster\" real,\n \"number_at_pyewipe\" real,\n \"number_at_march\" real\n);\n\nQuestion: Name the railway when class is j15"
},
{
"role": "assistant",
"content": "SELECT \"railway\" FROM \"lner\" WHERE \"class\"='J15';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"a\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Name the years in orlando for penn state"
},
{
"role": "assistant",
"content": "SELECT \"years_in_orlando\" FROM \"a\" WHERE \"school_club_team\"='Penn State';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"a\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Name the nationality of number 9"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"a\" WHERE \"no\"=9;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"k\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Name the years in orlando for forward"
},
{
"role": "assistant",
"content": "SELECT \"years_in_orlando\" FROM \"k\" WHERE \"position\"='Forward';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"k\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Name the number of players from arizona"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"player\") FROM \"k\" WHERE \"school_club_team\"='Arizona';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"k\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Name the years in orlando that the player from concord hs was in"
},
{
"role": "assistant",
"content": "SELECT \"years_in_orlando\" FROM \"k\" WHERE \"school_club_team\"='Concord HS';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"o\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Name the number of players for louisiana state"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"player\") FROM \"o\" WHERE \"school_club_team\"='Louisiana State';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"o\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Name the school/club team for kevin ollie"
},
{
"role": "assistant",
"content": "SELECT \"school_club_team\" FROM \"o\" WHERE \"player\"='Kevin Ollie';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"o\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Name the school/club team for jawann oldham"
},
{
"role": "assistant",
"content": "SELECT \"school_club_team\" FROM \"o\" WHERE \"player\"='Jawann Oldham';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"o\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Name the player for seattle"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"o\" WHERE \"school_club_team\"='Seattle';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"r\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the nationality of th player who's school is Clemson?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"r\" WHERE \"school_club_team\"='Clemson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"r\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: What years did the player who's school is Clemson spend in Orlando?"
},
{
"role": "assistant",
"content": "SELECT \"years_in_orlando\" FROM \"r\" WHERE \"school_club_team\"='Clemson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"r\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the number of the player who attended Delta State?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"no\") FROM \"r\" WHERE \"school_club_team\"='Delta State';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"b\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Who plays the position of forward-center?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"b\" WHERE \"position\"='Forward-Center';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"c\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: During what years did Chris Corchiani play in Orlando?"
},
{
"role": "assistant",
"content": "SELECT \"years_in_orlando\" FROM \"c\" WHERE \"player\"='Chris Corchiani';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_sheets\" (\n \"ecosystem\" text,\n \"date_of_issue\" text,\n \"place_of_issue\" text,\n \"no_stamps_in_sheet\" real,\n \"face_value\" text,\n \"printer\" text\n);\n\nQuestion: When the face value is 42\u00a2, what was the issue's date?"
},
{
"role": "assistant",
"content": "SELECT \"date_of_issue\" FROM \"the_sheets\" WHERE \"face_value\"='42\u00a2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_sheets\" (\n \"ecosystem\" text,\n \"date_of_issue\" text,\n \"place_of_issue\" text,\n \"no_stamps_in_sheet\" real,\n \"face_value\" text,\n \"printer\" text\n);\n\nQuestion: Which location has the ecosystem of kelp forest?"
},
{
"role": "assistant",
"content": "SELECT \"place_of_issue\" FROM \"the_sheets\" WHERE \"ecosystem\"='Kelp Forest';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_sheets\" (\n \"ecosystem\" text,\n \"date_of_issue\" text,\n \"place_of_issue\" text,\n \"no_stamps_in_sheet\" real,\n \"face_value\" text,\n \"printer\" text\n);\n\nQuestion: How many stamps have a face value of 37\u00a2 and were printed in the banknote corporation of america?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no_stamps_in_sheet\") FROM \"the_sheets\" WHERE \"face_value\"='37\u00a2' AND \"printer\"='Banknote Corporation of America';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_sheets\" (\n \"ecosystem\" text,\n \"date_of_issue\" text,\n \"place_of_issue\" text,\n \"no_stamps_in_sheet\" real,\n \"face_value\" text,\n \"printer\" text\n);\n\nQuestion: Who was the printer of Estes Park, Colorado?"
},
{
"role": "assistant",
"content": "SELECT \"printer\" FROM \"the_sheets\" WHERE \"place_of_issue\"='Estes Park, Colorado';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_sheets\" (\n \"ecosystem\" text,\n \"date_of_issue\" text,\n \"place_of_issue\" text,\n \"no_stamps_in_sheet\" real,\n \"face_value\" text,\n \"printer\" text\n);\n\nQuestion: The stamp was 39\u00a2, who was the printer?"
},
{
"role": "assistant",
"content": "SELECT \"printer\" FROM \"the_sheets\" WHERE \"face_value\"='39\u00a2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary_table\" (\n \"num\" real,\n \"season\" real,\n \"bowl_game\" text,\n \"result\" text,\n \"opponent\" text,\n \"stadium\" text,\n \"location\" text,\n \"attendance\" text\n);\n\nQuestion: What are values of attendance for the El Paso, TX location?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"summary_table\" WHERE \"location\"='El Paso, TX';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary_table\" (\n \"num\" real,\n \"season\" real,\n \"bowl_game\" text,\n \"result\" text,\n \"opponent\" text,\n \"stadium\" text,\n \"location\" text,\n \"attendance\" text\n);\n\nQuestion: How many values for result correspond to attendance of 74,111?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"result\") FROM \"summary_table\" WHERE \"attendance\"='74,111';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary_table\" (\n \"num\" real,\n \"season\" real,\n \"bowl_game\" text,\n \"result\" text,\n \"opponent\" text,\n \"stadium\" text,\n \"location\" text,\n \"attendance\" text\n);\n\nQuestion: How many locations have the Sun Life Stadium?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location\") FROM \"summary_table\" WHERE \"stadium\"='Sun Life Stadium';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary_table\" (\n \"num\" real,\n \"season\" real,\n \"bowl_game\" text,\n \"result\" text,\n \"opponent\" text,\n \"stadium\" text,\n \"location\" text,\n \"attendance\" text\n);\n\nQuestion: What is the highest season for a bowl game of the 1993 Independence Bowl?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"season\") FROM \"summary_table\" WHERE \"bowl_game\"='1993 Independence Bowl';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary_table\" (\n \"num\" real,\n \"season\" real,\n \"bowl_game\" text,\n \"result\" text,\n \"opponent\" text,\n \"stadium\" text,\n \"location\" text,\n \"attendance\" text\n);\n\nQuestion: What is the lowest # in Atlanta, GA with the Georgia Bulldogs as an opponent?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"num\") FROM \"summary_table\" WHERE \"location\"='Atlanta, GA' AND \"opponent\"='Georgia Bulldogs';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary_table\" (\n \"num\" real,\n \"season\" real,\n \"bowl_game\" text,\n \"result\" text,\n \"opponent\" text,\n \"stadium\" text,\n \"location\" text,\n \"attendance\" text\n);\n\nQuestion: How many values for attendance correspond to the 1986 Peach Bowl?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"attendance\") FROM \"summary_table\" WHERE \"bowl_game\"='1986 Peach Bowl';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1566848_7\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Who was the interview subject in the 2-86 issue?"
},
{
"role": "assistant",
"content": "SELECT \"interview_subject\" FROM \"table1_1566848_7\" WHERE \"date\"='2-86';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1566848_7\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Who were all the pictorials when the centerfold model was Rebekka Armstrong?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"pictorials\") FROM \"table1_1566848_7\" WHERE \"centerfold_model\"='Rebekka Armstrong';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1566848_7\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Who were the pictorials when the centerfold model was Ava Fabian?"
},
{
"role": "assistant",
"content": "SELECT \"pictorials\" FROM \"table1_1566848_7\" WHERE \"centerfold_model\"='Ava Fabian';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1566848_7\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Who was the interview subject when the centerfold model was Sherry Arnett?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"interview_subject\") FROM \"table1_1566848_7\" WHERE \"centerfold_model\"='Sherry Arnett';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1566848_7\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Who was the cover model in the 7-86 issue?"
},
{
"role": "assistant",
"content": "SELECT \"cover_model\" FROM \"table1_1566848_7\" WHERE \"date\"='7-86';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1566848_7\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: What is the date of the issue where the pictorials is of Female s disk jockey?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"date\") FROM \"table1_1566848_7\" WHERE \"pictorials\"='Female s disk jockey';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1566852_3\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: WHO WAS THE COVER MODEL OF PLAYBOY WHERE THE CENTERFOLD MODEL WAS SHALLAN MEIERS?"
},
{
"role": "assistant",
"content": "SELECT \"cover_model\" FROM \"table1_1566852_3\" WHERE \"centerfold_model\"='Shallan Meiers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1566852_3\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: WHO WAS THE CENTERFOLD MODEL IN THE ISSUE WHERE OSCAR DE LA HOYA ANSWERED THE 20 QUESTIONS?"
},
{
"role": "assistant",
"content": "SELECT \"centerfold_model\" FROM \"table1_1566852_3\" WHERE \"20_questions\"='Oscar de la Hoya';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1566852_3\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: IN THE ISSUE WHERE NICOLE NARAIN WAS THE CENTERFOLD MODEL, WHO WAS THE INTERVIEW SUBJECT?"
},
{
"role": "assistant",
"content": "SELECT \"interview_subject\" FROM \"table1_1566852_3\" WHERE \"centerfold_model\"='Nicole Narain';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1566852_3\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: IN THE ISSUE WHERE LENNY KRAVITZ ANSWERED THE 20 QUESTIONS, HOW MANY PICTORIALS WERE IN THE MAGAZINE?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"pictorials\") FROM \"table1_1566852_3\" WHERE \"20_questions\"='Lenny Kravitz';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1566852_3\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: IN HOW MANY ISSUES WAS HARRISON FORD THE INTERVIEW SUBJECT?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"date\") FROM \"table1_1566852_3\" WHERE \"interview_subject\"='Harrison Ford';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2003\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Who was featured in 20 questions when the subject of the interview was Mike Piazza?"
},
{
"role": "assistant",
"content": "SELECT \"20_questions\" FROM \"2003\" WHERE \"interview_subject\"='Mike Piazza';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2003\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Who was featured in 20 questions on 4-03?"
},
{
"role": "assistant",
"content": "SELECT \"20_questions\" FROM \"2003\" WHERE \"date\"='4-03';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.