text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "200_or_more_deaths" ( "disaster" text, "type" text, "location" text, "deaths" text, "date" text ); Question: Where was the disaster located that took place on 1916? <|assistant|> SELECT "locati...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: Which Laps is the highest one that has a Time/Retired of +3.370 secs? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: Which Grid has a Team of rusport, and Laps larger than 221? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1996_to_1999" ( "year" real, "title" text, "role" text, "producer" text, "director" text ); Question: What title has a producer of MAQ and Anna as a role? <|assistant|> SELECT "title" FROM "199...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1996_to_1999" ( "year" real, "title" text, "role" text, "producer" text, "director" text ); Question: How many years was Kay Tagal Kang Hinintay directed by Rory Quintos and produced by Star Ci...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1996_to_1999" ( "year" real, "title" text, "role" text, "producer" text, "director" text ); Question: Which title was directed by Joyce Bernal? <|assistant|> SELECT "title" FROM "1996_to_1999" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "draw" real, "artist" text, "song" text, "composer" text, "lyricist" text, "place" real, "points" real ); Question: What song is it that artist morena camilleri does and has more...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "draw" real, "artist" text, "song" text, "composer" text, "lyricist" text, "place" real, "points" real ); Question: What is the total number of points for ray agius <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins" ( "season" real, "challenge" text, "class" text, "place" real, "name" text ); Question: What play did henry s. uber / betty uber (eng) finish in? <|assistant|> SELECT COUNT("place") FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members_of_the_howard_county_del" ( "district" text, "counties_represented" text, "delegate" text, "party" text, "first_elected" real, "committee" text ); Question: When Baltimore Cou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members_of_the_howard_county_del" ( "district" text, "counties_represented" text, "delegate" text, "party" text, "first_elected" real, "committee" text ); Question: What party is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1932_north_atlantic_tropical_cyclone_sta" ( "storm_name" text, "dates_active" text, "max_1_min_wind_mph_km_h" text, "min_press_mbar" text, "damage_millions_usd" text, "deaths" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "125cc_winner" text, "250cc_winner" text, "moto_gp_winner" text, "report" text ); Question: Which Date has a M...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "125cc_winner" text, "250cc_winner" text, "moto_gp_winner" text, "report" text ); Question: Which 250cc winner...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "125cc_winner" text, "250cc_winner" text, "moto_gp_winner" text, "report" text ); Question: Which Round is the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "125cc_winner" text, "250cc_winner" text, "moto_gp_winner" text, "report" text ); Question: Which MotoGP winne...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "125cc_winner" text, "250cc_winner" text, "moto_gp_winner" text, "report" text ); Question: Which 250cc winner...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "125cc_winner" text, "250cc_winner" text, "moto_gp_winner" text, "report" text ); Question: Which 250cc winner...
<|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, "venue" text, "attendance" real ); Question: Attendance of 48,510 had what highest week? <|assistant|> SELECT MAX("week")...
<|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, "venue" text, "attendance" real ); Question: Opponent of at san francisco 49ers had what lowest week? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preseason" ( "week" real, "date" text, "opponent" text, "result" text, "record" text ); Question: On what Date is the Minnesota Vikings the Opponent? <|assistant|> SELECT "date" FROM "preseason...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preseason" ( "week" real, "date" text, "opponent" text, "result" text, "record" text ); Question: What is the Date of Week 5? <|assistant|> SELECT "date" FROM "preseason" WHERE "week"=5;<|endof...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preseason" ( "week" real, "date" text, "opponent" text, "result" text, "record" text ); Question: What is the Date of Week 2? <|assistant|> SELECT "date" FROM "preseason" WHERE "week"=2;<|endof...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: What was the score when the game has a loss of Lary (10-12)? <|assistant|> SELECT "score" FROM "g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the result of the friendly match? <|assistant|> SELECT "res...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the score of the match on June 4, 2008? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_versions" ( "version" text, "length" text, "album" text, "remixed_by" text, "year" real ); Question: Which Year is the lowest one that has a Length of 3:50? <|assistant|> SELECT MIN("y...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_versions" ( "version" text, "length" text, "album" text, "remixed_by" text, "year" real ); Question: Which Length has a Year of 2000? <|assistant|> SELECT "length" FROM "official_versi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "melodifestivalen_2000" ( "draw" real, "artist" text, "song" text, "points" real, "place" text ); Question: In what place is the artist Midnight Band with a draw larger than 2 and less than 139 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_wickets_in_a_season" ( "rank" text, "s_wicket" text, "player" text, "matches" text, "season" text ); Question: what player matched up with 9 <|assistant|> SELECT "player" FROM "most_wicket...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_stage" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the 2nd leg of the Internacional Team 1? <|assistant|> SELECT "2nd_leg" FROM "first_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "davis_cup_and_federation_cup_venues" ( "rank" real, "stadium" text, "capacity" real, "city" text, "country" text ); Question: Which Rank has a Capacity smaller than 12,000, and a Country of uni...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "davis_cup_and_federation_cup_venues" ( "rank" real, "stadium" text, "capacity" real, "city" text, "country" text ); Question: Which City has a Country of spain, and a Stadium of palacio de depo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "davis_cup_and_federation_cup_venues" ( "rank" real, "stadium" text, "capacity" real, "city" text, "country" text ); Question: Which Capacity is the lowest one that has a Rank smaller than 15, a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "davis_cup_and_federation_cup_venues" ( "rank" real, "stadium" text, "capacity" real, "city" text, "country" text ); Question: Which Capacity is the lowest one that has a City of brisbane, and a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_table" ( "club" text, "total_points" text, "bonus_points" text, "match_points" text, "games" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "diff" te...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "name" text, "number" real, "from" text, "length_km" real, "length_mi" real ); Question: What's the shortest length from north klondike highway that has a length less than 326? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text ); Question: what team had a score of 2-1 <|assistant|> SELECT "opponent" FROM "game_log" WHERE "score"='2-1';<|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text ); Question: what team played on may 11 <|assistant|> SELECT "opponent" FROM "game_log" WHERE "date"='may 11';<|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "season" text, "competition" text, "round" text, "club" text, "home" text, "away" text ); Question: what place has the club of sevilla <|assistant|> SELECT "away" FROM "matches" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "num_county" text, "year_joined" real, "previous_conference" text, "year_left" real, "new_conference" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "num_county" text, "year_joined" real, "previous_conference" text, "year_left" real, "new_conference" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "num_county" text, "year_joined" real, "previous_conference" text, "year_left" real, "new_conference" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "num_county" text, "year_joined" real, "previous_conference" text, "year_left" real, "new_conference" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1968" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: What day was a friendly game held that had a score of 2:3? <|assistant|> SELECT "date" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1968" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: What type of game was held on December 22? <|assistant|> SELECT "type_of_game" FROM "1968" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: what game had a doubles round in 197...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "name" text, "date" text, "goals" real, "assists" real, "team" text, "venue" text, "opponent" text, "competition" text, "total_goals" real, "total_assists" real ); Question...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "name" text, "date" text, "goals" real, "assists" real, "team" text, "venue" text, "opponent" text, "competition" text, "total_goals" real, "total_assists" real ); Question...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "name" text, "date" text, "goals" real, "assists" real, "team" text, "venue" text, "opponent" text, "competition" text, "total_goals" real, "total_assists" real ); Question...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pairs" ( "rank" real, "name" text, "nation" text, "points" real, "places" real ); Question: What Nation Placed 122.5? <|assistant|> SELECT "nation" FROM "pairs" WHERE "places"=122.5;<|endoftext...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pairs" ( "rank" real, "name" text, "nation" text, "points" real, "places" real ); Question: What is the Places amount of the United States Ranking 8? <|assistant|> SELECT AVG("places") FROM "pa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio_series" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: What is the average episode number where jimmy mulvill...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio_series" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: What is the total number of episodes where hugh laurie...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio_series" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: What is the lowest episode number where john bird was ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio_series" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: Who was the 3rd performer when Rory Bremner was the 4t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "time_et" text, "result" text, "record" text ); Question: What time did the game featuring the Detroit Lions at Three...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_configuration" ( "rocket" text, "country" text, "type" text, "launches" real, "successes" real, "failures" real, "partial_failures" real ); Question: What is the highest number of succes...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_configuration" ( "rocket" text, "country" text, "type" text, "launches" real, "successes" real, "failures" real, "partial_failures" real ); Question: What are the fewest partial failures...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives_in_service" ( "name" text, "locomotive_type" text, "wheel_arr" text, "builder" text, "year_built" real, "whistle" text, "in_traffic" text ); Question: What kind of locomotive is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many draws were ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the smallest...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the highest ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the least am...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "available_games" ( "title" text, "publisher" text, "developer" text, "release_date" text, "esrb" text ); Question: Who does Rockstar Games use as a developer? <|assistant|> SELECT "developer" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "available_games" ( "title" text, "publisher" text, "developer" text, "release_date" text, "esrb" text ); Question: When Did Microsoft Game Studios release Amped: Freestyle Snowboarding? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saturday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text, "10_30" text ); Question: Which 10:30 has an 8:30 of la soirée du hockey? <|assistant|> SELECT "10...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saturday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text, "10_30" text ); Question: Which 7:30 has an 8:00 of movies & specials? <|assistant|> SELECT "7_30"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saturday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text, "10_30" text ); Question: Which 10:30 has an 7:30 of earth: final conflict? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saturday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text, "10_30" text ); Question: Which 8:00 has a 10:00 of movies & specials? <|assistant|> SELECT "8_00"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saturday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text, "10_30" text ); Question: Which 7:30 has a 10:30 of le grand journal? <|assistant|> SELECT "7_30" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saturday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text, "10_30" text ); Question: Which 7:00 has an 8:00 of la soirée du hockey? <|assistant|> SELECT "7_0...
<|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, "record" text ); Question: Which Score has a Home of quebec nordiques, and a Visitor of vancouver blazers on february 28? <|a...
<|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, "record" text ); Question: When has a Visitor of new england whalers, and a Record of 9–9–1? Question 2 <|assistant|> SELECT ...
<|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, "record" text ); Question: Which Home has a Visitor of quebec nordiques, and a Score of 3–4, and a Record of 8–8–1? <|assista...
<|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, "record" text ); Question: WHich Score has a Record of 31–28–3? <|assistant|> SELECT "score" FROM "game_log" WHERE "record"='...
<|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, "record" text ); Question: When has Score of 4–5, and a Record of 21–21–3? <|assistant|> SELECT "date" FROM "game_log" WHERE ...
<|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, "record" text ); Question: What is the Score of a Record 24–23–3? <|assistant|> SELECT "score" FROM "game_log" WHERE "record"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: During which games did Tunisia win gold in the men's 5000 m? <|assistant|> SELECT "games" FROM "med...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: What medal was won in the men's light welterweight event at the 1996 Atlanta games? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: At which games did Tunisia win a bronze in the men's 1500 m freestyle? <|assistant|> SELECT "games"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: What medal was won in the men's 5000 m event? <|assistant|> SELECT "medal" FROM "medalists" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); Question: What is on the at 8:00 on the same channel that has Costel...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); Question: What is on at 7:30 on the same channel as Wheel of Fortune...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); Question: What is on at 8:00 on the same change as W-Five at 10:00? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); Question: What is on at 9:30 on the same channel as Fin du Monde at ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); Question: What is on at 8:30 on the same channel as Les Machos at 9:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "melodifestivalen_2001" ( "draw" real, "artist" text, "song" text, "points" real, "place" text ); Question: What is the draw with less than 107 points by the artist Jan Johansen? <|assistant|> S...
<|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, "wins" real ); Question: In what Year did the Norton Team have 0 Points and 350cc Class? <|assistant|> SE...
<|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, "wins" real ); Question: What is the Wins before 1960 with less than 2 Points? <|assistant|> SELECT SUM("...
<|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, "wins" real ); Question: What was the earliest Year the Linto Team had less than 15 Points with more than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text ); Question: Which District has a 2008 Status of re-election, and a Democratic david price...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text ); Question: Which District has a Republican of dan mansell? <|assistant|> SELECT AVG("dis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text ); Question: Which Republican has a District of 10? <|assistant|> SELECT "republican" FROM...