output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "first_broadcast" FROM "series_15" WHERE "seans_team"='Tina Malone and Joe Wilkinson';
## Task Generate a SQL query to answer the following question: `Name the first broadcast for tina malone and joe wilkinson` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_15" ( "episode" text, "first_broadcast" text, "seans_team" text, "jons_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the first broadcast for tina malone and joe wilkinson`: ```sql
SELECT COUNT("jons_team") FROM "series_15" WHERE "episode"='15x10';
## Task Generate a SQL query to answer the following question: `Name the number of jons team for 15x10` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_15" ( "episode" text, "first_broadcast" text, "seans_team" text, "jons_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of jons team for 15x10`: ```sql
SELECT "scores" FROM "series_15" WHERE "seans_team"='Chris Ramsey and Carol Vorderman';
## Task Generate a SQL query to answer the following question: `Name the scores for chris ramsey and carol vorderman` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_15" ( "episode" text, "first_broadcast" text, "seans_team" text, "jons_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the scores for chris ramsey and carol vorderman`: ```sql
SELECT COUNT("jons_team") FROM "series_15" WHERE "episode"='15x07';
## Task Generate a SQL query to answer the following question: `Name the total number of jons team for 15x07` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_15" ( "episode" text, "first_broadcast" text, "seans_team" text, "jons_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of jons team for 15x07`: ```sql
SELECT "jasons_team" FROM "series_6" WHERE "episode"='6x02';
## Task Generate a SQL query to answer the following question: `Name all of Jason's teams that appeared on episode 6x02?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_6" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `Name all of Jason's teams that appeared on episode 6x02?`: ```sql
SELECT COUNT("episode") FROM "series_6" WHERE "seans_team"='Vanessa Feltz and Lee Mack';
## Task Generate a SQL query to answer the following question: `In how many episodes were Vanessa Feltz and Lee Mack the team for Sean? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_6" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `In how many episodes were Vanessa Feltz and Lee Mack the team for Sean? `: ```sql
SELECT "episode" FROM "series_6" WHERE "jasons_team"='Duncan James and Johnny Vegas';
## Task Generate a SQL query to answer the following question: `Name the episode(s) that featured Duncan James and Johnny Vegas as Jason's team.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_6" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the episode(s) that featured Duncan James and Johnny Vegas as Jason's team.`: ```sql
SELECT MAX("sf_round") FROM "2009_season" WHERE "driver"='Duncan Tappy';
## Task Generate a SQL query to answer the following question: `What round does Duncan Tappy drive in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_3" text, "race_total_pts" real ); ### SQL Given the database schema, here is the SQL query that answers `What round does Duncan Tappy drive in?`: ```sql
SELECT MAX("race_total_pts") FROM "2009_season" WHERE "country"='England';
## Task Generate a SQL query to answer the following question: `How many racing points did England get?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_3" text, "race_total_pts" real ); ### SQL Given the database schema, here is the SQL query that answers `How many racing points did England get?`: ```sql
SELECT "race_2_pts" FROM "2009_season" WHERE "race_1_pts"=12;
## Task Generate a SQL query to answer the following question: `How many are the Race 2 points when Race 1 was 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_3" text, "race_total_pts" real ); ### SQL Given the database schema, here is the SQL query that answers `How many are the Race 2 points when Race 1 was 12?`: ```sql
SELECT "u_s_viewers_millions" FROM "table1_23294081_11" WHERE "no"=226;
## Task Generate a SQL query to answer the following question: `How many millions of people in the US saw the episode number 226?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23294081_11" ( "no" real, "num" real, "original_airdate" text, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many millions of people in the US saw the episode number 226?`: ```sql
SELECT MAX("no") FROM "table1_23294081_11";
## Task Generate a SQL query to answer the following question: `What is the highest episode number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23294081_11" ( "no" real, "num" real, "original_airdate" text, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest episode number?`: ```sql
SELECT "performer_1" FROM "table1_23294081_11" WHERE "performer_2"='Heather Anne Campbell' AND "num"=7;
## Task Generate a SQL query to answer the following question: `Who was performer 1 in the episode number 7 where Heather Anne Campbell was performer 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23294081_11" ( "no" real, "num" real, "original_airdate" text, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was performer 1 in the episode number 7 where Heather Anne Campbell was performer 2?`: ```sql
SELECT MIN("num") FROM "table1_23294081_11" WHERE "performer_2"='Heather Anne Campbell' AND "u_s_viewers_millions"='2.99';
## Task Generate a SQL query to answer the following question: `What's the number of the episode seen by 2.99 millions of people in the US, where performer 2 was Heather Anne Campbell?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23294081_11" ( "no" real, "num" real, "original_airdate" text, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the number of the episode seen by 2.99 millions of people in the US, where performer 2 was Heather Anne Campbell?`: ```sql
SELECT "episode" FROM "series_7" WHERE "seans_team"='Vic Reeves and Claudia Winkleman';
## Task Generate a SQL query to answer the following question: `Name the episode for vic reeves and claudia winkleman` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_7" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the episode for vic reeves and claudia winkleman`: ```sql
SELECT COUNT("scores") FROM "series_7" WHERE "episode"='7x05';
## Task Generate a SQL query to answer the following question: `Name the number of scores for episode 7x05` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_7" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of scores for episode 7x05`: ```sql
SELECT "seans_team" FROM "series_7" WHERE "first_broadcast"='13 November 2008';
## Task Generate a SQL query to answer the following question: `Name the seans team being 13 november 2008` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_7" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the seans team being 13 november 2008`: ```sql
SELECT COUNT("seans_team") FROM "series_7" WHERE "episode"='7x04';
## Task Generate a SQL query to answer the following question: `Name the total number of seans team being 7x04` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_7" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of seans team being 7x04`: ```sql
SELECT COUNT("scores") FROM "series_7" WHERE "episode"='7x10';
## Task Generate a SQL query to answer the following question: `Name the total number of scores for 7x10` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_7" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of scores for 7x10`: ```sql
SELECT COUNT("date") FROM "2008_season" WHERE "race_total_pts"=180;
## Task Generate a SQL query to answer the following question: `How many dates have a total points for race of 180?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_total_pts" real ); ### SQL Given the database schema, here is the SQL query that answers `How many dates have a total points for race of 180?`: ```sql
SELECT "race_1_pts" FROM "2008_season" WHERE "race_total_pts"=180;
## Task Generate a SQL query to answer the following question: `What is every points value for race 1 if the total race points is 180?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_total_pts" real ); ### SQL Given the database schema, here is the SQL query that answers `What is every points value for race 1 if the total race points is 180?`: ```sql
SELECT MIN("race_total_pts") FROM "2008_season" WHERE "country"='Belgium';
## Task Generate a SQL query to answer the following question: `What is the lowest number of total race points for the country of Belgium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_total_pts" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest number of total race points for the country of Belgium?`: ```sql
SELECT "driver" FROM "2008_season" WHERE "location"='Estoril Circuit';
## Task Generate a SQL query to answer the following question: `Who is every driver for the location of Estoril Circuit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_total_pts" real ); ### SQL Given the database schema, here is the SQL query that answers `Who is every driver for the location of Estoril Circuit?`: ```sql
SELECT MAX("sf_round") FROM "2008_season" WHERE "country"='England';
## Task Generate a SQL query to answer the following question: `What is the highest value for SF round for the country of England?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_total_pts" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest value for SF round for the country of England?`: ```sql
SELECT "surface" FROM "singles_6_2_titles_4_runner_ups" WHERE "year"=2001;
## Task Generate a SQL query to answer the following question: `What is the surface for the year 2001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_6_2_titles_4_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the surface for the year 2001?`: ```sql
SELECT "score" FROM "game_log" WHERE "date"='October 29';
## Task Generate a SQL query to answer the following question: `What was the score on October 29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the score on October 29?`: ```sql
SELECT COUNT("opponent") FROM "game_log" WHERE "record"='3-2-2';
## Task Generate a SQL query to answer the following question: `How many opponents were there with the record of 3-2-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many opponents were there with the record of 3-2-2?`: ```sql
SELECT "record" FROM "game_log" WHERE "date"='October 17';
## Task Generate a SQL query to answer the following question: `What was the record on October 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the record on October 17?`: ```sql
SELECT "date" FROM "game_log" WHERE "opponent"='New York Rangers';
## Task Generate a SQL query to answer the following question: `What date did they play agains the New York Rangers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What date did they play agains the New York Rangers?`: ```sql
SELECT MAX("points") FROM "game_log" WHERE "date"='October 27';
## Task Generate a SQL query to answer the following question: `How many points were there scored on October 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many points were there scored on October 27?`: ```sql
SELECT COUNT("score") FROM "game_log" WHERE "record"='10-3-4';
## Task Generate a SQL query to answer the following question: `How many different scores are there for the game with 10-3-4 record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many different scores are there for the game with 10-3-4 record?`: ```sql
SELECT "date" FROM "game_log" WHERE "record"='13-5-6';
## Task Generate a SQL query to answer the following question: `When was the game with 13-5-6 record played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `When was the game with 13-5-6 record played?`: ```sql
SELECT MIN("points") FROM "game_log";
## Task Generate a SQL query to answer the following question: `What's the minimal number of points scored in any game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the minimal number of points scored in any game?`: ```sql
SELECT COUNT("game") FROM "game_log" WHERE "opponent"='Florida Panthers' AND "location"='Verizon Center';
## Task Generate a SQL query to answer the following question: `How many different games against Florida Panthers were played in Verizon Center?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many different games against Florida Panthers were played in Verizon Center?`: ```sql
SELECT "record" FROM "game_log" WHERE "date"='November 7';
## Task Generate a SQL query to answer the following question: `What was the record in the November 7 game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the record in the November 7 game?`: ```sql
SELECT COUNT("attendance") FROM "game_log" WHERE "record"='49-15-11';
## Task Generate a SQL query to answer the following question: `How many times was there a record of 49-15-11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many times was there a record of 49-15-11?`: ```sql
SELECT COUNT("score") FROM "game_log" WHERE "date"='March 6';
## Task Generate a SQL query to answer the following question: `How many scores had a date of March 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many scores had a date of March 6?`: ```sql
SELECT "opponent" FROM "singles_performances_18_10" WHERE "date"='7-21-2006';
## Task Generate a SQL query to answer the following question: `If the date is 7-21-2006, who was the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performances_18_10" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "result" text, "outcome" text ); ### SQL Given the database schema, here is the SQL query that answers `If the date is 7-21-2006, who was the opponent?`: ```sql
SELECT "against" FROM "singles_performances_18_10" WHERE "opponent"='Kristian Pless';
## Task Generate a SQL query to answer the following question: `If the opponent is Kristian Pless, who was it against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performances_18_10" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "result" text, "outcome" text ); ### SQL Given the database schema, here is the SQL query that answers `If the opponent is Kristian Pless, who was it against?`: ```sql
SELECT "winning_team" FROM "race_calendar" WHERE "winning_driver"='Max Busnelli';
## Task Generate a SQL query to answer the following question: `Who is the winning team when max busnelli is the winning driver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar" ( "round" real, "location" text, "circuit" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the winning team when max busnelli is the winning driver?`: ```sql
SELECT "location" FROM "race_calendar" WHERE "circuit"='ACI Vallelunga Circuit';
## Task Generate a SQL query to answer the following question: `In which location is aci vallelunga circuit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar" ( "round" real, "location" text, "circuit" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text ); ### SQL Given the database schema, here is the SQL query that answers `In which location is aci vallelunga circuit?`: ```sql
SELECT "pole_position" FROM "race_calendar" WHERE "circuit"='Misano World Circuit';
## Task Generate a SQL query to answer the following question: `Who held the pole position in misano world circuit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar" ( "round" real, "location" text, "circuit" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Who held the pole position in misano world circuit?`: ```sql
SELECT "score" FROM "game_log" WHERE "opponent"='Detroit Red Wings';
## Task Generate a SQL query to answer the following question: `List the results for all games which involved the detroit red wings.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `List the results for all games which involved the detroit red wings.`: ```sql
SELECT MAX("points") FROM "game_log" WHERE "record"='28-12-6';
## Task Generate a SQL query to answer the following question: `Calculate the highest points where the win,loss, tie ratio is 28-12-6` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Calculate the highest points where the win,loss, tie ratio is 28-12-6`: ```sql
SELECT "record" FROM "game_log" WHERE "opponent"='Montreal Canadiens';
## Task Generate a SQL query to answer the following question: `what are the previous performance details for games involving the montreal canadiens?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `what are the previous performance details for games involving the montreal canadiens?`: ```sql
SELECT "year" FROM "table1_2331549_1" WHERE "third_place"='Michigan State University';
## Task Generate a SQL query to answer the following question: `Which years did Michigan state university come in third place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2331549_1" ( "year" real, "host_city" text, "host_school" text, "champion" text, "second_place" text, "third_place" text ); ### SQL Given the database schema, here is the SQL query that answers `Which years did Michigan state university come in third place?`: ```sql
SELECT "champion" FROM "table1_2331549_1" WHERE "third_place"='Michigan Technological University';
## Task Generate a SQL query to answer the following question: `Who were the champions in years where michigan technological university was in third place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2331549_1" ( "year" real, "host_city" text, "host_school" text, "champion" text, "second_place" text, "third_place" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the champions in years where michigan technological university was in third place?`: ```sql
SELECT "host_city" FROM "table1_2331549_1" WHERE "host_school"='École de technologie supérieure';
## Task Generate a SQL query to answer the following question: `What was the host city in years where the host school was école de technologie supérieure?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2331549_1" ( "year" real, "host_city" text, "host_school" text, "champion" text, "second_place" text, "third_place" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the host city in years where the host school was école de technologie supérieure?`: ```sql
SELECT "second_place" FROM "table1_2331549_1" WHERE "champion"='South Dakota School of Mines & Technology';
## Task Generate a SQL query to answer the following question: `Who came in second place when the champion was south dakota school of mines & technology?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2331549_1" ( "year" real, "host_city" text, "host_school" text, "champion" text, "second_place" text, "third_place" text ); ### SQL Given the database schema, here is the SQL query that answers `Who came in second place when the champion was south dakota school of mines & technology?`: ```sql
SELECT COUNT("innings") FROM "most_career_runs" WHERE "average"='45.65';
## Task Generate a SQL query to answer the following question: `If the average is 45.65, what is the total number of innings?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_career_runs" ( "rank" real, "runs" real, "player" text, "matches" real, "innings" real, "not_out" real, "average" text ); ### SQL Given the database schema, here is the SQL query that answers `If the average is 45.65, what is the total number of innings?`: ```sql
SELECT "player" FROM "most_career_runs" WHERE "innings"=82;
## Task Generate a SQL query to answer the following question: `What is the name of the player if the innings is 82?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_career_runs" ( "rank" real, "runs" real, "player" text, "matches" real, "innings" real, "not_out" real, "average" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the player if the innings is 82?`: ```sql
SELECT "average" FROM "most_career_runs" WHERE "innings"=68;
## Task Generate a SQL query to answer the following question: `If the innings is 68, what is the average?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_career_runs" ( "rank" real, "runs" real, "player" text, "matches" real, "innings" real, "not_out" real, "average" text ); ### SQL Given the database schema, here is the SQL query that answers `If the innings is 68, what is the average?`: ```sql
SELECT MAX("matches") FROM "most_career_runs" WHERE "runs"=5028;
## Task Generate a SQL query to answer the following question: `If the runs is 5028, what is the matches maximum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_career_runs" ( "rank" real, "runs" real, "player" text, "matches" real, "innings" real, "not_out" real, "average" text ); ### SQL Given the database schema, here is the SQL query that answers `If the runs is 5028, what is the matches maximum?`: ```sql
SELECT MIN("dismissals") FROM "most_dismissals_in_test_career_wicketkee" WHERE "player"='Sammy Carter';
## Task Generate a SQL query to answer the following question: `Name the least dismissals for sammy carter` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_dismissals_in_test_career_wicketkee" ( "rank" real, "dismissals" real, "player" text, "caught" real, "stumped" real, "matches" real, "innings" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the least dismissals for sammy carter`: ```sql
SELECT COUNT("dismissals") FROM "most_dismissals_in_test_career_wicketkee" WHERE "player"='Adam Gilchrist';
## Task Generate a SQL query to answer the following question: `Name the number of dismissals for adam gilchrist` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_dismissals_in_test_career_wicketkee" ( "rank" real, "dismissals" real, "player" text, "caught" real, "stumped" real, "matches" real, "innings" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of dismissals for adam gilchrist`: ```sql
SELECT MAX("dismissals") FROM "most_dismissals_in_test_career_wicketkee" WHERE "rank"=4;
## Task Generate a SQL query to answer the following question: `Name the least dismissals for 4 rank` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_dismissals_in_test_career_wicketkee" ( "rank" real, "dismissals" real, "player" text, "caught" real, "stumped" real, "matches" real, "innings" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the least dismissals for 4 rank`: ```sql
SELECT "top_10" FROM "nascar_nationwide_series" WHERE "winnings"='$17,695';
## Task Generate a SQL query to answer the following question: `How many top 10 finishes did Ken Bouchard get in the year he won $17,695?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `How many top 10 finishes did Ken Bouchard get in the year he won $17,695?`: ```sql
SELECT "year" FROM "nascar_nationwide_series" WHERE "position"='78th';
## Task Generate a SQL query to answer the following question: `What year did Ken Bouchard finish in 78th place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What year did Ken Bouchard finish in 78th place?`: ```sql
SELECT COUNT("year") FROM "nascar_nationwide_series" WHERE "position"='38th';
## Task Generate a SQL query to answer the following question: `How many seasons did Ken Bouchard finish in 38th place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `How many seasons did Ken Bouchard finish in 38th place?`: ```sql
SELECT MIN("wins") FROM "nascar_nationwide_series";
## Task Generate a SQL query to answer the following question: `What is the greatest number of wins Ken Bouchard had in a season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the greatest number of wins Ken Bouchard had in a season?`: ```sql
SELECT COUNT("races") FROM "career_summary" WHERE "season"=2012 AND "podiums"=0;
## Task Generate a SQL query to answer the following question: `How many races in 2012 season have 0 podiums?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `How many races in 2012 season have 0 podiums?`: ```sql
SELECT COUNT("season") FROM "career_summary" WHERE "team"='Motopark';
## Task Generate a SQL query to answer the following question: `How many seasons have motopark team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `How many seasons have motopark team?`: ```sql
SELECT "team" FROM "career_summary" WHERE "position"='NC' AND "season"=2010;
## Task Generate a SQL query to answer the following question: `Which team has nc position for 2010 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team has nc position for 2010 season?`: ```sql
SELECT "points" FROM "career_summary" WHERE "series"='British Formula Renault 2.0 Winter Cup' AND "f_laps"=0;
## Task Generate a SQL query to answer the following question: `How many points have a series of british formula renault 2.0 winter cup and f/laps of 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points have a series of british formula renault 2.0 winter cup and f/laps of 0?`: ```sql
SELECT MAX("minutes") FROM "wnit_player_stats" WHERE "rebounds"=0;
## Task Generate a SQL query to answer the following question: `If the amount of rebounds is 0, what is the maximum minutes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wnit_player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `If the amount of rebounds is 0, what is the maximum minutes?`: ```sql
SELECT COUNT("points") FROM "wnit_player_stats" WHERE "assists"=7;
## Task Generate a SQL query to answer the following question: `What is the points total number if the assists is 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wnit_player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the points total number if the assists is 7?`: ```sql
SELECT "player" FROM "wnit_player_stats" WHERE "field_goals"=26;
## Task Generate a SQL query to answer the following question: `If the field goals is 26, what are the players names?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wnit_player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `If the field goals is 26, what are the players names?`: ```sql
SELECT MIN("steals") FROM "wnit_player_stats" WHERE "player"='Jasmine Wynne';
## Task Generate a SQL query to answer the following question: `If the player is Jasmine Wynne, what is the minimum number of steals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wnit_player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `If the player is Jasmine Wynne, what is the minimum number of steals?`: ```sql
SELECT COUNT("blocks") FROM "wnit_player_stats" WHERE "points"=4;
## Task Generate a SQL query to answer the following question: `What is the blocks total number if the points is 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wnit_player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the blocks total number if the points is 4?`: ```sql
SELECT "steals" FROM "player_stats" WHERE "player"='Jasmine Wynne';
## Task Generate a SQL query to answer the following question: `How many steals did jasmine wynne have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many steals did jasmine wynne have?`: ```sql
SELECT MAX("games_played") FROM "player_stats" WHERE "player"='Janae Stokes';
## Task Generate a SQL query to answer the following question: `How many games did janae stokes play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many games did janae stokes play?`: ```sql
SELECT COUNT("rebounds") FROM "player_stats" WHERE "player"='Crystal Ayers';
## Task Generate a SQL query to answer the following question: `How many rebounds did crystal ayers have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many rebounds did crystal ayers have?`: ```sql
SELECT "record" FROM "schedule" WHERE "game"=3;
## Task Generate a SQL query to answer the following question: `What was the Orangemen record during game 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "orangemen_points" real, "opponents" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Orangemen record during game 3?`: ```sql
SELECT "record" FROM "schedule" WHERE "opponent"='Army';
## Task Generate a SQL query to answer the following question: `What was the record for the Orangemen when they played against Army?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "orangemen_points" real, "opponents" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record for the Orangemen when they played against Army?`: ```sql
SELECT MAX("orangemen_points") FROM "schedule" WHERE "game"=1;
## Task Generate a SQL query to answer the following question: `How many points did the Orangemen score in game 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "orangemen_points" real, "opponents" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points did the Orangemen score in game 1?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "record"='5-1';
## Task Generate a SQL query to answer the following question: `Who did the Orangemen play against when their record was 5-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "orangemen_points" real, "opponents" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who did the Orangemen play against when their record was 5-1?`: ```sql
SELECT "location" FROM "movies" WHERE "year"=2007;
## Task Generate a SQL query to answer the following question: `Name the location for 2007` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "movies" ( "year" real, "title_of_movie" text, "name_of_role" text, "nature_of_role" text, "co_artists" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the location for 2007`: ```sql
SELECT MIN("mir_hossein_mousavi") FROM "provincial_results" WHERE "mohsen_rezaee"=44809;
## Task Generate a SQL query to answer the following question: `Display the lowest score for candidate Mir-Hossein Mousavi when candidate Mohsen Rezaee scored 44809 votes` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provincial_results" ( "province" text, "mahmoud_ahmadinejad" real, "mehdi_karroubi" real, "mir_hossein_mousavi" real, "mohsen_rezaee" real, "spoiled_ballots" real, "total_votes" real ); ### SQL Given the database schema, here is the SQL query that answers `Display the lowest score for candidate Mir-Hossein Mousavi when candidate Mohsen Rezaee scored 44809 votes`: ```sql
SELECT MAX("mohsen_rezaee") FROM "provincial_results" WHERE "mir_hossein_mousavi"=837858;
## Task Generate a SQL query to answer the following question: `What is the highest score for candidate Mohsen Rezaee when candidate mir-hossein mousavi scored 837858 votes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provincial_results" ( "province" text, "mahmoud_ahmadinejad" real, "mehdi_karroubi" real, "mir_hossein_mousavi" real, "mohsen_rezaee" real, "spoiled_ballots" real, "total_votes" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest score for candidate Mohsen Rezaee when candidate mir-hossein mousavi scored 837858 votes?`: ```sql
SELECT "total_votes" FROM "provincial_results" WHERE "spoiled_ballots"=3072;
## Task Generate a SQL query to answer the following question: `List all the total scores for the election which had 3072 invalid votes` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provincial_results" ( "province" text, "mahmoud_ahmadinejad" real, "mehdi_karroubi" real, "mir_hossein_mousavi" real, "mohsen_rezaee" real, "spoiled_ballots" real, "total_votes" real ); ### SQL Given the database schema, here is the SQL query that answers `List all the total scores for the election which had 3072 invalid votes`: ```sql
SELECT MAX("mir_hossein_mousavi") FROM "provincial_results" WHERE "province"='Azarbaijan, West';
## Task Generate a SQL query to answer the following question: `What was the highest score of candidate mir-hossein mousavi in the location known as azarbaijan, west?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provincial_results" ( "province" text, "mahmoud_ahmadinejad" real, "mehdi_karroubi" real, "mir_hossein_mousavi" real, "mohsen_rezaee" real, "spoiled_ballots" real, "total_votes" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest score of candidate mir-hossein mousavi in the location known as azarbaijan, west?`: ```sql
SELECT "mahmoud_ahmadinejad" FROM "provincial_results" WHERE "mir_hossein_mousavi"=218481;
## Task Generate a SQL query to answer the following question: `List all the results for mahmoud ahmadinejad when candidate mir-hossein mousavi obtained 218481 votes.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provincial_results" ( "province" text, "mahmoud_ahmadinejad" real, "mehdi_karroubi" real, "mir_hossein_mousavi" real, "mohsen_rezaee" real, "spoiled_ballots" real, "total_votes" real ); ### SQL Given the database schema, here is the SQL query that answers `List all the results for mahmoud ahmadinejad when candidate mir-hossein mousavi obtained 218481 votes.`: ```sql
SELECT MAX("mir_hossein_mousavi") FROM "provincial_results" WHERE "spoiled_ballots"=5683;
## Task Generate a SQL query to answer the following question: `What was the highest number of votes for mir-hossein mousavi when the number of invalid votes is 5683` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provincial_results" ( "province" text, "mahmoud_ahmadinejad" real, "mehdi_karroubi" real, "mir_hossein_mousavi" real, "mohsen_rezaee" real, "spoiled_ballots" real, "total_votes" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest number of votes for mir-hossein mousavi when the number of invalid votes is 5683`: ```sql
SELECT "surface" FROM "calendar" WHERE "round"=8;
## Task Generate a SQL query to answer the following question: `Name surface for 8 round` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" real, "finishing_date" text, "rally_name" text, "rally_base" text, "surface" text, "support_category" text ); ### SQL Given the database schema, here is the SQL query that answers `Name surface for 8 round`: ```sql
SELECT "rally_base" FROM "calendar" WHERE "round"=5;
## Task Generate a SQL query to answer the following question: `Name the rally base for 5 round` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" real, "finishing_date" text, "rally_name" text, "rally_base" text, "surface" text, "support_category" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the rally base for 5 round`: ```sql
SELECT "rally_base" FROM "calendar" WHERE "rally_name"='Rallye de France Alsace';
## Task Generate a SQL query to answer the following question: `Name the rally base for rallye de france alsace` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" real, "finishing_date" text, "rally_name" text, "rally_base" text, "surface" text, "support_category" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the rally base for rallye de france alsace`: ```sql
SELECT MAX("pos") FROM "drivers" WHERE "points"=2;
## Task Generate a SQL query to answer the following question: `What is the lowest position for a driver with 2 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers" ( "pos" real, "driver" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "power_stage_wins" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest position for a driver with 2 points?`: ```sql
SELECT "driver" FROM "drivers" WHERE "stage_wins"=65;
## Task Generate a SQL query to answer the following question: `What driver(s) had over 65 stag wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers" ( "pos" real, "driver" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "power_stage_wins" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What driver(s) had over 65 stag wins?`: ```sql
SELECT COUNT("power_stage_wins") FROM "constructors" WHERE "wins"=10;
## Task Generate a SQL query to answer the following question: `What is the power stage wins total number if the wins is 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "constructors" ( "pos" real, "constructor" text, "chassis" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "power_stage_wins" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the power stage wins total number if the wins is 10?`: ```sql
SELECT MIN("pos") FROM "constructors" WHERE "finishes"=10;
## Task Generate a SQL query to answer the following question: `If finishes is 10, what is the POS minimum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "constructors" ( "pos" real, "constructor" text, "chassis" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "power_stage_wins" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `If finishes is 10, what is the POS minimum?`: ```sql
SELECT MAX("finishes") FROM "constructors";
## Task Generate a SQL query to answer the following question: `What is the finishes maximum number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "constructors" ( "pos" real, "constructor" text, "chassis" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "power_stage_wins" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the finishes maximum number?`: ```sql
SELECT "branding" FROM "ibc_tv_stations" WHERE "power_k_w"='5kW' AND "station_type"='Relay';
## Task Generate a SQL query to answer the following question: `When relay is the station type and 5kw is the power kw what is the branding?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ibc_tv_stations" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text ); ### SQL Given the database schema, here is the SQL query that answers `When relay is the station type and 5kw is the power kw what is the branding?`: ```sql
SELECT "power_k_w" FROM "ibc_tv_stations" WHERE "callsign"='DXRT-TV';
## Task Generate a SQL query to answer the following question: `When dxrt-tv is the callsign what is the power kw?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ibc_tv_stations" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text ); ### SQL Given the database schema, here is the SQL query that answers `When dxrt-tv is the callsign what is the power kw?`: ```sql
SELECT "power_k_w" FROM "ibc_tv_stations" WHERE "callsign"='DXZB-TV';
## Task Generate a SQL query to answer the following question: `When dxzb-tv is the call sign what is the power kw?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ibc_tv_stations" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text ); ### SQL Given the database schema, here is the SQL query that answers `When dxzb-tv is the call sign what is the power kw?`: ```sql
SELECT COUNT("station_type") FROM "ibc_tv_stations" WHERE "callsign"='DXCC-TV';
## Task Generate a SQL query to answer the following question: `When dxcc-tv is the call sign how many station types are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ibc_tv_stations" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text ); ### SQL Given the database schema, here is the SQL query that answers `When dxcc-tv is the call sign how many station types are there?`: ```sql
SELECT COUNT("station_type") FROM "ibc_tv_stations" WHERE "callsign"='DWHR-TV';
## Task Generate a SQL query to answer the following question: `When dwhr-tv is the call sign how many station types are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ibc_tv_stations" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text ); ### SQL Given the database schema, here is the SQL query that answers `When dwhr-tv is the call sign how many station types are there?`: ```sql
SELECT COUNT("original_airdate") FROM "series_three" WHERE "num"=22;
## Task Generate a SQL query to answer the following question: `What date did Episode 22 originally air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_three" ( "num" real, "title" text, "original_airdate" text, "timeslot" text, "viewers_millions" text, "nightly_rank" real, "weekly_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What date did Episode 22 originally air?`: ```sql
SELECT "original_airdate" FROM "series_three" WHERE "viewers_millions"='0.680';
## Task Generate a SQL query to answer the following question: `What episode premier received 0.680 million viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_three" ( "num" real, "title" text, "original_airdate" text, "timeslot" text, "viewers_millions" text, "nightly_rank" real, "weekly_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What episode premier received 0.680 million viewers?`: ```sql
SELECT "original_airdate" FROM "series_three" WHERE "title"='\"The Intervention\"';
## Task Generate a SQL query to answer the following question: `When did "The Intervention" originally air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_three" ( "num" real, "title" text, "original_airdate" text, "timeslot" text, "viewers_millions" text, "nightly_rank" real, "weekly_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `When did "The Intervention" originally air?`: ```sql
SELECT "timeslot" FROM "series_three" WHERE "viewers_millions"='0.673';
## Task Generate a SQL query to answer the following question: `What timeslot received 0.673 viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_three" ( "num" real, "title" text, "original_airdate" text, "timeslot" text, "viewers_millions" text, "nightly_rank" real, "weekly_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What timeslot received 0.673 viewers?`: ```sql