text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the Attendance for Opponent Boston Patriots and Week is greater than 14? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text ); Question: Which Nominated work has a Year of 1997? <|assistant|> SELECT "nominated_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text ); Question: Which Award has a Category of music video acting award? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_appearances" ( "name" text, "total" text, "league" text, "canadian_championship" text, "concacaf_champions_league" text ); Question: What name has a CONCACAF Champions League of 2 (0) and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_appearances" ( "name" text, "total" text, "league" text, "canadian_championship" text, "concacaf_champions_league" text ); Question: When the league is 84 (4) what is the Canadian Champion...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_appearances" ( "name" text, "total" text, "league" text, "canadian_championship" text, "concacaf_champions_league" text ); Question: What Canadian Championship has 84 (4) as the league? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_appearances" ( "name" text, "total" text, "league" text, "canadian_championship" text, "concacaf_champions_league" text ); Question: What Canadian Championship has Ashtone Morgan Category:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_appearances" ( "name" text, "total" text, "league" text, "canadian_championship" text, "concacaf_champions_league" text ); Question: What is the total when the name is Carl Robinson Catego...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_appearances" ( "name" text, "total" text, "league" text, "canadian_championship" text, "concacaf_champions_league" text ); Question: What CONCACAF Champions League has 57 (27) as the leagu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); Question: What is Name, when Games are less than 38, when Rank is less than 4, and when Points are 357? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); Question: What is Team, when Rank is greater than 2, and when Points are greater than 259? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); Question: What are the Highest Games, when Team is Ciudad De La Laguna, and when Points are greater than 357? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); Question: What is Points, when Name is Ondrej Starosta? <|assistant|> SELECT "points" FROM "rebounds" WHERE "na...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); Question: What is the lowest value for Points, when Games is greater than 34, and when Name is Andrew Panko? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); Question: What is the highest value for Points, when Games is 21, and when Rank is greater than 2? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_best_throwers_of_all_time_current_" ( "rank" real, "mark" real, "athlete" text, "place" text, "date" text ); Question: What is the average rank of the record on 2007-06-21 with a mark les...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_best_throwers_of_all_time_current_" ( "rank" real, "mark" real, "athlete" text, "place" text, "date" text ); Question: What is the lowest mark of the rank 8 record? <|assistant|> SELECT M...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_best_throwers_of_all_time_current_" ( "rank" real, "mark" real, "athlete" text, "place" text, "date" text ); Question: What is the place of the record on 1996-05-25 with a mark greater th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_best_throwers_of_all_time_current_" ( "rank" real, "mark" real, "athlete" text, "place" text, "date" text ); Question: What is the place of the rank 6 record, which has a mark greater tha...
<|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 competition has a venue in Hampden Park, Glasgow? <|assistant|> SELECT "compe...
<|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 score in Hampden Park, Glasgow? <|assistant|> SELECT "score" FROM "in...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text, "notes" text ); Question: Which Venue has a Notes of 2:28:31? <|assistant|> SELECT "venue" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text, "notes" text ); Question: Which Venue has a Competition of venice marathon? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text, "notes" text ); Question: Which Year that has Notes of dnf? <|assistant|> SELECT MIN("year") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text, "notes" text ); Question: Which Competition has a Year larger than 2000? <|assistant|> SELECT "co...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_pool_f" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text ); Question: What date has a set 4 of 25-19? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_pool_f" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text ); Question: What is the total for the set 2 of 25-18? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_pool_f" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text ); Question: What is the total for set 2 of 25-19? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_pool_f" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text ); Question: What is set 3 when set 5 is na, set 1 is 21-25...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_pool_f" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text ); Question: What is the set 1 for the date jun 26, and a s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_pool_f" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text ); Question: What is the total for set 2 17-25? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_finals_18_11_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What Opponent has a Score that is 1-6, 3-6? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s" ( "actual_title" text, "writer" text, "artist" text, "issue" real, "date" text ); Question: What writer has mort drucker as the artist, an issue greater than 470, and law & order: svu as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s" ( "actual_title" text, "writer" text, "artist" text, "issue" real, "date" text ); Question: What date has ed as an actual title? <|assistant|> SELECT "date" FROM "2000s" WHERE "actual_ti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s" ( "actual_title" text, "writer" text, "artist" text, "issue" real, "date" text ); Question: What isssue has 7th heaven as an actual title? <|assistant|> SELECT "issue" FROM "2000s" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s" ( "actual_title" text, "writer" text, "artist" text, "issue" real, "date" text ); Question: What issue has mort drucker as the artist and february 2001 as the date? <|assistant|> SELECT ...
<|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: In what Week was the Attendance 39,434? <|assistant|> SELECT COUNT("week") FROM "schedule" W...
<|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 first Week against Cincinnati Bengals with an Attendance greater than 58,615? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_12_3_titles_9_runners_up" ( "outcome" text, "year" text, "surface" text, "opponent" text, "score" text ); Question: What year was the match were xavier malisse was the runner-up against...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_12_3_titles_9_runners_up" ( "outcome" text, "year" text, "surface" text, "opponent" text, "score" text ); Question: What year was the match against filippo volandri where xavier malisse...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many against have a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the lowest drawn...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the average agai...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "tv_time" text, "opponent" text, "result" text ); Question: When has a TV Time of fox 12:00 pm cdt? <|assistant|> SELECT "date" FROM "schedule" WHERE "tv_t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "tv_time" text, "opponent" text, "result" text ); Question: When has a Week of 8? <|assistant|> SELECT "date" FROM "schedule" WHERE "week"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "tv_time" text, "opponent" text, "result" text ); Question: Which Week has a Result of l 13-16 and an Opponent of at buffalo bills? <|assistant|> SELECT AV...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "tv_time" text, "opponent" text, "result" text ); Question: What kind of TV Time that has a Result of w 24–10? <|assistant|> SELECT "tv_time" FROM "schedul...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "thursday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: What played at 8:00 when Grey's Anatomy played at 9:00 and Ugly Betty played at 8:30? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "thursday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: What played at 8:00 when there was local programming at 10:00 and Supernatural played at 9:00? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "thursday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: What show played at 8:00 when Ugly Betty played at 8:30? <|assistant|> SELECT "8_00" FROM "thursday" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "thursday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: When Grey's Anatomy aired at 9:30 what aired at 9:00? <|assistant|> SELECT "9_00" FROM "thursday" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "thursday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: When My Name is Earl played at 8:00 what aired at 9:30? <|assistant|> SELECT "9_30" FROM "thursday" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "season" text, "conf" text, "conf_finish" text, "div" text, "div_finish" text, "head_coach" text ); Question: What was the division when Jim O'Brien was the head coach and the team...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "season" text, "conf" text, "conf_finish" text, "div" text, "div_finish" text, "head_coach" text ); Question: What is the name of the conference that K. C. Jones was a head coach i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players" ( "name" text, "nationality" text, "position" text, "appearances" real, "goals" real ); Question: What is the least amount of appearances by new zealand when they scored 4 goals? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players" ( "name" text, "nationality" text, "position" text, "appearances" real, "goals" real ); Question: how many appearances did batram suri category:articles with hcards have scoring less t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_provinces" ( "region" text, "province" text, "capital" text, "no_of_communes" real, "area" real, "2002_population" real ); Question: What region has a 2002 population greater than 132...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_provinces" ( "region" text, "province" text, "capital" text, "no_of_communes" real, "area" real, "2002_population" real ); Question: What is the total 2002 population of the province ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_provinces" ( "region" text, "province" text, "capital" text, "no_of_communes" real, "area" real, "2002_population" real ); Question: What province has a v valparaíso region and an are...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_provinces" ( "region" text, "province" text, "capital" text, "no_of_communes" real, "area" real, "2002_population" real ); Question: What is the average area with valparaíso as the ca...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "controversy" ( "category" text, "frequency" text, "white" text, "brown" text, "black" text, "amerindian" text, "yellow" text, "total" text, "difference_between_white_and_black" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "controversy" ( "category" text, "frequency" text, "white" text, "brown" text, "black" text, "amerindian" text, "yellow" text, "total" text, "difference_between_white_and_black" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "controversy" ( "category" text, "frequency" text, "white" text, "brown" text, "black" text, "amerindian" text, "yellow" text, "total" text, "difference_between_white_and_black" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "controversy" ( "category" text, "frequency" text, "white" text, "brown" text, "black" text, "amerindian" text, "yellow" text, "total" text, "difference_between_white_and_black" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" ( "rank" real, "location" text, "total_passengers" real, "annual_change" text, "capacity_in_use" text ); Question: What is the Capacity in use with an ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_2" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text ); Question: How many Tries has Points for small...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_2" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text ); Question: WHich Team that has Points against ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_2" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text ); Question: WHich Tries has a Team of pau and P...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_2" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text ); Question: How many Points against has Tries f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_2" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text ); Question: How many Tries against has a Try di...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); Question: Which player was the forward? <|assistant|> SELECT "player" FROM "p" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); Question: Which years in Orlando are featured with the center position? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); Question: Which position was in Orlando in 2000? <|assistant|> SELECT "position" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who were the winners of the Women's ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who were the Men's doubles of the ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real ); Question: What is the Name with Goals that are 135? <|assistant|> SELECT "nam...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1938_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "american_labor_ticket" text, "socialist_ticket" text ); Question: Which American Labor candida...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1938_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "american_labor_ticket" text, "socialist_ticket" text ); Question: Which Socialist candidate ra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1938_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "american_labor_ticket" text, "socialist_ticket" text ); Question: Which Democrtic candidate ra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1938_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "american_labor_ticket" text, "socialist_ticket" text ); Question: Which American Labor candida...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1938_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "american_labor_ticket" text, "socialist_ticket" text ); Question: Which Republican ran against...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1938_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "american_labor_ticket" text, "socialist_ticket" text ); Question: Which American Labor candida...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_titles_2" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: Who is the Opponent in the final aft...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_titles_2" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What Opponent in the final had a mat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_titles_2" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What is the Championship with Vitas ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "marine_ecozones" ( "ecozone" text, "area_km_territorial_waters" real, "area_km_exclusive_economic_zone" real, "percentage_of_total_area_for_eez" real, "percentage_of_marine_area_for_eez" real );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "marine_ecozones" ( "ecozone" text, "area_km_territorial_waters" real, "area_km_exclusive_economic_zone" real, "percentage_of_total_area_for_eez" real, "percentage_of_marine_area_for_eez" real );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "marine_ecozones" ( "ecozone" text, "area_km_territorial_waters" real, "area_km_exclusive_economic_zone" real, "percentage_of_total_area_for_eez" real, "percentage_of_marine_area_for_eez" real );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "marine_ecozones" ( "ecozone" text, "area_km_territorial_waters" real, "area_km_exclusive_economic_zone" real, "percentage_of_total_area_for_eez" real, "percentage_of_marine_area_for_eez" real );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "marine_ecozones" ( "ecozone" text, "area_km_territorial_waters" real, "area_km_exclusive_economic_zone" real, "percentage_of_total_area_for_eez" real, "percentage_of_marine_area_for_eez" real );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_11" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the Tournament with a Date that is apr 16, 1967? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_11" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the Date with a Runner(s)-up that is jerry steelsmith...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "polling" ( "source" text, "date" text, "clinton" text, "obama" text, "undecided" text ); Question: What kind of Obama that has a Source of rasmussen reports? <|assistant|> SELECT "obama" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "polling" ( "source" text, "date" text, "clinton" text, "obama" text, "undecided" text ); Question: Which Source has a Undecided of 2%? <|assistant|> SELECT "source" FROM "polling" WHERE "undeci...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "polling" ( "source" text, "date" text, "clinton" text, "obama" text, "undecided" text ); Question: What kind of Obama has a Undecided of 1%? <|assistant|> SELECT "obama" FROM "polling" WHERE "u...