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';<|...
<|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 ); Que...
<|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 ); Que...
<|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 ); Que...
<|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 ); Que...
<|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 ); Que...
<|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 "resu...
<|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|> SEL...
<|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 tha...
<|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") ...
<|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 b...
<|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 "r...
<|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 "freq...
<|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" WHER...
<|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...
<|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 "...
<|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|> S...
<|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? <|a...
<|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? <|assis...
<|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_att...
<|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" WHE...
<|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"='ge...
<|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: Whi...
<|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...
<|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: Whi...
<|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("t...
<|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|> SEL...
<|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...
<|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("ye...
<|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 "expansi...
<|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 "locatio...
<|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_...
<|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...
<|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...
<|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" FR...
<|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 "scor...
<|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 ); ...
<|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 T...
<|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|...
<|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 ...
<|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|>...
<|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 Boyfrien...
<|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%...
<|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 ); Qu...
<|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 ); Qu...
<|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 ); Qu...
<|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 ); Qu...
<|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 ); Qu...
<|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? <|assistan...
<|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 "inte...
<|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 "ve...
<|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 Confe...
<|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...
<|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...
<|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 char...
<|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 ...
<|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...
<|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...
<|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 dolphi...
<|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...
<|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 atte...
<|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" ...
<|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" ...
<|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 ille...
<|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...
<|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...
<|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" WHER...
<|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 "semifin...
<|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("...
<|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...
<|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 dis...
<|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" ...
<|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" ...
<|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" ...
<|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" ...
<|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" ...
<|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" ...
<|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_...
<|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"...
<|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 "s...
<|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 "li...
<|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...
<|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?...
<|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...
<|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("to...
<|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 tot...
<|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 tot...
<|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 low...
<|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"...
<|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...
<|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" ...
<|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...
<|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 "fir...
<|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...
<|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 o...
<|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 offi...
<|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 3...
<|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 ...
<|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 o...
<|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 val...