output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "away_team_score" FROM "round_5" WHERE "venue"='lake oval';
## Task Generate a SQL query to answer the following question: `What team was the away team when they played at lake oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What team was the away team when they played at lake oval?`: ```sql
SELECT "crowd" FROM "round_5" WHERE "home_team"='north melbourne';
## Task Generate a SQL query to answer the following question: `How many people were in the crowd when North Melbourne was the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people were in the crowd when North Melbourne was the home team?`: ```sql
SELECT SUM("avg") FROM "running_backs" WHERE "player"='mark grieb' AND "td_s"<2;
## Task Generate a SQL query to answer the following question: `What is Mark Grieb's average when his TDs are smaller than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" real, "avg" real, "td_s" real, "long" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Mark Grieb's average when his TDs are smaller than 2?`: ```sql
SELECT SUM("avg") FROM "running_backs" WHERE "player"='craig whelihan' AND "yards"<0;
## Task Generate a SQL query to answer the following question: `What is Craig Whelihan's average when his yards are smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" real, "avg" real, "td_s" real, "long" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Craig Whelihan's average when his yards are smaller than 0?`: ```sql
SELECT MAX("avg") FROM "touchdowns" WHERE "yards"=1229;
## Task Generate a SQL query to answer the following question: `Which largest average had 1229 yards?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "touchdowns" ( "player" text, "rec" real, "yards" real, "avg" real, "td_s" real, "long" real ); ### SQL Given the database schema, here is the SQL query that answers `Which largest average had 1229 yards?`: ```sql
SELECT "constructor" FROM "non_championship_race_results" WHERE "circuit"='silverstone';
## Task Generate a SQL query to answer the following question: `What is the constructor where the circuit is Silverstone?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the constructor where the circuit is Silverstone?`: ```sql
SELECT "winning_driver" FROM "non_championship_race_results" WHERE "race_name"='viii gran premio di siracusa';
## Task Generate a SQL query to answer the following question: `Who is the Winning Driver in the race viii gran premio di siracusa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the Winning Driver in the race viii gran premio di siracusa?`: ```sql
SELECT "date" FROM "non_championship_race_results" WHERE "winning_driver"='stirling moss' AND "race_name"='vi grand prix de caen';
## Task Generate a SQL query to answer the following question: `What is the date that the winner driver is Stirling Moss in the race named vi grand prix de caen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date that the winner driver is Stirling Moss in the race named vi grand prix de caen?`: ```sql
SELECT "state" FROM "the_easternmost_high_summits_of_the_rock" WHERE "location"='39.1178°n 106.4454°w';
## Task Generate a SQL query to answer the following question: `Which state is the location of 39.1178°n 106.4454°w in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_easternmost_high_summits_of_the_rock" ( "rank" real, "mountain_peak" text, "state" text, "mountain_range" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which state is the location of 39.1178°n 106.4454°w in?`: ```sql
SELECT MAX("rank") FROM "the_easternmost_high_summits_of_the_rock" WHERE "mountain_peak"='mount elbert';
## Task Generate a SQL query to answer the following question: `What is the highest rank Mount Elbert has?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_easternmost_high_summits_of_the_rock" ( "rank" real, "mountain_peak" text, "state" text, "mountain_range" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest rank Mount Elbert has?`: ```sql
SELECT "mountain_range" FROM "the_easternmost_high_summits_of_the_rock" WHERE "location"='37.3934°n 104.9201°w';
## Task Generate a SQL query to answer the following question: `What is the mountain range at 37.3934°n 104.9201°w?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_easternmost_high_summits_of_the_rock" ( "rank" real, "mountain_peak" text, "state" text, "mountain_range" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the mountain range at 37.3934°n 104.9201°w?`: ```sql
SELECT "location" FROM "the_easternmost_high_summits_of_the_rock" WHERE "mountain_peak"='blanca peak';
## Task Generate a SQL query to answer the following question: `What is the location of Blanca Peak?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_easternmost_high_summits_of_the_rock" ( "rank" real, "mountain_peak" text, "state" text, "mountain_range" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location of Blanca Peak?`: ```sql
SELECT "state" FROM "the_easternmost_high_summits_of_the_rock" WHERE "mountain_peak"='west spanish peak';
## Task Generate a SQL query to answer the following question: `Which state is West Spanish Peak in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_easternmost_high_summits_of_the_rock" ( "rank" real, "mountain_peak" text, "state" text, "mountain_range" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which state is West Spanish Peak in?`: ```sql
SELECT "mountain_range" FROM "the_easternmost_high_summits_of_the_rock" WHERE "rank"=5;
## Task Generate a SQL query to answer the following question: `What is the ranked 5 mountain range?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_easternmost_high_summits_of_the_rock" ( "rank" real, "mountain_peak" text, "state" text, "mountain_range" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the ranked 5 mountain range?`: ```sql
SELECT "district_residence" FROM "list_of_representatives" WHERE "name"='choice b. randell';
## Task Generate a SQL query to answer the following question: `Name of choice b. Randell is the name of which District Residence?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_representatives" ( "name" text, "took_office" text, "left_office" text, "party" text, "district_residence" text ); ### SQL Given the database schema, here is the SQL query that answers `Name of choice b. Randell is the name of which District Residence?`: ```sql
SELECT "name" FROM "list_of_representatives" WHERE "took_office"='march 4, 1903';
## Task Generate a SQL query to answer the following question: `Who has a Took Office of march 4, 1903?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_representatives" ( "name" text, "took_office" text, "left_office" text, "party" text, "district_residence" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has a Took Office of march 4, 1903?`: ```sql
SELECT "took_office" FROM "list_of_representatives" WHERE "party"='democrat' AND "name"='john hancock';
## Task Generate a SQL query to answer the following question: `Which Took Office that has a Party of democrat, under the name of John Hancock` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_representatives" ( "name" text, "took_office" text, "left_office" text, "party" text, "district_residence" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Took Office that has a Party of democrat, under the name of John Hancock`: ```sql
SELECT "name" FROM "list_of_representatives" WHERE "took_office"='march 4, 1875';
## Task Generate a SQL query to answer the following question: `Who has Took Office of march 4, 1875?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_representatives" ( "name" text, "took_office" text, "left_office" text, "party" text, "district_residence" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has Took Office of march 4, 1875?`: ```sql
SELECT "record" FROM "game_log" WHERE "date"='june 22';
## Task Generate a SQL query to answer the following question: `Name the record on june 22` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the record on june 22`: ```sql
SELECT COUNT("attendance") FROM "april" WHERE "visitor"='bulls';
## Task Generate a SQL query to answer the following question: `Name the total number in attendance for when the bulls visited` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number in attendance for when the bulls visited`: ```sql
SELECT MAX("swimsuit") FROM "preliminary_competition" WHERE "interview"<8.46;
## Task Generate a SQL query to answer the following question: `Name the most swimsuit for interview less than 8.46` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most swimsuit for interview less than 8.46`: ```sql
SELECT MAX("evening_gown") FROM "preliminary_competition" WHERE "average"<8.793 AND "swimsuit"<8.12 AND "interview"=8.51;
## Task Generate a SQL query to answer the following question: `Name the most evening gown for average less than 8.793 with interview of 8.51 and swimsuit less than 8.12` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most evening gown for average less than 8.793 with interview of 8.51 and swimsuit less than 8.12`: ```sql
SELECT AVG("starts") FROM "results_timeline" WHERE "wins"<0;
## Task Generate a SQL query to answer the following question: `On average, how many Starts have Wins that are smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_timeline" ( "tournament" text, "starts" real, "top_10s" real, "wins" real, "earnings" text ); ### SQL Given the database schema, here is the SQL query that answers `On average, how many Starts have Wins that are smaller than 0?`: ```sql
SELECT MAX("top_10s") FROM "results_timeline" WHERE "starts"=14;
## Task Generate a SQL query to answer the following question: `Which of the top-10s has a starts value of 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_timeline" ( "tournament" text, "starts" real, "top_10s" real, "wins" real, "earnings" text ); ### SQL Given the database schema, here is the SQL query that answers `Which of the top-10s has a starts value of 14?`: ```sql
SELECT SUM("starts") FROM "results_timeline" WHERE "tournament"='hsbc champions' AND "wins"<0;
## Task Generate a SQL query to answer the following question: `In the tournament of HSBC Champions, what was the sum of the Starts with Wins lower than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_timeline" ( "tournament" text, "starts" real, "top_10s" real, "wins" real, "earnings" text ); ### SQL Given the database schema, here is the SQL query that answers `In the tournament of HSBC Champions, what was the sum of the Starts with Wins lower than 0?`: ```sql
SELECT "trainer" FROM "full_results" WHERE "odds">36 AND "post"=11;
## Task Generate a SQL query to answer the following question: `Who trained the horse on post 11 with over 36 odds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "full_results" ( "finished" text, "post" real, "horse" text, "jockey" text, "trainer" text, "odds" real ); ### SQL Given the database schema, here is the SQL query that answers `Who trained the horse on post 11 with over 36 odds?`: ```sql
SELECT MIN("post") FROM "full_results" WHERE "jockey"='calvin borel';
## Task Generate a SQL query to answer the following question: `What is the lowest post number for calvin borel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "full_results" ( "finished" text, "post" real, "horse" text, "jockey" text, "trainer" text, "odds" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest post number for calvin borel?`: ```sql
SELECT "horse" FROM "full_results" WHERE "jockey"='jara';
## Task Generate a SQL query to answer the following question: `What horse for jara?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "full_results" ( "finished" text, "post" real, "horse" text, "jockey" text, "trainer" text, "odds" real ); ### SQL Given the database schema, here is the SQL query that answers `What horse for jara?`: ```sql
SELECT "date" FROM "february" WHERE "leading_scorer"='lebron james (25)';
## Task Generate a SQL query to answer the following question: `What is the date when Lebron James (25) was the lead scorer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date when Lebron James (25) was the lead scorer?`: ```sql
SELECT SUM("total") FROM "medal_table" WHERE "gold"<0;
## Task Generate a SQL query to answer the following question: `Which Total has a Gold smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Total has a Gold smaller than 0?`: ```sql
SELECT AVG("bronze") FROM "medal_table" WHERE "gold"<0;
## Task Generate a SQL query to answer the following question: `Which Bronze has a Gold smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Bronze has a Gold smaller than 0?`: ```sql
SELECT "t_c" FROM "campos_racing" WHERE "wins"=1 AND "races"=21;
## Task Generate a SQL query to answer the following question: `Which T.C. has a Win of 1, and a Race of 21?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campos_racing" ( "year" real, "team_name" text, "drivers" text, "races" real, "wins" real, "poles" real, "f_laps" real, "points" real, "d_c" text, "t_c" text ); ### SQL Given the database schema, here is the SQL query that answers `Which T.C. has a Win of 1, and a Race of 21?`: ```sql
SELECT COUNT("year") FROM "campos_racing" WHERE "drivers"='ben hanley' AND "f_laps"<0;
## Task Generate a SQL query to answer the following question: `How many years have Drivers of ben hanley, and Flaps smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campos_racing" ( "year" real, "team_name" text, "drivers" text, "races" real, "wins" real, "poles" real, "f_laps" real, "points" real, "d_c" text, "t_c" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years have Drivers of ben hanley, and Flaps smaller than 0?`: ```sql
SELECT AVG("points") FROM "campos_racing" WHERE "drivers"='adrián vallés' AND "year">2006;
## Task Generate a SQL query to answer the following question: `How many Points have Drivers of adrián vallés, and a Year larger than 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campos_racing" ( "year" real, "team_name" text, "drivers" text, "races" real, "wins" real, "poles" real, "f_laps" real, "points" real, "d_c" text, "t_c" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Points have Drivers of adrián vallés, and a Year larger than 2006?`: ```sql
SELECT SUM("poles") FROM "campos_racing" WHERE "drivers"='juan cruz álvarez' AND "f_laps">0;
## Task Generate a SQL query to answer the following question: `How many Poles have Drivers of juan cruz álvarez, and FLaps larger than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campos_racing" ( "year" real, "team_name" text, "drivers" text, "races" real, "wins" real, "poles" real, "f_laps" real, "points" real, "d_c" text, "t_c" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Poles have Drivers of juan cruz álvarez, and FLaps larger than 0?`: ```sql
SELECT "away_team" FROM "round_15" WHERE "venue"='victoria park';
## Task Generate a SQL query to answer the following question: `Who was the away team at Victoria Park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team at Victoria Park?`: ```sql
SELECT "name" FROM "locomotives" WHERE "number"<6 AND "date"<1993;
## Task Generate a SQL query to answer the following question: `What is the name of the train numbered less than 6 before 1993?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locomotives" ( "number" real, "name" text, "builder" text, "type" text, "date" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the train numbered less than 6 before 1993?`: ```sql
SELECT "name" FROM "locomotives" WHERE "number"<5 AND "type"='bo-bodh';
## Task Generate a SQL query to answer the following question: `What is the name of the bo-bodh train with a number less than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locomotives" ( "number" real, "name" text, "builder" text, "type" text, "date" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the bo-bodh train with a number less than 5?`: ```sql
SELECT "record" FROM "february" WHERE "visitor"='st. louis';
## Task Generate a SQL query to answer the following question: `Name the record when the visitor is st. louis` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the record when the visitor is st. louis`: ```sql
SELECT "score" FROM "february" WHERE "visitor"='calgary';
## Task Generate a SQL query to answer the following question: `What was the scory when calgary was visiting?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the scory when calgary was visiting?`: ```sql
SELECT "home" FROM "february" WHERE "visitor"='dallas' AND "date"='february 2';
## Task Generate a SQL query to answer the following question: `Name the home when the visitor was dallas on february 2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the home when the visitor was dallas on february 2`: ```sql
SELECT "date" FROM "february" WHERE "decision"='turco' AND "home"='st. louis';
## Task Generate a SQL query to answer the following question: `Name the date for turco decision and home of st. louis` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the date for turco decision and home of st. louis`: ```sql
SELECT "rider" FROM "ultra_lightweight_manx_grand_prix_provis" WHERE "speed"='104.630mph';
## Task Generate a SQL query to answer the following question: `Which rider had a speed of 104.630mph?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ultra_lightweight_manx_grand_prix_provis" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Which rider had a speed of 104.630mph?`: ```sql
SELECT MAX("rank") FROM "ultra_lightweight_manx_grand_prix_provis" WHERE "time"='1:05.14.10';
## Task Generate a SQL query to answer the following question: `What is the best rank with a time of 1:05.14.10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ultra_lightweight_manx_grand_prix_provis" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the best rank with a time of 1:05.14.10?`: ```sql
SELECT "stadium" FROM "2012" WHERE "final_score"='35-62';
## Task Generate a SQL query to answer the following question: `Where was the game played when the final score was 35-62?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the game played when the final score was 35-62?`: ```sql
SELECT "visiting_team" FROM "2012" WHERE "stadium"='candlestick park';
## Task Generate a SQL query to answer the following question: `During the game at Candlestick Park, who was the visiting team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `During the game at Candlestick Park, who was the visiting team?`: ```sql
SELECT "visiting_team" FROM "2012" WHERE "final_score"='14-34';
## Task Generate a SQL query to answer the following question: `Which visiting team had a final score of 14-34?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `Which visiting team had a final score of 14-34?`: ```sql
SELECT "final_score" FROM "2012" WHERE "visiting_team"='cincinnati bengals';
## Task Generate a SQL query to answer the following question: `What was the final score in the game against the Cincinnati Bengals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the final score in the game against the Cincinnati Bengals?`: ```sql
SELECT "visiting_team" FROM "2012" WHERE "host_team"='dallas cowboys';
## Task Generate a SQL query to answer the following question: `Who was the visiting team in the game against the Dallas Cowboys?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the visiting team in the game against the Dallas Cowboys?`: ```sql
SELECT "tournament" FROM "singles_7_3_4" WHERE "outcome"='runner-up' AND "opponent"='maša zec peškirič';
## Task Generate a SQL query to answer the following question: `Which tournament has an Outcome of runner-up, and an Opponent of maša zec peškirič?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7_3_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which tournament has an Outcome of runner-up, and an Opponent of maša zec peškirič?`: ```sql
SELECT "surface" FROM "singles_7_3_4" WHERE "score"='6–4, 6–2';
## Task Generate a SQL query to answer the following question: `Which surface has a Score of 6–4, 6–2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7_3_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which surface has a Score of 6–4, 6–2?`: ```sql
SELECT "surface" FROM "singles_7_3_4" WHERE "date"='22 august 2006';
## Task Generate a SQL query to answer the following question: `Which surface has a Date of 22 august 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7_3_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which surface has a Date of 22 august 2006?`: ```sql
SELECT "tournament" FROM "singles_7_3_4" WHERE "outcome"='runner-up' AND "surface"='hard' AND "score"='6–4, 6–2';
## Task Generate a SQL query to answer the following question: `Which tournament has an Outcome of runner-up, a Surface of hard, and a Score of 6–4, 6–2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7_3_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which tournament has an Outcome of runner-up, a Surface of hard, and a Score of 6–4, 6–2?`: ```sql
SELECT "outcome" FROM "singles_7_3_4" WHERE "opponent"='marina erakovic';
## Task Generate a SQL query to answer the following question: `What is the outcome with marina erakovic as opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7_3_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the outcome with marina erakovic as opponent?`: ```sql
SELECT "tournament" FROM "singles_7_3_4" WHERE "outcome"='winner' AND "opponent"='dia evtimova';
## Task Generate a SQL query to answer the following question: `Which tournament has an Outcome of winner, and a Opponent of dia evtimova?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7_3_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which tournament has an Outcome of winner, and a Opponent of dia evtimova?`: ```sql
SELECT "title" FROM "unreleased_songs" WHERE "time"='3:22';
## Task Generate a SQL query to answer the following question: `What title runs for 3:22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "unreleased_songs" ( "title" text, "author_s" text, "recorded" text, "location_s" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What title runs for 3:22?`: ```sql
SELECT "author_s" FROM "unreleased_songs" WHERE "time"='2:22';
## Task Generate a SQL query to answer the following question: `Who wrote the song that runs for 2:22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "unreleased_songs" ( "title" text, "author_s" text, "recorded" text, "location_s" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the song that runs for 2:22?`: ```sql
SELECT "constructor" FROM "classification" WHERE "laps"=66;
## Task Generate a SQL query to answer the following question: `What Constructor had 66 Laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What Constructor had 66 Laps?`: ```sql
SELECT MIN("grid") FROM "classification" WHERE "laps">78;
## Task Generate a SQL query to answer the following question: `With Laps greater than 78, what is the lowest Grid?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `With Laps greater than 78, what is the lowest Grid?`: ```sql
SELECT AVG("laps") FROM "classification" WHERE "driver"='john watson' AND "grid"<11;
## Task Generate a SQL query to answer the following question: `How many Laps with a Grid smaller than 11 did John Watson have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Laps with a Grid smaller than 11 did John Watson have?`: ```sql
SELECT AVG("laps") FROM "classification" WHERE "driver"='niki lauda' AND "grid"<3;
## Task Generate a SQL query to answer the following question: `How many Laps with a Grid smaller than 3 did Driver NIki Lauda have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Laps with a Grid smaller than 3 did Driver NIki Lauda have?`: ```sql
SELECT MIN("grid") FROM "race" WHERE "time_retired"='steering' AND "laps"<15;
## Task Generate a SQL query to answer the following question: `What is the low grid total for a retired due to steering in under 15 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the low grid total for a retired due to steering in under 15 laps?`: ```sql
SELECT AVG("laps") FROM "race" WHERE "time_retired"='+5 laps';
## Task Generate a SQL query to answer the following question: `What is the average laps that had a time/retired of +5 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average laps that had a time/retired of +5 laps?`: ```sql
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "location"='wonju chiak indoor gym, south korea';
## Task Generate a SQL query to answer the following question: `Which Opponent has Location Wonju Chiak Indoor Gym, South Korea?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Opponent has Location Wonju Chiak Indoor Gym, South Korea?`: ```sql
SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "opponent"='paul cahoon' AND "location"='amsterdam, netherlands';
## Task Generate a SQL query to answer the following question: `Which is the lowest Round with the Opponent, Paul Cahoon and Location, Amsterdam, Netherlands?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which is the lowest Round with the Opponent, Paul Cahoon and Location, Amsterdam, Netherlands?`: ```sql
SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='bernard ackah';
## Task Generate a SQL query to answer the following question: `Which Event has the Opponent, Bernard Ackah?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Event has the Opponent, Bernard Ackah?`: ```sql
SELECT "launched" FROM "ca_or_11th_emergency_flotilla" WHERE "laid_down"='14 august 1942';
## Task Generate a SQL query to answer the following question: `when was the destroyer launched when it was laid down on 14 august 1942?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ca_or_11th_emergency_flotilla" ( "name" text, "pennant" text, "builder" text, "laid_down" text, "launched" text, "commissioned" text ); ### SQL Given the database schema, here is the SQL query that answers `when was the destroyer launched when it was laid down on 14 august 1942?`: ```sql
SELECT "launched" FROM "ca_or_11th_emergency_flotilla" WHERE "builder"='john brown, clydebank';
## Task Generate a SQL query to answer the following question: `what is the launched date when the builder is john brown, clydebank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ca_or_11th_emergency_flotilla" ( "name" text, "pennant" text, "builder" text, "laid_down" text, "launched" text, "commissioned" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the launched date when the builder is john brown, clydebank?`: ```sql
SELECT "pennant" FROM "ca_or_11th_emergency_flotilla" WHERE "builder"='yarrow, scotstoun';
## Task Generate a SQL query to answer the following question: `what is the pennant when the builder is yarrow, scotstoun?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ca_or_11th_emergency_flotilla" ( "name" text, "pennant" text, "builder" text, "laid_down" text, "launched" text, "commissioned" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the pennant when the builder is yarrow, scotstoun?`: ```sql
SELECT "name" FROM "ca_or_11th_emergency_flotilla" WHERE "laid_down"='28 february 1943';
## Task Generate a SQL query to answer the following question: `what is the name when the laid down is 28 february 1943?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ca_or_11th_emergency_flotilla" ( "name" text, "pennant" text, "builder" text, "laid_down" text, "launched" text, "commissioned" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the name when the laid down is 28 february 1943?`: ```sql
SELECT "commissioned" FROM "ca_or_11th_emergency_flotilla" WHERE "builder"='scotts, greenock';
## Task Generate a SQL query to answer the following question: `when was it commissioned when the destroyer was built by scotts, greenock?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ca_or_11th_emergency_flotilla" ( "name" text, "pennant" text, "builder" text, "laid_down" text, "launched" text, "commissioned" text ); ### SQL Given the database schema, here is the SQL query that answers `when was it commissioned when the destroyer was built by scotts, greenock?`: ```sql
SELECT "launched" FROM "ca_or_11th_emergency_flotilla" WHERE "laid_down"='14 august 1942';
## Task Generate a SQL query to answer the following question: `when was the launched date when the laid down date is 14 august 1942?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ca_or_11th_emergency_flotilla" ( "name" text, "pennant" text, "builder" text, "laid_down" text, "launched" text, "commissioned" text ); ### SQL Given the database schema, here is the SQL query that answers `when was the launched date when the laid down date is 14 august 1942?`: ```sql
SELECT "record" FROM "season_schedule" WHERE "week"<13 AND "date"='july 12';
## Task Generate a SQL query to answer the following question: `What was the record for a week below 13 on July 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record for a week below 13 on July 12?`: ```sql
SELECT "location" FROM "season_schedule" WHERE "final_score"='w 30 – 5';
## Task Generate a SQL query to answer the following question: `What location had a final score of W 30 – 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What location had a final score of W 30 – 5?`: ```sql
SELECT "label" FROM "release_history" WHERE "catalog"='ch-9196';
## Task Generate a SQL query to answer the following question: `Which label had a catalog designation of ch-9196?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `Which label had a catalog designation of ch-9196?`: ```sql
SELECT "format" FROM "release_history" WHERE "catalog"='21-382a';
## Task Generate a SQL query to answer the following question: `Which format's catalog designation was 21-382a?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `Which format's catalog designation was 21-382a?`: ```sql
SELECT "catalog" FROM "release_history" WHERE "date"='1984';
## Task Generate a SQL query to answer the following question: `Which catalog had a date year of 1984?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `Which catalog had a date year of 1984?`: ```sql
SELECT "format" FROM "release_history" WHERE "label"='london records';
## Task Generate a SQL query to answer the following question: `Which format was under the London Records label?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `Which format was under the London Records label?`: ```sql
SELECT "label" FROM "release_history" WHERE "region"='united kingdom';
## Task Generate a SQL query to answer the following question: `Which label was in the United Kingdom region?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `Which label was in the United Kingdom region?`: ```sql
SELECT "date" FROM "release_history" WHERE "catalog"='ha-m 2230';
## Task Generate a SQL query to answer the following question: `Which date had the catalog designation of ha-m 2230?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date had the catalog designation of ha-m 2230?`: ```sql
SELECT MAX("goals_conceded_gc") FROM "clausura_2006_standings" WHERE "draw_pe"=2 AND "goals_scored_gf">29 AND "dif">15;
## Task Generate a SQL query to answer the following question: `What is the maximum goals conceded for a team with 2 draws, more than 29 goals and a diff larger than 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "clausura_2006_standings" ( "place_posici_n" real, "team_equipo" text, "played_pj" real, "won_pg" real, "draw_pe" real, "lost_pp" real, "goals_scored_gf" real, "goals_conceded_gc" real, "dif" real, "points_pts" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum goals conceded for a team with 2 draws, more than 29 goals and a diff larger than 15?`: ```sql
SELECT SUM("points_pts") FROM "clausura_2006_standings" WHERE "won_pg">9 AND "goals_scored_gf">40;
## Task Generate a SQL query to answer the following question: `What is the points for a team with more than 9 wins and more than 40 goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "clausura_2006_standings" ( "place_posici_n" real, "team_equipo" text, "played_pj" real, "won_pg" real, "draw_pe" real, "lost_pp" real, "goals_scored_gf" real, "goals_conceded_gc" real, "dif" real, "points_pts" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the points for a team with more than 9 wins and more than 40 goals?`: ```sql
SELECT "score" FROM "international_goals" WHERE "competition"='2012 africa cup of nations';
## Task Generate a SQL query to answer the following question: `What was the score of the game played in the 2012 Africa Cup of Nations?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the game played in the 2012 Africa Cup of Nations?`: ```sql
SELECT "score" FROM "international_goals" WHERE "competition"='friendly';
## Task Generate a SQL query to answer the following question: `What is the score of the friendly competition?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the friendly competition?`: ```sql
SELECT "venue" FROM "international_goals" WHERE "date"='9 february 2011';
## Task Generate a SQL query to answer the following question: `What venue was the game played on 9 February 2011 played at?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What venue was the game played on 9 February 2011 played at?`: ```sql
SELECT "date" FROM "november" WHERE "home"='ny rangers';
## Task Generate a SQL query to answer the following question: `What date did NY Rangers play at home?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What date did NY Rangers play at home?`: ```sql
SELECT "score" FROM "november" WHERE "decision"='smith' AND "visitor"='colorado';
## Task Generate a SQL query to answer the following question: `What is the score of Colorado when they were a visitor and had a Smith decision?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of Colorado when they were a visitor and had a Smith decision?`: ```sql
SELECT "runner_up" FROM "2010" WHERE "score"='3–6, 6–3, [10–4]';
## Task Generate a SQL query to answer the following question: `Who is the runner up when the score was 3–6, 6–3, [10–4]?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the runner up when the score was 3–6, 6–3, [10–4]?`: ```sql
SELECT "runner_up" FROM "2010" WHERE "tournament"='são paulo';
## Task Generate a SQL query to answer the following question: `What is the name of the runner up in the Tournament of são paulo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the runner up in the Tournament of são paulo?`: ```sql
SELECT "third_place" FROM "2010" WHERE "winner"='thomas enqvist' AND "runner_up"='guy forget';
## Task Generate a SQL query to answer the following question: `What person is in the third place when Thomas Enqvist won and a Runner-up was guy forget?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); ### SQL Given the database schema, here is the SQL query that answers `What person is in the third place when Thomas Enqvist won and a Runner-up was guy forget?`: ```sql
SELECT "tournament" FROM "2010" WHERE "runner_up"='thomas enqvist';
## Task Generate a SQL query to answer the following question: `What tournament was Thomas Enqvist runner up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); ### SQL Given the database schema, here is the SQL query that answers `What tournament was Thomas Enqvist runner up?`: ```sql
SELECT "runner_up" FROM "2010" WHERE "third_place"='yevgeny kafelnikov' AND "score"='3–6, 6–4, [10–3]';
## Task Generate a SQL query to answer the following question: `What is the name of the runner up when yevgeny kafelnikov was third place and the score was 3–6, 6–4, [10–3]?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the runner up when yevgeny kafelnikov was third place and the score was 3–6, 6–4, [10–3]?`: ```sql
SELECT "winner" FROM "2010" WHERE "third_place"='goran ivanišević';
## Task Generate a SQL query to answer the following question: `What is the name of the winner when Goran Ivanišević was in third place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the winner when Goran Ivanišević was in third place?`: ```sql
SELECT "analog_channel" FROM "television" WHERE "digital_channel"='4.1';
## Task Generate a SQL query to answer the following question: `Which analog channel has a digital channel of 4.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television" ( "analog_channel" text, "digital_channel" text, "call_sign" text, "name" text, "network" text ); ### SQL Given the database schema, here is the SQL query that answers `Which analog channel has a digital channel of 4.1?`: ```sql
SELECT "digital_channel" FROM "television" WHERE "name"='storm tracker';
## Task Generate a SQL query to answer the following question: `Which digital channel is named Storm Tracker?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television" ( "analog_channel" text, "digital_channel" text, "call_sign" text, "name" text, "network" text ); ### SQL Given the database schema, here is the SQL query that answers `Which digital channel is named Storm Tracker?`: ```sql
SELECT "analog_channel" FROM "television" WHERE "network"='fox';
## Task Generate a SQL query to answer the following question: `Which analog channel is Fox on?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television" ( "analog_channel" text, "digital_channel" text, "call_sign" text, "name" text, "network" text ); ### SQL Given the database schema, here is the SQL query that answers `Which analog channel is Fox on?`: ```sql
SELECT "area_president_quorum" FROM "list" WHERE "area_name"='south america south';
## Task Generate a SQL query to answer the following question: `Name the area president when the area name is south america south` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "area_name" text, "area_headquarters" text, "area_president_quorum" text, "first_counselor_quorum" text, "second_counselor_quorum" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the area president when the area name is south america south`: ```sql
SELECT COUNT("grid") FROM "race" WHERE "time_retired"='+2 laps' AND "laps"<70;
## Task Generate a SQL query to answer the following question: `Tell me the total number of Grid for Time/Retired of +2 Laps and Laps less than 70` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the total number of Grid for Time/Retired of +2 Laps and Laps less than 70`: ```sql
SELECT "year" FROM "list_of_superlative_academy_award_winner" WHERE "actress"='shelley winters';
## Task Generate a SQL query to answer the following question: `What year did Shelley Winters win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "actress" text, "record_set" text, "year" real, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What year did Shelley Winters win?`: ```sql
SELECT "superlative" FROM "list_of_superlative_academy_award_winner" WHERE "year">1984 AND "actress"='gloria stuart';
## Task Generate a SQL query to answer the following question: `Which award was won by Gloria Stuart after 1984?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "actress" text, "record_set" text, "year" real, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Which award was won by Gloria Stuart after 1984?`: ```sql