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