text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20967430_4" ( "ep" real, "season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); Question: What was the name of the episode that aired originally on March 11, 1988? <|assistant|> SELECT "title" FROM "table1_20967430_4" WHERE "original_air_date"='March 11, 1988';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20967430_4" ( "ep" real, "season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); Question: What is the production code of the episode written by Jack Carrerrow? <|assistant|> SELECT "prod_code" FROM "table1_20967430_4" WHERE "written_by"='Jack Carrerrow';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20967430_4" ( "ep" real, "season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); Question: How many episodes had a production code of 5m13? <|assistant|> SELECT COUNT("ep") FROM "table1_20967430_4" WHERE "prod_code"='5M13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20967430_2" ( "ep" real, "season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); Question: Name the title that aired for november 08, 1985 <|assistant|> SELECT "title" FROM "table1_20967430_2" WHERE "original_air_date"='November 08, 1985';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20967430_2" ( "ep" real, "season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); Question: Name the production code for november 08, 1985 <|assistant|> SELECT "prod_code" FROM "table1_20967430_2" WHERE "original_air_date"='November 08, 1985';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20967430_2" ( "ep" real, "season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); Question: Name the written by for production code 4g07 <|assistant|> SELECT "written_by" FROM "table1_20967430_2" WHERE "prod_code"='4G07';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20967430_2" ( "ep" real, "season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); Question: Name the least episode for november 29, 1985 <|assistant|> SELECT MIN("ep") FROM "table1_20967430_2" WHERE "original_air_date"='November 29, 1985';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "series_year" real, "series_ending_tournament" text, "location" text, "surface" text, "champion" text, "runner_up" text, "score_in_final" text ); Question: What was the final score when tracy austin was runner up? <|assistant|> SELECT "score_in_final" FROM "singles" WHERE "runner_up"='Tracy Austin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20967430_3" ( "ep" real, "season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); Question: When "jobless" is the title who are the writers? <|assistant|> SELECT "written_by" FROM "table1_20967430_3" WHERE "title"='\"Jobless\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20967430_3" ( "ep" real, "season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); Question: When 5a06 is the production code what is the highest episode? <|assistant|> SELECT MAX("ep") FROM "table1_20967430_3" WHERE "prod_code"='5A06';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20967430_3" ( "ep" real, "season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); Question: When it is season 10 who are the writers? <|assistant|> SELECT "written_by" FROM "table1_20967430_3" WHERE "season"=10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "tour" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: when womens singles is wang yihan and tour is french super series, what were the men's singles? <|assistant|> SELECT "mens_singles" FROM "winners" WHERE "womens_singles"='Wang Yihan' AND "tour"='French Super Series';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "tour" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: when mixed doubles is zheng bo ma jin and womens singles is wang yihan, what was the tour? <|assistant|> SELECT "tour" FROM "winners" WHERE "mixed_doubles"='Zheng Bo Ma Jin' AND "womens_singles"='Wang Yihan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3" ( "episode_num" real, "episode" real, "title" text, "director" text, "writer" text, "original_airdate" text, "u_s_airdate" text ); Question: How many titles were directed by Alex Chapple? <|assistant|> SELECT COUNT("title") FROM "season_3" WHERE "director"='Alex Chapple';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3" ( "episode_num" real, "episode" real, "title" text, "director" text, "writer" text, "original_airdate" text, "u_s_airdate" text ); Question: Who is the director of the "Adam's Family"? <|assistant|> SELECT "director" FROM "season_3" WHERE "title"='\"Adam''s Family\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3" ( "episode_num" real, "episode" real, "title" text, "director" text, "writer" text, "original_airdate" text, "u_s_airdate" text ); Question: What was the us airdate for "Bear Breasts"? <|assistant|> SELECT "u_s_airdate" FROM "season_3" WHERE "title"='\"Bear Breasts\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3" ( "episode_num" real, "episode" real, "title" text, "director" text, "writer" text, "original_airdate" text, "u_s_airdate" text ); Question: What was the USA airdate for "Jenny From the Block"? <|assistant|> SELECT "u_s_airdate" FROM "season_3" WHERE "title"='\"Jenny from the Block\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2" ( "num" real, "episode" text, "air_date_canada_yyyy_mm_dd" text, "viewers_canada" real, "air_date_netherlands_yyyy_mm_dd" text, "viewers_netherlands" real ); Question: Name the most number for air date 2009/12/29 <|assistant|> SELECT MAX("num") FROM "season_2" WHERE "air_date_netherlands_yyyy_mm_dd"='2009/12/29';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2101431_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: How many millions viewers watched the episode that ran 23:25? <|assistant|> SELECT "viewers_in_millions" FROM "table1_2101431_1" WHERE "run_time"='23:25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2101431_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: What is the broadcast date of the episode on 16mm t/r that ran 23:25? <|assistant|> SELECT "broadcast_date" FROM "table1_2101431_1" WHERE "archive"='16mm t/r' AND "run_time"='23:25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2101431_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: Which episode was watched by 7.2 million viewers? <|assistant|> SELECT "episode" FROM "table1_2101431_1" WHERE "viewers_in_millions"='7.2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2101431_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: What episode had a run time of 24:18? <|assistant|> SELECT "episode" FROM "table1_2101431_1" WHERE "run_time"='24:18';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technical_specifications" ( "displacement" text, "bore" text, "stroke" text, "cylinders" text, "valves" real, "power" text, "torque" text, "applications" text ); Question: What is the greatest number of valves? <|assistant|> SELECT MIN("valves") FROM "technical_specifications";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technical_specifications" ( "displacement" text, "bore" text, "stroke" text, "cylinders" text, "valves" real, "power" text, "torque" text, "applications" text ); Question: For the 1999 w210 e-class , 2000 w203 c-class, what is the stroke? <|assistant|> SELECT "stroke" FROM "technical_specifications" WHERE "applications"='1999 W210 E-Class , 2000 W203 C-Class';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technical_specifications" ( "displacement" text, "bore" text, "stroke" text, "cylinders" text, "valves" real, "power" text, "torque" text, "applications" text ); Question: What is the displacement for torque of n·m (lb·ft) @1500 rpm? <|assistant|> SELECT "displacement" FROM "technical_specifications" WHERE "torque"='N·m (lb·ft) @1500 rpm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technical_specifications" ( "displacement" text, "bore" text, "stroke" text, "cylinders" text, "valves" real, "power" text, "torque" text, "applications" text ); Question: If torque is n·m (lb·ft) @1600–2400 rpm and applications is 2000 w90x sprinter, what is the power? <|assistant|> SELECT "power" FROM "technical_specifications" WHERE "torque"='N·m (lb·ft) @1600–2400 rpm' AND "applications"='2000 W90x Sprinter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "technical_specifications" ( "displacement" text, "bore" text, "stroke" text, "cylinders" text, "valves" real, "power" text, "torque" text, "applications" text ); Question: List the torque possible when the stroke is 88.4mm? <|assistant|> SELECT "torque" FROM "technical_specifications" WHERE "stroke"='88.4mm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "sun_devils_points" real, "opponents" real, "record" text ); Question: Name the opponent for 7-1-0 <|assistant|> SELECT "opponent" FROM "schedule" WHERE "record"='7-1-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2102782_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: Name the episode for run time 25:05 <|assistant|> SELECT "episode" FROM "table1_2102782_1" WHERE "run_time"='25:05';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2102782_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: Name the broadcast date for run timke of 25:04 <|assistant|> SELECT "broadcast_date" FROM "table1_2102782_1" WHERE "run_time"='25:04';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2102782_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: Name the archive for run time of 23:55 <|assistant|> SELECT "archive" FROM "table1_2102782_1" WHERE "run_time"='23:55';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2102782_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: Name the broadcast date for 7.4 viewers <|assistant|> SELECT "broadcast_date" FROM "table1_2102782_1" WHERE "viewers_in_millions"='7.4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2102782_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: Name the broadcast date for 6.0 viewers <|assistant|> SELECT "broadcast_date" FROM "table1_2102782_1" WHERE "viewers_in_millions"='6.0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21025437_2" ( "episode_no" real, "title" text, "directed_by" text, "written_by" text, "viewers_millions" text, "original_airdate" text ); Question: What was the episode number for "Going Bodmin"? <|assistant|> SELECT MAX("episode_no") FROM "table1_21025437_2" WHERE "title"='\"Going Bodmin\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21025437_2" ( "episode_no" real, "title" text, "directed_by" text, "written_by" text, "viewers_millions" text, "original_airdate" text ); Question: When did "Going Bodmin" originally air? <|assistant|> SELECT "original_airdate" FROM "table1_21025437_2" WHERE "title"='\"Going Bodmin\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21025437_2" ( "episode_no" real, "title" text, "directed_by" text, "written_by" text, "viewers_millions" text, "original_airdate" text ); Question: How many episodes were written by Kirstie Falkous & John Regier? <|assistant|> SELECT COUNT("episode_no") FROM "table1_21025437_2" WHERE "written_by"='Kirstie Falkous & John Regier';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21025437_2" ( "episode_no" real, "title" text, "directed_by" text, "written_by" text, "viewers_millions" text, "original_airdate" text ); Question: How many episodes were titled "Going Bodmin"? <|assistant|> SELECT "episode_no" FROM "table1_21025437_2" WHERE "title"='\"Going Bodmin\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2102714_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: What episode had 9.7 million viewers? <|assistant|> SELECT "episode" FROM "table1_2102714_1" WHERE "viewers_in_millions"='9.7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2102714_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: What date was an episode broadcasted on that had a run time of 24:40? <|assistant|> SELECT "broadcast_date" FROM "table1_2102714_1" WHERE "run_time"='24:40';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2102714_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: What episode had a run time of 24:53? <|assistant|> SELECT "episode" FROM "table1_2102714_1" WHERE "run_time"='24:53';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2102714_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: What was the archive for the episode with a run time of 25:24? <|assistant|> SELECT "archive" FROM "table1_2102714_1" WHERE "run_time"='25:24';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2102714_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: What is he archive for the episode with a run time of 24:05? <|assistant|> SELECT "archive" FROM "table1_2102714_1" WHERE "run_time"='24:05';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21025437_6" ( "episode_no" real, "series_no" real, "title" text, "directed_by" text, "written_by" text, "viewers_millions" text, "original_airdate" text ); Question: Who directed the episode "the departed"? <|assistant|> SELECT "directed_by" FROM "table1_21025437_6" WHERE "title"='\"The Departed\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21025437_6" ( "episode_no" real, "series_no" real, "title" text, "directed_by" text, "written_by" text, "viewers_millions" text, "original_airdate" text ); Question: Who directed episode number 23? <|assistant|> SELECT "directed_by" FROM "table1_21025437_6" WHERE "episode_no"=23;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "sun_devils_points" real, "opponents" real, "record" text ); Question: What was the numer of the game when the record was 4-0? <|assistant|> SELECT MAX("game") FROM "schedule" WHERE "record"='4-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "sun_devils_points" real, "opponents" real, "record" text ); Question: How many opponents led to an exactly 7-0 record? <|assistant|> SELECT COUNT("opponent") FROM "schedule" WHERE "record"='7-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "sun_devils_points" real, "opponents" real, "record" text ); Question: What number was the game against Kansas State? <|assistant|> SELECT "game" FROM "schedule" WHERE "opponent"='Kansas State';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2102898_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: How many episodes ran 24:33? <|assistant|> SELECT COUNT("episode") FROM "table1_2102898_1" WHERE "run_time"='24:33';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2102898_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: On broadcast date is 25april1970, how many people tuned in? <|assistant|> SELECT "viewers_in_millions" FROM "table1_2102898_1" WHERE "broadcast_date"='25April1970';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2102898_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: On broadcast date is 28march1970, how many people tuned in? <|assistant|> SELECT "viewers_in_millions" FROM "table1_2102898_1" WHERE "broadcast_date"='28March1970';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2102898_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: On broadcast date is 21march1970, how many people tuned in? <|assistant|> SELECT COUNT("viewers_in_millions") FROM "table1_2102898_1" WHERE "broadcast_date"='21March1970';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2102898_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: What is the archive of the show that aired on 18april1970? <|assistant|> SELECT "archive" FROM "table1_2102898_1" WHERE "broadcast_date"='18April1970';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "golden_bears_points" real, "opponents" real, "record" text ); Question: What was the least amount of points scored by the golden bears when the opponent scored 15 points? <|assistant|> SELECT MIN("golden_bears_points") FROM "schedule" WHERE "opponents"=15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "golden_bears_points" real, "opponents" real, "record" text ); Question: What is the total number of opponents played against the bears in game 4? <|assistant|> SELECT COUNT("opponents") FROM "schedule" WHERE "game"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "golden_bears_points" real, "opponents" real, "record" text ); Question: What opponent was playing against the Golden Bears when they scored 3 points? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "golden_bears_points"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2104176_1" ( "medal_of_honor" text, "coast_guard_cross" text, "navy_cross" text, "distinguished_service_cross" text, "air_force_cross" text, "homeland_security_distinguished_service_medal" text ); Question: What is the Medal of Honor with Army Distinguished Service Medal? <|assistant|> SELECT "medal_of_honor" FROM "table1_2104176_1" WHERE "air_force_cross"='Army Distinguished Service Medal';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2104176_1" ( "medal_of_honor" text, "coast_guard_cross" text, "navy_cross" text, "distinguished_service_cross" text, "air_force_cross" text, "homeland_security_distinguished_service_medal" text ); Question: WHat is the Homeland security distinguished service medal when the medal of honor is Coast guard Medal? <|assistant|> SELECT "homeland_security_distinguished_service_medal" FROM "table1_2104176_1" WHERE "medal_of_honor"='Coast Guard Medal';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2104176_1" ( "medal_of_honor" text, "coast_guard_cross" text, "navy_cross" text, "distinguished_service_cross" text, "air_force_cross" text, "homeland_security_distinguished_service_medal" text ); Question: What is the distinguished service cross when the navy cross is Coast Guard commendation medal? <|assistant|> SELECT "distinguished_service_cross" FROM "table1_2104176_1" WHERE "navy_cross"='Coast Guard Commendation Medal';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2104176_1" ( "medal_of_honor" text, "coast_guard_cross" text, "navy_cross" text, "distinguished_service_cross" text, "air_force_cross" text, "homeland_security_distinguished_service_medal" text ); Question: What is the air force cross when you recieve the Aerial achievement medal? <|assistant|> SELECT "air_force_cross" FROM "table1_2104176_1" WHERE "homeland_security_distinguished_service_medal"='Aerial Achievement Medal';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2104176_1" ( "medal_of_honor" text, "coast_guard_cross" text, "navy_cross" text, "distinguished_service_cross" text, "air_force_cross" text, "homeland_security_distinguished_service_medal" text ); Question: What is the coast guard cross when you recieve the navy distinguished service medal? <|assistant|> SELECT "coast_guard_cross" FROM "table1_2104176_1" WHERE "distinguished_service_cross"='Navy Distinguished Service Medal';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "county_results" ( "county" text, "won_by" text, "walker_pct" real, "walker_votes" real, "barrett_pct" real, "barrett_votes" real ); Question: How many figures are given for Walker's percentage in Kenosha county? <|assistant|> SELECT COUNT("walker_pct") FROM "county_results" WHERE "county"='Kenosha';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "county_results" ( "county" text, "won_by" text, "walker_pct" real, "walker_votes" real, "barrett_pct" real, "barrett_votes" real ); Question: What percentage did Walker win in Calumet county? <|assistant|> SELECT "walker_pct" FROM "county_results" WHERE "county"='Calumet';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "county_results" ( "county" text, "won_by" text, "walker_pct" real, "walker_votes" real, "barrett_pct" real, "barrett_votes" real ); Question: How many total figures are given for Milwaukee county? <|assistant|> SELECT COUNT("won_by") FROM "county_results" WHERE "county"='Milwaukee';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "wildcats_points" real, "opponents" real, "record" text ); Question: What did they do in the game when their record was 3-2-1? <|assistant|> SELECT "result" FROM "schedule" WHERE "record"='3-2-1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "wildcats_points" real, "opponents" real, "record" text ); Question: What did they do against Villanova? <|assistant|> SELECT "result" FROM "schedule" WHERE "opponent"='Villanova';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "wildcats_points" real, "opponents" real, "record" text ); Question: What did they do against Memphis? <|assistant|> SELECT "result" FROM "schedule" WHERE "opponent"='Memphis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "wildcats_points" real, "opponents" real, "record" text ); Question: How many games did they play when their record 0-2-0? <|assistant|> SELECT COUNT("date") FROM "schedule" WHERE "record"='0-2-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21055055_2" ( "num" real, "episode" text, "au_air_date" text, "timeslot" text, "viewers_m" text, "nightly_rank_num" real, "weekly_rank_num" real ); Question: When did the episode seen by is 2.267 million people get aired? <|assistant|> SELECT "au_air_date" FROM "table1_21055055_2" WHERE "viewers_m"='2.267';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2105721_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: Name the episode for run time in 24:44 <|assistant|> SELECT "episode" FROM "table1_2105721_1" WHERE "run_time"='24:44';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2105721_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: Name the total episode for runtime of 24:11 <|assistant|> SELECT COUNT("episode") FROM "table1_2105721_1" WHERE "run_time"='24:11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "wildcats_points" real, "opponents" real, "record" text ); Question: Who did the team play against when a record of 3-1, #16 was achieved? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "record"='3-1, #16';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "wildcats_points" real, "opponents" real, "record" text ); Question: What was the result of the game against Mississippi State? <|assistant|> SELECT "result" FROM "schedule" WHERE "opponent"='Mississippi State';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "wildcats_points" real, "opponents" real, "record" text ); Question: Who did the team play against in the game that resulted with a loss? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "result"='Loss';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "bruins_points" real, "opponents" real, "record" text ); Question: What game did the Bruins play Santa Clara? <|assistant|> SELECT "game" FROM "schedule" WHERE "opponent"='Santa Clara';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "bruins_points" real, "opponents" real, "record" text ); Question: Santa Clara was played how many times? <|assistant|> SELECT "opponents" FROM "schedule" WHERE "opponent"='Santa Clara';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "bruins_points" real, "opponents" real, "record" text ); Question: The game the Bruins scored 26 ,what was the result? <|assistant|> SELECT "result" FROM "schedule" WHERE "opponents"=26;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "bruins_points" real, "opponents" real, "record" text ); Question: What was the record for game 9? <|assistant|> SELECT "record" FROM "schedule" WHERE "game"=9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "wildcats_points" real, "opponents" real, "record" text ); Question: Who were the opponents of the Wildcats in game 4? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "game"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "wildcats_points" real, "opponents" real, "record" text ); Question: Who were the the opponents of the Wildcats for game 8 of the season? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "game"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "wildcats_points" real, "opponents" real, "record" text ); Question: What was the record of the Wildcats after playing Florida? <|assistant|> SELECT "record" FROM "schedule" WHERE "opponent"='Florida';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "wildcats_points" real, "opponents" real, "record" text ); Question: How many times did the Wildcats play a game 11 regardless of points scored? <|assistant|> SELECT COUNT("wildcats_points") FROM "schedule" WHERE "game"=11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); Question: Name the number of black knights points for 3 game <|assistant|> SELECT COUNT("black_knights_points") FROM "schedule" WHERE "game"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); Question: Name the opponents for game 5 <|assistant|> SELECT "opponents" FROM "schedule" WHERE "game"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); Question: Name the result for 19 black knights points <|assistant|> SELECT "result" FROM "schedule" WHERE "black_knights_points"=19;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); Question: Name the opponent for black knights points 27 <|assistant|> SELECT "opponent" FROM "schedule" WHERE "black_knights_points"=27;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); Question: Name the date for game 8 <|assistant|> SELECT "date" FROM "schedule" WHERE "game"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); Question: Name the number of date for 1-0 record <|assistant|> SELECT COUNT("date") FROM "schedule" WHERE "record"='1-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); Question: Name the game for record 1-0 <|assistant|> SELECT "game" FROM "schedule" WHERE "record"='1-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); Question: Name the most game <|assistant|> SELECT MAX("game") FROM "schedule";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); Question: How many games have a record of 3-4-0? <|assistant|> SELECT MAX("game") FROM "schedule" WHERE "record"='3-4-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); Question: How many dates have boston college as the opponent? <|assistant|> SELECT COUNT("date") FROM "schedule" WHERE "opponent"='Boston College';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); Question: How many games have Air Force as the opponent? <|assistant|> SELECT MAX("game") FROM "schedule" WHERE "opponent"='Air Force';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); Question: How many records have black knights points as 17? <|assistant|> SELECT COUNT("record") FROM "schedule" WHERE "black_knights_points"=17;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "orangemen_points" real, "opponents" real, "record" text ); Question: Which opponent has a record of 6-2? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "record"='6-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "orangemen_points" real, "opponents" real, "record" text ); Question: How many results have a game of 5? <|assistant|> SELECT COUNT("result") FROM "schedule" WHERE "game"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2108684_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: What is the run time for the episode with 7.9 million viewers? <|assistant|> SELECT "run_time" FROM "table1_2108684_1" WHERE "viewers_in_millions"='7.9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2108684_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: What episode had a run time of 23:38? <|assistant|> SELECT "episode" FROM "table1_2108684_1" WHERE "run_time"='23:38';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2108684_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: How many million viewers watched the episode with a run time of 25:22? <|assistant|> SELECT "viewers_in_millions" FROM "table1_2108684_1" WHERE "run_time"='25:22';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); Question: Name the date for result loss for duke <|assistant|> SELECT "date" FROM "schedule" WHERE "result"='Loss' AND "opponent"='Duke';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); Question: Name the opponents for record of 2-1 <|assistant|> SELECT "opponents" FROM "schedule" WHERE "record"='2-1';<|endoftext|>