output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "nationality" FROM "draft_picks" WHERE "round"='9';
## Task Generate a SQL query to answer the following question: `In round 9 what was the nationality?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" text, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `In round 9 what was the nationality?`: ```sql
SELECT "position" FROM "draft_picks" WHERE "round"='3';
## Task Generate a SQL query to answer the following question: `In round 3 what was the position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" text, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `In round 3 what was the position?`: ```sql
SELECT "player" FROM "draft_picks" WHERE "position"='right wing' AND "nationality"='czech republic';
## Task Generate a SQL query to answer the following question: `Who has a nationality of Czech Republic and a position of right wing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" text, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has a nationality of Czech Republic and a position of right wing?`: ```sql
SELECT MAX("winning_pct") FROM "won_lost_records" WHERE "losses">4 AND "ties"<2 AND "games_started">11 AND "wins"<22;
## Task Generate a SQL query to answer the following question: `What is the highest winning pct from a team with wins less than 22, losses greater than 4, ties less than 2 and games started greater than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "won_lost_records" ( "quarterback" text, "uniform_no_s" real, "games_started" real, "wins" real, "losses" real, "ties" real, "winning_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest winning pct from a team with wins less than 22, losses greater than 4, ties less than 2 and games started greater than 11?`: ```sql
SELECT COUNT("gold") FROM "titles_by_country" WHERE "rank"='6' AND "bronze">0;
## Task Generate a SQL query to answer the following question: `Gold that has a Rank of 6, and a Bronze larger than 0 had what total number of gold?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "titles_by_country" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Gold that has a Rank of 6, and a Bronze larger than 0 had what total number of gold?`: ```sql
SELECT "bronze" FROM "titles_by_country" WHERE "total"=5;
## Task Generate a SQL query to answer the following question: `Total of 5 had what bronze?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "titles_by_country" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Total of 5 had what bronze?`: ```sql
SELECT "tournament" FROM "achievements" WHERE "result"='20th';
## Task Generate a SQL query to answer the following question: `In which tournament did he place 20th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `In which tournament did he place 20th?`: ```sql
SELECT "result" FROM "achievements" WHERE "year"=1994 AND "tournament"='hypo-meeting';
## Task Generate a SQL query to answer the following question: `What the result for the hypo-meeting tournament in 1994?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `What the result for the hypo-meeting tournament in 1994?`: ```sql
SELECT "result" FROM "achievements" WHERE "year"=1995;
## Task Generate a SQL query to answer the following question: `What was the result in 1995?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result in 1995?`: ```sql
SELECT "score" FROM "regular_season" WHERE "march">19 AND "game"=67;
## Task Generate a SQL query to answer the following question: `After March 19, what's the score of game 67?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `After March 19, what's the score of game 67?`: ```sql
SELECT "head_linesman" FROM "nfl_championships" WHERE "date"='1 february 2009';
## Task Generate a SQL query to answer the following question: `Who is the head linesman of the game on 1 February 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_championships" ( "game" text, "date" text, "referee" text, "umpire" text, "head_linesman" text, "line_judge" text, "field_judge" text, "back_judge" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the head linesman of the game on 1 February 2009?`: ```sql
SELECT "date" FROM "nfl_championships" WHERE "line_judge"='bob beeks' AND "head_linesman"='jerry bergman' AND "back_judge"='paul baetz';
## Task Generate a SQL query to answer the following question: `What is the date of the game where the line judge was Bob Beeks, the head linesman was Jerry Bergman, and Paul Baetz was the back judge?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_championships" ( "game" text, "date" text, "referee" text, "umpire" text, "head_linesman" text, "line_judge" text, "field_judge" text, "back_judge" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the game where the line judge was Bob Beeks, the head linesman was Jerry Bergman, and Paul Baetz was the back judge?`: ```sql
SELECT "game" FROM "nfl_championships" WHERE "date"='14 january 1973';
## Task Generate a SQL query to answer the following question: `Which game was on 14 January 1973?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_championships" ( "game" text, "date" text, "referee" text, "umpire" text, "head_linesman" text, "line_judge" text, "field_judge" text, "back_judge" text ); ### SQL Given the database schema, here is the SQL query that answers `Which game was on 14 January 1973?`: ```sql
SELECT "line_judge" FROM "nfl_championships" WHERE "referee"='scott green';
## Task Generate a SQL query to answer the following question: `Who was the line judge at the game where Scott Green was referee?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_championships" ( "game" text, "date" text, "referee" text, "umpire" text, "head_linesman" text, "line_judge" text, "field_judge" text, "back_judge" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the line judge at the game where Scott Green was referee?`: ```sql
SELECT "head_linesman" FROM "nfl_championships" WHERE "game"='xxxv';
## Task Generate a SQL query to answer the following question: `Who is the head linesman at game xxxv?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_championships" ( "game" text, "date" text, "referee" text, "umpire" text, "head_linesman" text, "line_judge" text, "field_judge" text, "back_judge" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the head linesman at game xxxv?`: ```sql
SELECT "game" FROM "nfl_championships" WHERE "field_judge"='al jury';
## Task Generate a SQL query to answer the following question: `What game had Al Jury as field judge?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_championships" ( "game" text, "date" text, "referee" text, "umpire" text, "head_linesman" text, "line_judge" text, "field_judge" text, "back_judge" text ); ### SQL Given the database schema, here is the SQL query that answers `What game had Al Jury as field judge?`: ```sql
SELECT "departure" FROM "running_timetables" WHERE "kilometers"=1676;
## Task Generate a SQL query to answer the following question: `What's listed for Departure that has 1676 listed for the Kilometers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "running_timetables" ( "station_code" text, "station" text, "arrival" text, "departure" text, "kilometers" real ); ### SQL Given the database schema, here is the SQL query that answers `What's listed for Departure that has 1676 listed for the Kilometers?`: ```sql
SELECT COUNT("kilometers") FROM "running_timetables" WHERE "station_code"='kgq';
## Task Generate a SQL query to answer the following question: `What is the sum of Kilometers that has a Station Code of KGQ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "running_timetables" ( "station_code" text, "station" text, "arrival" text, "departure" text, "kilometers" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of Kilometers that has a Station Code of KGQ?`: ```sql
SELECT "kilometers" FROM "running_timetables" WHERE "station_code"='kuda';
## Task Generate a SQL query to answer the following question: `What's the Kilometers listed that also has the Station Code of Kuda?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "running_timetables" ( "station_code" text, "station" text, "arrival" text, "departure" text, "kilometers" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the Kilometers listed that also has the Station Code of Kuda?`: ```sql
SELECT "station_code" FROM "running_timetables" WHERE "arrival"='02:20';
## Task Generate a SQL query to answer the following question: `What's listed for the Station Code that has the Arrival of 02:20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "running_timetables" ( "station_code" text, "station" text, "arrival" text, "departure" text, "kilometers" real ); ### SQL Given the database schema, here is the SQL query that answers `What's listed for the Station Code that has the Arrival of 02:20?`: ```sql
SELECT "departure" FROM "running_timetables" WHERE "station_code"='clt';
## Task Generate a SQL query to answer the following question: `What is listede for Departure that also has a Station Code of CLT?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "running_timetables" ( "station_code" text, "station" text, "arrival" text, "departure" text, "kilometers" real ); ### SQL Given the database schema, here is the SQL query that answers `What is listede for Departure that also has a Station Code of CLT?`: ```sql
SELECT MIN("area_km_2") FROM "islands_under_square_miles_km" WHERE "population_2000"='45';
## Task Generate a SQL query to answer the following question: `What is the smallest area with 45 population?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "islands_under_square_miles_km" ( "island_s_name" text, "area_sq_mi" real, "area_km_2" real, "location" text, "population_2000" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest area with 45 population?`: ```sql
SELECT AVG("area_km_2") FROM "islands_under_square_miles_km" WHERE "location"='rhode island' AND "area_sq_mi">38;
## Task Generate a SQL query to answer the following question: `What is the area located in Rhode Island with more than 38 sq mi area?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "islands_under_square_miles_km" ( "island_s_name" text, "area_sq_mi" real, "area_km_2" real, "location" text, "population_2000" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the area located in Rhode Island with more than 38 sq mi area?`: ```sql
SELECT AVG("area_km_2") FROM "islands_under_square_miles_km" WHERE "area_sq_mi">55 AND "location"='new york';
## Task Generate a SQL query to answer the following question: `What is the average area in New York that is larger than 55 sq mi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "islands_under_square_miles_km" ( "island_s_name" text, "area_sq_mi" real, "area_km_2" real, "location" text, "population_2000" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average area in New York that is larger than 55 sq mi?`: ```sql
SELECT "event" FROM "mixed_martial_arts_record" WHERE "location"='tokyo, japan' AND "opponent"='rumina sato';
## Task Generate a SQL query to answer the following question: `Which event was in Tokyo, Japan and had an opponent of rumina sato?` ### 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" text, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which event was in Tokyo, Japan and had an opponent of rumina sato?`: ```sql
SELECT "round" FROM "mixed_martial_arts_record" WHERE "time"='2:30';
## Task Generate a SQL query to answer the following question: `Which round was 2:30?` ### 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" text, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which round was 2:30?`: ```sql
SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='shinya aoki' AND "time"='4:56';
## Task Generate a SQL query to answer the following question: `Which event had the opponent of shinya aoki and was at 4:56?` ### 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" text, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which event had the opponent of shinya aoki and was at 4:56?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='pride bushido 10';
## Task Generate a SQL query to answer the following question: `Which method did pride bushido 10 have ?` ### 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" text, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which method did pride bushido 10 have ?`: ```sql
SELECT "2008_09" FROM "grand_slam_record" WHERE "event"='autumn gold';
## Task Generate a SQL query to answer the following question: `Which 2008–09 has an Event of autumn gold?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_record" ( "event" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2012_13" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2008–09 has an Event of autumn gold?`: ```sql
SELECT "2009_10" FROM "grand_slam_record" WHERE "2012_13"='r16';
## Task Generate a SQL query to answer the following question: `Which 2009–10 has a 2012–13 of r16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_record" ( "event" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2012_13" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2009–10 has a 2012–13 of r16?`: ```sql
SELECT "2008_09" FROM "grand_slam_record" WHERE "2012_13"='q' AND "2006_07"='q' AND "2007_08"='qf';
## Task Generate a SQL query to answer the following question: `Which 2008–09 has a 2012–13 of q, and a 2006–07 of q, and a 2007–08 of qf?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_record" ( "event" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2012_13" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2008–09 has a 2012–13 of q, and a 2006–07 of q, and a 2007–08 of qf?`: ```sql
SELECT "2007_08" FROM "grand_slam_record" WHERE "2009_10"='dnp';
## Task Generate a SQL query to answer the following question: `Which 2007–08 has a 2009–10 of dnp?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_record" ( "event" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2012_13" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2007–08 has a 2009–10 of dnp?`: ```sql
SELECT SUM("drawn") FROM "campeonato_brasileiro_s_rie_a" WHERE "team"='internacional-sp';
## Task Generate a SQL query to answer the following question: `Which Drawn has a Team of internacional-sp?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Drawn has a Team of internacional-sp?`: ```sql
SELECT SUM("lost") FROM "campeonato_brasileiro_s_rie_a" WHERE "drawn">5 AND "played">18;
## Task Generate a SQL query to answer the following question: `How much Lost has a Drawn larger than 5, and a Played larger than 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); ### SQL Given the database schema, here is the SQL query that answers `How much Lost has a Drawn larger than 5, and a Played larger than 18?`: ```sql
SELECT MAX("drawn") FROM "campeonato_brasileiro_s_rie_a" WHERE "played"<18;
## Task Generate a SQL query to answer the following question: `Which Drawn is the highest one that has a Played smaller than 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Drawn is the highest one that has a Played smaller than 18?`: ```sql
SELECT MAX("drawn") FROM "campeonato_brasileiro_s_rie_a" WHERE "against">15 AND "points"<15 AND "lost"<9;
## Task Generate a SQL query to answer the following question: `Which Drawn is the highest one that has an Against larger than 15, and Points smaller than 15, and a Lost smaller than 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Drawn is the highest one that has an Against larger than 15, and Points smaller than 15, and a Lost smaller than 9?`: ```sql
SELECT MIN("floors") FROM "timeline_of_tallest_buildings" WHERE "street_address"='921 sw sixth avenue';
## Task Generate a SQL query to answer the following question: `What's the least amount of floors at 921 sw sixth avenue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_feet_m" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the least amount of floors at 921 sw sixth avenue?`: ```sql
SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "name"='union bank of california tower';
## Task Generate a SQL query to answer the following question: `What's the address of the union bank of California tower?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_feet_m" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the address of the union bank of California tower?`: ```sql
SELECT "years_as_tallest" FROM "timeline_of_tallest_buildings" WHERE "street_address"='200 sw harrison';
## Task Generate a SQL query to answer the following question: `What were the years that the building at 200 sw harrison was considered to be the tallest building?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_feet_m" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `What were the years that the building at 200 sw harrison was considered to be the tallest building?`: ```sql
SELECT MIN("position") FROM "overall_results" WHERE "points"<7 AND "pilot"='didier hauss';
## Task Generate a SQL query to answer the following question: `What is the smallest position with less than 7 points piloted by Didier Hauss?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overall_results" ( "position" real, "pilot" text, "country" text, "glider" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest position with less than 7 points piloted by Didier Hauss?`: ```sql
SELECT "season" FROM "list_of_finals" WHERE "winner"='kiveton park' AND "final_venue"='sandy lane';
## Task Generate a SQL query to answer the following question: `During what Season was the Final Venue at Sandy Lane with Kiveton Park as the Winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_finals" ( "season" text, "winner" text, "result" text, "runner_up" text, "final_venue" text ); ### SQL Given the database schema, here is the SQL query that answers `During what Season was the Final Venue at Sandy Lane with Kiveton Park as the Winner?`: ```sql
SELECT "runner_up" FROM "list_of_finals" WHERE "winner"='kiveton park' AND "season"='2005-06';
## Task Generate a SQL query to answer the following question: `What was the Runner-up during the 2005-06 Season with Kiveton Park as the Winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_finals" ( "season" text, "winner" text, "result" text, "runner_up" text, "final_venue" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Runner-up during the 2005-06 Season with Kiveton Park as the Winner?`: ```sql
SELECT "result" FROM "list_of_finals" WHERE "runner_up"='kirkburton' AND "final_venue"='green lane';
## Task Generate a SQL query to answer the following question: `What was the Result in Green Lane with Kirkburton as the Runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_finals" ( "season" text, "winner" text, "result" text, "runner_up" text, "final_venue" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Result in Green Lane with Kirkburton as the Runner-up?`: ```sql
SELECT "result" FROM "list_of_finals" WHERE "season"='2005-06';
## Task Generate a SQL query to answer the following question: `What was the Result in the 2005-06 Season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_finals" ( "season" text, "winner" text, "result" text, "runner_up" text, "final_venue" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Result in the 2005-06 Season?`: ```sql
SELECT "final_venue" FROM "list_of_finals" WHERE "winner"='sheffield reserves';
## Task Generate a SQL query to answer the following question: `What was the Final Venue having Sheffield Reserves as the Winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_finals" ( "season" text, "winner" text, "result" text, "runner_up" text, "final_venue" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Final Venue having Sheffield Reserves as the Winner?`: ```sql
SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "time"='6:04';
## Task Generate a SQL query to answer the following question: `What is the total number of Round that has a Time of 6:04?` ### 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 `What is the total number of Round that has a Time of 6:04?`: ```sql
SELECT "round" FROM "mixed_martial_arts_record" WHERE "method"='submission (single wing choke)';
## Task Generate a SQL query to answer the following question: `What Round has the Method of Submission (Single Wing Choke)?` ### 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 `What Round has the Method of Submission (Single Wing Choke)?`: ```sql
SELECT "class" FROM "translators" WHERE "frequency_m_hz">91.5 AND "city_of_license"='hyannis, nebraska';
## Task Generate a SQL query to answer the following question: `Which Class has a Frequency MHz larger than 91.5, and a City of license of hyannis, nebraska?` ### 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 `Which Class has a Frequency MHz larger than 91.5, and a City of license of hyannis, nebraska?`: ```sql
SELECT "class" FROM "translators" WHERE "erp_w">205 AND "frequency_m_hz"<93.9 AND "call_sign"='k210cb';
## Task Generate a SQL query to answer the following question: `Which Class has a ERP W larger than 205, and a Frequency MHz smaller than 93.9, and a Call sign of k210cb?` ### 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 `Which Class has a ERP W larger than 205, and a Frequency MHz smaller than 93.9, and a Call sign of k210cb?`: ```sql
SELECT MAX("frequency_m_hz") FROM "translators" WHERE "erp_w">205 AND "call_sign"='k230ap';
## Task Generate a SQL query to answer the following question: `Which Frequency MHz that has a ERP W larger than 205, and a Call sign of k230ap?` ### 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 `Which Frequency MHz that has a ERP W larger than 205, and a Call sign of k230ap?`: ```sql
SELECT MAX("frequency_m_hz") FROM "translators" WHERE "erp_w"=250;
## Task Generate a SQL query to answer the following question: `Which Frequency MHz has a ERP W of 250?` ### 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 `Which Frequency MHz has a ERP W of 250?`: ```sql
SELECT "date" FROM "game_log" WHERE "game"=81;
## Task Generate a SQL query to answer the following question: `What was the date of game 81?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of game 81?`: ```sql
SELECT "surface" FROM "singles_13_6_7" WHERE "opponent"='gustavo kuerten';
## Task Generate a SQL query to answer the following question: `WHich Surface has an Opponent of gustavo kuerten?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_13_6_7" ( "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 an Opponent of gustavo kuerten?`: ```sql
SELECT "surface" FROM "singles_13_6_7" WHERE "tournament"='st. petersburg , russia';
## Task Generate a SQL query to answer the following question: `Which Surface has a Tournament of st. petersburg , russia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_13_6_7" ( "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 Tournament of st. petersburg , russia?`: ```sql
SELECT "date" FROM "singles_13_6_7" WHERE "surface"='hard (i)' AND "tournament"='brighton , united kingdom';
## Task Generate a SQL query to answer the following question: `When is the Surface of hard (i), and a Tournament of brighton , united kingdom taken?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_13_6_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `When is the Surface of hard (i), and a Tournament of brighton , united kingdom taken?`: ```sql
SELECT "opponent" FROM "singles_13_6_7" WHERE "score"='3–6, 5–7';
## Task Generate a SQL query to answer the following question: `Which Opponent has a Score of 3–6, 5–7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_13_6_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Opponent has a Score of 3–6, 5–7?`: ```sql
SELECT "date" FROM "singles_13_6_7" WHERE "tournament"='palermo , italy';
## Task Generate a SQL query to answer the following question: `When has a Tournament of palermo , italy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_13_6_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `When has a Tournament of palermo , italy?`: ```sql
SELECT "opponent" FROM "singles_13_6_7" WHERE "date"='29 september 1997';
## Task Generate a SQL query to answer the following question: `Which Opponent is on 29 september 1997?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_13_6_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Opponent is on 29 september 1997?`: ```sql
SELECT "constellation" FROM "cosmic_call_messages" WHERE "designation_hd"='hd 75732';
## Task Generate a SQL query to answer the following question: `Which constellation has hd 75732 as a destignation HD?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cosmic_call_messages" ( "designation_hd" text, "constellation" text, "date_sent" text, "arrival_date" text, "message" text ); ### SQL Given the database schema, here is the SQL query that answers `Which constellation has hd 75732 as a destignation HD?`: ```sql
SELECT "message" FROM "cosmic_call_messages" WHERE "designation_hd"='hd 186408';
## Task Generate a SQL query to answer the following question: `What message has hd 186408 as a designation HD?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cosmic_call_messages" ( "designation_hd" text, "constellation" text, "date_sent" text, "arrival_date" text, "message" text ); ### SQL Given the database schema, here is the SQL query that answers `What message has hd 186408 as a designation HD?`: ```sql
SELECT "date_sent" FROM "cosmic_call_messages" WHERE "constellation"='cygnus' AND "designation_hd"='hd 190360';
## Task Generate a SQL query to answer the following question: `What date sent has cygnus as a constellation, and hd 190360 as a designation HD?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cosmic_call_messages" ( "designation_hd" text, "constellation" text, "date_sent" text, "arrival_date" text, "message" text ); ### SQL Given the database schema, here is the SQL query that answers `What date sent has cygnus as a constellation, and hd 190360 as a designation HD?`: ```sql
SELECT "date_sent" FROM "cosmic_call_messages" WHERE "constellation"='orion';
## Task Generate a SQL query to answer the following question: `What date sent has orion as the constellation?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cosmic_call_messages" ( "designation_hd" text, "constellation" text, "date_sent" text, "arrival_date" text, "message" text ); ### SQL Given the database schema, here is the SQL query that answers `What date sent has orion as the constellation?`: ```sql
SELECT "constellation" FROM "cosmic_call_messages" WHERE "message"='cosmic call 1' AND "arrival_date"='october 2067';
## Task Generate a SQL query to answer the following question: `Which constellation has cosmic call 1 as the message, and an arrival date of october 2067?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cosmic_call_messages" ( "designation_hd" text, "constellation" text, "date_sent" text, "arrival_date" text, "message" text ); ### SQL Given the database schema, here is the SQL query that answers `Which constellation has cosmic call 1 as the message, and an arrival date of october 2067?`: ```sql
SELECT "date_sent" FROM "cosmic_call_messages" WHERE "constellation"='cancer';
## Task Generate a SQL query to answer the following question: `What date sent has cancer as the constellation?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cosmic_call_messages" ( "designation_hd" text, "constellation" text, "date_sent" text, "arrival_date" text, "message" text ); ### SQL Given the database schema, here is the SQL query that answers `What date sent has cancer as the constellation?`: ```sql
SELECT MAX("conceded") FROM "torneo_clausura" WHERE "points">17 AND "team"='guaraní' AND "losses"<6;
## Task Generate a SQL query to answer the following question: `Which Conceded is the highest one that has Points larger than 17, and a Team of guaraní, and Losses smaller than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Conceded is the highest one that has Points larger than 17, and a Team of guaraní, and Losses smaller than 6?`: ```sql
SELECT SUM("conceded") FROM "torneo_clausura" WHERE "draws"<5 AND "position">6;
## Task Generate a SQL query to answer the following question: `Which Conceded has Draws smaller than 5, and a Position larger than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Conceded has Draws smaller than 5, and a Position larger than 6?`: ```sql
SELECT COUNT("points") FROM "torneo_clausura" WHERE "played">18;
## Task Generate a SQL query to answer the following question: `How many Points have a Played larger than 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Points have a Played larger than 18?`: ```sql
SELECT SUM("scored") FROM "torneo_clausura" WHERE "team"='recoleta';
## Task Generate a SQL query to answer the following question: `Which Scored has a Team of recoleta?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Scored has a Team of recoleta?`: ```sql
SELECT "notes" FROM "personal_records" WHERE "date"='2008-01-27';
## Task Generate a SQL query to answer the following question: `Which Notes have a Date of 2008-01-27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personal_records" ( "distance" text, "time" text, "date" text, "location" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Notes have a Date of 2008-01-27?`: ```sql
SELECT "date" FROM "personal_records" WHERE "distance"='3,000 m';
## Task Generate a SQL query to answer the following question: `Which Date has a Distance of 3,000 m?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personal_records" ( "distance" text, "time" text, "date" text, "location" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Date has a Distance of 3,000 m?`: ```sql
SELECT "distance" FROM "personal_records" WHERE "time"='men''s speed skating';
## Task Generate a SQL query to answer the following question: `Which Distance has a Time of men's speed skating?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personal_records" ( "distance" text, "time" text, "date" text, "location" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Distance has a Time of men's speed skating?`: ```sql
SELECT "location" FROM "personal_records" WHERE "time"='time';
## Task Generate a SQL query to answer the following question: `Which Location has a Time of time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personal_records" ( "distance" text, "time" text, "date" text, "location" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Location has a Time of time?`: ```sql
SELECT "location" FROM "personal_records" WHERE "distance"='10,000 m';
## Task Generate a SQL query to answer the following question: `Which Location has a Distance of 10,000 m?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personal_records" ( "distance" text, "time" text, "date" text, "location" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Location has a Distance of 10,000 m?`: ```sql
SELECT "date" FROM "personal_records" WHERE "distance"='500 m';
## Task Generate a SQL query to answer the following question: `Which Date has a Distance of 500 m?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personal_records" ( "distance" text, "time" text, "date" text, "location" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Date has a Distance of 500 m?`: ```sql
SELECT "score" FROM "game_log" WHERE "date"='june 22' AND "attendance"=0;
## Task Generate a SQL query to answer the following question: `What was the score for the June 22 game with attendance 0?` ### 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, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score for the June 22 game with attendance 0?`: ```sql
SELECT "surface" FROM "singles" WHERE "tournament"='carthage' AND "date"='august 14, 1994';
## Task Generate a SQL query to answer the following question: `What type of surface was used for the carthage tournament on august 14, 1994?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What type of surface was used for the carthage tournament on august 14, 1994?`: ```sql
SELECT "tournament" FROM "singles" WHERE "opponent_in_the_final"='marielle bruens';
## Task Generate a SQL query to answer the following question: `Which tournament has marielle bruens for the opponent in the final?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which tournament has marielle bruens for the opponent in the final?`: ```sql
SELECT "surface" FROM "singles" WHERE "date"='may 13, 2007';
## Task Generate a SQL query to answer the following question: `What surface was used on may 13, 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What surface was used on may 13, 2007?`: ```sql
SELECT "class" FROM "oklahoma" WHERE "frequency_m_hz"=93.7;
## Task Generate a SQL query to answer the following question: `Frequency MHz of 93.7 has what class?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "oklahoma" ( "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 `Frequency MHz of 93.7 has what class?`: ```sql
SELECT AVG("entre_r_os_municipality") FROM "languages" WHERE "pojo_municipality"<9;
## Task Generate a SQL query to answer the following question: `What is the average Entre Ríos Municipality with less than 9 Pojo Municipalities?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "totora_municipality" real, "pojo_municipality" real, "pocona_municipality" real, "chimor_municipality" real, "puerto_villarroel_municipality" real, "entre_r_os_municipality" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Entre Ríos Municipality with less than 9 Pojo Municipalities?`: ```sql
SELECT COUNT("pocona_municipality") FROM "languages" WHERE "totora_municipality"=72 AND "pojo_municipality">74;
## Task Generate a SQL query to answer the following question: `What is Pocona Municipalities with 72 Totora municipalities and more than 74 pojo municipalities?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "totora_municipality" real, "pojo_municipality" real, "pocona_municipality" real, "chimor_municipality" real, "puerto_villarroel_municipality" real, "entre_r_os_municipality" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Pocona Municipalities with 72 Totora municipalities and more than 74 pojo municipalities?`: ```sql
SELECT MAX("chimor_municipality") FROM "languages" WHERE "pojo_municipality"=9 AND "totora_municipality"<7;
## Task Generate a SQL query to answer the following question: `What is the highest chimore municipalities with 9 pojo municipalities and less than 7 totora municipalities?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "totora_municipality" real, "pojo_municipality" real, "pocona_municipality" real, "chimor_municipality" real, "puerto_villarroel_municipality" real, "entre_r_os_municipality" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest chimore municipalities with 9 pojo municipalities and less than 7 totora municipalities?`: ```sql
SELECT "copa_libertadores_1996" FROM "argentine_clubs_in_international_competi" WHERE "team"='estudiantes';
## Task Generate a SQL query to answer the following question: `Which Copa Libertadores 1996 has a Team of estudiantes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "argentine_clubs_in_international_competi" ( "team" text, "recopa_1995" text, "supercopa_1995" text, "conmebol_1995" text, "copa_libertadores_1996" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Copa Libertadores 1996 has a Team of estudiantes?`: ```sql
SELECT "conmebol_1995" FROM "argentine_clubs_in_international_competi" WHERE "supercopa_1995"='sf';
## Task Generate a SQL query to answer the following question: `which CONMEBOL 1995 has a Supercopa 1995 of sf?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "argentine_clubs_in_international_competi" ( "team" text, "recopa_1995" text, "supercopa_1995" text, "conmebol_1995" text, "copa_libertadores_1996" text ); ### SQL Given the database schema, here is the SQL query that answers `which CONMEBOL 1995 has a Supercopa 1995 of sf?`: ```sql
SELECT "copa_libertadores_1996" FROM "argentine_clubs_in_international_competi" WHERE "supercopa_1995"='round 1' AND "team"='argentinos juniors';
## Task Generate a SQL query to answer the following question: `which Copa Libertadores 1996 has round 1 Supercopa 1995 and argentinos juniors team ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "argentine_clubs_in_international_competi" ( "team" text, "recopa_1995" text, "supercopa_1995" text, "conmebol_1995" text, "copa_libertadores_1996" text ); ### SQL Given the database schema, here is the SQL query that answers `which Copa Libertadores 1996 has round 1 Supercopa 1995 and argentinos juniors team ?`: ```sql
SELECT "conmebol_1995" FROM "argentine_clubs_in_international_competi" WHERE "team"='river plate';
## Task Generate a SQL query to answer the following question: `Which CONMEBOL 1995 has river plate team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "argentine_clubs_in_international_competi" ( "team" text, "recopa_1995" text, "supercopa_1995" text, "conmebol_1995" text, "copa_libertadores_1996" text ); ### SQL Given the database schema, here is the SQL query that answers `Which CONMEBOL 1995 has river plate team?`: ```sql
SELECT "team" FROM "argentine_clubs_in_international_competi" WHERE "conmebol_1995"='round 1';
## Task Generate a SQL query to answer the following question: `Which Team has a round 1 CONMEBOL 1995?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "argentine_clubs_in_international_competi" ( "team" text, "recopa_1995" text, "supercopa_1995" text, "conmebol_1995" text, "copa_libertadores_1996" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Team has a round 1 CONMEBOL 1995?`: ```sql
SELECT "date" FROM "schedule" WHERE "attendance"='57,013';
## Task Generate a SQL query to answer the following question: `Which Date has an Attendance of 57,013?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "tv_time" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Date has an Attendance of 57,013?`: ```sql
SELECT "date" FROM "schedule" WHERE "tv_time"='cbs 1:00pm' AND "game_site"='rca dome' AND "opponent"='cincinnati bengals';
## Task Generate a SQL query to answer the following question: `Which Date has a TV Time of cbs 1:00pm, and a Game Site of rca dome, and an Opponent of cincinnati bengals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "tv_time" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Date has a TV Time of cbs 1:00pm, and a Game Site of rca dome, and an Opponent of cincinnati bengals?`: ```sql
SELECT "tv_time" FROM "schedule" WHERE "date"='december 26, 1999';
## Task Generate a SQL query to answer the following question: `Which TV Time has a Date of december 26, 1999?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "tv_time" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which TV Time has a Date of december 26, 1999?`: ```sql
SELECT "game_site" FROM "schedule" WHERE "date"='october 17, 1999';
## Task Generate a SQL query to answer the following question: `Which Game Site has a Date of october 17, 1999?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "tv_time" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Game Site has a Date of october 17, 1999?`: ```sql
SELECT "result" FROM "season_schedule" WHERE "streak"='won 6';
## Task Generate a SQL query to answer the following question: `what's the result with streak of won 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "result" text, "score" text, "record" text, "streak" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the result with streak of won 6?`: ```sql
SELECT "2nd_leg" FROM "winners_knockout" WHERE "aggregate"='4-2';
## Task Generate a SQL query to answer the following question: `What was the 2nd leg score having an aggregate score of 4-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_knockout" ( "home_1st_leg" text, "home_2nd_leg" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the 2nd leg score having an aggregate score of 4-2?`: ```sql
SELECT "home_2nd_leg" FROM "winners_knockout" WHERE "1st_leg"='2-1';
## Task Generate a SQL query to answer the following question: `What was the home team for the 2nd leg for the match having a 1st leg score of 2-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_knockout" ( "home_1st_leg" text, "home_2nd_leg" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the home team for the 2nd leg for the match having a 1st leg score of 2-1?`: ```sql
SELECT "home_2nd_leg" FROM "winners_knockout" WHERE "aggregate"='2-3';
## Task Generate a SQL query to answer the following question: `What was the home team for the 2nd leg of the match having an aggregate of 2-3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_knockout" ( "home_1st_leg" text, "home_2nd_leg" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the home team for the 2nd leg of the match having an aggregate of 2-3?`: ```sql
SELECT MIN("played") FROM "campeonato_brasileiro_s_rie_b" WHERE "drawn"<12 AND "against"=41 AND "points"<69;
## Task Generate a SQL query to answer the following question: `What is the lowest number of played games of the team with less than 12 drawns, 41 against, and less than 69 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_brasileiro_s_rie_b" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest number of played games of the team with less than 12 drawns, 41 against, and less than 69 points?`: ```sql
SELECT MAX("played") FROM "campeonato_brasileiro_s_rie_b" WHERE "lost"<11 AND "drawn"<12;
## Task Generate a SQL query to answer the following question: `What is the highest number of played of the team with less than 11 losses and less than 12 drawns?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_brasileiro_s_rie_b" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of played of the team with less than 11 losses and less than 12 drawns?`: ```sql
SELECT SUM("against") FROM "campeonato_brasileiro_s_rie_b" WHERE "played"<38;
## Task Generate a SQL query to answer the following question: `What is the sum of againsts the team with less than 38 played had?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_brasileiro_s_rie_b" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of againsts the team with less than 38 played had?`: ```sql
SELECT AVG("drawn") FROM "campeonato_brasileiro_s_rie_b" WHERE "difference"='4' AND "lost">13;
## Task Generate a SQL query to answer the following question: `What is the average drawn of the team with a difference of 4 and more than 13 losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_brasileiro_s_rie_b" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average drawn of the team with a difference of 4 and more than 13 losses?`: ```sql
SELECT SUM("position") FROM "campeonato_brasileiro_s_rie_b" WHERE "lost">16 AND "against">74;
## Task Generate a SQL query to answer the following question: `What is the position of the team with more than 16 losses and an against greater than 74?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_brasileiro_s_rie_b" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position of the team with more than 16 losses and an against greater than 74?`: ```sql