text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What is the Week number with a result of l 31–28? <|assistant|> SELECT COUNT("week") FROM "schedule" WHERE "result"='l 31–28';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real ); Question: What was the score at the Tie no. 1 game? <|assistant|> SELECT "score" FROM "fifth_round_proper" WHERE "tie_no"='1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real ); Question: What was the attendance at the West Ham United home game? <|assistant|> SELECT "attendance" FROM "fifth_round_proper" WHERE "home_team"='west ham united';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medalists" ( "medal" text, "name" text, "sport" text, "event" text, "date" text ); Question: What is the Sport with a Name that is gustav larsson? <|assistant|> SELECT "sport" FROM "medalists" WHERE "name"='gustav larsson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medalists" ( "medal" text, "name" text, "sport" text, "event" text, "date" text ); Question: What is the Name with an Event that is men's time trial? <|assistant|> SELECT "name" FROM "medalists" WHERE "event"='men''s time trial';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "under_23_international_career" ( "date" text, "venue" text, "result" text, "goals" real, "competition" text ); Question: At which venue did the event held on 15 November 2010 occur? <|assistant|> SELECT "venue" FROM "under_23_international_career" WHERE "date"='15 november 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "draw" real, "song" text, "performer" text, "points" real, "rank" text ); Question: Which Points has a Performer of rob burke band and a Draw larger than 1? <|assistant|> SELECT AVG("points") FROM "references" WHERE "performer"='rob burke band' AND "draw">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "draw" real, "song" text, "performer" text, "points" real, "rank" text ); Question: What Points have a Song of "this time" and a Draw smaller than 5? <|assistant|> SELECT COUNT("points") FROM "references" WHERE "song"='\"this time\"' AND "draw"<5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "draw" real, "song" text, "performer" text, "points" real, "rank" text ); Question: Which Points have a Performer of seán monaghan and a Draw smaller than 7? <|assistant|> SELECT MIN("points") FROM "references" WHERE "performer"='seán monaghan' AND "draw"<7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "draw" real, "song" text, "performer" text, "points" real, "rank" text ); Question: Which Points has a Performer of rob burke band? <|assistant|> SELECT COUNT("points") FROM "references" WHERE "performer"='rob burke band';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season" ( "season" text, "division" text, "finish" text, "wins" text, "losses" text, "pct" text ); Question: What is the Finish of 28 Wins? <|assistant|> SELECT "finish" FROM "season_by_season" WHERE "wins"='28';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season" ( "season" text, "division" text, "finish" text, "wins" text, "losses" text, "pct" text ); Question: What is the Finish of the Reno Bighorns Wins? <|assistant|> SELECT "finish" FROM "season_by_season" WHERE "wins"='reno bighorns';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season" ( "season" text, "division" text, "finish" text, "wins" text, "losses" text, "pct" text ); Question: What is the Finish of 28 Wins? <|assistant|> SELECT "finish" FROM "season_by_season" WHERE "wins"='28';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season" ( "season" text, "division" text, "finish" text, "wins" text, "losses" text, "pct" text ); Question: What is the Western Division of Wins with a 4th Finish? <|assistant|> SELECT "wins" FROM "season_by_season" WHERE "division"='western' AND "finish"='4th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season" ( "season" text, "division" text, "finish" text, "wins" text, "losses" text, "pct" text ); Question: What are the losses of the playoffs season? <|assistant|> SELECT "losses" FROM "season_by_season" WHERE "season"='playoffs';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is Team 1, when Team 2 is Saint Louis? <|assistant|> SELECT "team_1" FROM "preliminary_round" WHERE "team_2"='saint louis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is Agg., when Team 2 is Mukungwa? <|assistant|> SELECT "agg" FROM "preliminary_round" WHERE "team_2"='mukungwa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1980s_hat_tricks" ( "season" text, "competition" text, "round" text, "opponent" text, "home" text, "away" text, "series" text ); Question: What is the Round with an Opponent that is torpedo moscow? <|assistant|> SELECT "round" FROM "1980s_hat_tricks" WHERE "opponent"='torpedo moscow';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real ); Question: Can you tell me the sum of Matches that has the Goals of 103, and the Rank larger than 9? <|assistant|> SELECT SUM("matches") FROM "list_of_top_association_football_goal_sc" WHERE "goals"=103 AND "rank">9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real ); Question: Can you tell me the Name that has the Goals larger than 98, and the Rank of 7? <|assistant|> SELECT "name" FROM "list_of_top_association_football_goal_sc" WHERE "goals">98 AND "rank"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: How many laps had a time stat of accident for the rider carmelo morales when the grid was more than 25? <|assistant|> SELECT SUM("laps") FROM "superbike_race_1_classification" WHERE "time"='accident' AND "rider"='carmelo morales' AND "grid">25;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: How many laps had a time of +2.987? <|assistant|> SELECT COUNT("laps") FROM "superbike_race_1_classification" WHERE "time"='+2.987';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: Which bike had fewer than 23 laps and a grid number of 4? <|assistant|> SELECT "bike" FROM "superbike_race_1_classification" WHERE "laps"<23 AND "grid"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "time" text, "opponent" text, "result" text, "game_site" text, "nfl_recap" text, "record" text ); Question: What is the Record for week 14? <|assistant|> SELECT "record" FROM "regular_season" WHERE "week"=14;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "time" text, "opponent" text, "result" text, "game_site" text, "nfl_recap" text, "record" text ); Question: What is the Result with an NFL Recap, played at bank of america stadium? <|assistant|> SELECT "result" FROM "regular_season" WHERE "nfl_recap"='recap' AND "game_site"='bank of america stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "time" text, "opponent" text, "result" text, "game_site" text, "nfl_recap" text, "record" text ); Question: What is the Record for week 12? <|assistant|> SELECT "record" FROM "regular_season" WHERE "week"=12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "time" text, "opponent" text, "result" text, "game_site" text, "nfl_recap" text, "record" text ); Question: What is the Opponent with a time of 2:05 p.m., and the results were w 26–20? <|assistant|> SELECT "opponent" FROM "regular_season" WHERE "time"='2:05 p.m.' AND "result"='w 26–20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "time" text, "opponent" text, "result" text, "game_site" text, "nfl_recap" text, "record" text ); Question: What is the highest Week for october 12, 2008? <|assistant|> SELECT MAX("week") FROM "regular_season" WHERE "date"='october 12, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which team has 1 as the drawn, with 2 as the lost? <|assistant|> SELECT "team" FROM "campeonato_paulista" WHERE "drawn"=1 AND "lost"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many drawns have 7 for the lost? <|assistant|> SELECT SUM("drawn") FROM "campeonato_paulista" WHERE "lost"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the average played that has a drawn greater than 1, with an against greater than 16? <|assistant|> SELECT AVG("played") FROM "campeonato_paulista" WHERE "drawn">1 AND "against">16;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_class_bowling_statistics" ( "player" text, "matches" real, "overs" real, "maidens" real, "runs" real, "wickets" real, "average" text, "economy" real, "best_bowling" text ); Question: What is the sum of Maidens with a number of Matches that is 2? <|assistant|> SELECT SUM("maidens") FROM "first_class_bowling_statistics" WHERE "matches"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "rank" real, "name" text, "team" text, "country" text, "points" real ); Question: Ranking higher than 2, what Team has Player Paolo Maldini? <|assistant|> SELECT "team" FROM "men" WHERE "rank">2 AND "name"='paolo maldini';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "rank" real, "name" text, "team" text, "country" text, "points" real ); Question: What Country is in Rank 2? <|assistant|> SELECT "country" FROM "men" WHERE "rank"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text ); Question: What date was Leo Mainoldi (24) the leading scorer? <|assistant|> SELECT "date" FROM "march" WHERE "leading_scorer"='leo mainoldi (24)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text ); Question: Who is the visitor with the 14-10 record? <|assistant|> SELECT "visitor" FROM "march" WHERE "record"='14-10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text ); Question: What is the record of the 73-82 score? <|assistant|> SELECT "record" FROM "march" WHERE "score"='73-82';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text ); Question: Who is the leading scorer of the Villa De Los Barrios visitor? <|assistant|> SELECT "leading_scorer" FROM "march" WHERE "visitor"='villa de los barrios';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text ); Question: Who is the visitor with a 14-10 record? <|assistant|> SELECT "visitor" FROM "march" WHERE "record"='14-10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text ); Question: What is the score of the team with the 14-9 record? <|assistant|> SELECT "score" FROM "march" WHERE "record"='14-9';<|endoftext|>
<|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, "result" text, "competition" text ); Question: What was the date of the game with 6 goals? <|assistant|> SELECT "date" FROM "international_goals" WHERE "goal"=6;<|endoftext|>
<|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, "result" text, "competition" text ); Question: What was the highest number of goals for a game held at Hannover? <|assistant|> SELECT MAX("goal") FROM "international_goals" WHERE "venue"='hannover';<|endoftext|>
<|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, "result" text, "competition" text ); Question: What was the result of the game with more than 12 goals at Pasadena? <|assistant|> SELECT "result" FROM "international_goals" WHERE "goal">12 AND "venue"='pasadena';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_draft" ( "round" real, "pick" text, "player" text, "position" text, "team" text ); Question: What round was Andre Fluellen drafted as a Defensive Tackle? <|assistant|> SELECT COUNT("round") FROM "2008_draft" WHERE "position"='defensive tackle' AND "player"='andre fluellen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_draft" ( "round" real, "pick" text, "player" text, "position" text, "team" text ); Question: After Round 5, which player was drafted for Defensive Tackle? <|assistant|> SELECT "player" FROM "2008_draft" WHERE "round">5 AND "position"='defensive tackle';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_draft" ( "round" real, "pick" text, "player" text, "position" text, "team" text ); Question: What was the earliest Round for Central Florida? <|assistant|> SELECT MIN("round") FROM "2008_draft" WHERE "team"='central florida';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What is the date of the label Dos or Die Recordings? <|assistant|> SELECT "date" FROM "release_history" WHERE "label"='dos or die recordings';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What is the label for 2002, in Germany, Catalog Dos 195? <|assistant|> SELECT "label" FROM "release_history" WHERE "date"='2002' AND "region"='germany' AND "catalog"='dos 195';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What region has a 2002 date, and a Catalog dos 195? <|assistant|> SELECT "region" FROM "release_history" WHERE "date"='2002' AND "catalog"='dos 195';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "year" real, "venue" text, "location" text, "winners" text, "runners_up" text ); Question: What is the Winners when the United States is the runner-up at st. germain golf club? <|assistant|> SELECT "winners" FROM "results" WHERE "runners_up"='united states' AND "venue"='st. germain golf club';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "year" real, "venue" text, "location" text, "winners" text, "runners_up" text ); Question: What is the average Year when Australia was the runner-up at victoria golf club? <|assistant|> SELECT AVG("year") FROM "results" WHERE "runners_up"='australia' AND "venue"='victoria golf club';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "year" real, "venue" text, "location" text, "winners" text, "runners_up" text ); Question: What is the Location when France was the runner-up at club de campo? <|assistant|> SELECT "location" FROM "results" WHERE "runners_up"='france' AND "venue"='club de campo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "year" real, "venue" text, "location" text, "winners" text, "runners_up" text ); Question: What is the Location when Canada was the runner-up and Australia was the winner? <|assistant|> SELECT "location" FROM "results" WHERE "runners_up"='canada' AND "winners"='australia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "visible" ( "name" text, "space_agency" text, "launch_date" text, "terminated" text, "location" text ); Question: What is the Name of the Space Telescope Terminated on March 1993? <|assistant|> SELECT "name" FROM "visible" WHERE "terminated"='march 1993';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_poll_summary" ( "party" text, "marplan" text, "gallup" text, "national_opinion_polls_nop" text, "opinion_research_centre_opc" text, "harris" text ); Question: What is Party, when Opinion Research Centre (OPC) is 1.5%? <|assistant|> SELECT "party" FROM "opinion_poll_summary" WHERE "opinion_research_centre_opc"='1.5%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_poll_summary" ( "party" text, "marplan" text, "gallup" text, "national_opinion_polls_nop" text, "opinion_research_centre_opc" text, "harris" text ); Question: What is Marplan, when Gallup is 1.5% <|assistant|> SELECT "marplan" FROM "opinion_poll_summary" WHERE "gallup"='1.5%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_poll_summary" ( "party" text, "marplan" text, "gallup" text, "national_opinion_polls_nop" text, "opinion_research_centre_opc" text, "harris" text ); Question: What is Opinion Research Centre (OPC), when Party is Conservative? <|assistant|> SELECT "opinion_research_centre_opc" FROM "opinion_poll_summary" WHERE "party"='conservative';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_poll_summary" ( "party" text, "marplan" text, "gallup" text, "national_opinion_polls_nop" text, "opinion_research_centre_opc" text, "harris" text ); Question: What is Harris, when Marplan is 1.3% <|assistant|> SELECT "harris" FROM "opinion_poll_summary" WHERE "marplan"='1.3%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972_isle_of_man_sidecar_500cc_tt_final_" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: What are the fewest points that Roger Dutton/Tony Wright have received? <|assistant|> SELECT MIN("points") FROM "1972_isle_of_man_sidecar_500cc_tt_final_" WHERE "rider"='roger dutton/tony wright';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972_isle_of_man_sidecar_500cc_tt_final_" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: How fast does the BMW with 6 points go? <|assistant|> SELECT "speed" FROM "1972_isle_of_man_sidecar_500cc_tt_final_" WHERE "machine"='bmw' AND "points"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_wildcards" ( "draw" real, "artist" text, "song" text, "televote" text, "place" real ); Question: What is the average draw for Desi Dobreva, was it less than 6? <|assistant|> SELECT AVG("draw") FROM "final_wildcards" WHERE "artist"='desi dobreva' AND "place"<6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the first leg score for the match that had AS Police as team 2? <|assistant|> SELECT "1st_leg" FROM "second_round" WHERE "team_2"='as police';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: Who were the team 2 when team 1 was Iwuanyanwu Nationale and the 1st leg score was 2-0? <|assistant|> SELECT "team_2" FROM "second_round" WHERE "1st_leg"='2-0' AND "team_1"='iwuanyanwu nationale';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the 2nd leg score for the tie that had a 5-0 first leg score? <|assistant|> SELECT "2nd_leg" FROM "second_round" WHERE "1st_leg"='5-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the team 1 for the tie that had a first leg score of 2-3? <|assistant|> SELECT "team_1" FROM "second_round" WHERE "1st_leg"='2-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: Who was the team 1 in the match that had a 1st leg score of 3-0 and a 2nd leg of 1-2? <|assistant|> SELECT "team_1" FROM "second_round" WHERE "2nd_leg"='1-2' AND "1st_leg"='3-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the first leg score for the match that had a 0-2 2nd leg score? <|assistant|> SELECT "1st_leg" FROM "second_round" WHERE "2nd_leg"='0-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_broadway_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); Question: What was the result for the Outstanding director of a musical category? <|assistant|> SELECT "result" FROM "2000_broadway_revival" WHERE "category"='outstanding director of a musical';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_broadway_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); Question: What was the result of the Award of Drama desk award nominee Tom Hewitt. <|assistant|> SELECT "result" FROM "2000_broadway_revival" WHERE "award"='drama desk award' AND "nominee"='tom hewitt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_broadway_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); Question: What year was best costume design the award category? <|assistant|> SELECT "year" FROM "2000_broadway_revival" WHERE "category"='best costume design';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "accolades" ( "publication" text, "country" text, "accolade" text, "year" real, "rank" text ); Question: Which accolade has USA as the country, with a year less than 2009? <|assistant|> SELECT "accolade" FROM "accolades" WHERE "country"='usa' AND "year"<2009;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "accolades" ( "publication" text, "country" text, "accolade" text, "year" real, "rank" text ); Question: How many years have an accolade of 50 best albums of the year, with #3 as the rank? <|assistant|> SELECT SUM("year") FROM "accolades" WHERE "accolade"='50 best albums of the year' AND "rank"='#3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "accolades" ( "publication" text, "country" text, "accolade" text, "year" real, "rank" text ); Question: Which rank has canada as the country? <|assistant|> SELECT "rank" FROM "accolades" WHERE "country"='canada';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_7" ( "episode_number" real, "air_date" text, "guest_host" text, "musical_guest_song_performed" text, "coat_of_cash_wearing_celebrity" text ); Question: What is the name of the Guest Host for Episode Number of 5? <|assistant|> SELECT "guest_host" FROM "series_7" WHERE "episode_number"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_7" ( "episode_number" real, "air_date" text, "guest_host" text, "musical_guest_song_performed" text, "coat_of_cash_wearing_celebrity" text ); Question: What is the Guest Host for the episode on 8 june 2008? <|assistant|> SELECT "guest_host" FROM "series_7" WHERE "air_date"='8 june 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_7" ( "episode_number" real, "air_date" text, "guest_host" text, "musical_guest_song_performed" text, "coat_of_cash_wearing_celebrity" text ); Question: What is the Musical Guest (Song performed) for the episode aired on 13 july 2008? <|assistant|> SELECT "musical_guest_song_performed" FROM "series_7" WHERE "air_date"='13 july 2008';<|endoftext|>
<|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 2014 FIFA World Cup Qualification (UEFA)? <|assistant|> SELECT "score" FROM "international_goals" WHERE "competition"='2014 fifa world cup qualification (uefa)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "kickoff_time" text, "attendance" text ); Question: What was the kickoff time for week 11's game? <|assistant|> SELECT "kickoff_time" FROM "schedule" WHERE "week"=11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_major_winners" ( "year" real, "senior_pga_championship" text, "the_tradition" text, "senior_players_championship" text, "u_s_senior_open" text, "senior_british_open" text ); Question: When Mark O'meara was the senior player champion in a year greater than 1998, who was the tradition? <|assistant|> SELECT "the_tradition" FROM "senior_major_winners" WHERE "year">1998 AND "senior_players_championship"='mark o''meara';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_major_winners" ( "year" real, "senior_pga_championship" text, "the_tradition" text, "senior_players_championship" text, "u_s_senior_open" text, "senior_british_open" text ); Question: Who was the tradition when Roberto Devicenzo won the U.S. Senior Open and the Senior British Open was founded in 1987? <|assistant|> SELECT "the_tradition" FROM "senior_major_winners" WHERE "senior_british_open"='founded in 1987' AND "u_s_senior_open"='roberto devicenzo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_major_winners" ( "year" real, "senior_pga_championship" text, "the_tradition" text, "senior_players_championship" text, "u_s_senior_open" text, "senior_british_open" text ); Question: Who won the Senior British Open when Hale Irwin (3/7) won the Senior PGA Championship? <|assistant|> SELECT "senior_british_open" FROM "senior_major_winners" WHERE "senior_pga_championship"='hale irwin (3/7)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_major_winners" ( "year" real, "senior_pga_championship" text, "the_tradition" text, "senior_players_championship" text, "u_s_senior_open" text, "senior_british_open" text ); Question: When Tom Watson (5/6) won the Senior British Open who won the Senior PGA Championship? <|assistant|> SELECT "senior_pga_championship" FROM "senior_major_winners" WHERE "senior_british_open"='tom watson (5/6)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "result" text, "record" text, "opponent" text, "points_for" real, "points_against" real, "first_downs" real, "attendance" real ); Question: Which Week has Points For larger than 19, and an Opponent of philadelphia eagles, and Points Against larger than 7? <|assistant|> SELECT MAX("week") FROM "schedule" WHERE "points_for">19 AND "opponent"='philadelphia eagles' AND "points_against">7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "result" text, "record" text, "opponent" text, "points_for" real, "points_against" real, "first_downs" real, "attendance" real ); Question: Which Attendance has a First Downs smaller than 26, an Opponent of los angeles rams, and Points For larger than 28? <|assistant|> SELECT SUM("attendance") FROM "schedule" WHERE "first_downs"<26 AND "opponent"='los angeles rams' AND "points_for">28;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers_in_order_of_league_goals" ( "player" text, "club" text, "league" real, "fa_cup" real, "fa_trophy" real, "league_cup" real, "total" real ); Question: Which League Cup has a FA Cup of 5, and a Club of boston united, and a League smaller than 16? <|assistant|> SELECT MAX("league_cup") FROM "top_scorers_in_order_of_league_goals" WHERE "fa_cup"=5 AND "club"='boston united' AND "league"<16;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers_in_order_of_league_goals" ( "player" text, "club" text, "league" real, "fa_cup" real, "fa_trophy" real, "league_cup" real, "total" real ); Question: How many Total that has a FA Trophy of 0 and a Player of charlie butler? <|assistant|> SELECT COUNT("total") FROM "top_scorers_in_order_of_league_goals" WHERE "fa_trophy"=0 AND "player"='charlie butler';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers_in_order_of_league_goals" ( "player" text, "club" text, "league" real, "fa_cup" real, "fa_trophy" real, "league_cup" real, "total" real ); Question: How many FA Trophy has a Player of mario walsh and a League larger than 17? <|assistant|> SELECT AVG("fa_trophy") FROM "top_scorers_in_order_of_league_goals" WHERE "player"='mario walsh' AND "league">17;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_12" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the score of the winning match on Oct 28, 1962? <|assistant|> SELECT "winning_score" FROM "pga_tour_wins_12" WHERE "date"='oct 28, 1962';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_12" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: By how many strokes did Lema beat Jack Nicklaus? <|assistant|> SELECT "margin_of_victory" FROM "pga_tour_wins_12" WHERE "runner_s_up"='jack nicklaus';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_12" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Who was the runner-up on Jan 19, 1964? <|assistant|> SELECT "runner_s_up" FROM "pga_tour_wins_12" WHERE "date"='jan 19, 1964';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); Question: How many Rebounds did Maccabi Tel Aviv Team get after Game 6? <|assistant|> SELECT COUNT("rebounds") FROM "rebounds" WHERE "team"='maccabi tel aviv' AND "games">6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); Question: How many Games for the player with Rebounds from Efes Pilsen? <|assistant|> SELECT "games" FROM "rebounds" WHERE "team"='efes pilsen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); Question: How many Games for the Player from Lietuvos Rytas Vilnius with less the 43 Rebounds? <|assistant|> SELECT SUM("games") FROM "rebounds" WHERE "team"='lietuvos rytas vilnius' AND "rebounds"<43;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newly_named_birds" ( "name" text, "status" text, "authors" text, "location" text, "notes" text ); Question: Who is The Author of zhou clarke zhang? <|assistant|> SELECT "name" FROM "newly_named_birds" WHERE "authors"='zhou clarke zhang';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newly_named_birds" ( "name" text, "status" text, "authors" text, "location" text, "notes" text ); Question: What is the Status of primitive confuciusornithid .? <|assistant|> SELECT "status" FROM "newly_named_birds" WHERE "notes"='primitive confuciusornithid .';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newly_named_birds" ( "name" text, "status" text, "authors" text, "location" text, "notes" text ); Question: What is the name of gao chiappe meng o'connor wang cheng liu? <|assistant|> SELECT "name" FROM "newly_named_birds" WHERE "authors"='gao chiappe meng o''connor wang cheng liu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newly_named_birds" ( "name" text, "status" text, "authors" text, "location" text, "notes" text ); Question: Where has a Name of zhongornis? <|assistant|> SELECT "location" FROM "newly_named_birds" WHERE "name"='zhongornis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newly_named_birds" ( "name" text, "status" text, "authors" text, "location" text, "notes" text ); Question: Which Notes has Authors of zhou clarke zhang? <|assistant|> SELECT "notes" FROM "newly_named_birds" WHERE "authors"='zhou clarke zhang';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_clubs_2014_season" ( "club" text, "position_in_2013" text, "first_season" real, "first_season_of_current_spell" real, "number_of_seasons_in_superettan" real, "number_of_seasons_in_second_tier" real ); Question: Which First season of current spell is the lowest one that has a First season larger than 2005, and a Number of seasons in Superettan smaller than 8, and a Club of syrianska fc? <|assistant|> SELECT MIN("first_season_of_current_spell") FROM "current_clubs_2014_season" WHERE "first_season">2005 AND "number_of_seasons_in_superettan"<8 AND "club"='syrianska fc';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_clubs_2014_season" ( "club" text, "position_in_2013" text, "first_season" real, "first_season_of_current_spell" real, "number_of_seasons_in_superettan" real, "number_of_seasons_in_second_tier" real ); Question: Which Number of seasons in second tier has a First season of 2000, and a First season of current spell of 2014? <|assistant|> SELECT "number_of_seasons_in_second_tier" FROM "current_clubs_2014_season" WHERE "first_season"=2000 AND "first_season_of_current_spell"=2014;<|endoftext|>