text
stringlengths
310
1.28k
<|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 ); Question: what is the venue when the competition is asian games, the event is 4x400 m relay and t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_broadcasts_and_voting" ( "voting_order" real, "country" text, "spokespersons" text, "commentator" text, "broadcaster" text ); Question: During the voting order 11, when the commen...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_broadcasts_and_voting" ( "voting_order" real, "country" text, "spokespersons" text, "commentator" text, "broadcaster" text ); Question: What was the voting order when bunny carr w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_broadcasts_and_voting" ( "voting_order" real, "country" text, "spokespersons" text, "commentator" text, "broadcaster" text ); Question: Who was the commentator when the spokespers...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_broadcasts_and_voting" ( "voting_order" real, "country" text, "spokespersons" text, "commentator" text, "broadcaster" text ); Question: What was the voting order when the commenta...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Bronze has a Total smaller than 1? <|assistant|> SELECT AVG("bronze") FROM "medal_table" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How much Silver has a Bronze larger than 1, and a Gold of 0, and a Rank smaller than 4? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Bronze has a Rank of 4, and a Gold smaller than 0? <|assistant|> SELECT MAX("bronze") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How much Gold has a Bronze smaller than 2, and a Silver of 0, and a Rank larger than 3? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mother_tongue_language_2006_and_2011" ( "mother_tongue" text, "population_2006" real, "percentage_2006" text, "population_2011" real, "percentage_2011" text ); Question: What percentage of the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mother_tongue_language_2006_and_2011" ( "mother_tongue" text, "population_2006" real, "percentage_2006" text, "population_2011" real, "percentage_2011" text ); Question: What is the total numbe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mother_tongue_language_2006_and_2011" ( "mother_tongue" text, "population_2006" real, "percentage_2006" text, "population_2011" real, "percentage_2011" text ); Question: How many people ha Roma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mother_tongue_language_2006_and_2011" ( "mother_tongue" text, "population_2006" real, "percentage_2006" text, "population_2011" real, "percentage_2011" text ); Question: What is the mother tong...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mother_tongue_language_2006_and_2011" ( "mother_tongue" text, "population_2006" real, "percentage_2006" text, "population_2011" real, "percentage_2011" text ); Question: What percentage of peop...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "draw" real, "language" text, "song" text, "english_translation" text, "place" real, "points" real ); Question: What's the total number of points when the English translation is Lo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "draw" real, "language" text, "song" text, "english_translation" text, "place" real, "points" real ); Question: What's the language of Draw number 9? <|assistant|> SELECT "language...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "draw" real, "language" text, "song" text, "english_translation" text, "place" real, "points" real ); Question: What are the lowest points when the language is Portuguese? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_six_s_ultra_prominent_summit_of_the_" ( "rank" real, "summit" text, "country" text, "island" text, "col_m" real ); Question: What's the island with a summit of Haleakalā? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_six_s_ultra_prominent_summit_of_the_" ( "rank" real, "summit" text, "country" text, "island" text, "col_m" real ); Question: What's the lowest Col ranked less than 6 with an Island of Molok...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_six_s_ultra_prominent_summit_of_the_" ( "rank" real, "summit" text, "country" text, "island" text, "col_m" real ); Question: What's the col (m) ranked more than 4 with a summit of Kawaikini...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_six_s_ultra_prominent_summit_of_the_" ( "rank" real, "summit" text, "country" text, "island" text, "col_m" real ); Question: What's the rank when the col (m) is less than 33 and has a summi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_six_s_ultra_prominent_summit_of_the_" ( "rank" real, "summit" text, "country" text, "island" text, "col_m" real ); Question: What's the summit when the rank is less than 2 and has a col (m)...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "games" ( "edition" text, "year" text, "city" text, "country" text, "date" text, "no_of_events" real, "top_team" text ); Question: Which Year has an Edition of 41st? <|assistant|> SELECT "ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "games" ( "edition" text, "year" text, "city" text, "country" text, "date" text, "no_of_events" real, "top_team" text ); Question: How many Events have a Country of trinidad and tobago, and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "games" ( "edition" text, "year" text, "city" text, "country" text, "date" text, "no_of_events" real, "top_team" text ); Question: Which Country has a Top Team of jam, and an Edition of 31st...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_titles_22_19" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: What was the ou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_titles_21" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: On what type of surface was the tourn...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_titles_21" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: Who was the opponent in the final of ...
<|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's the score on December 12, 1998? <|assistant|> SELECT "score" FROM "internat...
<|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 when the score was 7-1? <|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's the score of the friendly competition? <|assistant|> SELECT "score" FROM "i...
<|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's the competition that happened in Singapore? <|assistant|> SELECT "competiti...
<|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's the venue of the 1995 Southeast Asian Games? <|assistant|> SELECT "venue" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "president" text, "date_of_birth" text, "date_of_inauguration" text, "age_at_inauguration" text, "end_of_term" text, "length_of_retirement" text, "date_of_death" text, "lifespan" t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "president" text, "date_of_birth" text, "date_of_inauguration" text, "age_at_inauguration" text, "end_of_term" text, "length_of_retirement" text, "date_of_death" text, "lifespan" t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "president" text, "date_of_birth" text, "date_of_inauguration" text, "age_at_inauguration" text, "end_of_term" text, "length_of_retirement" text, "date_of_death" text, "lifespan" t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_of_heat_5" ( "draw" real, "artist" text, "song" text, "percentage" text, "place" real ); Question: How many draw is in a place that is less than 1? <|assistant|> SELECT COUNT("draw") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_of_heat_5" ( "draw" real, "artist" text, "song" text, "percentage" text, "place" real ); Question: What percentage has a less than 5 place, and a greater than 3 draw, and "S Teb" as the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_of_heat_5" ( "draw" real, "artist" text, "song" text, "percentage" text, "place" real ); Question: Emilya Valenti has what draw average? <|assistant|> SELECT AVG("draw") FROM "results_o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_line_series" ( "airing_date" text, "english_title_chinese_title" text, "number_of_episodes" real, "genre" text, "official_website" text ); Question: What's the airing date of Armed React...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_line_series" ( "airing_date" text, "english_title_chinese_title" text, "number_of_episodes" real, "genre" text, "official_website" text ); Question: What's the airing date for the show w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_line_series" ( "airing_date" text, "english_title_chinese_title" text, "number_of_episodes" real, "genre" text, "official_website" text ); Question: What's the official website of Burnin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualified_competitors" ( "position" text, "gymnast" text, "a_score" real, "b_score" real, "total" real ); Question: what is the position for the competitor that has a score more than 7 <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualified_competitors" ( "position" text, "gymnast" text, "a_score" real, "b_score" real, "total" real ); Question: what is the score for the 5th position and a score less than 7 <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualified_competitors" ( "position" text, "gymnast" text, "a_score" real, "b_score" real, "total" real ); Question: what is the total scored for the 8th position and a score more than 6.6 <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "event" text, "time" text, "nationality" text, "date" text, "meet" text, "location" text ); Question: What is the Meet of the Event with a Time of 7:55.02? <|assistant|> SELECT "meet...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "event" text, "time" text, "nationality" text, "date" text, "meet" text, "location" text ); Question: What is the Location of the Event with a Time of 2:22.32? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "type_i" ( "part_number" text, "pins" text, "body_width_mm" real, "body_length_mm" real, "lead_pitch_mm" real ); Question: Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Body L...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "type_i" ( "part_number" text, "pins" text, "body_width_mm" real, "body_length_mm" real, "lead_pitch_mm" real ); Question: Which Body Length/mm has a Lead Pitch/mm smaller than 0.5? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "type_i" ( "part_number" text, "pins" text, "body_width_mm" real, "body_length_mm" real, "lead_pitch_mm" real ); Question: How much Body Width/mm has a Body Length/mm of 18.4, and Pins of 40? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "type_i" ( "part_number" text, "pins" text, "body_width_mm" real, "body_length_mm" real, "lead_pitch_mm" real ); Question: Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Part N...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "type_i" ( "part_number" text, "pins" text, "body_width_mm" real, "body_length_mm" real, "lead_pitch_mm" real ); Question: Which Lead Pitch/mm has a Part Number of tsop40, and a Body Length/mm l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "toronto_blue_jays_vs_oakland_athletics" ( "game" real, "date" text, "location" text, "time" text, "attendance" real ); Question: What was the least attendance when the time was 3:15? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "toronto_blue_jays_vs_oakland_athletics" ( "game" real, "date" text, "location" text, "time" text, "attendance" real ); Question: What date was at Oakland-Alameda County Coliseum with a time of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_city" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Bronze has a Gold larger than 1, and a Total larger than 11, and a Silver lar...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_city" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many silvers have more than 2 golds? <|assistant|> SELECT COUNT("silver") FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "usa_usage_share_data_from_stat_owl_com" ( "internet_explorer" text, "firefox_other_mozilla" text, "chrome" text, "safari" text, "opera" text ); Question: What percentage of browsers were using ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "usa_usage_share_data_from_stat_owl_com" ( "internet_explorer" text, "firefox_other_mozilla" text, "chrome" text, "safari" text, "opera" text ); Question: What percentage of browsers were using ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "usa_usage_share_data_from_stat_owl_com" ( "internet_explorer" text, "firefox_other_mozilla" text, "chrome" text, "safari" text, "opera" text ); Question: What percentage of browsers were using ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "usa_usage_share_data_from_stat_owl_com" ( "internet_explorer" text, "firefox_other_mozilla" text, "chrome" text, "safari" text, "opera" text ); Question: What percentage of browsers were using ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "usa_usage_share_data_from_stat_owl_com" ( "internet_explorer" text, "firefox_other_mozilla" text, "chrome" text, "safari" text, "opera" text ); Question: What percentage of browsers were using ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_broadcasts" ( "country" text, "tv_network_s" text, "series_premiere" text, "weekly_schedule" text, "status" text ); Question: Which TV network was located in Brazil? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_broadcasts" ( "country" text, "tv_network_s" text, "series_premiere" text, "weekly_schedule" text, "status" text ); Question: What country has a series premier of unknown and mbc ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_broadcasts" ( "country" text, "tv_network_s" text, "series_premiere" text, "weekly_schedule" text, "status" text ); Question: What is the weekly schedule for the network sky itali...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many Gold medals for the Nations with 6 or more Bronze medals and 18 or mo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many Gold medals did the Soviet Union receive? <|assistant|> SELECT AVG("g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_roster" ( "name" text, "pos" text, "height" text, "weight" text, "2012_club" text ); Question: What pos is John Mann Category:Articles with Hcards with the New York Athletic Club? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_roster" ( "name" text, "pos" text, "height" text, "weight" text, "2012_club" text ); Question: What's the weight when the pos is CB and is part of the New York Athletic Club? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_roster" ( "name" text, "pos" text, "height" text, "weight" text, "2012_club" text ); Question: What's the name of the person in the CF Pos? <|assistant|> SELECT "name" FROM "current_ros...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text ); Question: What is the earliest year that a team event was included at Vilamoura, Portugal? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text ); Question: In which event before 2001 did the athlete place 16th? <|assistant|> SELECT "event" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text ); Question: In which tournament was the result 25th? <|assistant|> SELECT "tournament" FROM "achieveme...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_final_28_march_1992" ( "draw" real, "artist" text, "song" text, "points" real, "place" real ); Question: What is the number of points for the song "viva rock 'n' roll", with more than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_final_28_march_1992" ( "draw" real, "artist" text, "song" text, "points" real, "place" real ); Question: What artist has more than 6 draws, and in a place higher than 14? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_final_28_march_1992" ( "draw" real, "artist" text, "song" text, "points" real, "place" real ); Question: What is the highest Place with more than 3 draws, for the Song "dajana", with l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "125_seats_needed_for_a_majority" ( "date_released" text, "institute" text, "social_democratic" text, "socialist" text, "green_communist" text, "democratic_renewal" text, "democratic_and_soci...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "125_seats_needed_for_a_majority" ( "date_released" text, "institute" text, "social_democratic" text, "socialist" text, "green_communist" text, "democratic_renewal" text, "democratic_and_soci...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "yearly_basis" ( "year" text, "location" text, "number_of_teams" text, "player_of_the_tournament" text, "top_goalscorer_s" text, "best_goalkeeper" text ); Question: How many teams were at the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "yearly_basis" ( "year" text, "location" text, "number_of_teams" text, "player_of_the_tournament" text, "top_goalscorer_s" text, "best_goalkeeper" text ); Question: What is the location of the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_to_season" ( "season" real, "level" text, "division" text, "section" text, "administration" text, "position" text ); Question: What section were they in when there were tier 2 in 1996?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_to_season" ( "season" real, "level" text, "division" text, "section" text, "administration" text, "position" text ); Question: What is the administration when the division was Ykkönen ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominees" ( "year_ceremony" text, "actor_actress" text, "category" text, "film_title_used_in_nomination" text, "result" text ); Question: What was the film title that emma thompson was the actr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominees" ( "year_ceremony" text, "actor_actress" text, "category" text, "film_title_used_in_nomination" text, "result" text ); Question: What category was al pacino nominated for in the film, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominees" ( "year_ceremony" text, "actor_actress" text, "category" text, "film_title_used_in_nomination" text, "result" text ); Question: What is the year when sigourney weaver was nominated fo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominees" ( "year_ceremony" text, "actor_actress" text, "category" text, "film_title_used_in_nomination" text, "result" text ); Question: What year was holly hunter a nominee? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina_counties_ranked_by_per_ca" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "screen_actors_guild" ( "year" real, "category" text, "recipients_and_nominees" text, "role_episode" text, "result" text ); Question: what is the earliest year when the result is won and the rol...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "screen_actors_guild" ( "year" real, "category" text, "recipients_and_nominees" text, "role_episode" text, "result" text ); Question: what is the year when the role/episode is david duchovny? <|...
<|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 9 as the week? <|assistant|> SELECT "date" FROM "schedule" WHERE "week"=9;<|en...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_game" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "opposition" text ); Question: What is the average total of the 0-8 tally? <|assistant|> SELECT AVG("tota...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_game" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "opposition" text ); Question: What is the total rank of the match with tipperary as the opposition? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_game" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "opposition" text ); Question: What is the lowest total of player tommy ring, who has a rank greater than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_game" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "opposition" text ); Question: What is the average rank of the match where offaly was the opposition and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "municipalities" ( "municipality" text, "inhabitants" real, "mayor" text, "party" text, "election" real ); Question: Which municipality has a party of Lega Friuli-VG that won elections before 20...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "municipalities" ( "municipality" text, "inhabitants" real, "mayor" text, "party" text, "election" real ); Question: Which party is Ettore Romoli from? <|assistant|> SELECT "party" FROM "municip...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campuses" ( "campus" text, "executive_director" text, "founded" real, "type" text, "location" text ); Question: What campus is in Brgy. Alangilan, Batangas City? <|assistant|> SELECT "campus" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campuses" ( "campus" text, "executive_director" text, "founded" real, "type" text, "location" text ); Question: When was the Balayan, Batangas campus founded? <|assistant|> SELECT "founded" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campuses" ( "campus" text, "executive_director" text, "founded" real, "type" text, "location" text ); Question: Who is the executive director of the Lemery, Batangas extension? <|assistant|> SE...