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? <...
<|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? <|ass...
<|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 jankov...
<|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?...
<|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|> SELEC...
<|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 ...
<|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 Ka...
<|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 na...
<|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...
<|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...
<|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 Ko...
<|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 ); Que...
<|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 ); Que...
<|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 completi...
<|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 y...
<|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 semifin...
<|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 le...
<|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? <|assist...
<|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 ...
<|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...
<|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" ...
<|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 "schedul...
<|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 "da...
<|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...
<|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? <|assis...
<|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...
<|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_...
<|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" FRO...
<|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...
<|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?...
<|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") ...
<|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? ...
<|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" FRO...
<|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...
<|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 ...
<|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...
<|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...
<|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|> S...
<|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("atten...
<|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|> SEL...
<|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 m...
<|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? <|ass...
<|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? <...
<|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 la...
<|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 ...
<|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 Cu...
<|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 sma...
<|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 Leag...
<|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|> SEL...
<|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 "oldha...
<|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...
<|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? <|assista...
<|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" FRO...
<|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 "...
<|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 "comm...
<|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|> S...
<|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? <|assistan...
<|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? <|as...
<|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|> SELE...
<|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...
<|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 th...
<|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...
<|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...
<|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 ...
<|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 t...
<|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 ...
<|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 E...
<|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 tha...
<|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? <|as...
<|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 ...
<|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?...
<|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 ...
<|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 Austra...
<|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 "tour...
<|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 "fi...
<|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_roun...
<|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 "s...
<|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? <|assista...
<|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_an...
<|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_rou...
<|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 "...
<|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...
<|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_...
<|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 "sche...
<|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...
<|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") F...
<|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"...
<|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? <|assist...
<|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|...
<|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? <|assis...
<|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 locat...
<|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...
<|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...
<|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...
<|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 Cont...
<|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,...
<|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, whe...
<|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, whe...
<|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")...