output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "years" FROM "wairoa_district" WHERE "decile"<2 AND "area"='mohaka';
## Task Generate a SQL query to answer the following question: `Which years have a Decile smaller than 2, and an Area of mohaka?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wairoa_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); ### SQL Given the database schema, here is the SQL query that answers `Which years have a Decile smaller than 2, and an Area of mohaka?`: ```sql
SELECT "gender" FROM "wairoa_district" WHERE "authority"='state' AND "years"='1–8' AND "decile"<10 AND "roll"=36;
## Task Generate a SQL query to answer the following question: `Which gender has an Authority of state, Years of 1–8, and a Decile smaller than 10, and a Roll of 36?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wairoa_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); ### SQL Given the database schema, here is the SQL query that answers `Which gender has an Authority of state, Years of 1–8, and a Decile smaller than 10, and a Roll of 36?`: ```sql
SELECT "roll" FROM "wairoa_district" WHERE "area"='mahia';
## Task Generate a SQL query to answer the following question: `Which roll has an Area of mahia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wairoa_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); ### SQL Given the database schema, here is the SQL query that answers `Which roll has an Area of mahia?`: ```sql
SELECT "decile" FROM "wairoa_district" WHERE "authority"='state' AND "roll"<61 AND "area"='kotemaori';
## Task Generate a SQL query to answer the following question: `Which Decile has an Authority of state, a Roll smaller than 61, and an Area of kotemaori?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wairoa_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Decile has an Authority of state, a Roll smaller than 61, and an Area of kotemaori?`: ```sql
SELECT MAX("league_cup") FROM "appearances" WHERE "fa_cup">2;
## Task Generate a SQL query to answer the following question: `What's the highest League Cup with an FA Cup thats larger than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances" ( "name" text, "league" real, "play_offs" real, "fa_cup" real, "league_cup" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the highest League Cup with an FA Cup thats larger than 2?`: ```sql
SELECT COUNT("fa_cup") FROM "appearances" WHERE "play_offs"=3 AND "name"='mitch cook category:articles with hcards' AND "total"<11;
## Task Generate a SQL query to answer the following question: `What's the total number of FA Cup with a Play-offs of 3, and the Name of Mitch Cook Category:Articles with hCards and has a Total thats less than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances" ( "name" text, "league" real, "play_offs" real, "fa_cup" real, "league_cup" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the total number of FA Cup with a Play-offs of 3, and the Name of Mitch Cook Category:Articles with hCards and has a Total thats less than 11?`: ```sql
SELECT COUNT("fa_cup") FROM "appearances" WHERE "league"<29 AND "play_offs"<0;
## Task Generate a SQL query to answer the following question: `What's the total of number of FA Cup that has a League small than 29 with Play-offs less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances" ( "name" text, "league" real, "play_offs" real, "fa_cup" real, "league_cup" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the total of number of FA Cup that has a League small than 29 with Play-offs less than 0?`: ```sql
SELECT MIN("play_offs") FROM "appearances" WHERE "league"=4 AND "fa_cup">1;
## Task Generate a SQL query to answer the following question: `What's the lowest Play-offs with a League of 4 and FA Cup larger than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances" ( "name" text, "league" real, "play_offs" real, "fa_cup" real, "league_cup" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the lowest Play-offs with a League of 4 and FA Cup larger than 1?`: ```sql
SELECT COUNT("league_cup") FROM "appearances" WHERE "play_offs">2 AND "name"='mitch cook category:articles with hcards';
## Task Generate a SQL query to answer the following question: `What's the total number of League Cup with a Play-off larger than 2, and a Name of Mitch Cook Category:Articles with hCards?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances" ( "name" text, "league" real, "play_offs" real, "fa_cup" real, "league_cup" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the total number of League Cup with a Play-off larger than 2, and a Name of Mitch Cook Category:Articles with hCards?`: ```sql
SELECT COUNT("channel_4_weekly_rank_a") FROM "united_kingdom" WHERE "viewers_millions">2.19 AND "title"='\"zero worship\"' AND "episode_num"<34;
## Task Generate a SQL query to answer the following question: `What is the number for the Channel 4 weekly rank when there are more than 2.19 million viewers for the episode "zero worship" which was earlier than episode 34?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_kingdom" ( "episode_num" real, "title" text, "airdate" text, "viewers_millions" real, "channel_4_weekly_rank_a" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number for the Channel 4 weekly rank when there are more than 2.19 million viewers for the episode "zero worship" which was earlier than episode 34?`: ```sql
SELECT AVG("channel_4_weekly_rank_a") FROM "united_kingdom" WHERE "viewers_millions"<2.19 AND "airdate"='december 7, 2007';
## Task Generate a SQL query to answer the following question: `What is the average Channel 4 weekly rank for less than 2.19 million viewers on December 7, 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_kingdom" ( "episode_num" real, "title" text, "airdate" text, "viewers_millions" real, "channel_4_weekly_rank_a" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Channel 4 weekly rank for less than 2.19 million viewers on December 7, 2007?`: ```sql
SELECT COUNT("viewers_millions") FROM "united_kingdom" WHERE "airdate"='october 10, 2008' AND "channel_4_weekly_rank_a"<30;
## Task Generate a SQL query to answer the following question: `What is the number of viewers in millions for the episode on October 10, 2008, and a Channel 4 weekly rank a smaller than 30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_kingdom" ( "episode_num" real, "title" text, "airdate" text, "viewers_millions" real, "channel_4_weekly_rank_a" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of viewers in millions for the episode on October 10, 2008, and a Channel 4 weekly rank a smaller than 30?`: ```sql
SELECT "duration" FROM "ev_as" WHERE "end_time"='21:06';
## Task Generate a SQL query to answer the following question: `What is the duration of the flight with end time of 21:06?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the duration of the flight with end time of 21:06?`: ```sql
SELECT "spacecraft" FROM "ev_as" WHERE "end_time"='4 september 04:51';
## Task Generate a SQL query to answer the following question: `What is the spacecraft with end time of 4 September 04:51?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the spacecraft with end time of 4 September 04:51?`: ```sql
SELECT "crew" FROM "ev_as" WHERE "end_time"='21:11';
## Task Generate a SQL query to answer the following question: `What is the crew with the end time of 21:11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the crew with the end time of 21:11?`: ```sql
SELECT "duration" FROM "ev_as" WHERE "spacecraft"='expedition 20 iss zvezda';
## Task Generate a SQL query to answer the following question: `What is the duration of the Expedition 20 ISS Zvezda?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the duration of the Expedition 20 ISS Zvezda?`: ```sql
SELECT "crew" FROM "ev_as" WHERE "duration"='12 minutes';
## Task Generate a SQL query to answer the following question: `Who was the crew for the duration of 12 minutes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the crew for the duration of 12 minutes?`: ```sql
SELECT SUM("year") FROM "complete_world_championship_formula_one_" WHERE "entrant"='connaught engineering' AND "points"<0;
## Task Generate a SQL query to answer the following question: `Name the sum of year for connaught engineering and points less than 0` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the sum of year for connaught engineering and points less than 0`: ```sql
SELECT AVG("win_pct") FROM "season_by_season_records" WHERE "gb_d"='5';
## Task Generate a SQL query to answer the following question: `What is the average win percentage of a season with a GB of 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_by_season_records" ( "year" text, "record_a" text, "win_pct" real, "league_b" text, "division_c" text, "gb_d" text, "post_season_record_e" text, "post_season_win_pct" text, "mlb_affiliate_f" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average win percentage of a season with a GB of 5?`: ```sql
SELECT "start" FROM "indy_500_results" WHERE "laps">200;
## Task Generate a SQL query to answer the following question: `What was the starting position of Joie Chitwood when he finished more than 200 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the starting position of Joie Chitwood when he finished more than 200 laps?`: ```sql
SELECT MIN("laps") FROM "indy_500_results" WHERE "qual"='124.619';
## Task Generate a SQL query to answer the following question: `What is Chitwood's lowest completed number of laps with a qualifying time of 124.619?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Chitwood's lowest completed number of laps with a qualifying time of 124.619?`: ```sql
SELECT "venue" FROM "1963_1998" WHERE "date"='12 september 1998';
## Task Generate a SQL query to answer the following question: `Which venue was used on 12 September 1998?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1963_1998" ( "date" text, "venue" text, "score_a" text, "competition" text, "att" text ); ### SQL Given the database schema, here is the SQL query that answers `Which venue was used on 12 September 1998?`: ```sql
SELECT "score_a" FROM "1963_1998" WHERE "venue"='vanuatu (n)' AND "date"='5 september 1998';
## Task Generate a SQL query to answer the following question: `What is the score [A] of the match at Vanuatu (n) on 5 September 1998?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1963_1998" ( "date" text, "venue" text, "score_a" text, "competition" text, "att" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score [A] of the match at Vanuatu (n) on 5 September 1998?`: ```sql
SELECT "score_a" FROM "1963_1998" WHERE "date"='19 september 1998';
## Task Generate a SQL query to answer the following question: `What is the score [A] of the match on 19 September 1998?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1963_1998" ( "date" text, "venue" text, "score_a" text, "competition" text, "att" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score [A] of the match on 19 September 1998?`: ```sql
SELECT "score" FROM "game_log" WHERE "record"='32–19–7';
## Task Generate a SQL query to answer the following question: `What was the score of the game when the record was 32–19–7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the game when the record was 32–19–7?`: ```sql
SELECT "date" FROM "game_log" WHERE "record"='9–5–2';
## Task Generate a SQL query to answer the following question: `What was the date of the game when the record was 9–5–2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the game when the record was 9–5–2?`: ```sql
SELECT "home" FROM "game_log" WHERE "record"='36–21–8';
## Task Generate a SQL query to answer the following question: `Who was the home team when the record was 36–21–8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team when the record was 36–21–8?`: ```sql
SELECT "date" FROM "game_log" WHERE "visitor"='calgary flames' AND "record"='1–2–0';
## Task Generate a SQL query to answer the following question: `What was the date of the game when the Calgary Flames were the visiting team and there was a record of 1–2–0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the game when the Calgary Flames were the visiting team and there was a record of 1–2–0?`: ```sql
SELECT "home" FROM "game_log" WHERE "record"='27–14–6';
## Task Generate a SQL query to answer the following question: `Who was the home team when the record was 27–14–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team when the record was 27–14–6?`: ```sql
SELECT "lifespan" FROM "external_links" WHERE "state"='pennsylvania' AND "representative"='harry p. o''neill';
## Task Generate a SQL query to answer the following question: `What was the lifespan of Representative Harry P. O'neill from the state of Pennsylvania?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "external_links" ( "representative" text, "years" text, "state" text, "party" text, "lifespan" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the lifespan of Representative Harry P. O'neill from the state of Pennsylvania?`: ```sql
SELECT "years" FROM "external_links" WHERE "representative"='frank a. oliver';
## Task Generate a SQL query to answer the following question: `What years did Representative Frank A. Oliver serve?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "external_links" ( "representative" text, "years" text, "state" text, "party" text, "lifespan" text ); ### SQL Given the database schema, here is the SQL query that answers `What years did Representative Frank A. Oliver serve?`: ```sql
SELECT "record" FROM "game_log" WHERE "date"='october 11';
## Task Generate a SQL query to answer the following question: `Name the record for october 11` ### 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, "time" text, "att" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the record for october 11`: ```sql
SELECT "score" FROM "game_log" WHERE "record"='68-66';
## Task Generate a SQL query to answer the following question: `Name the score with record of 68-66` ### 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 score with record of 68-66`: ```sql
SELECT "record" FROM "game_log" WHERE "date"='august 28';
## Task Generate a SQL query to answer the following question: `Name the record for august 28` ### 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 for august 28`: ```sql
SELECT "score" FROM "first_round" WHERE "player"='leo diegel';
## Task Generate a SQL query to answer the following question: `What was the score for Leo Diegel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score for Leo Diegel?`: ```sql
SELECT "player" FROM "first_round" WHERE "to_par"='–4';
## Task Generate a SQL query to answer the following question: `What is the name of the player with a To par of –4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the player with a To par of –4?`: ```sql
SELECT "surface" FROM "doubles_20_10_10" WHERE "partner"='tiya rolle';
## Task Generate a SQL query to answer the following question: `What was the surface for the game that was played with partner Tiya Rolle?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_20_10_10" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the surface for the game that was played with partner Tiya Rolle?`: ```sql
SELECT "score" FROM "doubles_20_10_10" WHERE "partner"='mashona washington' AND "date"='january 10, 2011';
## Task Generate a SQL query to answer the following question: `What is the final score for the game played on January 10, 2011 with partner Mashona Washington?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_20_10_10" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the final score for the game played on January 10, 2011 with partner Mashona Washington?`: ```sql
SELECT "outcome" FROM "doubles_20_10_10" WHERE "date"='07-jun-2010';
## Task Generate a SQL query to answer the following question: `What was the outcome for the game that was played on 07-Jun-2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_20_10_10" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the outcome for the game that was played on 07-Jun-2010?`: ```sql
SELECT "score" FROM "doubles_20_10_10" WHERE "date"='29-jun-2009';
## Task Generate a SQL query to answer the following question: `What is the score for the game that was played on 29-Jun-2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_20_10_10" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score for the game that was played on 29-Jun-2009?`: ```sql
SELECT "surface" FROM "doubles_20_10_10" WHERE "date"='12-apr-2005';
## Task Generate a SQL query to answer the following question: `What was the surface for the game that was played on 12-Apr-2005?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_20_10_10" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the surface for the game that was played on 12-Apr-2005?`: ```sql
SELECT "points" FROM "global_challenge_2004_5" WHERE "skipper"='james allen';
## Task Generate a SQL query to answer the following question: `What points has james allen as the skipper?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "global_challenge_2004_5" ( "overall_place" text, "yacht_name" text, "skipper" text, "points" text, "combined_elapsed_time" text ); ### SQL Given the database schema, here is the SQL query that answers `What points has james allen as the skipper?`: ```sql
SELECT "yacht_name" FROM "global_challenge_2004_5" WHERE "overall_place"='12';
## Task Generate a SQL query to answer the following question: `What is the name of the yacht where 12 is the overall place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "global_challenge_2004_5" ( "overall_place" text, "yacht_name" text, "skipper" text, "points" text, "combined_elapsed_time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the yacht where 12 is the overall place?`: ```sql
SELECT "skipper" FROM "global_challenge_2004_5" WHERE "combined_elapsed_time"='174d 01h 11m 59s';
## Task Generate a SQL query to answer the following question: `Which skipper has a combine elapsed time of 174d 01h 11m 59s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "global_challenge_2004_5" ( "overall_place" text, "yacht_name" text, "skipper" text, "points" text, "combined_elapsed_time" text ); ### SQL Given the database schema, here is the SQL query that answers `Which skipper has a combine elapsed time of 174d 01h 11m 59s?`: ```sql
SELECT "skipper" FROM "global_challenge_2004_5" WHERE "yacht_name"='barclays adventurer';
## Task Generate a SQL query to answer the following question: `Which skipper has barclays adventurer as the name of the yacht?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "global_challenge_2004_5" ( "overall_place" text, "yacht_name" text, "skipper" text, "points" text, "combined_elapsed_time" text ); ### SQL Given the database schema, here is the SQL query that answers `Which skipper has barclays adventurer as the name of the yacht?`: ```sql
SELECT "overall_place" FROM "global_challenge_2004_5" WHERE "combined_elapsed_time"='170d 11h 31m 10s';
## Task Generate a SQL query to answer the following question: `What is the overall place that has 170d 11h 31m 10s as the combined elapsed time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "global_challenge_2004_5" ( "overall_place" text, "yacht_name" text, "skipper" text, "points" text, "combined_elapsed_time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the overall place that has 170d 11h 31m 10s as the combined elapsed time?`: ```sql
SELECT "senior_status" FROM "former_judges" WHERE "reason_for_termination"='death' AND "chief_judge"='β€”';
## Task Generate a SQL query to answer the following question: `What was the senior status for the judge who was terminated because of death, with a Chief Judge entry of β€”?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_judges" ( "state" text, "born_died" text, "chief_judge" text, "senior_status" text, "appointed_by" text, "reason_for_termination" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the senior status for the judge who was terminated because of death, with a Chief Judge entry of β€”?`: ```sql
SELECT "location" FROM "paralympic_men" WHERE "classification"='t12';
## Task Generate a SQL query to answer the following question: `What is the location of Classification of T12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "paralympic_men" ( "classification" text, "fastest_time_s" real, "athlete" text, "country" text, "date" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location of Classification of T12?`: ```sql
SELECT "fastest_time_s" FROM "paralympic_men" WHERE "athlete"='jason smyth';
## Task Generate a SQL query to answer the following question: `What is the fastest time for athlete Jason Smyth?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "paralympic_men" ( "classification" text, "fastest_time_s" real, "athlete" text, "country" text, "date" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the fastest time for athlete Jason Smyth?`: ```sql
SELECT "final" FROM "nominations" WHERE "no_2"='alzira ricardo b.';
## Task Generate a SQL query to answer the following question: `What was the final of play No. 2, Alzira Ricardo B.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nominations" ( "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text, "no_11" text, "no_12" text, "no_13" text, "no_14" text, "no_15" text, "final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the final of play No. 2, Alzira Ricardo B.?`: ```sql
SELECT "no_10" FROM "nominations" WHERE "no_8"='diana';
## Task Generate a SQL query to answer the following question: `What was the No. 10 team that has No. 8 of Diana?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nominations" ( "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text, "no_11" text, "no_12" text, "no_13" text, "no_14" text, "no_15" text, "final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the No. 10 team that has No. 8 of Diana?`: ```sql
SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "chassis"='ensign n175';
## Task Generate a SQL query to answer the following question: `Name the total number of years for chassis of ensign n175` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of years for chassis of ensign n175`: ```sql
SELECT MIN("attendance") FROM "game_log" WHERE "record"='52-48';
## Task Generate a SQL query to answer the following question: `What was the Blue Jays lowest attendance when their record was 52-48?` ### 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 `What was the Blue Jays lowest attendance when their record was 52-48?`: ```sql
SELECT "result" FROM "schedule" WHERE "home_away"='home' AND "opponent"='pride';
## Task Generate a SQL query to answer the following question: `What is the result when you play at home against Pride` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result when you play at home against Pride`: ```sql
SELECT "result" FROM "schedule" WHERE "field"='frontier field';
## Task Generate a SQL query to answer the following question: `What is the result of games played at frontier field` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result of games played at frontier field`: ```sql
SELECT "date" FROM "schedule" WHERE "field"='hofstra stadium';
## Task Generate a SQL query to answer the following question: `What days were games played at Hofstra Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What days were games played at Hofstra Stadium?`: ```sql
SELECT "field" FROM "schedule" WHERE "home_away"='away' AND "opponent"='bayhawks';
## Task Generate a SQL query to answer the following question: `What Field was played at in an away game against the bayhawks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What Field was played at in an away game against the bayhawks?`: ```sql
SELECT "score" FROM "regular_season" WHERE "date"='february 18';
## Task Generate a SQL query to answer the following question: `What is the score of the game played on February 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the game played on February 18?`: ```sql
SELECT "home" FROM "regular_season" WHERE "visitor"='boston bruins' AND "date"='january 11';
## Task Generate a SQL query to answer the following question: `Who was the home team that played against the Boston Bruins on January 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team that played against the Boston Bruins on January 11?`: ```sql
SELECT SUM("year_born") FROM "fiba_euro_basket_2007_squads" WHERE "current_club"='olimpija ljubljana' AND "height"<2.04;
## Task Generate a SQL query to answer the following question: `Name the sum of year for olimpija ljubljana with height less than 2.04` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the sum of year for olimpija ljubljana with height less than 2.04`: ```sql
SELECT "position" FROM "fiba_euro_basket_2007_squads" WHERE "height"=2.09;
## Task Generate a SQL query to answer the following question: `Name the position with height of 2.09` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the position with height of 2.09`: ```sql
SELECT COUNT("attendance") FROM "game_log" WHERE "record"='26-35';
## Task Generate a SQL query to answer the following question: `What was the attendance at the ballpark during the game where the Blue Jays had a record of 26-35 during the 1996 season?` ### 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 `What was the attendance at the ballpark during the game where the Blue Jays had a record of 26-35 during the 1996 season?`: ```sql
SELECT "nominated_work" FROM "awards_and_nominations" WHERE "award"='tony award' AND "year"=2009;
## Task Generate a SQL query to answer the following question: `What nominated work received a tony award in 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What nominated work received a tony award in 2009?`: ```sql
SELECT "result" FROM "awards_and_nominations" WHERE "year"=2012;
## Task Generate a SQL query to answer the following question: `What result in the table is from the year 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What result in the table is from the year 2012?`: ```sql
SELECT "2011" FROM "women_s_doubles" WHERE "2010"='2r';
## Task Generate a SQL query to answer the following question: `Name the 2011 with 2010 of 2r` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 2011 with 2010 of 2r`: ```sql
SELECT "2012" FROM "women_s_doubles" WHERE "2011"='qf';
## Task Generate a SQL query to answer the following question: `Name the 2012 when 2011 is qf` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 2012 when 2011 is qf`: ```sql
SELECT "2012" FROM "women_s_doubles" WHERE "2011"='1r';
## Task Generate a SQL query to answer the following question: `Name the 2012 for 2011 being 1r` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 2012 for 2011 being 1r`: ```sql
SELECT "2012" FROM "women_s_doubles" WHERE "2011"='qf';
## Task Generate a SQL query to answer the following question: `Name the 2012 for 2011 being qf` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 2012 for 2011 being qf`: ```sql
SELECT "2008" FROM "women_s_doubles" WHERE "2012"='f';
## Task Generate a SQL query to answer the following question: `Name the 2008 for 2012 f` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 2008 for 2012 f`: ```sql
SELECT "location" FROM "recent_results_and_forthcoming_fixtures" WHERE "date"='february 29, 2012';
## Task Generate a SQL query to answer the following question: `What is the location of the match on February 29, 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recent_results_and_forthcoming_fixtures" ( "date" text, "location" text, "score" text, "scorers_for_chad" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location of the match on February 29, 2012?`: ```sql
SELECT "score" FROM "recent_results_and_forthcoming_fixtures" WHERE "date"='november 15, 2011';
## Task Generate a SQL query to answer the following question: `What is the score of the match on November 15, 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recent_results_and_forthcoming_fixtures" ( "date" text, "location" text, "score" text, "scorers_for_chad" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the match on November 15, 2011?`: ```sql
SELECT COUNT("race") FROM "race_calendar" WHERE "circuit"='mallala motor sport park';
## Task Generate a SQL query to answer the following question: `How many races were in the Mallala Motor Sport Park circuit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar" ( "race" real, "circuit" text, "location_state" text, "date" text, "winner" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `How many races were in the Mallala Motor Sport Park circuit?`: ```sql
SELECT MIN("race") FROM "race_calendar" WHERE "location_state"='launceston, tasmania';
## Task Generate a SQL query to answer the following question: `What was the first race in Launceston, Tasmania?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar" ( "race" real, "circuit" text, "location_state" text, "date" text, "winner" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the first race in Launceston, Tasmania?`: ```sql
SELECT "2nd_leg" FROM "round_of_16" WHERE "team_1"='hamburg';
## Task Generate a SQL query to answer the following question: `Name the 2nd leg for team 1 of hamburg` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 2nd leg for team 1 of hamburg`: ```sql
SELECT "role" FROM "1935" WHERE "studio"='mono' AND "title"='paradise canyon';
## Task Generate a SQL query to answer the following question: `Name the role for mono studio and title of paradise canyon` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1935" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the role for mono studio and title of paradise canyon`: ```sql
SELECT "title" FROM "1935" WHERE "leading_lady"='marion burns' AND "role"='john mason';
## Task Generate a SQL query to answer the following question: `Name the title for marion burns leading lady and role of john mason` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1935" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the title for marion burns leading lady and role of john mason`: ```sql
SELECT "role" FROM "1935" WHERE "studio"='rep' AND "leading_lady"='sheila mannors' AND "title"='westward ho';
## Task Generate a SQL query to answer the following question: `Name the role for studio of rep with sheila mannors leading lady and title of westward ho` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1935" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the role for studio of rep with sheila mannors leading lady and title of westward ho`: ```sql
SELECT "studio" FROM "1935" WHERE "role"='john scott';
## Task Generate a SQL query to answer the following question: `Name the studio for john scott` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1935" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the studio for john scott`: ```sql
SELECT SUM("total_000s") FROM "emigration_of_jews_and_their_family_memb" WHERE "year"='1996';
## Task Generate a SQL query to answer the following question: `What is the amount of 000s from 1996?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "emigration_of_jews_and_their_family_memb" ( "year" text, "total_000s" real, "israel" real, "germany" real, "jews_halakha_in_israel" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the amount of 000s from 1996?`: ```sql
SELECT "total_000s" FROM "emigration_of_jews_and_their_family_memb" WHERE "germany"=16.6;
## Task Generate a SQL query to answer the following question: `What was the amount of 000s when Germany had 16.6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "emigration_of_jews_and_their_family_memb" ( "year" text, "total_000s" real, "israel" real, "germany" real, "jews_halakha_in_israel" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the amount of 000s when Germany had 16.6?`: ```sql
SELECT AVG("concacaf") FROM "most_appearances" WHERE "merconorte">0 AND "player"='jared borgetti' AND "superliga">0;
## Task Generate a SQL query to answer the following question: `Name the average concacaf for merconorte larger than 0 and player of jared borgetti` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_appearances" ( "player" text, "period" text, "league" real, "concacaf" real, "libertadores" real, "merconorte" real, "inter_liga" real, "superliga" real, "matches" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the average concacaf for merconorte larger than 0 and player of jared borgetti`: ```sql
SELECT MIN("merconorte") FROM "most_appearances" WHERE "inter_liga"=2 AND "matches">260 AND "superliga">7;
## Task Generate a SQL query to answer the following question: `Name the least merconorte for interliga of 2 and matches more than 260 with superliga more than 7` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_appearances" ( "player" text, "period" text, "league" real, "concacaf" real, "libertadores" real, "merconorte" real, "inter_liga" real, "superliga" real, "matches" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the least merconorte for interliga of 2 and matches more than 260 with superliga more than 7`: ```sql
SELECT "outcome" FROM "doubles_8_4" WHERE "score_in_final"='5–7, 6–4, [10–7]';
## Task Generate a SQL query to answer the following question: `What was the outcome for the match that ended in a score of 5–7, 6–4, [10–7]?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_8_4" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents_in_final" text, "score_in_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the outcome for the match that ended in a score of 5–7, 6–4, [10–7]?`: ```sql
SELECT "surface" FROM "doubles_8_4" WHERE "score_in_final"='5–7, 6–4, [10–7]';
## Task Generate a SQL query to answer the following question: `What was the surface of the match that ended in a score of 5–7, 6–4, [10–7]?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_8_4" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents_in_final" text, "score_in_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the surface of the match that ended in a score of 5–7, 6–4, [10–7]?`: ```sql
SELECT "opponents_in_final" FROM "doubles_8_4" WHERE "score_in_final"='w/o';
## Task Generate a SQL query to answer the following question: `Who were the opponents in the match or matches that ended in a score of W/O?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_8_4" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents_in_final" text, "score_in_final" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the opponents in the match or matches that ended in a score of W/O?`: ```sql
SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-6' AND "points">0 AND "year"=1955;
## Task Generate a SQL query to answer the following question: `What kind of Chassis supports a Maserati Straight-6 engine with Points greater than 0 and built in the year 1955?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What kind of Chassis supports a Maserati Straight-6 engine with Points greater than 0 and built in the year 1955?`: ```sql
SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "entrant"='equipe gordini';
## Task Generate a SQL query to answer the following question: `What kind of Chassis supports an Equipe Gordini Entrant?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What kind of Chassis supports an Equipe Gordini Entrant?`: ```sql
SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-6' AND "year"<1958 AND "chassis"='maserati 250f' AND "points"<4;
## Task Generate a SQL query to answer the following question: `What kind of Entrant has a Maserati Straight-6 Engine, built in the year 1958 or early, and has a Maserati 250f Chassis with points less than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What kind of Entrant has a Maserati Straight-6 Engine, built in the year 1958 or early, and has a Maserati 250f Chassis with points less than 4?`: ```sql
SELECT AVG("year") FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-4';
## Task Generate a SQL query to answer the following question: `What is the average year for Maserati Straight-4 Engines?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average year for Maserati Straight-4 Engines?`: ```sql
SELECT SUM("erp_w") FROM "translators" WHERE "class"='d' AND "frequency_m_hz"=98.7;
## Task Generate a SQL query to answer the following question: `Name the sum of ERP W for class of d and frequency mhz of 98.7` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the sum of ERP W for class of d and frequency mhz of 98.7`: ```sql
SELECT "erp_w" FROM "translators" WHERE "frequency_m_hz">93.3 AND "city_of_license"='washington, georgia';
## Task Generate a SQL query to answer the following question: `Name the ERP W with a frequency mhz more than 93.3 and city license of washington, georgia` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the ERP W with a frequency mhz more than 93.3 and city license of washington, georgia`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "event"='hero''s 3';
## Task Generate a SQL query to answer the following question: `Which record has a result of loss in the Hero's 3 event?` ### 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, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which record has a result of loss in the Hero's 3 event?`: ```sql
SELECT "event" FROM "mixed_martial_arts_record" WHERE "record"='4-0';
## Task Generate a SQL query to answer the following question: `Which event led to a 4-0 record?` ### 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, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which event led to a 4-0 record?`: ```sql
SELECT "location" FROM "mixed_martial_arts_record" WHERE "record"='10-3';
## Task Generate a SQL query to answer the following question: `Which location led to a 10-3 record?` ### 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, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which location led to a 10-3 record?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='masahiro oishi';
## Task Generate a SQL query to answer the following question: `In the match against Masahiro Oishi, what was the record?` ### 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, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `In the match against Masahiro Oishi, what was the record?`: ```sql
SELECT MIN("points") FROM "league_round" WHERE "drawn"<2 AND "played">8;
## Task Generate a SQL query to answer the following question: `What is the fewest number of points for clubs with less than 2 draws and more than 8 matches played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_round" ( "team" text, "played" real, "drawn" real, "lost" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the fewest number of points for clubs with less than 2 draws and more than 8 matches played?`: ```sql
SELECT MIN("drawn") FROM "league_round" WHERE "points"=2 AND "lost"<6;
## Task Generate a SQL query to answer the following question: `What is the fewest drawn matches for teams with 2 points and fewer than 6 losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_round" ( "team" text, "played" real, "drawn" real, "lost" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the fewest drawn matches for teams with 2 points and fewer than 6 losses?`: ```sql
SELECT MAX("lost") FROM "league_round" WHERE "team"='quetta zorawar';
## Task Generate a SQL query to answer the following question: `What is the most number of losses for Quetta Zorawar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_round" ( "team" text, "played" real, "drawn" real, "lost" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the most number of losses for Quetta Zorawar?`: ```sql
SELECT SUM("drawn") FROM "league_round" WHERE "lost"=2;
## Task Generate a SQL query to answer the following question: `What is the sum of the drawn values for teams with 2 losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_round" ( "team" text, "played" real, "drawn" real, "lost" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of the drawn values for teams with 2 losses?`: ```sql
SELECT "round" FROM "greatest_winning_margins" WHERE "margin"='178';
## Task Generate a SQL query to answer the following question: `which round has a margin of 178?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "greatest_winning_margins" ( "rank" text, "margin" text, "club" text, "opponent" text, "year" text, "round" text, "venue" text ); ### SQL Given the database schema, here is the SQL query that answers `which round has a margin of 178?`: ```sql