text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_5_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What is the Opponent with a Score that is 2–6, 6–4, 3–6? <|assistant|> SELECT "opponent" FROM "singles_5_5_runners_up" WHERE "score"='2–6, 6–4, 3–6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_5_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What is the Outcome with a Date that is may 5, 2012? <|assistant|> SELECT "outcome" FROM "singles_5_5_runners_up" WHERE "date"='may 5, 2012';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_5_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What is the Outcome with an Opponent that is jelena janković? <|assistant|> SELECT "outcome" FROM "singles_5_5_runners_up" WHERE "opponent"='jelena janković';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_5_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What is the Tournament with a Score that is 2–6, 6–4, 3–6? <|assistant|> SELECT "tournament" FROM "singles_5_5_runners_up" WHERE "score"='2–6, 6–4, 3–6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: Which week was on November 13, 1955 when the attendance was over 33,982? <|assistant|> SELECT COUNT("week") FROM "schedule" WHERE "date"='november 13, 1955' AND "attendance">'33,982';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provinces_under_japanese_colonial_rule" ( "japanese_name" text, "kana" text, "hanja_kanji" text, "korean_name" text, "hangul" text ); Question: What is the Japanese name of the Province with a Korean name of Chungcheong-Bukdo? <|assistant|> SELECT "japanese_name" FROM "provinces_under_japanese_colonial_rule" WHERE "korean_name"='chungcheong-bukdo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provinces_under_japanese_colonial_rule" ( "japanese_name" text, "kana" text, "hanja_kanji" text, "korean_name" text, "hangul" text ); Question: What is the Hanja/Kanji of the Province with a Kana of ちゅうせいほくどう? <|assistant|> SELECT "hanja_kanji" FROM "provinces_under_japanese_colonial_rule" WHERE "kana"='ちゅうせいほくどう';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provinces_under_japanese_colonial_rule" ( "japanese_name" text, "kana" text, "hanja_kanji" text, "korean_name" text, "hangul" text ); Question: What is the Kana of the Province with a Korean name of Chungcheong-Namdo? <|assistant|> SELECT "kana" FROM "provinces_under_japanese_colonial_rule" WHERE "korean_name"='chungcheong-namdo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provinces_under_japanese_colonial_rule" ( "japanese_name" text, "kana" text, "hanja_kanji" text, "korean_name" text, "hangul" text ); Question: What is the Hangul of the Province with a Kana of へいあんなんどう? <|assistant|> SELECT "hangul" FROM "provinces_under_japanese_colonial_rule" WHERE "kana"='へいあんなんどう';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provinces_under_japanese_colonial_rule" ( "japanese_name" text, "kana" text, "hanja_kanji" text, "korean_name" text, "hangul" text ); Question: What is the Hangul of the Province with a Kana of ちゅうせいなんどう? <|assistant|> SELECT "hangul" FROM "provinces_under_japanese_colonial_rule" WHERE "kana"='ちゅうせいなんどう';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provinces_under_japanese_colonial_rule" ( "japanese_name" text, "kana" text, "hanja_kanji" text, "korean_name" text, "hangul" text ); Question: What is the Hanja/Kanji of the Province with a Korean name of Chungcheong-Bukdo? <|assistant|> SELECT "hanja_kanji" FROM "provinces_under_japanese_colonial_rule" WHERE "korean_name"='chungcheong-bukdo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "temperature" ( "city" text, "jan" text, "feb" text, "mar" text, "apr" text, "may" text, "jun" text, "jul" text, "aug" text, "sep" text, "oct" text, "nov" text, "dec" text ); Question: What were the Oct. temperatures for the city that had Nov. temperatures of 51/30? <|assistant|> SELECT "oct" FROM "temperature" WHERE "nov"='51/30';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "temperature" ( "city" text, "jan" text, "feb" text, "mar" text, "apr" text, "may" text, "jun" text, "jul" text, "aug" text, "sep" text, "oct" text, "nov" text, "dec" text ); Question: What were the Feb temperatures in East Stroudsburg? <|assistant|> SELECT "feb" FROM "temperature" WHERE "city"='east stroudsburg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "year" text, "comp" real, "att" real, "comppct" real, "yards" real, "td_s" real, "int_s" real, "rating" real ); Question: What is the sum of completions that led to completion percentages of 65.4 and attempts under 451? <|assistant|> SELECT SUM("comp") FROM "statistics" WHERE "comppct"=65.4 AND "att"<451;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "year" text, "comp" real, "att" real, "comppct" real, "yards" real, "td_s" real, "int_s" real, "rating" real ); Question: What is the highest number of touchdowns that had yards of 574 and completions over 54? <|assistant|> SELECT MAX("td_s") FROM "statistics" WHERE "yards"=574 AND "comp">54;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: What regular season did the team reach the conference semifinals in the playoffs? <|assistant|> SELECT "regular_season" FROM "year_by_year" WHERE "playoffs"='conference semifinals';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: When the regular season of 2nd, Northeast and the year was less than 2008 what was the total number of Division? <|assistant|> SELECT COUNT("division") FROM "year_by_year" WHERE "regular_season"='2nd, northeast' AND "year"<2008;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: What division was the regular season 5th, Northeast? <|assistant|> SELECT "division" FROM "year_by_year" WHERE "regular_season"='5th, northeast';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards" ( "year" real, "award" text, "category" text, "nomination" text, "result" text ); Question: What was the result when Jam Hsiao was nominated in 2012? <|assistant|> SELECT "result" FROM "awards" WHERE "nomination"='jam hsiao' AND "year"=2012;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards" ( "year" real, "award" text, "category" text, "nomination" text, "result" text ); Question: Which award is in the category of best music video? <|assistant|> SELECT "award" FROM "awards" WHERE "category"='best music video';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: Which Attendance has a Result of l 29–23? <|assistant|> SELECT "attendance" FROM "schedule" WHERE "result"='l 29–23';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: When has a Week of 1? <|assistant|> SELECT "date" FROM "schedule" WHERE "week"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: Which Week has an Opponent of at seattle seahawks? <|assistant|> SELECT "week" FROM "schedule" WHERE "opponent"='at seattle seahawks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: Name the Result on october 15, 1995? <|assistant|> SELECT "result" FROM "schedule" WHERE "date"='october 15, 1995';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: Which Opponent has a Week larger than 2 on november 19, 1995? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "week">2 AND "date"='november 19, 1995';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "automatic_bids" ( "school" text, "conference" text, "record_conf" text, "berth" text, "last_ncaa_appearance" text ); Question: What is the recorded conference that was a Wac Conference? <|assistant|> SELECT "record_conf" FROM "automatic_bids" WHERE "conference"='wac';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "automatic_bids" ( "school" text, "conference" text, "record_conf" text, "berth" text, "last_ncaa_appearance" text ); Question: What conference has the Wichita State school? <|assistant|> SELECT "conference" FROM "automatic_bids" WHERE "school"='wichita state';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements_competitions" ( "competition" text, "place" text, "year" real, "horse" text, "rank" text ); Question: What is the rank for Burghley? <|assistant|> SELECT "rank" FROM "achievements_competitions" WHERE "place"='burghley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements_competitions" ( "competition" text, "place" text, "year" real, "horse" text, "rank" text ); Question: What horse was at the Badminton Horse Trials? <|assistant|> SELECT "horse" FROM "achievements_competitions" WHERE "competition"='badminton horse trials';<|endoftext|>
<|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 was Des Dickson's lowest rank for matches smaller than 285 and less than 219 goals? <|assistant|> SELECT MIN("rank") FROM "list_of_top_association_football_goal_sc" WHERE "matches"<285 AND "name"='des dickson' AND "goals"<219;<|endoftext|>
<|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: How many goals on average had 644 matches and a rank bigger than 3? <|assistant|> SELECT AVG("goals") FROM "list_of_top_association_football_goal_sc" WHERE "matches"=644 AND "rank">3;<|endoftext|>
<|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: How many ranks had 205 matches? <|assistant|> SELECT COUNT("rank") FROM "list_of_top_association_football_goal_sc" WHERE "matches"=205;<|endoftext|>
<|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 was Jimmy Jones' rank when the matches were smaller than 285? <|assistant|> SELECT MAX("rank") FROM "list_of_top_association_football_goal_sc" WHERE "name"='jimmy jones' AND "matches"<285;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text ); Question: Which date had the Hornets as the home team? <|assistant|> SELECT "date" FROM "april" WHERE "home"='hornets';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the To par score corresponding to the winning score of 64-69-67-66=266? <|assistant|> SELECT "to_par" FROM "pga_tour_wins_8" WHERE "winning_score"='64-69-67-66=266';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the To par score for the tournament with a margin of victory of 1 stroke? <|assistant|> SELECT "to_par" FROM "pga_tour_wins_8" WHERE "margin_of_victory"='1 stroke';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the winning score for the tournament with a margin of victory of 7 strokes? <|assistant|> SELECT "winning_score" FROM "pga_tour_wins_8" WHERE "margin_of_victory"='7 strokes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text ); Question: What day in December was the game that resulted in a record of 6-3-1? <|assistant|> SELECT SUM("december") FROM "schedule_and_results" WHERE "record"='6-3-1';<|endoftext|>
<|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: How many were in attendance against the Oakland Raiders after week 7? <|assistant|> SELECT SUM("attendance") FROM "season_schedule" WHERE "opponent"='oakland raiders' AND "week">7;<|endoftext|>
<|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 average attendance for the New York Jets? <|assistant|> SELECT AVG("attendance") FROM "season_schedule" WHERE "opponent"='new york jets';<|endoftext|>
<|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: On what week were there 26,243 in attendance on September 21, 1969? <|assistant|> SELECT COUNT("week") FROM "season_schedule" WHERE "date"='september 21, 1969' AND "attendance"<'26,243';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_friendlies" ( "match" real, "date" text, "tournament" text, "location" text, "opponent_team" text, "score" text ); Question: Who was the opponent at Pasir Gudang, Malaysia with a match larger than 2? <|assistant|> SELECT "opponent_team" FROM "pre_season_friendlies" WHERE "match">2 AND "location"='pasir gudang, malaysia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_friendlies" ( "match" real, "date" text, "tournament" text, "location" text, "opponent_team" text, "score" text ); Question: Who was the opponent at the match smaller than 3? <|assistant|> SELECT "opponent_team" FROM "pre_season_friendlies" WHERE "match"<3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_friendlies" ( "match" real, "date" text, "tournament" text, "location" text, "opponent_team" text, "score" text ); Question: Where was the game when Police S.A. was the opponent? <|assistant|> SELECT "location" FROM "pre_season_friendlies" WHERE "opponent_team"='police s.a.';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers_in_order_of_league_goals" ( "player" text, "club" text, "league" real, "fa_cup" real, "fa_trophy" real, "league_cup" real, "total" real ); Question: Which League has a FA Cup larger than 0, and a Player of simon read, and a League Cup larger than 1? <|assistant|> SELECT MIN("league") FROM "top_scorers_in_order_of_league_goals" WHERE "fa_cup">0 AND "player"='simon read' AND "league_cup">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers_in_order_of_league_goals" ( "player" text, "club" text, "league" real, "fa_cup" real, "fa_trophy" real, "league_cup" real, "total" real ); Question: What kind of Total that has a League Cup larger than 3, and a League smaller than 16? <|assistant|> SELECT COUNT("total") FROM "top_scorers_in_order_of_league_goals" WHERE "league_cup">3 AND "league"<16;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers_in_order_of_league_goals" ( "player" text, "club" text, "league" real, "fa_cup" real, "fa_trophy" real, "league_cup" real, "total" real ); Question: Which League has a League Cup smaller than 0? <|assistant|> SELECT MIN("league") FROM "top_scorers_in_order_of_league_goals" WHERE "league_cup"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers_in_order_of_league_goals" ( "player" text, "club" text, "league" real, "fa_cup" real, "fa_trophy" real, "league_cup" real, "total" real ); Question: Which League has a Total smaller than 16, a Player of ken mckenna and a League Cup larger than 0? <|assistant|> SELECT MAX("league") FROM "top_scorers_in_order_of_league_goals" WHERE "total"<16 AND "player"='ken mckenna' AND "league_cup">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers_in_order_of_league_goals" ( "player" text, "club" text, "league" real, "fa_cup" real, "fa_trophy" real, "league_cup" real, "total" real ); Question: Which FA Cup that has a League Cup larger than 3 and a League smaller than 16? <|assistant|> SELECT AVG("fa_cup") FROM "top_scorers_in_order_of_league_goals" WHERE "league_cup">3 AND "league"<16;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "oldham" ( "name" text, "location" text, "type" text, "completed" text, "list_entry_number" real ); Question: How many list entry numbers are located in Platting Road, Lydgate? <|assistant|> SELECT COUNT("list_entry_number") FROM "oldham" WHERE "location"='platting road, lydgate';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "oldham" ( "name" text, "location" text, "type" text, "completed" text, "list_entry_number" real ); Question: Which type has list entry number of 1356677? <|assistant|> SELECT "type" FROM "oldham" WHERE "list_entry_number"=1356677;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "oldham" ( "name" text, "location" text, "type" text, "completed" text, "list_entry_number" real ); Question: What is the completed date of the church with list entry number 1068071? <|assistant|> SELECT "completed" FROM "oldham" WHERE "type"='church' AND "list_entry_number"=1068071;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "uefa_cup" ( "date" text, "opponent" text, "venue" text, "result" text, "scorers" text ); Question: Who were the scorers in the game against neuchâtel xamax played on 10 December 1985? <|assistant|> SELECT "scorers" FROM "uefa_cup" WHERE "opponent"='neuchâtel xamax' AND "date"='10 december 1985';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "uefa_cup" ( "date" text, "opponent" text, "venue" text, "result" text, "scorers" text ); Question: What date was the game played in where hegarty was the scorer? <|assistant|> SELECT "date" FROM "uefa_cup" WHERE "scorers"='hegarty';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "airlines" text, "iata" text, "icao" text, "callsign" text, "commenced_operations" real ); Question: Who is the callsign that has ICAO of SCO? <|assistant|> SELECT "callsign" FROM "see_also" WHERE "icao"='sco';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "airlines" text, "iata" text, "icao" text, "callsign" text, "commenced_operations" real ); Question: Who is the commenced operations that has icao of slk? <|assistant|> SELECT "commenced_operations" FROM "see_also" WHERE "icao"='slk';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "airlines" text, "iata" text, "icao" text, "callsign" text, "commenced_operations" real ); Question: Who is the call sign that has a commenced operation before 1976? <|assistant|> SELECT "callsign" FROM "see_also" WHERE "commenced_operations"<1976;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "others" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What is the HDTV of the Music Content Channel? <|assistant|> SELECT "hdtv" FROM "others" WHERE "content"='music';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "others" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What is the Television Service offering Cartomanzia? <|assistant|> SELECT "television_service" FROM "others" WHERE "content"='cartomanzia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "others" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What Country's content is Televendite? <|assistant|> SELECT "country" FROM "others" WHERE "content"='televendite';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "others" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What Country's Content is TV Locale? <|assistant|> SELECT "country" FROM "others" WHERE "content"='tv locale';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many golds had a silver of more than 1, rank more than 1, total of more than 4 when the bronze was also more than 4? <|assistant|> SELECT SUM("gold") FROM "medals_table" WHERE "silver">1 AND "rank">1 AND "total">4 AND "bronze">4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total of rank when gold is 2 and total is more than 4? <|assistant|> SELECT SUM("rank") FROM "medals_table" WHERE "gold"=2 AND "total">4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total number of bronze when gold is less than 1 and silver is more than 1? <|assistant|> SELECT SUM("bronze") FROM "medals_table" WHERE "gold"<1 AND "silver">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total of rank when silver is more than 1, gold is 2, and total is more than 4? <|assistant|> SELECT SUM("rank") FROM "medals_table" WHERE "silver">1 AND "gold"=2 AND "total">4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the Wins with a Top-25 of 3, and a Top-5 larger than 1? <|assistant|> SELECT AVG("wins") FROM "summary" WHERE "top_25"=3 AND "top_5">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: Which Cuts made has a Top-5 smaller than 3, and a Top-25 smaller than 6, and an Events of 10? <|assistant|> SELECT "cuts_made" FROM "summary" WHERE "top_5"<3 AND "top_25"<6 AND "events"=10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: Which Tournament has a Cuts made smaller than 9, and an Events of 10? <|assistant|> SELECT "tournament" FROM "summary" WHERE "cuts_made"<9 AND "events"=10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What is the sum of Points for 250cc class, ranked 13th, later than 1955? <|assistant|> SELECT SUM("points") FROM "motorcycle_grand_prix_results" WHERE "class"='250cc' AND "rank"='13th' AND "year">1955;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What is the Class for a year later than 1958, with 4 points? <|assistant|> SELECT "class" FROM "motorcycle_grand_prix_results" WHERE "year">1958 AND "points"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What is the average Year when there were more than 3 points, for MV Agusta and ranked 10th? <|assistant|> SELECT AVG("year") FROM "motorcycle_grand_prix_results" WHERE "points">3 AND "team"='mv agusta' AND "rank"='10th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What Team has a Class of 350cc, with less than 13 points in 1959? <|assistant|> SELECT "team" FROM "motorcycle_grand_prix_results" WHERE "class"='350cc' AND "points"<13 AND "year"=1959;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournaments" ( "date" text, "location" text, "country" text, "event" text, "winner" text, "runner_up" text ); Question: Which event was held at Manly Beach? <|assistant|> SELECT "event" FROM "tournaments" WHERE "location"='manly beach';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournaments" ( "date" text, "location" text, "country" text, "event" text, "winner" text, "runner_up" text ); Question: What was the location of the Havaianas Beachley Classic, held in Australia? <|assistant|> SELECT "location" FROM "tournaments" WHERE "country"='australia' AND "event"='havaianas beachley classic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournaments" ( "date" text, "location" text, "country" text, "event" text, "winner" text, "runner_up" text ); Question: Which event was held in Brazil? <|assistant|> SELECT "event" FROM "tournaments" WHERE "country"='brazil';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); Question: The University of Colorado hosted what region? <|assistant|> SELECT "region" FROM "first_and_second_rounds" WHERE "host"='university of colorado';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); Question: Peterson Gym is in what city? <|assistant|> SELECT "city" FROM "first_and_second_rounds" WHERE "venue"='peterson gym';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); Question: Mideast region host University of Tennessee is in what state? <|assistant|> SELECT "state" FROM "first_and_second_rounds" WHERE "region"='mideast' AND "host"='university of tennessee';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); Question: What city is east region venue University Hall (University of Virginia) in? <|assistant|> SELECT "city" FROM "first_and_second_rounds" WHERE "region"='east' AND "venue"='university hall (university of virginia)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); Question: What is the venue at Stanford University? <|assistant|> SELECT "venue" FROM "first_and_second_rounds" WHERE "host"='stanford university';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); Question: What is the venue in Seattle? <|assistant|> SELECT "venue" FROM "first_and_second_rounds" WHERE "city"='seattle';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "date" text, "race_name" text, "location" text, "uci_rating" real, "winner" text, "team" text ); Question: What team won the Tour de Santa Catarina? <|assistant|> SELECT "team" FROM "2007" WHERE "race_name"='tour de santa catarina';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "date" text, "race_name" text, "location" text, "uci_rating" real, "winner" text, "team" text ); Question: What is Relax-Gam's average UCI Rating? <|assistant|> SELECT AVG("uci_rating") FROM "2007" WHERE "team"='relax-gam';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "date" text, "race_name" text, "location" text, "uci_rating" real, "winner" text, "team" text ); Question: What is Vuelta a Ecuador's lowest UCI Rating? <|assistant|> SELECT MIN("uci_rating") FROM "2007" WHERE "race_name"='vuelta a ecuador';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What was the result of the game attended by 54,110? <|assistant|> SELECT "result" FROM "schedule" WHERE "attendance"='54,110';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What was the date of the game attended by 45,122? <|assistant|> SELECT "date" FROM "schedule" WHERE "attendance"='45,122';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What is the earliest week with a game attended by 60,233? <|assistant|> SELECT MIN("week") FROM "schedule" WHERE "attendance"='60,233';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What is the latest week with a game with a result of l 12–7? <|assistant|> SELECT MAX("week") FROM "schedule" WHERE "result"='l 12–7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is Runner(s)-up, when Tournament is MCI Classic? <|assistant|> SELECT "runner_s_up" FROM "pga_tour_wins_6" WHERE "tournament"='mci classic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is Winning Score, when Date is Jul 27, 1997? <|assistant|> SELECT "winning_score" FROM "pga_tour_wins_6" WHERE "date"='jul 27, 1997';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is Winning Score, when Runner(s)-up is Ted Purdy? <|assistant|> SELECT "winning_score" FROM "pga_tour_wins_6" WHERE "runner_s_up"='ted purdy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "institutions" ( "location" text, "control" text, "type" text, "enrollment" real, "founded" real ); Question: With 10,894 students enrolled, in what year was this private RU/VH institution located in Troy, New York founded? <|assistant|> SELECT AVG("founded") FROM "institutions" WHERE "type"='ru/vh' AND "control"='private' AND "enrollment">'10,894' AND "location"='troy, new york';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "institutions" ( "location" text, "control" text, "type" text, "enrollment" real, "founded" real ); Question: What is the enrollment number for the public institution in Golden, Colorado founded after 1874? <|assistant|> SELECT AVG("enrollment") FROM "institutions" WHERE "control"='public' AND "location"='golden, colorado' AND "founded">1874;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); Question: Which Team has a Year smaller than 2007, and a Class of gts? <|assistant|> SELECT "team" FROM "24_hours_of_le_mans_results" WHERE "year"<2007 AND "class"='gts';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); Question: In what year Year has a Co-Drivers of jérôme policand christopher campbell? <|assistant|> SELECT SUM("year") FROM "24_hours_of_le_mans_results" WHERE "co_drivers"='jérôme policand christopher campbell';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tv_services_for_sky_italia_costumers" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What is Language, when Content is Monoscopio? <|assistant|> SELECT "language" FROM "tv_services_for_sky_italia_costumers" WHERE "content"='monoscopio';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tv_services_for_sky_italia_costumers" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What is Television Service, when Content is Presentazione? <|assistant|> SELECT "television_service" FROM "tv_services_for_sky_italia_costumers" WHERE "content"='presentazione';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tv_services_for_sky_italia_costumers" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What is Package/Option, when Television Service is Sky Inside? <|assistant|> SELECT "package_option" FROM "tv_services_for_sky_italia_costumers" WHERE "television_service"='sky inside';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tv_services_for_sky_italia_costumers" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What is Package/Option, when Television Service is Sky Inside? <|assistant|> SELECT "package_option" FROM "tv_services_for_sky_italia_costumers" WHERE "television_service"='sky inside';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "draw" real, "song" text, "performer" text, "points" real, "rank" text ); Question: What is the lowest Draw, when the Song is "The Innocent Days"? <|assistant|> SELECT MIN("draw") FROM "references" WHERE "song"='\"the innocent days\"';<|endoftext|>