output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "record" FROM "schedule" WHERE "game"='8';
## Task Generate a SQL query to answer the following question: `What is the record for Game 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" text, "date" text, "opponent" text, "result" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record for Game 8?`: ```sql
SELECT "mobile" FROM "usage_share_data_from_wikimedia_visitor_" WHERE "opera"='2.62%';
## Task Generate a SQL query to answer the following question: `What percentage of users were using mobile browsers during the period in which 2.62% were using Opera?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "usage_share_data_from_wikimedia_visitor_" ( "period" text, "internet_explorer" text, "firefox" text, "chrome" text, "safari" text, "opera" text, "other_mozilla" text, "mobile" text ); ### SQL Given the database schema, here is the SQL query that answers `What percentage of users were using mobile browsers during the period in which 2.62% were using Opera?`: ```sql
SELECT "mobile" FROM "usage_share_data_from_wikimedia_visitor_" WHERE "chrome"='9.00%';
## Task Generate a SQL query to answer the following question: `What percentage of users were using mobile browsers during the period in which 9.00% were using Chrome?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "usage_share_data_from_wikimedia_visitor_" ( "period" text, "internet_explorer" text, "firefox" text, "chrome" text, "safari" text, "opera" text, "other_mozilla" text, "mobile" text ); ### SQL Given the database schema, here is the SQL query that answers `What percentage of users were using mobile browsers during the period in which 9.00% were using Chrome?`: ```sql
SELECT "safari" FROM "usage_share_data_from_wikimedia_visitor_" WHERE "firefox"='30.82%';
## Task Generate a SQL query to answer the following question: `What percentage of users were using Safari during the period in which 30.82% were using Firefox?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "usage_share_data_from_wikimedia_visitor_" ( "period" text, "internet_explorer" text, "firefox" text, "chrome" text, "safari" text, "opera" text, "other_mozilla" text, "mobile" text ); ### SQL Given the database schema, here is the SQL query that answers `What percentage of users were using Safari during the period in which 30.82% were using Firefox?`: ```sql
SELECT "internet_explorer" FROM "usage_share_data_from_wikimedia_visitor_" WHERE "mobile"='2.1%';
## Task Generate a SQL query to answer the following question: `What percentage of users were using Internet Explorer during the period in which 2.1% were using mobile browsers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "usage_share_data_from_wikimedia_visitor_" ( "period" text, "internet_explorer" text, "firefox" text, "chrome" text, "safari" text, "opera" text, "other_mozilla" text, "mobile" text ); ### SQL Given the database schema, here is the SQL query that answers `What percentage of users were using Internet Explorer during the period in which 2.1% were using mobile browsers?`: ```sql
SELECT "other_mozilla" FROM "usage_share_data_from_wikimedia_visitor_" WHERE "chrome"='9.00%';
## Task Generate a SQL query to answer the following question: `What percentage of users were using other Mozilla browsers during the period in which 9.00% were using Chrome?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "usage_share_data_from_wikimedia_visitor_" ( "period" text, "internet_explorer" text, "firefox" text, "chrome" text, "safari" text, "opera" text, "other_mozilla" text, "mobile" text ); ### SQL Given the database schema, here is the SQL query that answers `What percentage of users were using other Mozilla browsers during the period in which 9.00% were using Chrome?`: ```sql
SELECT "date" FROM "schedule" WHERE "result"='w 14-10';
## Task Generate a SQL query to answer the following question: `What date has w 14-10 as the result?` ### 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, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What date has w 14-10 as the result?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "week"<12 AND "date"='november 25, 1965';
## Task Generate a SQL query to answer the following question: `What opponent has a week less than 12, with November 25, 1965 as the date?` ### 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, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What opponent has a week less than 12, with November 25, 1965 as the date?`: ```sql
SELECT MIN("week") FROM "schedule" WHERE "date"='september 19, 1965' AND "attendance"<'46,941';
## Task Generate a SQL query to answer the following question: `What is the lowest week that has September 19, 1965 as the date, with an attendance less than 46,941?` ### 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, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest week that has September 19, 1965 as the date, with an attendance less than 46,941?`: ```sql
SELECT MIN("week") FROM "schedule" WHERE "attendance"='51,499';
## Task Generate a SQL query to answer the following question: `What is the lowest week that has 51,499 as the attendance?` ### 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, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest week that has 51,499 as the attendance?`: ```sql
SELECT "result" FROM "schedule" WHERE "attendance">'45,658' AND "week">8 AND "opponent"='baltimore colts';
## Task Generate a SQL query to answer the following question: `What is the result that has an attendance greater than 45,658, a week greater than 8, with baltimore colts as the opponent?` ### 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, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the result that has an attendance greater than 45,658, a week greater than 8, with baltimore colts as the opponent?`: ```sql
SELECT "frequency" FROM "radio" WHERE "format"='active rock';
## Task Generate a SQL query to answer the following question: `What is the frequency for the active rock format?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the frequency for the active rock format?`: ```sql
SELECT "branding" FROM "radio" WHERE "frequency"='fm 88.9';
## Task Generate a SQL query to answer the following question: `What is the branding for fm 88.9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the branding for fm 88.9?`: ```sql
SELECT "owner" FROM "radio" WHERE "branding"='rock 97.7';
## Task Generate a SQL query to answer the following question: `What is the name of the owner of rock 97.7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the owner of rock 97.7?`: ```sql
SELECT "branding" FROM "radio" WHERE "call_sign"='cbxp-fm';
## Task Generate a SQL query to answer the following question: `What is the branding for cbxp-fm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the branding for cbxp-fm?`: ```sql
SELECT "call_sign" FROM "radio" WHERE "format"='country' AND "frequency"='fm 93.1';
## Task Generate a SQL query to answer the following question: `What is the call sign for country station fm 93.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the call sign for country station fm 93.1?`: ```sql
SELECT "frequency" FROM "radio" WHERE "format"='country' AND "owner"='jim pattison group';
## Task Generate a SQL query to answer the following question: `What is the frequency for the country station owned by Jim Pattison Group?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the frequency for the country station owned by Jim Pattison Group?`: ```sql
SELECT "game" FROM "game_log" WHERE "location_attendance"='los angeles memorial sports arena';
## Task Generate a SQL query to answer the following question: `What game was located at the Los Angeles Memorial Sports Arena?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What game was located at the Los Angeles Memorial Sports Arena?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "score"='w 106-81';
## Task Generate a SQL query to answer the following question: `What is the location for the game with a score of w 106-81?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location for the game with a score of w 106-81?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "game"='4';
## Task Generate a SQL query to answer the following question: `Where is the location of Game 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the location of Game 4?`: ```sql
SELECT SUM("lane") FROM "semifinal_1" WHERE "rank"=2;
## Task Generate a SQL query to answer the following question: `What is the lane total when rank is 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lane total when rank is 2?`: ```sql
SELECT "time" FROM "semifinal_1" WHERE "name"='gemma spofforth';
## Task Generate a SQL query to answer the following question: `Gemma Spofforth has what time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Gemma Spofforth has what time?`: ```sql
SELECT AVG("floors") FROM "tallest_buildings_by_pinnacle_height" WHERE "pinnacle_height_ft_m"='1,136 (346)' AND "pinn_rank">4;
## Task Generate a SQL query to answer the following question: `Which Floors have a Pinnacle height ft (m) of 1,136 (346), and a Pinn Rank larger than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings_by_pinnacle_height" ( "pinn_rank" real, "std_rank" real, "name" text, "pinnacle_height_ft_m" text, "standard_height_ft_m" text, "floors" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Floors have a Pinnacle height ft (m) of 1,136 (346), and a Pinn Rank larger than 4?`: ```sql
SELECT SUM("std_rank") FROM "tallest_buildings_by_pinnacle_height" WHERE "name"='311 south wacker drive' AND "year">1990;
## Task Generate a SQL query to answer the following question: `How much Standard Rank has a Name of 311 south wacker drive, and a Year larger than 1990?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings_by_pinnacle_height" ( "pinn_rank" real, "std_rank" real, "name" text, "pinnacle_height_ft_m" text, "standard_height_ft_m" text, "floors" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `How much Standard Rank has a Name of 311 south wacker drive, and a Year larger than 1990?`: ```sql
SELECT MAX("floors") FROM "tallest_buildings_by_pinnacle_height" WHERE "pinnacle_height_ft_m"='995 (303)' AND "std_rank">6;
## Task Generate a SQL query to answer the following question: `Which Floors have a Pinnacle height ft (m) of 995 (303), and an Std Rank larger than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings_by_pinnacle_height" ( "pinn_rank" real, "std_rank" real, "name" text, "pinnacle_height_ft_m" text, "standard_height_ft_m" text, "floors" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Floors have a Pinnacle height ft (m) of 995 (303), and an Std Rank larger than 6?`: ```sql
SELECT AVG("time") FROM "semi_finals" WHERE "rank">2 AND "name"='andy turner';
## Task Generate a SQL query to answer the following question: `What is the average time with a rank lower than 2 for Andy Turner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semi_finals" ( "rank" real, "heat" real, "name" text, "nationality" text, "time" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average time with a rank lower than 2 for Andy Turner?`: ```sql
SELECT "date" FROM "expansions_by_region" WHERE "year">1981 AND "location"='morocco';
## Task Generate a SQL query to answer the following question: `What was the date for morocco when the year was lerger than 1981?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "expansions_by_region" ( "continent" text, "location" text, "city" text, "date" text, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the date for morocco when the year was lerger than 1981?`: ```sql
SELECT MIN("year") FROM "expansions_by_region" WHERE "city"='casablanca';
## Task Generate a SQL query to answer the following question: `What is the lowest year when the city is casablanca?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "expansions_by_region" ( "continent" text, "location" text, "city" text, "date" text, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest year when the city is casablanca?`: ```sql
SELECT COUNT("year") FROM "expansions_by_region" WHERE "city"='san juan';
## Task Generate a SQL query to answer the following question: `What year was the expansion in the city of San Juan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "expansions_by_region" ( "continent" text, "location" text, "city" text, "date" text, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What year was the expansion in the city of San Juan?`: ```sql
SELECT "city" FROM "expansions_by_region" WHERE "location"='netherlands';
## Task Generate a SQL query to answer the following question: `What city was located in the Netherlands?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "expansions_by_region" ( "continent" text, "location" text, "city" text, "date" text, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What city was located in the Netherlands?`: ```sql
SELECT "location" FROM "expansions_by_region" WHERE "year"=1971 AND "city"='tokyo';
## Task Generate a SQL query to answer the following question: `What location had a year of 1971 and a city of Tokyo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "expansions_by_region" ( "continent" text, "location" text, "city" text, "date" text, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What location had a year of 1971 and a city of Tokyo?`: ```sql
SELECT "award" FROM "awards_and_nominations" WHERE "year"<2005;
## Task Generate a SQL query to answer the following question: `What award did they win before 2005?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "organization" text, "award" text, "work" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What award did they win before 2005?`: ```sql
SELECT "date" FROM "second_round_proper" WHERE "home_team"='southend united';
## Task Generate a SQL query to answer the following question: `When was Southend United the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `When was Southend United the home team?`: ```sql
SELECT "score" FROM "second_round_proper" WHERE "date"='13 december 1975' AND "away_team"='halifax town';
## Task Generate a SQL query to answer the following question: `For the game on 13 December 1975 with Halifax Town as the away team what was the score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `For the game on 13 December 1975 with Halifax Town as the away team what was the score?`: ```sql
SELECT "away_team" FROM "second_round_proper" WHERE "tie_no"='6';
## Task Generate a SQL query to answer the following question: `Who was the away team when 6 was the tie no?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team when 6 was the tie no?`: ```sql
SELECT "score" FROM "second_round_proper" WHERE "tie_no"='13';
## Task Generate a SQL query to answer the following question: `The game with 13 as the tie no had what as the score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `The game with 13 as the tie no had what as the score?`: ```sql
SELECT "conference_joined" FROM "old_northern_state_conference_membership" WHERE "year_joined"=1954 AND "mascot"='beavers';
## Task Generate a SQL query to answer the following question: `Which conference joined in 1954 with a beavers mascot?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "old_northern_state_conference_membership" ( "school_ihsaa_i_dnum" text, "location" text, "mascot" text, "num_county" text, "year_joined" real, "year_left" real, "conference_joined" text ); ### SQL Given the database schema, here is the SQL query that answers `Which conference joined in 1954 with a beavers mascot?`: ```sql
SELECT "romaji_title" FROM "2008_spring_season" WHERE "tv_station"='tbs' AND "japanese_title"='around40〜注文の多いオンナたち〜';
## Task Generate a SQL query to answer the following question: `What is the Romanji title for around40〜注文の多いオンナたち〜 on TBS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Romanji title for around40〜注文の多いオンナたち〜 on TBS?`: ```sql
SELECT "tv_station" FROM "2008_spring_season" WHERE "average_ratings"='14.7%';
## Task Generate a SQL query to answer the following question: `What station has average ratings of 14.7%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); ### SQL Given the database schema, here is the SQL query that answers `What station has average ratings of 14.7%?`: ```sql
SELECT "japanese_title" FROM "2008_spring_season" WHERE "episodes">10 AND "tv_station"='tbs' AND "average_ratings"='14.8%';
## Task Generate a SQL query to answer the following question: `What is the Japanese title for the episode bigger than 10 on TBS with average ratings of 14.8%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Japanese title for the episode bigger than 10 on TBS with average ratings of 14.8%?`: ```sql
SELECT AVG("episodes") FROM "2008_spring_season" WHERE "average_ratings"='7.4%';
## Task Generate a SQL query to answer the following question: `What episode has average ratings of 7.4%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); ### SQL Given the database schema, here is the SQL query that answers `What episode has average ratings of 7.4%?`: ```sql
SELECT MIN("episodes") FROM "2008_spring_season" WHERE "tv_station"='fuji tv' AND "romaji_title"='absolute boyfriend';
## Task Generate a SQL query to answer the following question: `What is the episode on Fuji TV titled Absolute Boyfriend?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the episode on Fuji TV titled Absolute Boyfriend?`: ```sql
SELECT COUNT("episodes") FROM "2008_spring_season" WHERE "tv_station"='nhk' AND "average_ratings"='9.2%';
## Task Generate a SQL query to answer the following question: `What is the episode on NHK with average ratings of 9.2%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the episode on NHK with average ratings of 9.2%?`: ```sql
SELECT "school" FROM "membership" WHERE "year_joined">1926 AND "mascot"='vikings';
## Task Generate a SQL query to answer the following question: `Which School has a Year Joined larger than 1926, and a Mascot of vikings?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "num_county" text, "enrollment" real, "ihsaa_class_football_soccer" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Which School has a Year Joined larger than 1926, and a Mascot of vikings?`: ```sql
SELECT "mascot" FROM "membership" WHERE "school"='logansport community';
## Task Generate a SQL query to answer the following question: `Which Mascot has a School of logansport community?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "num_county" text, "enrollment" real, "ihsaa_class_football_soccer" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Mascot has a School of logansport community?`: ```sql
SELECT "num_county" FROM "membership" WHERE "enrollment">'1,108' AND "school"='anderson';
## Task Generate a SQL query to answer the following question: `Which #/ County has an Enrollment larger than 1,108, and a School of anderson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "num_county" text, "enrollment" real, "ihsaa_class_football_soccer" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Which #/ County has an Enrollment larger than 1,108, and a School of anderson?`: ```sql
SELECT "previous_conference" FROM "membership" WHERE "ihsaa_class_football_soccer"='4a/5a/2a' AND "year_joined">1926;
## Task Generate a SQL query to answer the following question: `Which Previous Conference has an IHSAA Class/ Football/ Soccer of 4a/5a/2a, and a Year Joined larger than 1926?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "num_county" text, "enrollment" real, "ihsaa_class_football_soccer" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Previous Conference has an IHSAA Class/ Football/ Soccer of 4a/5a/2a, and a Year Joined larger than 1926?`: ```sql
SELECT "num_county" FROM "membership" WHERE "year_joined">1926 AND "previous_conference"='olympic';
## Task Generate a SQL query to answer the following question: `Which #/ County has a Year Joined larger than 1926, and a Previous Conference of olympic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "num_county" text, "enrollment" real, "ihsaa_class_football_soccer" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Which #/ County has a Year Joined larger than 1926, and a Previous Conference of olympic?`: ```sql
SELECT "score" FROM "international_goals" WHERE "competition"='1996 asian cup qualification' AND "date"='june 29, 1996';
## Task Generate a SQL query to answer the following question: `What is the Score of the 1996 Asian Cup Qualification on June 29, 1996?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Score of the 1996 Asian Cup Qualification on June 29, 1996?`: ```sql
SELECT "venue" FROM "international_goals" WHERE "competition"='king''s cup 1998';
## Task Generate a SQL query to answer the following question: `What was the Venue of the King's Cup 1998?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Venue of the King's Cup 1998?`: ```sql
SELECT "venue" FROM "international_goals" WHERE "score"='4-1';
## Task Generate a SQL query to answer the following question: `What is the Venue of the Competition with a Score of 4-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Venue of the Competition with a Score of 4-1?`: ```sql
SELECT "enrollment" FROM "resources" WHERE "primary_conference"='mid-hoosier' AND "county"='16 decatur' AND "ihsaa_class"='aa';
## Task Generate a SQL query to answer the following question: `Which Enrollment has a Primary Conference of mid-hoosier, and a County of 16 decatur, and an IHSAA Class of aa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "resources" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Enrollment has a Primary Conference of mid-hoosier, and a County of 16 decatur, and an IHSAA Class of aa?`: ```sql
SELECT "location" FROM "resources" WHERE "school"='indian creek';
## Task Generate a SQL query to answer the following question: `Where is Indian Creek school located?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "resources" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is Indian Creek school located?`: ```sql
SELECT "school" FROM "resources" WHERE "location"='trafalgar';
## Task Generate a SQL query to answer the following question: `Which school is located in trafalgar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "resources" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Which school is located in trafalgar?`: ```sql
SELECT "ihsaa_class" FROM "resources" WHERE "location"='charlottesville';
## Task Generate a SQL query to answer the following question: `Which IHSAA Class is located in charlottesville?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "resources" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Which IHSAA Class is located in charlottesville?`: ```sql
SELECT "country" FROM "heat_1" WHERE "notes"='sa/b' AND "rank"=2;
## Task Generate a SQL query to answer the following question: `Which country had notes of sa/b and a rank of 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Which country had notes of sa/b and a rank of 2?`: ```sql
SELECT COUNT("rank") FROM "heat_1" WHERE "country"='great britain';
## Task Generate a SQL query to answer the following question: `What was the rank for Great Britain?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the rank for Great Britain?`: ```sql
SELECT "tv_time" FROM "schedule" WHERE "week"=12;
## Task Generate a SQL query to answer the following question: `What was the tv time for the game on week 12?` ### 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, "tv_time" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the tv time for the game on week 12?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "opponent"='miami dolphins';
## Task Generate a SQL query to answer the following question: `What was the attendance for the game against miami dolphins?` ### 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, "tv_time" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance for the game against miami dolphins?`: ```sql
SELECT "result" FROM "schedule" WHERE "attendance"='67,715';
## Task Generate a SQL query to answer the following question: `What is the result of the game with 67,715 fans attending?` ### 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, "tv_time" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result of the game with 67,715 fans attending?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "attendance"='90,287';
## Task Generate a SQL query to answer the following question: `Who was the opponent for the game that had 90,287 in attendance?` ### 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, "tv_time" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent for the game that had 90,287 in attendance?`: ```sql
SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "2008_club"='rahat';
## Task Generate a SQL query to answer the following question: `Who had rahat as their 2008 club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had rahat as their 2008 club?`: ```sql
SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "2008_club"='rahat';
## Task Generate a SQL query to answer the following question: `Who had rahat as their 2008 club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had rahat as their 2008 club?`: ```sql
SELECT "height" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "2008_club"='iller bankasi';
## Task Generate a SQL query to answer the following question: `What was the height of the player that had a 2008 club of iller bankasi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the height of the player that had a 2008 club of iller bankasi?`: ```sql
SELECT "team" FROM "scoring_summary" WHERE "period"='1st' AND "time"='12:37';
## Task Generate a SQL query to answer the following question: `What is the team with 1st period at 12:37?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scoring_summary" ( "period" text, "team" text, "goal" text, "assist_s" text, "time" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the team with 1st period at 12:37?`: ```sql
SELECT "athlete" FROM "semifinal_a_b_2" WHERE "time"='6:02.46';
## Task Generate a SQL query to answer the following question: `who is the athlete with the time 6:02.46?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the athlete with the time 6:02.46?`: ```sql
SELECT "country" FROM "semifinal_a_b_2" WHERE "rank"=6;
## Task Generate a SQL query to answer the following question: `what is the country for rank 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the country for rank 6?`: ```sql
SELECT "notes" FROM "semifinal_a_b_2" WHERE "rank"<2;
## Task Generate a SQL query to answer the following question: `what is the notes when the rank is less than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the notes when the rank is less than 2?`: ```sql
SELECT SUM("rank") FROM "semifinal_a_b_2" WHERE "athlete"='hauffe, seifert, kaeufer, adamski';
## Task Generate a SQL query to answer the following question: `what is the rank for athlete hauffe, seifert, kaeufer, adamski?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the rank for athlete hauffe, seifert, kaeufer, adamski?`: ```sql
SELECT "notes" FROM "semifinal_a_b_2" WHERE "time"='6:05.21';
## Task Generate a SQL query to answer the following question: `what is the notes for the time 6:05.21?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the notes for the time 6:05.21?`: ```sql
SELECT "discoverer_s" FROM "possible_detached_objects" WHERE "aphelion_au">97 AND "year_discovered"=2004;
## Task Generate a SQL query to answer the following question: `Who was the discoverer of the object with an Aphelion above 97 in 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "possible_detached_objects" ( "name" text, "diameter_km" text, "perihelion_au" real, "aphelion_au" real, "year_discovered" real, "discoverer_s" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the discoverer of the object with an Aphelion above 97 in 2004?`: ```sql
SELECT "model_number" FROM "haswell_h_quad_core_22_nm" WHERE "part_number_s"='cl8064701510101';
## Task Generate a SQL query to answer the following question: `What model number has part number cl8064701510101?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "haswell_h_quad_core_22_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequency" text, "socket" text, "i_o_bus" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `What model number has part number cl8064701510101?`: ```sql
SELECT "i_o_bus" FROM "haswell_h_quad_core_22_nm" WHERE "release_price_usd"='$657';
## Task Generate a SQL query to answer the following question: `What is the I/O bus entry for the processor with a release price of $657?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "haswell_h_quad_core_22_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequency" text, "socket" text, "i_o_bus" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the I/O bus entry for the processor with a release price of $657?`: ```sql
SELECT "l2_cache" FROM "haswell_h_quad_core_22_nm" WHERE "gpu_model"='iris pro graphics 5200' AND "frequency"='2.6 ghz';
## Task Generate a SQL query to answer the following question: `What is the L2 cache for the processor with iris pro graphics 5200 and frequency of 2.6 ghz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "haswell_h_quad_core_22_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequency" text, "socket" text, "i_o_bus" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the L2 cache for the processor with iris pro graphics 5200 and frequency of 2.6 ghz?`: ```sql
SELECT "frequency" FROM "haswell_h_quad_core_22_nm" WHERE "release_price_usd"='$383' AND "s_spec_number"='sr15f(c0)';
## Task Generate a SQL query to answer the following question: `What is the frequency of the processor released at $383, with a sSpec of sr15f(c0)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "haswell_h_quad_core_22_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequency" text, "socket" text, "i_o_bus" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the frequency of the processor released at $383, with a sSpec of sr15f(c0)?`: ```sql
SELECT "gpu_frequency" FROM "haswell_h_quad_core_22_nm" WHERE "release_date"='june 2013' AND "s_spec_number"='sr17l(c0)';
## Task Generate a SQL query to answer the following question: `What is the GPU frequency for the processor released in June 2013, with a sSpec number of sr17l(c0)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "haswell_h_quad_core_22_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequency" text, "socket" text, "i_o_bus" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the GPU frequency for the processor released in June 2013, with a sSpec number of sr17l(c0)?`: ```sql
SELECT "l3_cache" FROM "haswell_h_quad_core_22_nm" WHERE "release_price_usd"='$440';
## Task Generate a SQL query to answer the following question: `What is the L3 cache of the processor with a release price of $440?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "haswell_h_quad_core_22_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequency" text, "socket" text, "i_o_bus" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the L3 cache of the processor with a release price of $440?`: ```sql
SELECT "os_x" FROM "see_also" WHERE "name"='home media center';
## Task Generate a SQL query to answer the following question: `What is the OS X for the Home Media Center?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "name" text, "license" text, "os_x" text, "unix_like" text, "windows" text, "web_interface" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the OS X for the Home Media Center?`: ```sql
SELECT "name" FROM "see_also" WHERE "windows"='partial';
## Task Generate a SQL query to answer the following question: `What is the name when Windows is partial?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "name" text, "license" text, "os_x" text, "unix_like" text, "windows" text, "web_interface" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name when Windows is partial?`: ```sql
SELECT "license" FROM "see_also" WHERE "name"='rygel';
## Task Generate a SQL query to answer the following question: `What is the license for Rygel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "name" text, "license" text, "os_x" text, "unix_like" text, "windows" text, "web_interface" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the license for Rygel?`: ```sql
SELECT "license" FROM "see_also" WHERE "name"='jriver media center';
## Task Generate a SQL query to answer the following question: `What is the license for Jriver Media Center?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "name" text, "license" text, "os_x" text, "unix_like" text, "windows" text, "web_interface" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the license for Jriver Media Center?`: ```sql
SELECT MIN("season") FROM "seasons" WHERE "last_aired"='august 20, 2010';
## Task Generate a SQL query to answer the following question: `Of the series that last aired August 20, 2010, what is the lowest number of seasons?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seasons" ( "season" real, "first_aired" text, "last_aired" text, "episodes" real, "network" text ); ### SQL Given the database schema, here is the SQL query that answers `Of the series that last aired August 20, 2010, what is the lowest number of seasons?`: ```sql
SELECT SUM("episodes") FROM "seasons" WHERE "first_aired"='april 8, 2011';
## Task Generate a SQL query to answer the following question: `Of the series that first aired April 8, 2011, what is the total number of episodes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seasons" ( "season" real, "first_aired" text, "last_aired" text, "episodes" real, "network" text ); ### SQL Given the database schema, here is the SQL query that answers `Of the series that first aired April 8, 2011, what is the total number of episodes?`: ```sql
SELECT MAX("total") FROM "qualified_competitors" WHERE "position">6 AND "a_score"<7.6;
## Task Generate a SQL query to answer the following question: `What's the total when the position was more than 6 and had an A Score of less than 7.6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualified_competitors" ( "position" real, "gymnast" text, "a_score" real, "b_score" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the total when the position was more than 6 and had an A Score of less than 7.6?`: ```sql
SELECT AVG("total") FROM "qualified_competitors" WHERE "a_score"<6.9;
## Task Generate a SQL query to answer the following question: `What's the total when A Score was less than 6.9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualified_competitors" ( "position" real, "gymnast" text, "a_score" real, "b_score" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the total when A Score was less than 6.9?`: ```sql
SELECT SUM("water_sqmi") FROM "d" WHERE "land_sqmi"=35.918 AND "longitude"<-97.115459;
## Task Generate a SQL query to answer the following question: `What's the total of Water (sqmi) with a Land (sqmi) of 35.918 and has a Longitude that is smaller than -97.115459?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "d" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the total of Water (sqmi) with a Land (sqmi) of 35.918 and has a Longitude that is smaller than -97.115459?`: ```sql
SELECT COUNT("longitude") FROM "d" WHERE "ansi_code"=1036573 AND "water_sqmi"<0.404;
## Task Generate a SQL query to answer the following question: `What;s the total of Longitude with an ANSI code of 1036573 and has Water (sqmi) that is smaller than 0.404?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "d" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What;s the total of Longitude with an ANSI code of 1036573 and has Water (sqmi) that is smaller than 0.404?`: ```sql
SELECT MIN("longitude") FROM "d" WHERE "latitude"=46.843963 AND "water_sqmi"<0.052000000000000005;
## Task Generate a SQL query to answer the following question: `What's the lowest listed longitude that has a Latitude of 46.843963 and Water (sqmi) that is smaller than 0.052000000000000005?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "d" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the lowest listed longitude that has a Latitude of 46.843963 and Water (sqmi) that is smaller than 0.052000000000000005?`: ```sql
SELECT SUM("heat") FROM "semifinals" WHERE "rank">7;
## Task Generate a SQL query to answer the following question: `What is the total heat ranked higher than 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinals" ( "rank" real, "heat" real, "cyclist" text, "nation" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total heat ranked higher than 7?`: ```sql
SELECT "cyclist" FROM "semifinals" WHERE "nation"='australia';
## Task Generate a SQL query to answer the following question: `Which cyclist is from Australia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinals" ( "rank" real, "heat" real, "cyclist" text, "nation" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Which cyclist is from Australia?`: ```sql
SELECT "nation" FROM "semifinals" WHERE "heat"=4 AND "rank"=8;
## Task Generate a SQL query to answer the following question: `Which nation has a heat of 4, and is ranked 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinals" ( "rank" real, "heat" real, "cyclist" text, "nation" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Which nation has a heat of 4, and is ranked 8?`: ```sql
SELECT "position" FROM "first_round_selections" WHERE "player"='john curtice';
## Task Generate a SQL query to answer the following question: `What is John Curtice's position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `What is John Curtice's position?`: ```sql
SELECT "player" FROM "first_round_selections" WHERE "school"='seton hall university';
## Task Generate a SQL query to answer the following question: `What player is from Seton Hall University?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `What player is from Seton Hall University?`: ```sql
SELECT MIN("pick") FROM "first_round_selections" WHERE "position"='ss, p' AND "team"='minnesota twins';
## Task Generate a SQL query to answer the following question: `What is the lowest pick of a player for the SS, P Position for the Minnesota Twins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest pick of a player for the SS, P Position for the Minnesota Twins?`: ```sql
SELECT "premier" FROM "rank_by_time_in_office" WHERE "assumed_office"='14 april 1894';
## Task Generate a SQL query to answer the following question: `what is the premier when the assumed office is 14 april 1894?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rank_by_time_in_office" ( "rank" real, "premier" text, "party" text, "assumed_office" text, "left_office" text, "total_time_in_office" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the premier when the assumed office is 14 april 1894?`: ```sql
SELECT SUM("rank") FROM "rank_by_time_in_office" WHERE "assumed_office"='9 april 1903';
## Task Generate a SQL query to answer the following question: `what is the rank when the assumed office is 9 april 1903?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rank_by_time_in_office" ( "rank" real, "premier" text, "party" text, "assumed_office" text, "left_office" text, "total_time_in_office" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the rank when the assumed office is 9 april 1903?`: ```sql
SELECT "premier" FROM "rank_by_time_in_office" WHERE "rank"=30;
## Task Generate a SQL query to answer the following question: `what is the premier when the rank is 30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rank_by_time_in_office" ( "rank" real, "premier" text, "party" text, "assumed_office" text, "left_office" text, "total_time_in_office" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the premier when the rank is 30?`: ```sql
SELECT "total_time_in_office" FROM "rank_by_time_in_office" WHERE "assumed_office"='1 november 1856';
## Task Generate a SQL query to answer the following question: `what is the total time in office when the assumed office is 1 november 1856?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rank_by_time_in_office" ( "rank" real, "premier" text, "party" text, "assumed_office" text, "left_office" text, "total_time_in_office" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the total time in office when the assumed office is 1 november 1856?`: ```sql
SELECT SUM("rank") FROM "rank_by_time_in_office" WHERE "assumed_office"='12 may 1857';
## Task Generate a SQL query to answer the following question: `what is the rank when assumed office on 12 may 1857?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rank_by_time_in_office" ( "rank" real, "premier" text, "party" text, "assumed_office" text, "left_office" text, "total_time_in_office" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the rank when assumed office on 12 may 1857?`: ```sql
SELECT AVG("v_band") FROM "properties_of_wmap_at_different_frequenc" WHERE "ka_band"<33 AND "q_band"=1;
## Task Generate a SQL query to answer the following question: `What is the average v-band for Ka-band values under 33 and Q-bands of 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "properties_of_wmap_at_different_frequenc" ( "property" text, "k_band" real, "ka_band" real, "q_band" real, "v_band" real, "w_band" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average v-band for Ka-band values under 33 and Q-bands of 1?`: ```sql