text
stringlengths
310
1.28k
<|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: Date of april 9 had what score? <|assistant|> SELECT "score" FROM "game_log" WHERE "date"='april 9';<|endoftext|>
<|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: Record of 11–12 involved what average attendance figures? <|assistant|> SELECT AVG("attendance") FROM "game_log" WHERE "record"='11–12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_special_elections" ( "district" real, "congress" text, "date" text, "predecessor" text, "winner" text ); Question: What predecessor has a district less than 11, 68th as the Congress, and may 1, 1923 as the date? <|assistant|> SELECT "predecessor" FROM "list_of_special_elections" WHERE "district"<11 AND "congress"='68th' AND "date"='may 1, 1923';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "frequency_specifications" ( "hyper_transport_version" real, "year" real, "max_ht_frequency" text, "max_link_width" text, "max_aggregate_bandwidth_bi_directional" text, "max_bandwidth_at_16_bit_unidirectional" text, "max_bandwidth_at_32_bit_unidirectional" text ); Question: What Hyper Transport version has 22.4 gb/s of Max. Aggregate bandwidth? <|assistant|> SELECT "hyper_transport_version" FROM "frequency_specifications" WHERE "max_aggregate_bandwidth_bi_directional"='22.4 gb/s';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "frequency_specifications" ( "hyper_transport_version" real, "year" real, "max_ht_frequency" text, "max_link_width" text, "max_aggregate_bandwidth_bi_directional" text, "max_bandwidth_at_16_bit_unidirectional" text, "max_bandwidth_at_32_bit_unidirectional" text ); Question: What is the Max Aggregate bandwidth with a HyperTransport of 2? <|assistant|> SELECT "max_aggregate_bandwidth_bi_directional" FROM "frequency_specifications" WHERE "hyper_transport_version"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1963" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: Who was the opposing team during the game in Zagreb? <|assistant|> SELECT "opponent" FROM "1963" WHERE "city"='zagreb';<|endoftext|>
<|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: The record of 35-31 has what score? <|assistant|> SELECT "score" FROM "game_log" WHERE "record"='35-31';<|endoftext|>
<|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: On June 12 what score had an attendance larger than 43,191? <|assistant|> SELECT "score" FROM "game_log" WHERE "attendance">'43,191' AND "date"='june 12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: Which Manufacturer has 1 lap and had an accident? <|assistant|> SELECT "manufacturer" FROM "250cc_classification" WHERE "laps"=1 AND "time_retired"='accident';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: Which rider has a Manufacturer of honda with a time of +44.814? <|assistant|> SELECT "rider" FROM "250cc_classification" WHERE "manufacturer"='honda' AND "time_retired"='+44.814';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: How many grids have a time of +1:21.239 and more than 25 laps? <|assistant|> SELECT COUNT("grid") FROM "250cc_classification" WHERE "time_retired"='+1:21.239' AND "laps">25;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_5" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: What is the average episode number on 19 March 1993 with Jim Sweeney as performer 1? <|assistant|> SELECT AVG("episode") FROM "series_5" WHERE "performer_1"='jim sweeney' AND "date"='19 march 1993';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_5" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: Who is performer 2 of the episode on 9 April 1993 with Josie Lawrence as performer 4? <|assistant|> SELECT "performer_2" FROM "series_5" WHERE "performer_4"='josie lawrence' AND "date"='9 april 1993';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_5" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: What is the date of the episode with Ryan Stiles as performer 2, Colin Mochrie as performer 3, and Tony Slattery as performer 4? <|assistant|> SELECT "date" FROM "series_5" WHERE "performer_2"='ryan stiles' AND "performer_3"='colin mochrie' AND "performer_4"='tony slattery';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_5" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: Who is performer 4 on episode 3, where Jim Sweeney was performer 1? <|assistant|> SELECT "performer_4" FROM "series_5" WHERE "performer_1"='jim sweeney' AND "episode"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_5" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: What is the episode number where Jim Sweeney was performer 1 and Mike Mcshane was performer 4? <|assistant|> SELECT SUM("episode") FROM "series_5" WHERE "performer_1"='jim sweeney' AND "performer_4"='mike mcshane';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "number" text, "wrestler" text, "entered" real, "pinned" text, "method" text ); Question: Which Wrestler has an Entered of 5, and a Pinned of mvp? <|assistant|> SELECT "wrestler" FROM "results" WHERE "entered"=5 AND "pinned"='mvp';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lines" ( "line_color" text, "line" text, "route" text, "stations_served" real, "length" text ); Question: What route with the line color brown has the lowest number of stations served? <|assistant|> SELECT MIN("stations_served") FROM "lines" WHERE "line_color"='brown';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: Which Round is the highest one that has a College/Junior/Club Team (League) of torpedo yaroslavl (rus)? <|assistant|> SELECT MAX("round") FROM "draft_picks" WHERE "college_junior_club_team_league"='torpedo yaroslavl (rus)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: Which Round has a Player of todd fedoruk? <|assistant|> SELECT SUM("round") FROM "draft_picks" WHERE "player"='todd fedoruk';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: How much Grid has a Time/Retired of +1 lap, and a Driver of sébastien bourdais, and Laps larger than 70? <|assistant|> SELECT COUNT("grid") FROM "race" WHERE "time_retired"='+1 lap' AND "driver"='sébastien bourdais' AND "laps">70;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: How many Laps have a Driver of david coulthard, and a Grid smaller than 14? <|assistant|> SELECT SUM("laps") FROM "race" WHERE "driver"='david coulthard' AND "grid"<14;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: How many Laps have a Grid of 15? <|assistant|> SELECT COUNT("laps") FROM "race" WHERE "grid"=15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "year" real, "title" text, "format" text, "label" text, "catalogno" text, "remark" text ); Question: Which Catalogno was #160 us? <|assistant|> SELECT "catalogno" FROM "studio_albums" WHERE "remark"='#160 us';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "year" real, "title" text, "format" text, "label" text, "catalogno" text, "remark" text ); Question: What title was released in 1971? <|assistant|> SELECT "title" FROM "studio_albums" WHERE "year"=1971;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "year" real, "title" text, "format" text, "label" text, "catalogno" text, "remark" text ); Question: Whati s the format for the catalogno of st 491? <|assistant|> SELECT "format" FROM "studio_albums" WHERE "catalogno"='st 491';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "year" real, "title" text, "format" text, "label" text, "catalogno" text, "remark" text ); Question: What year was remark #104 us? <|assistant|> SELECT "year" FROM "studio_albums" WHERE "remark"='#104 us';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "year" real, "title" text, "format" text, "label" text, "catalogno" text, "remark" text ); Question: What title had a remark of #21 us [riaa certified gold january 3, 1990]? <|assistant|> SELECT "title" FROM "studio_albums" WHERE "remark"='#21 us [riaa certified gold january 3, 1990]';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "year" real, "title" text, "format" text, "label" text, "catalogno" text, "remark" text ); Question: What catalogno was in 1971 and had a remark of #27 us? <|assistant|> SELECT "catalogno" FROM "studio_albums" WHERE "year"=1971 AND "remark"='#27 us';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual_overall" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: what AAAAA class has the school year of 1990-91? <|assistant|> SELECT "class_aaaaa" FROM "individual_overall" WHERE "school_year"='1990-91';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual_overall" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: what AAA class has a school year of 1989-90? <|assistant|> SELECT "class_aaa" FROM "individual_overall" WHERE "school_year"='1989-90';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual_overall" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: What school year has a AAAA class of college station a&m consolidated? <|assistant|> SELECT "school_year" FROM "individual_overall" WHERE "class_aaaa"='college station a&m consolidated';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual_overall" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: what AA class has a AAA class of commerce? <|assistant|> SELECT "class_aa" FROM "individual_overall" WHERE "class_aaa"='commerce';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the average week for the game against baltimore colts with less than 41,062 in attendance? <|assistant|> SELECT AVG("week") FROM "schedule" WHERE "opponent"='baltimore colts' AND "attendance"<'41,062';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What was the average week for the gaime against the philadelphia eagles with less than 31,066 in attendance? <|assistant|> SELECT AVG("week") FROM "schedule" WHERE "opponent"='philadelphia eagles' AND "attendance"<'31,066';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the highest attendance for the game after week 1 on November 12, 1961? <|assistant|> SELECT MAX("attendance") FROM "schedule" WHERE "week">1 AND "date"='november 12, 1961';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What was the result of the game on week 4? <|assistant|> SELECT "result" FROM "schedule" WHERE "week"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: What is the lowest Round of joe patterson? <|assistant|> SELECT MIN("round") FROM "nfl_draft" WHERE "player"='joe patterson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: Which School/Club Team has a Round larger than 16? <|assistant|> SELECT "school_club_team" FROM "nfl_draft" WHERE "round">16;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What is listed as the highest Points that's got a Position that's smaller than 1? <|assistant|> SELECT MAX("points") FROM "torneo_clausura" WHERE "position"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What is the Draws average that has a Played that's smaller than 18? <|assistant|> SELECT AVG("draws") FROM "torneo_clausura" WHERE "played"<18;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What is the lowest Wins that has the Team of Olimpia and Draws that's smaller than 4? <|assistant|> SELECT MIN("wins") FROM "torneo_clausura" WHERE "team"='olimpia' AND "draws"<4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What is the highest Played that's for the Team of Cerro Porteño, with a Position that's larger than 1? <|assistant|> SELECT MAX("played") FROM "torneo_clausura" WHERE "team"='cerro porteño' AND "position">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_2_6_9" ( "outcome" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Which tournament included an opponent of Marinko Matosevic? <|assistant|> SELECT "tournament" FROM "singles_2_6_9" WHERE "opponent"='marinko matosevic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_2_6_9" ( "outcome" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Who was the opponent when the score was 6-3, 6-3? <|assistant|> SELECT "opponent" FROM "singles_2_6_9" WHERE "score"='6-3, 6-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Can you tell me the Record that has the Home of ny islanders? <|assistant|> SELECT "record" FROM "december" WHERE "home"='ny islanders';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Can you tell me the Record that has the Date of december 15? <|assistant|> SELECT "record" FROM "december" WHERE "date"='december 15';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Can you tell me the Record that has the Home of detroit, and the Visitor of phoenix? <|assistant|> SELECT "record" FROM "december" WHERE "home"='detroit' AND "visitor"='phoenix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Can you tell me the Date that has the Visitor of florida? <|assistant|> SELECT "date" FROM "december" WHERE "visitor"='florida';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: Which position had f/laps that was test driver? <|assistant|> SELECT "position" FROM "career_summary" WHERE "f_laps"='test driver';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: Which poles were there for the 8th position? <|assistant|> SELECT "poles" FROM "career_summary" WHERE "position"='8th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: What race was there in the formula one series when there was a test driver? <|assistant|> SELECT "races" FROM "career_summary" WHERE "series"='formula one' AND "poles"='test driver';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns_5_points" real, "extra_points_1_point" real, "field_goals_5_points" real, "total_points" real ); Question: Which Extra points 1 point has a Total Points smaller than 30, and Touchdowns (5 points) of 5? <|assistant|> SELECT AVG("extra_points_1_point") FROM "scoring_leaders" WHERE "total_points"<30 AND "touchdowns_5_points"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns_5_points" real, "extra_points_1_point" real, "field_goals_5_points" real, "total_points" real ); Question: How many Touchdowns (5 points) have an Extra points 1 point of 0, and a Field goals (5 points) larger than 0? <|assistant|> SELECT COUNT("touchdowns_5_points") FROM "scoring_leaders" WHERE "extra_points_1_point"=0 AND "field_goals_5_points">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns_5_points" real, "extra_points_1_point" real, "field_goals_5_points" real, "total_points" real ); Question: Which Extra points 1 point is the highest one that has a Total Points smaller than 8? <|assistant|> SELECT MAX("extra_points_1_point") FROM "scoring_leaders" WHERE "total_points"<8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns_5_points" real, "extra_points_1_point" real, "field_goals_5_points" real, "total_points" real ); Question: Which Extra points 1 point is the lowest one that has a Player of walter shaw? <|assistant|> SELECT MIN("extra_points_1_point") FROM "scoring_leaders" WHERE "player"='walter shaw';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns_5_points" real, "extra_points_1_point" real, "field_goals_5_points" real, "total_points" real ); Question: How many Field goals (5 points) have a Total Points of 123, and Touchdowns (5 points) larger than 13? <|assistant|> SELECT COUNT("field_goals_5_points") FROM "scoring_leaders" WHERE "total_points"=123 AND "touchdowns_5_points">13;<|endoftext|>
<|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: When did the Mixed double Women's singles of isabel rocha, from the year 1970, and a Women's doubles of isabel rocha ana margarida? <|assistant|> SELECT "mixed_doubles" FROM "past_winners" WHERE "women_s_singles"='isabel rocha' AND "year">1970 AND "women_s_doubles"='isabel rocha ana margarida';<|endoftext|>
<|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 was the Mixed doubles that has a Women's players of maria gomes zamy gomes, and men's players of fernando silva ricardo fernandes? <|assistant|> SELECT "mixed_doubles" FROM "past_winners" WHERE "women_s_doubles"='maria gomes zamy gomes' AND "men_s_doubles"='fernando silva ricardo fernandes';<|endoftext|>
<|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 was the Men's singles from the Year of 1966? <|assistant|> SELECT "men_s_singles" FROM "past_winners" WHERE "year"=1966;<|endoftext|>
<|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 was the Women's doubles that has a Men's singles of fernando silva, and in the year 1996? <|assistant|> SELECT "women_s_doubles" FROM "past_winners" WHERE "men_s_singles"='fernando silva' AND "year"<1996;<|endoftext|>
<|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 happened in the Men's doubles that had a Men's singles of marco vasconcelos, and a Year larger than 2000, and a Mixed doubles of alexandre paixão filipa lamy, and a Women's singles of telma santos? <|assistant|> SELECT "men_s_doubles" FROM "past_winners" WHERE "men_s_singles"='marco vasconcelos' AND "year">2000 AND "mixed_doubles"='alexandre paixão filipa lamy' AND "women_s_singles"='telma santos';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: How many people attended the game with parent recording the decision and a Record of 42–18–10? <|assistant|> SELECT SUM("attendance") FROM "regular_season" WHERE "decision"='parent' AND "record"='42–18–10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What is the team's record when vancouver was at home? <|assistant|> SELECT "record" FROM "regular_season" WHERE "home"='vancouver';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: Name the date for result of w 23-3 and attendance more than 25,000 for week more than 7 <|assistant|> SELECT "date" FROM "schedule" WHERE "attendance">'25,000' AND "week">7 AND "result"='w 23-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: Name the opponent on november 22, 1942 <|assistant|> SELECT "opponent" FROM "schedule" WHERE "date"='november 22, 1942';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "attendance" real ); Question: What score did the Green Bay Packers get as visitor? <|assistant|> SELECT "score" FROM "schedule" WHERE "visitor"='green bay packers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "attendance" real ); Question: On October 31 what team played at home? <|assistant|> SELECT "home" FROM "schedule" WHERE "date"='october 31';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "attendance" real ); Question: On December 5 what team played their home game? <|assistant|> SELECT "home" FROM "schedule" WHERE "date"='december 5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "attendance" real ); Question: How many people attended the game on October 31? <|assistant|> SELECT "attendance" FROM "schedule" WHERE "date"='october 31';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What nationality is Rob Nicholson? <|assistant|> SELECT "nationality" FROM "draft_picks" WHERE "player"='rob nicholson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What college or club team did Steve Jones play for? <|assistant|> SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "player"='steve jones';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What nationality is Barry Duench? <|assistant|> SELECT "nationality" FROM "draft_picks" WHERE "player"='barry duench';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "exhibition_schedule" ( "date" text, "home_team" text, "score" text, "visiting_team" text, "stadium" text ); Question: What was Saskatoon Accelerators score on January 6, 2008? <|assistant|> SELECT "score" FROM "exhibition_schedule" WHERE "home_team"='saskatoon accelerators' AND "date"='january 6, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "exhibition_schedule" ( "date" text, "home_team" text, "score" text, "visiting_team" text, "stadium" text ); Question: What was the score on April 6, 2008? <|assistant|> SELECT "score" FROM "exhibition_schedule" WHERE "date"='april 6, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "exhibition_schedule" ( "date" text, "home_team" text, "score" text, "visiting_team" text, "stadium" text ); Question: Which home team played on April 5, 2008? <|assistant|> SELECT "home_team" FROM "exhibition_schedule" WHERE "date"='april 5, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "exhibition_schedule" ( "date" text, "home_team" text, "score" text, "visiting_team" text, "stadium" text ); Question: Which home team played on January 5, 2008? <|assistant|> SELECT "home_team" FROM "exhibition_schedule" WHERE "date"='january 5, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "exhibition_schedule" ( "date" text, "home_team" text, "score" text, "visiting_team" text, "stadium" text ); Question: What was the score at CN Centre on April 5, 2008? <|assistant|> SELECT "score" FROM "exhibition_schedule" WHERE "stadium"='cn centre' AND "date"='april 5, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "exhibition_schedule" ( "date" text, "home_team" text, "score" text, "visiting_team" text, "stadium" text ); Question: What was the score for Edmonton Drillers on January 6, 2008? <|assistant|> SELECT "score" FROM "exhibition_schedule" WHERE "visiting_team"='edmonton drillers' AND "date"='january 6, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How much Silver has a Nation of mexico, and a Total larger than 1? <|assistant|> SELECT SUM("silver") FROM "medal_table" WHERE "nation"='mexico' AND "total">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How much Bronze has a Gold larger than 0, and a Total smaller than 1? <|assistant|> SELECT COUNT("bronze") FROM "medal_table" WHERE "gold">0 AND "total"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How much Bronze has a Nation of mexico, and a Total larger than 1? <|assistant|> SELECT SUM("bronze") FROM "medal_table" WHERE "nation"='mexico' AND "total">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "district" real, "incumbent" text, "party" text, "elected" real, "status" text ); Question: In which District(s) has a Democrat held office since 1998? <|assistant|> SELECT "district" FROM "results" WHERE "party"='democrat' AND "elected">1998;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total_team_ranking" ( "rank" real, "country" text, "1st_place" real, "2nd_place" real, "3rd_place" real, "total" real ); Question: Which Rank is the Country of soviet union with a Total smaller than 19? <|assistant|> SELECT MIN("rank") FROM "total_team_ranking" WHERE "country"='soviet union' AND "total"<19;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total_team_ranking" ( "rank" real, "country" text, "1st_place" real, "2nd_place" real, "3rd_place" real, "total" real ); Question: What is the lowest Rank of Denmark County with a Total smaller than 1? <|assistant|> SELECT MIN("rank") FROM "total_team_ranking" WHERE "country"='denmark' AND "total"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "televised_card" ( "weight_division" text, "winner" text, "loser" text, "method" text, "round" real, "time" text ); Question: Who was the loser of the heavyweight division fight that lasted a time of 2:24? <|assistant|> SELECT "loser" FROM "televised_card" WHERE "weight_division"='heavyweight' AND "time"='2:24';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "televised_card" ( "weight_division" text, "winner" text, "loser" text, "method" text, "round" real, "time" text ); Question: What was the weight division for the fight that ended in a TKO (strikes)? <|assistant|> SELECT "weight_division" FROM "televised_card" WHERE "method"='tko (strikes)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "televised_card" ( "weight_division" text, "winner" text, "loser" text, "method" text, "round" real, "time" text ); Question: Who was the loser of the fight against antonio silva? <|assistant|> SELECT "loser" FROM "televised_card" WHERE "winner"='antonio silva';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "televised_card" ( "weight_division" text, "winner" text, "loser" text, "method" text, "round" real, "time" text ); Question: What was the average number of rounds in the fight where Tank Abbott lost? <|assistant|> SELECT AVG("round") FROM "televised_card" WHERE "loser"='tank abbott';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: In what Round was a Defensive Tackle Pick # less than 19? <|assistant|> SELECT COUNT("round") FROM "atlanta_falcons_draft_history" WHERE "position"='defensive tackle' AND "pick_num"<19;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the Pick # with an Overall of 19? <|assistant|> SELECT MAX("pick_num") FROM "atlanta_falcons_draft_history" WHERE "overall"=19;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "muay" ( "athlete" text, "event" text, "quarterfinal" text, "semifinal" text, "final" text ); Question: What is the event result for athlete Ali Ekranpour? <|assistant|> SELECT "event" FROM "muay" WHERE "athlete"='ali ekranpour';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "muay" ( "athlete" text, "event" text, "quarterfinal" text, "semifinal" text, "final" text ); Question: What is the final result for the 63.5 kg? <|assistant|> SELECT "final" FROM "muay" WHERE "event"='63.5 kg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" real ); Question: What was the date of the tournament in Scotland with a score of 270 (–18)? <|assistant|> SELECT "date" FROM "tournament_results" WHERE "score"='270 (–18)' AND "location"='scotland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" real ); Question: Where was the tournament won by Hale Irwin (19)? <|assistant|> SELECT "location" FROM "tournament_results" WHERE "winner"='hale irwin (19)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notation" ( "fraction" text, "ellipsis" text, "vinculum" text, "dots" text, "parentheses" text ); Question: How much is vinculum when the parentheses are 0.(81)? <|assistant|> SELECT "vinculum" FROM "notation" WHERE "parentheses"='0.(81)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notation" ( "fraction" text, "ellipsis" text, "vinculum" text, "dots" text, "parentheses" text ); Question: What fraction has a value for dots of 0.\dot{3}? <|assistant|> SELECT "fraction" FROM "notation" WHERE "dots"='0.\dot{3}';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notation" ( "fraction" text, "ellipsis" text, "vinculum" text, "dots" text, "parentheses" text ); Question: What is the dot value when the ellipsis is 0.012345679…? <|assistant|> SELECT "dots" FROM "notation" WHERE "ellipsis"='0.012345679…';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notation" ( "fraction" text, "ellipsis" text, "vinculum" text, "dots" text, "parentheses" text ); Question: What fraction has parentheses of 0.(3)? <|assistant|> SELECT "fraction" FROM "notation" WHERE "parentheses"='0.(3)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notation" ( "fraction" text, "ellipsis" text, "vinculum" text, "dots" text, "parentheses" text ); Question: What is the value for parentheses with a dots value of 0.\dot{6}? <|assistant|> SELECT "parentheses" FROM "notation" WHERE "dots"='0.\dot{6}';<|endoftext|>