text
stringlengths
310
1.28k
<|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: Na...
<|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: Na...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "episode" text, "air_date" text, "timeslot" text, "rating" real, "share" real, "18_49_rating_share" text, "viewers_m" real, "rank_timeslot" real, "rank_night" real, "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "conference" text, "division" text, "appearances" real, "wins" real, "losses" real ); Question: Which division in the AFC Conference had a total of 10 wins and appeared more than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "conference" text, "division" text, "appearances" real, "wins" real, "losses" real ); Question: How many losses did the East Division have who appeared 18 times and lost 8? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "conference" text, "division" text, "appearances" real, "wins" real, "losses" real ); Question: How many losses did the division who appeared less than 16 times have? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "nation" text, "gold" text, "silver" text, "bronze" text, "total" real ); Question: How many medals for spain with 1 silver? <|assistant|> SELECT SUM("total") FROM "medal_count" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "nation" text, "gold" text, "silver" text, "bronze" text, "total" real ); Question: How many silvers for finland? <|assistant|> SELECT "silver" FROM "medal_count" WHERE "nation"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "nation" text, "gold" text, "silver" text, "bronze" text, "total" real ); Question: How many medals for spain that has 1 silver and 1 bronze? <|assistant|> SELECT COUNT("total") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real ); Question: What is the record when they play the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real ); Question: How many attended the game against th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "track" real, "title" text, "translation" text, "composer" text, "recorded" text ); Question: Name the song that has a track larger than 7 and means death. <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "track" real, "title" text, "translation" text, "composer" text, "recorded" text ); Question: Which track 7 title was recorded in 1959-09-15? <|assistant|> SELECT "title" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "track" real, "title" text, "translation" text, "composer" text, "recorded" text ); Question: Which track translates to Flemish Women? <|assistant|> SELECT "track" FROM "track_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: What is the high capacity that has an average under 489 and a highest o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "music_videos" ( "title" text, "other_performer_s" text, "director_s" text, "album" text, "year" real ); Question: On the album titled “Loud” who was the other performer on the song directed by ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "october" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What is the decision when vancouver is at home and winnipeg...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "october" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What is the record of the team from chicago? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where was the away team st kilda? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text ); Question: Which club has 1 cap? <|assistant|> SELECT "club_province...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text ); Question: Which position has a club of Meralomas and a player named...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text ); Question: What is the average number of caps for Meralomas with pos...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "games_for_zrinjski_in_european_competiti" ( "date" text, "venue" text, "opponent" text, "score" text, "scorers" text, "competition" text ); Question: Who are the scorers when the score is 9-2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_municipalities_in_quebec" ( "code" real, "type" text, "name" text, "area_km_2" real, "population" real, "regional_county_municipality" text, "region" real ); Question: What is the s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_municipalities_in_quebec" ( "code" real, "type" text, "name" text, "area_km_2" real, "population" real, "regional_county_municipality" text, "region" real ); Question: What is the a...
<|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, "attendance" real, "record" text ); Question: What is the attendance on may 28? <|assistant|> SELECT "attendance" FROM "ga...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "japan_golf_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: On the Date of 4 Oct 2009, who was the Runner(s)-up? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "japan_golf_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: On the Date of 2 Aug 2009, who was the Runner(s)-up? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "japan_golf_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Which Tournament was on the Date 6 Sep 2009? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "japan_golf_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the Winning score for the Mynavi ABC Champion...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "japan_golf_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the Winning score when the Margin of victory ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "japan_golf_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Who was the Runner(s)-up on the Date 4 Oct 2009? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); Question: What is the score with third place of stefan edberg? <|assistant|> SELECT "score" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); Question: Name the runner-up for algarve tournament <|assistant|> SELECT "runner_up" FROM "2009" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); Question: I want to know the tournament that has a third place of magnus gustafsson <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); Question: Who was the winner when the third place was fernando meligeni? <|assistant|> SELECT "wi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); Question: Name the tournament for patrick rafter winning <|assistant|> SELECT "tournament" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_barbaro_stakes_since_1993" ( "year" text, "winner" text, "jockey" text, "trainer" text, "owner" text, "distance" text, "time" text, "purse" text ); Question: Who was the ow...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_barbaro_stakes_since_1993" ( "year" text, "winner" text, "jockey" text, "trainer" text, "owner" text, "distance" text, "time" text, "purse" text ); Question: What year did ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_barbaro_stakes_since_1993" ( "year" text, "winner" text, "jockey" text, "trainer" text, "owner" text, "distance" text, "time" text, "purse" text ); Question: Who was the ow...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_barbaro_stakes_since_1993" ( "year" text, "winner" text, "jockey" text, "trainer" text, "owner" text, "distance" text, "time" text, "purse" text ); Question: Who is the own...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_barbaro_stakes_since_1993" ( "year" text, "winner" text, "jockey" text, "trainer" text, "owner" text, "distance" text, "time" text, "purse" text ); Question: What year was ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "honour_board" ( "season" real, "position" real, "win_loss" text, "coach" text, "captain" text, "dudley_tuckey_medal" text, "leading_goalkicker" text ); Question: What is the win/loss of coa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Name the home team scored 9.8 (62) <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_24_hours_of_le_mans_results" ( "year" real, "class" text, "tyres" text, "team" text, "co_drivers" text, "laps" real, "pos" text, "class_pos" text ); Question: Which tyre was befo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_24_hours_of_le_mans_results" ( "year" real, "class" text, "tyres" text, "team" text, "co_drivers" text, "laps" real, "pos" text, "class_pos" text ); Question: Which tyres has mor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_24_hours_of_le_mans_results" ( "year" real, "class" text, "tyres" text, "team" text, "co_drivers" text, "laps" real, "pos" text, "class_pos" text ); Question: What position that ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_playoffs" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: who is the team 2 when the 1st leg is 2-2? <|assistant|> SELECT "team_2" FROM "releg...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_playoffs" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: who is the team 2 when the team 1 is sestese(e16)? <|assistant|> SELECT "team_2" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_playoffs" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: who is the team 2 when the 2nd leg is 3-4? <|assistant|> SELECT "team_2" FROM "releg...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_playoffs" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: who is the team 2 when the 1st leg is 1-1 and the team 1 is verucchio(f15)? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_sequenced_bacterial_genomes" ( "species" text, "strain" text, "type" text, "base_pairs" real, "genes" real ); Question: What is the largest base pair with a Strain of unspecified? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_sequenced_bacterial_genomes" ( "species" text, "strain" text, "type" text, "base_pairs" real, "genes" real ); Question: What is the lowst base pair with a Species of borrelia garinii, a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_sequenced_bacterial_genomes" ( "species" text, "strain" text, "type" text, "base_pairs" real, "genes" real ); Question: What type has an unspecified species and less than 367 genes? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_sequenced_bacterial_genomes" ( "species" text, "strain" text, "type" text, "base_pairs" real, "genes" real ); Question: What base pair has 832 genes? <|assistant|> SELECT "base_pairs" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_sequenced_bacterial_genomes" ( "species" text, "strain" text, "type" text, "base_pairs" real, "genes" real ); Question: How many genes have a Species of leptospira interrogans, and a Ba...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scotland_national_team" ( "rank" real, "date" text, "stadium" text, "opponent" text, "competition" text, "score_scotland_s_score_is_shown_first" text ); Question: Which competition was ranked...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scotland_national_team" ( "rank" real, "date" text, "stadium" text, "opponent" text, "competition" text, "score_scotland_s_score_is_shown_first" text ); Question: What was Scotland's score at...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_table" ( "rank" real, "club_1" text, "seasons" real, "spells" real, "played_2" real, "drawn" real, "lost" real, "goals" text, "points_3" text ); Question: What is the sum of dr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_table" ( "rank" real, "club_1" text, "seasons" real, "spells" real, "played_2" real, "drawn" real, "lost" real, "goals" text, "points_3" text ); Question: What is the lowest pl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_table" ( "rank" real, "club_1" text, "seasons" real, "spells" real, "played_2" real, "drawn" real, "lost" real, "goals" text, "points_3" text ); Question: What is the rank numb...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_table" ( "rank" real, "club_1" text, "seasons" real, "spells" real, "played_2" real, "drawn" real, "lost" real, "goals" text, "points_3" text ); Question: How many seasons have...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_table" ( "rank" real, "club_1" text, "seasons" real, "spells" real, "played_2" real, "drawn" real, "lost" real, "goals" text, "points_3" text ); Question: What is the highest s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What was the results of the game at Doha? <|assistant|> SELECT "result" FROM "inte...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What was the score during the competition of 1998 fifa world cup qualification? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the competition that took place on October 1, 1994? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the competition that had a 2-2 result? <|assistant|> SELECT "competition" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: Where did the competition take place that had a 4-2 result? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: Where was the competition that took place that had a 5-1 result? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1996_squad_statistics" ( "player" text, "position" text, "tries" real, "goals" real, "points" real ); Question: Tell me the highest goals with tries less than 1 and fullback position <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1996_squad_statistics" ( "player" text, "position" text, "tries" real, "goals" real, "points" real ); Question: Tell me the lowest tries for goals more than 0 with centre position and points le...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1996_squad_statistics" ( "player" text, "position" text, "tries" real, "goals" real, "points" real ); Question: I want to know the player with tries more than 1 and position of hooker with poin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1996_squad_statistics" ( "player" text, "position" text, "tries" real, "goals" real, "points" real ); Question: Tell me the player with points larger than 36 and goals more than 0 with tries of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_fleet" ( "ship" text, "built" real, "entered_service" real, "route" text, "gross_tonnage" text, "length" text, "width" text, "passengers" real, "vessels" real, "knots" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_fleet" ( "ship" text, "built" real, "entered_service" real, "route" text, "gross_tonnage" text, "length" text, "width" text, "passengers" real, "vessels" real, "knots" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_fleet" ( "ship" text, "built" real, "entered_service" real, "route" text, "gross_tonnage" text, "length" text, "width" text, "passengers" real, "vessels" real, "knots" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where did Richmond play as the away team...
<|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, "attendance" real, "record" text ); Question: When the phillies 1:15 pm played on April 9, what was the attendance? <|assi...
<|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, "attendance" real, "record" text ); Question: When was there a score of 5-1? <|assistant|> SELECT "date" FROM "game_log" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average number of silvers for nations with over 1 bronze medal? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_imperial_vicars_1437_1792" ( "interregnum_began" text, "interregnum_ended" text, "duration" text, "count_palatine_of_saxony" text, "count_palatine_of_the_rhine" text ); Question: What i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_imperial_vicars_1437_1792" ( "interregnum_began" text, "interregnum_ended" text, "duration" text, "count_palatine_of_saxony" text, "count_palatine_of_the_rhine" text ); Question: What i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_imperial_vicars_1437_1792" ( "interregnum_began" text, "interregnum_ended" text, "duration" text, "count_palatine_of_saxony" text, "count_palatine_of_the_rhine" text ); Question: What i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_imperial_vicars_1437_1792" ( "interregnum_began" text, "interregnum_ended" text, "duration" text, "count_palatine_of_saxony" text, "count_palatine_of_the_rhine" text ); Question: What i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_imperial_vicars_1437_1792" ( "interregnum_began" text, "interregnum_ended" text, "duration" text, "count_palatine_of_saxony" text, "count_palatine_of_the_rhine" text ); Question: What i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the crowd size when the home tea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "episode" text, "air_date" text, "timeslot" text, "rating" real, "share" real, "18_49_rating_share" text, "viewers_m" real, "rank_timeslot" real, "rank_night" text, "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "episode" text, "air_date" text, "timeslot" text, "rating" real, "share" real, "18_49_rating_share" text, "viewers_m" real, "rank_timeslot" real, "rank_night" text, "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "episode" text, "air_date" text, "timeslot" text, "rating" real, "share" real, "18_49_rating_share" text, "viewers_m" real, "rank_timeslot" real, "rank_night" text, "...
<|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, "decision" text, "attendance" real, "record" text ); Question: How many people attended the game when Calgary was the home t...
<|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, "decision" text, "attendance" real, "record" text ); Question: What is the record of the game when Los Angeles was the home ...
<|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, "decision" text, "attendance" real, "record" text ); Question: What is the record of the game with a score of 1 – 5? <|assis...
<|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, "decision" text, "attendance" real, "record" text ); Question: What is the least number of people to attend a game when Los ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); Question: who is the runner- up when the tournament is santiago? <|assistant|> SELECT "runner_up"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); Question: what is the score when the runner-up is richard krajicek? <|assistant|> SELECT "score" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); Question: what is the tournament when the score is 7-6(0), 6-3? <|assistant|> SELECT "tournament"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); Question: who is third place when the tournament is delray beach? <|assistant|> SELECT "third_pla...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What was the score in the Continental Qualifier on February 23, 2003? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What was the score for the World Cup Qualifier? <|assistant|> SELECT "score" FROM ...