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 \"new_zealand_tv2\" (\n \"episode_number\" real,\n \"title\" text,\n \"original_airing\" text,\n \"timeslot\" text,\n \"viewers\" real,\n \"top_50_ranking\" real,\n \"scripted_show_ranking\" real\n);\n\nQuestion: The episode titled \"Epiphany\" received what scripted show ranking?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"scripted_show_ranking\") FROM \"new_zealand_tv2\" WHERE \"title\"='Epiphany';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"new_zealand_tv2\" (\n \"episode_number\" real,\n \"title\" text,\n \"original_airing\" text,\n \"timeslot\" text,\n \"viewers\" real,\n \"top_50_ranking\" real,\n \"scripted_show_ranking\" real\n);\n\nQuestion: How many of the episodes in the top 50 rankings were originally aired on June 28, 2010?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"top_50_ranking\") FROM \"new_zealand_tv2\" WHERE \"original_airing\"='June 28, 2010';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tertiary_institutions\" (\n \"institution\" text,\n \"location\" text,\n \"enrollment\" text,\n \"athletic_nickname\" text,\n \"school_colors\" text,\n \"founded\" real\n);\n\nQuestion: For the location of quezon city , metro manila what is the athletic nickname?"
},
{
"role": "assistant",
"content": "SELECT \"athletic_nickname\" FROM \"tertiary_institutions\" WHERE \"location\"='Quezon City , Metro Manila';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tertiary_institutions\" (\n \"institution\" text,\n \"location\" text,\n \"enrollment\" text,\n \"athletic_nickname\" text,\n \"school_colors\" text,\n \"founded\" real\n);\n\nQuestion: How many locations are there for the athletic nickname is blue crusaders?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location\") FROM \"tertiary_institutions\" WHERE \"athletic_nickname\"='Blue Crusaders';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tertiary_institutions\" (\n \"institution\" text,\n \"location\" text,\n \"enrollment\" text,\n \"athletic_nickname\" text,\n \"school_colors\" text,\n \"founded\" real\n);\n\nQuestion: How many entries are shown for school colors for the location of naga , camarines sur?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"school_colors\") FROM \"tertiary_institutions\" WHERE \"location\"='Naga , Camarines Sur';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tertiary_institutions\" (\n \"institution\" text,\n \"location\" text,\n \"enrollment\" text,\n \"athletic_nickname\" text,\n \"school_colors\" text,\n \"founded\" real\n);\n\nQuestion: For the athletic nickname of golden knights how many entries are shown for enrollment?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"enrollment\") FROM \"tertiary_institutions\" WHERE \"athletic_nickname\"='Golden Knights';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tertiary_institutions\" (\n \"institution\" text,\n \"location\" text,\n \"enrollment\" text,\n \"athletic_nickname\" text,\n \"school_colors\" text,\n \"founded\" real\n);\n\nQuestion: What year was the ateneo de manila university founded?"
},
{
"role": "assistant",
"content": "SELECT \"founded\" FROM \"tertiary_institutions\" WHERE \"institution\"='Ateneo de Manila University';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tertiary_institutions\" (\n \"institution\" text,\n \"location\" text,\n \"enrollment\" text,\n \"athletic_nickname\" text,\n \"school_colors\" text,\n \"founded\" real\n);\n\nQuestion: What year was the athletic nickname blue crusaders founded?"
},
{
"role": "assistant",
"content": "SELECT \"founded\" FROM \"tertiary_institutions\" WHERE \"athletic_nickname\"='Blue Crusaders';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22181917_2\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many original airdates did season 20 have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"original_air_date\") FROM \"table1_22181917_2\" WHERE \"season_num\"=20;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22181917_2\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who directed the episode that was watched by 6.62 million U.S. viewers?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_22181917_2\" WHERE \"u_s_viewers_millions\"='6.62';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22181917_2\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the production code for the episode with 8.56 million U.S. viewers?"
},
{
"role": "assistant",
"content": "SELECT \"production_code\" FROM \"table1_22181917_2\" WHERE \"u_s_viewers_millions\"='8.56';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22181917_2\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the title of the episode that had 9.76 million U.S. viewers?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_22181917_2\" WHERE \"u_s_viewers_millions\"='9.76';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"united_kingdom_channel_4\" (\n \"episode_number\" real,\n \"title\" text,\n \"original_airing_on_channel_4\" text,\n \"time_of_airing_on_channel_4\" text,\n \"original_airing_on_e4\" text,\n \"time_of_airing_on_e4\" text,\n \"position_in_channel_4s_ratings_a\" text,\n \"position_in_e4s_ratings_b\" text,\n \"total_viewers\" text\n);\n\nQuestion: What is the title of the original airing on e4 May 2, 2010?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"united_kingdom_channel_4\" WHERE \"original_airing_on_e4\"='May 2, 2010';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"united_kingdom_channel_4\" (\n \"episode_number\" real,\n \"title\" text,\n \"original_airing_on_channel_4\" text,\n \"time_of_airing_on_channel_4\" text,\n \"original_airing_on_e4\" text,\n \"time_of_airing_on_e4\" text,\n \"position_in_channel_4s_ratings_a\" text,\n \"position_in_e4s_ratings_b\" text,\n \"total_viewers\" text\n);\n\nQuestion: How many total viewers have April 21, 2010 as the original airing on channel 4?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total_viewers\") FROM \"united_kingdom_channel_4\" WHERE \"original_airing_on_channel_4\"='April 21, 2010';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"united_kingdom_channel_4\" (\n \"episode_number\" real,\n \"title\" text,\n \"original_airing_on_channel_4\" text,\n \"time_of_airing_on_channel_4\" text,\n \"original_airing_on_e4\" text,\n \"time_of_airing_on_e4\" text,\n \"position_in_channel_4s_ratings_a\" text,\n \"position_in_e4s_ratings_b\" text,\n \"total_viewers\" text\n);\n\nQuestion: What is the position in e4s ratings b when June 30, 2010 is the original airing on channel 4?"
},
{
"role": "assistant",
"content": "SELECT \"position_in_e4s_ratings_b\" FROM \"united_kingdom_channel_4\" WHERE \"original_airing_on_channel_4\"='June 30, 2010';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"united_kingdom_channel_4\" (\n \"episode_number\" real,\n \"title\" text,\n \"original_airing_on_channel_4\" text,\n \"time_of_airing_on_channel_4\" text,\n \"original_airing_on_e4\" text,\n \"time_of_airing_on_e4\" text,\n \"position_in_channel_4s_ratings_a\" text,\n \"position_in_e4s_ratings_b\" text,\n \"total_viewers\" text\n);\n\nQuestion: When is the original airing on channel 4 with being alive as the title?"
},
{
"role": "assistant",
"content": "SELECT \"original_airing_on_channel_4\" FROM \"united_kingdom_channel_4\" WHERE \"title\"='Being Alive';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"united_kingdom_channel_4\" (\n \"episode_number\" real,\n \"title\" text,\n \"original_airing_on_channel_4\" text,\n \"time_of_airing_on_channel_4\" text,\n \"original_airing_on_e4\" text,\n \"time_of_airing_on_e4\" text,\n \"position_in_channel_4s_ratings_a\" text,\n \"position_in_e4s_ratings_b\" text,\n \"total_viewers\" text\n);\n\nQuestion: How many position in channel 4s ratings a have February 24, 2010 as the original airing on channel 4?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"position_in_channel_4s_ratings_a\") FROM \"united_kingdom_channel_4\" WHERE \"original_airing_on_channel_4\"='February 24, 2010';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"type\" text,\n \"registration\" text,\n \"design\" text,\n \"construction\" text,\n \"service\" text,\n \"construction_date\" text,\n \"conformity_to_original_design\" text,\n \"interest\" text,\n \"number_existing_in_switzerland\" text,\n \"number_existing_worldwide\" text,\n \"status\" text\n);\n\nQuestion: What are all types where registration is HB-OPU?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"references\" WHERE \"registration\"='HB-OPU';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"type\" text,\n \"registration\" text,\n \"design\" text,\n \"construction\" text,\n \"service\" text,\n \"construction_date\" text,\n \"conformity_to_original_design\" text,\n \"interest\" text,\n \"number_existing_in_switzerland\" text,\n \"number_existing_worldwide\" text,\n \"status\" text\n);\n\nQuestion: What is every registration for the type of T 6 G?"
},
{
"role": "assistant",
"content": "SELECT \"registration\" FROM \"references\" WHERE \"type\"='T 6 G';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"type\" text,\n \"registration\" text,\n \"design\" text,\n \"construction\" text,\n \"service\" text,\n \"construction_date\" text,\n \"conformity_to_original_design\" text,\n \"interest\" text,\n \"number_existing_in_switzerland\" text,\n \"number_existing_worldwide\" text,\n \"status\" text\n);\n\nQuestion: What is every construction date for the registration of HB-HOS?"
},
{
"role": "assistant",
"content": "SELECT \"construction_date\" FROM \"references\" WHERE \"registration\"='HB-HOS';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"type\" text,\n \"registration\" text,\n \"design\" text,\n \"construction\" text,\n \"service\" text,\n \"construction_date\" text,\n \"conformity_to_original_design\" text,\n \"interest\" text,\n \"number_existing_in_switzerland\" text,\n \"number_existing_worldwide\" text,\n \"status\" text\n);\n\nQuestion: What is every conformity to original design if the construction date is after 1945 and registration is HB-SAE?"
},
{
"role": "assistant",
"content": "SELECT \"conformity_to_original_design\" FROM \"references\" WHERE \"construction_date\"='After 1945' AND \"registration\"='HB-SAE';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"type\" text,\n \"registration\" text,\n \"design\" text,\n \"construction\" text,\n \"service\" text,\n \"construction_date\" text,\n \"conformity_to_original_design\" text,\n \"interest\" text,\n \"number_existing_in_switzerland\" text,\n \"number_existing_worldwide\" text,\n \"status\" text\n);\n\nQuestion: What is every conformity to original design if registration is HB-DAI?"
},
{
"role": "assistant",
"content": "SELECT \"conformity_to_original_design\" FROM \"references\" WHERE \"registration\"='HB-DAI';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episode_list\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"nbc_airdate\" text,\n \"code\" real\n);\n\nQuestion: What is the latest season number that Eric Tuchman directed? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"season_num\") FROM \"episode_list\" WHERE \"director\"='Eric Tuchman';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episode_list\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"nbc_airdate\" text,\n \"code\" real\n);\n\nQuestion: How man seasons have the air date of October 2, 2001? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"season_num\") FROM \"episode_list\" WHERE \"nbc_airdate\"='October 2, 2001';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episode_list\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"nbc_airdate\" text,\n \"code\" real\n);\n\nQuestion: Who wrote, \"The Last Dance\"?"
},
{
"role": "assistant",
"content": "SELECT \"writer_s\" FROM \"episode_list\" WHERE \"title\"='\\\"The Last Dance\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2220432_1\" (\n \"year\" real,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: What was the report in the race where the winning team was Roush Fenway Racing? "
},
{
"role": "assistant",
"content": "SELECT \"report\" FROM \"table1_2220432_1\" WHERE \"team\"='Roush Fenway Racing';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2220432_1\" (\n \"year\" real,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: What was the miles (km) for the race that had an average speed of 136.117 MPH?"
},
{
"role": "assistant",
"content": "SELECT \"miles_km\" FROM \"table1_2220432_1\" WHERE \"average_speed_mph\"='136.117';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226343_1\" (\n \"year\" text,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: What are the miles when February 25 is the date?"
},
{
"role": "assistant",
"content": "SELECT \"miles_km\" FROM \"table1_2226343_1\" WHERE \"date\"='February 25';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226343_1\" (\n \"year\" text,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: How many laps have an average speed of 141.911?"
},
{
"role": "assistant",
"content": "SELECT \"laps\" FROM \"table1_2226343_1\" WHERE \"average_speed_mph\"='141.911';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226343_1\" (\n \"year\" text,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: Who is the manufacturer when 150.088 is the average speed (mph)?"
},
{
"role": "assistant",
"content": "SELECT \"manufacturer\" FROM \"table1_2226343_1\" WHERE \"average_speed_mph\"='150.088';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226343_1\" (\n \"year\" text,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: Who is the manufacturer for the date of June 22?"
},
{
"role": "assistant",
"content": "SELECT \"manufacturer\" FROM \"table1_2226343_1\" WHERE \"date\"='June 22';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226343_1\" (\n \"year\" text,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: How many laps have a race time of 3:31:24?"
},
{
"role": "assistant",
"content": "SELECT \"laps\" FROM \"table1_2226343_1\" WHERE \"race_time\"='3:31:24';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226343_1\" (\n \"year\" text,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: How many laps have an average speed (mph) of 140.22?"
},
{
"role": "assistant",
"content": "SELECT \"laps\" FROM \"table1_2226343_1\" WHERE \"average_speed_mph\"='140.22';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fr_yugoslavia\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: Who directed the film with the original title of \u0442\u0440\u0438 \u043b\u0435\u0442\u045a\u0430 \u0434\u0430\u043d\u0430?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"fr_yugoslavia\" WHERE \"original_title\"='\u0422\u0440\u0438 \u043b\u0435\u0442\u045a\u0430 \u0434\u0430\u043d\u0430';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fr_yugoslavia\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: Who directed the film with the title three summer days?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"fr_yugoslavia\" WHERE \"film_title_used_in_nomination\"='Three Summer Days';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fr_yugoslavia\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: Who is the director of the film with the title \u043b\u0435\u043f\u0430 \u0441\u0435\u043b\u0430 \u043b\u0435\u043f\u043e \u0433\u043e\u0440\u0435?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"fr_yugoslavia\" WHERE \"original_title\"='\u041b\u0435\u043f\u0430 \u0441\u0435\u043b\u0430 \u043b\u0435\u043f\u043e \u0433\u043e\u0440\u0435';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22261877_1\" (\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 \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many viewers in millions watched the episode with the production code 6acx16?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_viewers_million\" FROM \"table1_22261877_1\" WHERE \"production_code\"='6ACX16';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22261877_1\" (\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 \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the air date of the episode with the production code 6acx19? "
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_22261877_1\" WHERE \"production_code\"='6ACX19';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What is the original air date for the production code of 1.12?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_2226817_2\" WHERE \"production_code\"='1.12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: How many number of series have a production code of 1.11?"
},
{
"role": "assistant",
"content": "SELECT \"no_in_series\" FROM \"table1_2226817_2\" WHERE \"production_code\"='1.11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: How many number of series have the production code of 1.11?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"no_in_series\") FROM \"table1_2226817_2\" WHERE \"production_code\"='1.11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Who wrote when the original airdate is April 5, 1987?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_2226817_2\" WHERE \"original_air_date\"='April 5, 1987';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Who directed the title \"peggy sue got work\"?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_2226817_2\" WHERE \"title\"='\\\"Peggy Sue Got Work\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Who directed when the production code is 1.02?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_2226817_2\" WHERE \"production_code\"='1.02';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_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 \"production_code\" text\n);\n\nQuestion: Name the production code for november 27, 1988"
},
{
"role": "assistant",
"content": "SELECT \"production_code\" FROM \"table1_2226817_4\" WHERE \"original_air_date\"='November 27, 1988';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_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 \"production_code\" text\n);\n\nQuestion: Name the original air date for 3.04 production code"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_2226817_4\" WHERE \"production_code\"='3.04';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_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 \"production_code\" text\n);\n\nQuestion: Name who wrote the episode that aired april 9, 1989"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_2226817_4\" WHERE \"original_air_date\"='April 9, 1989';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_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 \"production_code\" text\n);\n\nQuestion: Name the number of number in season for 3.09"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no_in_season\") FROM \"table1_2226817_4\" WHERE \"production_code\"='3.09';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_12\" (\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 \"production_code\" text\n);\n\nQuestion: when was the episode premiere if the production code is 11.19? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"original_air_date\") FROM \"table1_2226817_12\" WHERE \"production_code\"='11.19';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_12\" (\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 \"production_code\" text\n);\n\nQuestion: what is the name of the episode whose premiere was in march 2, 1997?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_2226817_12\" WHERE \"original_air_date\"='March 2, 1997';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_12\" (\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 \"production_code\" text\n);\n\nQuestion: what is the name of the episode when the production code is 11.01?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_2226817_12\" WHERE \"production_code\"='11.01';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_12\" (\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 \"production_code\" text\n);\n\nQuestion: what is the name of the episode if the production code is 11.12?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_2226817_12\" WHERE \"production_code\"='11.12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_12\" (\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 \"production_code\" text\n);\n\nQuestion: how many episodes has been directed by Mark K. Samuels ?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no_in_series\") FROM \"table1_2226817_12\" WHERE \"directed_by\"='Mark K. Samuels';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_12\" (\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 \"production_code\" text\n);\n\nQuestion: what is the number of the episode in series that is called \"breaking up is easy to do (part 1)\"?"
},
{
"role": "assistant",
"content": "SELECT \"no_in_series\" FROM \"table1_2226817_12\" WHERE \"title\"='\\\"Breaking Up Is Easy to Do (Part 1)\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_3\" (\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 \"production_code\" text\n);\n\nQuestion: Who directed the title \"the razor's edge\"?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_2226817_3\" WHERE \"title\"='\\\"The Razor''s Edge\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_3\" (\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 \"production_code\" text\n);\n\nQuestion: Who directed what was written by Michael G. Moye & Ron Leavitt & J. Stanford Parker?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_2226817_3\" WHERE \"written_by\"='Michael G. Moye & Ron Leavitt & J. Stanford Parker';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_8\" (\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 \"production_code\" text\n);\n\nQuestion: What are all the production codes of episodes written by Michael G. Moye?"
},
{
"role": "assistant",
"content": "SELECT \"production_code\" FROM \"table1_2226817_8\" WHERE \"written_by\"='Michael G. Moye';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_8\" (\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 \"production_code\" text\n);\n\nQuestion: Who is the writer of episode 13?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"written_by\") FROM \"table1_2226817_8\" WHERE \"no_in_season\"=13;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_8\" (\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 \"production_code\" text\n);\n\nQuestion: Which series number has the production code 7.07?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no_in_series\") FROM \"table1_2226817_8\" WHERE \"production_code\"='7.07';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_8\" (\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 \"production_code\" text\n);\n\nQuestion: How many seasons have the production code 7.01 for an episode? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"no_in_season\") FROM \"table1_2226817_8\" WHERE \"production_code\"='7.01';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_8\" (\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 \"production_code\" text\n);\n\nQuestion: How many episodes in the series are from season 12?"
},
{
"role": "assistant",
"content": "SELECT \"no_in_series\" FROM \"table1_2226817_8\" WHERE \"no_in_season\"=12;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_9\" (\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 \"production_code\" text\n);\n\nQuestion: How many seasons had episode 158?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"no_in_season\") FROM \"table1_2226817_9\" WHERE \"no_in_series\"=158;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_9\" (\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 \"production_code\" text\n);\n\nQuestion: What is the production code of the episode directed by Stacie Lipp?"
},
{
"role": "assistant",
"content": "SELECT \"production_code\" FROM \"table1_2226817_9\" WHERE \"written_by\"='Stacie Lipp';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_9\" (\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 \"production_code\" text\n);\n\nQuestion: What is the name of episode 165?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_2226817_9\" WHERE \"no_in_series\"=165;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2226817_9\" (\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 \"production_code\" text\n);\n\nQuestion: How many episodes have the production code 8.04"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"directed_by\") FROM \"table1_2226817_9\" WHERE \"production_code\"='8.04';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"officially_assigned_code_elements\" (\n \"english_short_name_upper_lower_case\" text,\n \"alpha_2_code\" text,\n \"alpha_3_code\" text,\n \"numeric_code\" real,\n \"iso_3166_2_codes\" text\n);\n\nQuestion: What is the Alpha 2 code for the area also known as TCA?"
},
{
"role": "assistant",
"content": "SELECT \"alpha_2_code\" FROM \"officially_assigned_code_elements\" WHERE \"alpha_3_code\"='TCA';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"officially_assigned_code_elements\" (\n \"english_short_name_upper_lower_case\" text,\n \"alpha_2_code\" text,\n \"alpha_3_code\" text,\n \"numeric_code\" real,\n \"iso_3166_2_codes\" text\n);\n\nQuestion: What is the Alpha 3 code for the area also known as FO?"
},
{
"role": "assistant",
"content": "SELECT \"alpha_3_code\" FROM \"officially_assigned_code_elements\" WHERE \"alpha_2_code\"='FO';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"officially_assigned_code_elements\" (\n \"english_short_name_upper_lower_case\" text,\n \"alpha_2_code\" text,\n \"alpha_3_code\" text,\n \"numeric_code\" real,\n \"iso_3166_2_codes\" text\n);\n\nQuestion: What is the alpha 2 code for the area also known as NZL?"
},
{
"role": "assistant",
"content": "SELECT \"alpha_2_code\" FROM \"officially_assigned_code_elements\" WHERE \"alpha_3_code\"='NZL';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"officially_assigned_code_elements\" (\n \"english_short_name_upper_lower_case\" text,\n \"alpha_2_code\" text,\n \"alpha_3_code\" text,\n \"numeric_code\" real,\n \"iso_3166_2_codes\" text\n);\n\nQuestion: What is the ISO for South Sudan?"
},
{
"role": "assistant",
"content": "SELECT \"iso_3166_2_codes\" FROM \"officially_assigned_code_elements\" WHERE \"english_short_name_upper_lower_case\"='South Sudan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"officially_assigned_code_elements\" (\n \"english_short_name_upper_lower_case\" text,\n \"alpha_2_code\" text,\n \"alpha_3_code\" text,\n \"numeric_code\" real,\n \"iso_3166_2_codes\" text\n);\n\nQuestion: What is the Alpha 2 code for Papua New Guinea?"
},
{
"role": "assistant",
"content": "SELECT \"alpha_2_code\" FROM \"officially_assigned_code_elements\" WHERE \"english_short_name_upper_lower_case\"='Papua New Guinea';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"officially_assigned_code_elements\" (\n \"english_short_name_upper_lower_case\" text,\n \"alpha_2_code\" text,\n \"alpha_3_code\" text,\n \"numeric_code\" real,\n \"iso_3166_2_codes\" text\n);\n\nQuestion: What is the number reference for LIE?"
},
{
"role": "assistant",
"content": "SELECT \"numeric_code\" FROM \"officially_assigned_code_elements\" WHERE \"alpha_3_code\"='LIE';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"free_to_air_television\" (\n \"ch\" text,\n \"channel\" text,\n \"channel_content\" text,\n \"transmission\" text,\n \"format\" text,\n \"launch_date\" text,\n \"licence\" text\n);\n\nQuestion: How many launch dates are there for digital transmission?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"launch_date\") FROM \"free_to_air_television\" WHERE \"transmission\"='Digital';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22269839_1\" (\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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who wrote the title with production code 7acx14?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_22269839_1\" WHERE \"production_code\"='7ACX14';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22269839_1\" (\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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who directed the title written by cherry chevapravatdumrong?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_22269839_1\" WHERE \"written_by\"='Cherry Chevapravatdumrong';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22269839_1\" (\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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who wrote the title with the production code is 7acx08?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_22269839_1\" WHERE \"production_code\"='7ACX08';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22269839_1\" (\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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who directed the episode written by patrick meighan?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_22269839_1\" WHERE \"written_by\"='Patrick Meighan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wisconsin\" (\n \"code_location\" text,\n \"missile_type\" text,\n \"defense_area\" text,\n \"dates\" text,\n \"control_site_condition_owner\" text,\n \"launch_site_condition_owner\" text\n);\n\nQuestion: When is every date that control site condition or owner is machine shop on Martin Dr.?"
},
{
"role": "assistant",
"content": "SELECT \"dates\" FROM \"wisconsin\" WHERE \"control_site_condition_owner\"='machine shop on Martin Dr.';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wisconsin\" (\n \"code_location\" text,\n \"missile_type\" text,\n \"defense_area\" text,\n \"dates\" text,\n \"control_site_condition_owner\" text,\n \"launch_site_condition_owner\" text\n);\n\nQuestion: What is every missile type with a code and location of M-20 Harbor Drive?"
},
{
"role": "assistant",
"content": "SELECT \"missile_type\" FROM \"wisconsin\" WHERE \"code_location\"='M-20 Harbor Drive';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wisconsin\" (\n \"code_location\" text,\n \"missile_type\" text,\n \"defense_area\" text,\n \"dates\" text,\n \"control_site_condition_owner\" text,\n \"launch_site_condition_owner\" text\n);\n\nQuestion: What is every code and location where the launch site condition and owner is obliterated?"
},
{
"role": "assistant",
"content": "SELECT \"code_location\" FROM \"wisconsin\" WHERE \"launch_site_condition_owner\"='Obliterated';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wisconsin\" (\n \"code_location\" text,\n \"missile_type\" text,\n \"defense_area\" text,\n \"dates\" text,\n \"control_site_condition_owner\" text,\n \"launch_site_condition_owner\" text\n);\n\nQuestion: What is every control site condition and owner if launch site condition and owner is Lakefront Office Buildings?"
},
{
"role": "assistant",
"content": "SELECT \"control_site_condition_owner\" FROM \"wisconsin\" WHERE \"launch_site_condition_owner\"='lakefront office buildings';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: Which team had an outgoing manager of Behtash Fariba?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"managerial_changes\" WHERE \"outgoing_manager\"='Behtash Fariba';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: Which team had a manager who was replaced by Faraz Kamalvand?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"managerial_changes\" WHERE \"replaced_by\"='Faraz Kamalvand';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: Which outgoing manager was replaced by Jafar Fatahi?"
},
{
"role": "assistant",
"content": "SELECT \"outgoing_manager\" FROM \"managerial_changes\" WHERE \"replaced_by\"='Jafar Fatahi';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: Which team had a manager replaced by Ebrahim Talebi?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"managerial_changes\" WHERE \"replaced_by\"='Ebrahim Talebi';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: What was the date in which Behtash Fariba left his team?"
},
{
"role": "assistant",
"content": "SELECT \"date_of_vacancy\" FROM \"managerial_changes\" WHERE \"outgoing_manager\"='Behtash Fariba';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: What was the manner of leaving the team for the manager of Gostaresh Foolad?"
},
{
"role": "assistant",
"content": "SELECT \"manner_of_departure\" FROM \"managerial_changes\" WHERE \"team\"='Gostaresh Foolad';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison_of_county_community_colleges_\" (\n \"college\" text,\n \"2007_headcount\" real,\n \"2007_2008_credit_hours\" real,\n \"county_population_18_yrs\" real,\n \"penetration_in_terms_of_enrollment_per_1000_adults\" real,\n \"in_county_tuition_per_credit_hour_fall_2009\" text\n);\n\nQuestion: How much was the cost of in-county tuition per credit hour at the Gloucester College by the fall of 2009?"
},
{
"role": "assistant",
"content": "SELECT \"in_county_tuition_per_credit_hour_fall_2009\" FROM \"comparison_of_county_community_colleges_\" WHERE \"college\"='Gloucester';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison_of_county_community_colleges_\" (\n \"college\" text,\n \"2007_headcount\" real,\n \"2007_2008_credit_hours\" real,\n \"county_population_18_yrs\" real,\n \"penetration_in_terms_of_enrollment_per_1000_adults\" real,\n \"in_county_tuition_per_credit_hour_fall_2009\" text\n);\n\nQuestion: How much was the in-county tuition per credit hour at the Mercer College by the fall of 2009?"
},
{
"role": "assistant",
"content": "SELECT \"in_county_tuition_per_credit_hour_fall_2009\" FROM \"comparison_of_county_community_colleges_\" WHERE \"college\"='Mercer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison_of_county_community_colleges_\" (\n \"college\" text,\n \"2007_headcount\" real,\n \"2007_2008_credit_hours\" real,\n \"county_population_18_yrs\" real,\n \"penetration_in_terms_of_enrollment_per_1000_adults\" real,\n \"in_county_tuition_per_credit_hour_fall_2009\" text\n);\n\nQuestion: What is the biggest number for county population 18 years+?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"county_population_18_yrs\") FROM \"comparison_of_county_community_colleges_\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: Who was the replacement manager for the vacancy of 12 Dec 2009?"
},
{
"role": "assistant",
"content": "SELECT \"replaced_by\" FROM \"managerial_changes\" WHERE \"date_of_vacancy\"='12 Dec 2009';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: Who was the replacement manager for the vacancy of 12 Dec 2009?"
},
{
"role": "assistant",
"content": "SELECT \"replaced_by\" FROM \"managerial_changes\" WHERE \"date_of_vacancy\"='12 Dec 2009';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: What team did Alireza mansourian leave?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"managerial_changes\" WHERE \"outgoing_manager\"='Alireza Mansourian';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: Why did Majid bagherinia leave?"
},
{
"role": "assistant",
"content": "SELECT \"manner_of_departure\" FROM \"managerial_changes\" WHERE \"outgoing_manager\"='Majid Bagherinia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: What team did a manager leave on 12 Dec 2009"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"managerial_changes\" WHERE \"date_of_vacancy\"='12 Dec 2009';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: How many teams did Farhad Kazemi leave?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"team\") FROM \"managerial_changes\" WHERE \"outgoing_manager\"='Farhad Kazemi';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_schools_in_the_grac_and_general_\" (\n \"school\" text,\n \"location\" text,\n \"team_name\" text,\n \"colors\" text,\n \"varsity_teams\" real,\n \"njcaa_championships\" real\n);\n\nQuestion: If the school is Rend Lake College, what is the team name?"
},
{
"role": "assistant",
"content": "SELECT \"team_name\" FROM \"current_schools_in_the_grac_and_general_\" WHERE \"school\"='Rend Lake College';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_schools_in_the_grac_and_general_\" (\n \"school\" text,\n \"location\" text,\n \"team_name\" text,\n \"colors\" text,\n \"varsity_teams\" real,\n \"njcaa_championships\" real\n);\n\nQuestion: What is the minimum possible for the NJCAA championships?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"njcaa_championships\") FROM \"current_schools_in_the_grac_and_general_\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_schools_in_the_grac_and_general_\" (\n \"school\" text,\n \"location\" text,\n \"team_name\" text,\n \"colors\" text,\n \"varsity_teams\" real,\n \"njcaa_championships\" real\n);\n\nQuestion: If the varsity team is 6, what is the location?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"current_schools_in_the_grac_and_general_\" WHERE \"varsity_teams\"=6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_schools_in_the_grac_and_general_\" (\n \"school\" text,\n \"location\" text,\n \"team_name\" text,\n \"colors\" text,\n \"varsity_teams\" real,\n \"njcaa_championships\" real\n);\n\nQuestion: If the school is John A. Logan College, what are the colors?"
},
{
"role": "assistant",
"content": "SELECT \"colors\" FROM \"current_schools_in_the_grac_and_general_\" WHERE \"school\"='John A. Logan College';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_schools_in_the_grac_and_general_\" (\n \"school\" text,\n \"location\" text,\n \"team_name\" text,\n \"colors\" text,\n \"varsity_teams\" real,\n \"njcaa_championships\" real\n);\n\nQuestion: What is the minimum possible NJCAA championships?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"njcaa_championships\") FROM \"current_schools_in_the_grac_and_general_\";"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.