text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: What is the To par when the score was 72-67-68-71=278? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: What is the Place when Steve Pate was the player? <|assistant|> SELECT "plac...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dorsa" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real ); Question: What is the diameter for 1997 when longitude is 212.0e and latitude is 47.0n? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dorsa" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real ); Question: What's the latitude when the longitude is 152.0e later than 1997? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dorsa" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real ); Question: What's the diameter when longitude is 105.0e before 2003? <|assistant|> SELECT SUM("d...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dorsa" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real ); Question: What's the average year for the name aida-wedo dorsa with a diameter less than 450? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dorsa" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real ); Question: What's the total diameter when longitude is 357.8e later than 1985? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2_ukrainians" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" text, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2_ukrainians" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" text, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2_ukrainians" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" text, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2_ukrainians" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" text, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "original_london_production" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); Question: In what year was Lesli Margherita nominated? <|assistant|> SELECT SUM("year"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "original_london_production" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); Question: Who was nominated for Best Theatre Choreographer? <|assistant|> SELECT "nomi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_roster_2014" ( "name" text, "height" text, "year" text, "hometown" text, "club" text ); Question: What hometown was FR Year, and ha Brown's Gymnastics club? <|assistant|> SELECT "hometo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_roster_2014" ( "name" text, "height" text, "year" text, "hometown" text, "club" text ); Question: What year was Asi Peko? <|assistant|> SELECT "year" FROM "current_roster_2014" WHERE "n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_roster_2014" ( "name" text, "height" text, "year" text, "hometown" text, "club" text ); Question: What is the height for the Oakville Gymnastics Club? <|assistant|> SELECT "height" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "loans_in" ( "name" text, "country" text, "loan_club" text, "started" text, "ended" text, "start_source" text, "end_source" text ); Question: when was the loan ended when the loan club is sp...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "loans_in" ( "name" text, "country" text, "loan_club" text, "started" text, "ended" text, "start_source" text, "end_source" text ); Question: What is the loan start source when the loan club...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "loans_in" ( "name" text, "country" text, "loan_club" text, "started" text, "ended" text, "start_source" text, "end_source" text ); Question: When was the loan started when the coutry is eng...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "loans_in" ( "name" text, "country" text, "loan_club" text, "started" text, "ended" text, "start_source" text, "end_source" text ); Question: when was the loan ended when the country is ghan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "loans_in" ( "name" text, "country" text, "loan_club" text, "started" text, "ended" text, "start_source" text, "end_source" text ); Question: what is the loan club with the start source is b...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "loans_in" ( "name" text, "country" text, "loan_club" text, "started" text, "ended" text, "start_source" text, "end_source" text ); Question: what is the start source when started on 2 febru...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "post_positions" ( "finished" real, "time_behind" text, "post" real, "horse" text, "jockey" text, "trainer" text, "owner" text ); Question: What is the lowest Finished, when Post is less tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "post_positions" ( "finished" real, "time_behind" text, "post" real, "horse" text, "jockey" text, "trainer" text, "owner" text ); Question: What is Owner, when Finished is less than 15, when...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "post_positions" ( "finished" real, "time_behind" text, "post" real, "horse" text, "jockey" text, "trainer" text, "owner" text ); Question: What is the Time/ Behind, when Jockey is "Jose Lez...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "post_positions" ( "finished" real, "time_behind" text, "post" real, "horse" text, "jockey" text, "trainer" text, "owner" text ); Question: What is Jockey, when Post is 12? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "post_positions" ( "finished" real, "time_behind" text, "post" real, "horse" text, "jockey" text, "trainer" text, "owner" text ); Question: What is the total number of Post, when Trainer is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "post_positions" ( "finished" real, "time_behind" text, "post" real, "horse" text, "jockey" text, "trainer" text, "owner" text ); Question: What is Jockey, when Horse is "Eight Belles"? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overview" ( "club" text, "location" text, "current_manager" text, "team_captain" text, "stadium" text, "capacity" real ); Question: Who is the team captain of the Guldensporen Stadion with a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overview" ( "club" text, "location" text, "current_manager" text, "team_captain" text, "stadium" text, "capacity" real ); Question: Who is the team captain of Regenboogstadion? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overview" ( "club" text, "location" text, "current_manager" text, "team_captain" text, "stadium" text, "capacity" real ); Question: Who is the current manager of the team located in tubize? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overview" ( "club" text, "location" text, "current_manager" text, "team_captain" text, "stadium" text, "capacity" real ); Question: Where is the location of the team with a current manager of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_data" ( "finish" text, "race" text, "distance" text, "jockey" text, "time" text, "victory_margin_in_lengths" text, "runner_up" text, "track" text, "surface" text, "date" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_data" ( "finish" text, "race" text, "distance" text, "jockey" text, "time" text, "victory_margin_in_lengths" text, "runner_up" text, "track" text, "surface" text, "date" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_data" ( "finish" text, "race" text, "distance" text, "jockey" text, "time" text, "victory_margin_in_lengths" text, "runner_up" text, "track" text, "surface" text, "date" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_data" ( "finish" text, "race" text, "distance" text, "jockey" text, "time" text, "victory_margin_in_lengths" text, "runner_up" text, "track" text, "surface" text, "date" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "player" text, "team" text, "league" text, "position" text ); Question: Who was the player in 1981? <|assistant|> SELECT "player" FROM "winners" WHERE "year"='1981';<|en...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "player" text, "team" text, "league" text, "position" text ); Question: What is the team for 1976? <|assistant|> SELECT "team" FROM "winners" WHERE "year"='1976';<|endof...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preseason" ( "date" text, "opponent" text, "score" text, "result" text, "record" text ); Question: What is the opponent for the date of august 5? <|assistant|> SELECT "opponent" FROM "preseason...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preseason" ( "date" text, "opponent" text, "score" text, "result" text, "record" text ); Question: What is the result for the date of august 23? <|assistant|> SELECT "result" FROM "preseason" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preseason" ( "date" text, "opponent" text, "score" text, "result" text, "record" text ); Question: When the opponent is houston oilers what is the result? <|assistant|> SELECT "result" FROM "pr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_average_1" real, "points_2" real ); Question: Which ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_average_1" real, "points_2" real ); Question: Which ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_average_1" real, "points_2" real ); Question: Which ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_average_1" real, "points_2" real ); Question: Which ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "tournament" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "tournament" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "tournament" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "tournament" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the lowest round that a pick had a position o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: What was the sum of the rounds for the player who had...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chinese_taipei_women_s_national_football" ( "date" text, "venue" text, "score" text, "competition" text, "report" text ); Question: WHAT IS THE VENUE ON MARCH 28, 2008? <|assistant|> SELECT "ve...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "houston_astros_vs_new_york_mets" ( "game" real, "date" text, "score" text, "location" text, "time" text, "attendance" real ); Question: How many were in Attendance on October 8? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "houston_astros_vs_new_york_mets" ( "game" real, "date" text, "score" text, "location" text, "time" text, "attendance" real ); Question: In what Game was the Attendance more than 45,718 with a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "houston_astros_vs_new_york_mets" ( "game" real, "date" text, "score" text, "location" text, "time" text, "attendance" real ); Question: What is the Location of the Game on October 8? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "ends" real, "transfer_fee" text ); Question: What is the nationality for the player with over 64 goals? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real ); Question: What was the score of the game where Philadelphia was the vi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_fifa_world_cup" ( "date" text, "time_cet" real, "res" text, "round" text, "spectators" real ); Question: What are the average spectators from the Group H Round? <|assistant|> SELECT AVG("s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: Can you tell me the Manufacturer that has the Rider of stefan bradl? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: Can you tell me the highest Grid that has the Time of +15.532, and the Laps larger ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: Can you tell me the sum of Grid that has the Time of +6.355, and the Laps larger th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "round" real, "time" text, "location" text ); Question: What is Time, when Location is "Savannah, Georgia , United Sta...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "round" real, "time" text, "location" text ); Question: What is the total number of Round(s), when Time is "N/A", when...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "programs_returning_in_1987" ( "show" text, "last_aired" real, "previous_network" text, "retitled_as_same" text, "new_returning_same_network" text, "returning" text ); Question: Which Retitled...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "programs_returning_in_1987" ( "show" text, "last_aired" real, "previous_network" text, "retitled_as_same" text, "new_returning_same_network" text, "returning" text ); Question: Which New/Retu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "programs_returning_in_1987" ( "show" text, "last_aired" real, "previous_network" text, "retitled_as_same" text, "new_returning_same_network" text, "returning" text ); Question: Which New/Retu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "programs_returning_in_1987" ( "show" text, "last_aired" real, "previous_network" text, "retitled_as_same" text, "new_returning_same_network" text, "returning" text ); Question: Which New/Retu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "programs_returning_in_1987" ( "show" text, "last_aired" real, "previous_network" text, "retitled_as_same" text, "new_returning_same_network" text, "returning" text ); Question: Which Last Air...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "round" real, "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_car" text ); Question: How many rounds had a race name of anglia tv trophy? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "round" real, "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_car" text ); Question: What circuit was the race named international trophy raced at by the wi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "round" real, "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_car" text ); Question: What circuit did emilio de villota win on at the pace petroleum trophy?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What is the to par of the player from the United States with a t6 place and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: Who is the player from Australia with a to par of +5? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What is the highest amount of money a player with a score of 69-71-71-73=284...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: What is the time of the match...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: What is the method of the mat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contestants" ( "name" text, "occupation" text, "hometown" text, "season" text, "finish" text ); Question: Who was the sports agent who finished 9th? <|assistant|> SELECT "name" FROM "contestant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What is the lowest score that wes ellis got? <|assistant|> SELECT MIN("score") FROM "first_r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What was the score for the player from the United states that was +1 to par? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: Who was the player who placed t10? <|assistant|> SELECT "player" FROM "first_round" WHERE "p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: How far to par did ed furgol from the United States get when he scored less than 72 and was ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tv_ratings" ( "order" text, "episode" text, "rating" real, "share" real, "rating_share_18_49" text, "viewers_millions" real, "rank_night" real, "rank_timeslot" real, "rank_week" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tv_ratings" ( "order" text, "episode" text, "rating" real, "share" real, "rating_share_18_49" text, "viewers_millions" real, "rank_night" real, "rank_timeslot" real, "rank_week" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: what is the round when the college is syracuse and th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: what is the position when the pick is more than 2, th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: what is the pick when the college is arkansas and the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: what is the lowest overall when the pick is less than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: what is the round when the college is north carolina ...
<|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, "tv_time" text ); Question: October 28, 2001 was what week of the season? <|assistant|> SELECT "week" FROM "schedule" WHERE...
<|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, "tv_time" text ); Question: What was the result of week 11? <|assistant|> SELECT "result" FROM "schedule" WHERE "week"=11;<...
<|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, "tv_time" text ); Question: What was the date of a week larger than 16? <|assistant|> SELECT "date" FROM "schedule" WHERE "...
<|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, "tv_time" text ); Question: November 25, 2001 was what week of the season? <|assistant|> SELECT COUNT("week") FROM "schedul...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "electric_locomotives" ( "railway" text, "builder" text, "built" real, "wheels" text, "location" text, "object_number" text ); Question: Which Wheels has Built smaller than 1958, a Location of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "electric_locomotives" ( "railway" text, "builder" text, "built" real, "wheels" text, "location" text, "object_number" text ); Question: Which Built has a Builder of brel crewe? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "electric_locomotives" ( "railway" text, "builder" text, "built" real, "wheels" text, "location" text, "object_number" text ); Question: Which Railway has a Location of shildon, and an ObjectN...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "electric_locomotives" ( "railway" text, "builder" text, "built" real, "wheels" text, "location" text, "object_number" text ); Question: Which Railway has a Location of shildon, and an ObjectN...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "electric_locomotives" ( "railway" text, "builder" text, "built" real, "wheels" text, "location" text, "object_number" text ); Question: Which Location has an ObjectNumber of 2005-7698? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notable_former_players" ( "name" text, "club" text, "position" text, "years" text, "current_status" text ); Question: What is the Club during the Years 1995–1996? <|assistant|> SELECT "club" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notable_former_players" ( "name" text, "club" text, "position" text, "years" text, "current_status" text ); Question: In what Years was the Player in MF Position? <|assistant|> SELECT "years" F...