text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Question: What is the lowest number of losses for the club cádiz cf? <|assistant|> SELECT MIN("losses") FROM "final_table" WHERE "club"='cádiz cf';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "downloadable_content" ( "year" real, "song_title" text, "artist" text, "master_recording" text, "release_date" text, "single_pack" text ); Question: What is the name of the artist with a Single / Pack of guitar hero track pack 1? <|assistant|> SELECT "artist" FROM "downloadable_content" WHERE "single_pack"='guitar hero track pack 1';<|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" text, "record" text ); Question: What was the record at the game that had a loss of Lemanczyk (0–1)? <|assistant|> SELECT "record" FROM "game_log" WHERE "loss"='lemanczyk (0–1)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "game" real, "date" text, "location" text, "time" text, "attendance" real ); Question: Game larger than 1, and a Location of comiskey park (i), and a Date of October 9 happened at what time? <|assistant|> SELECT "time" FROM "summary" WHERE "game">1 AND "location"='comiskey park (i)' AND "date"='october 9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "game" real, "date" text, "location" text, "time" text, "attendance" real ); Question: Date of october 8 happened at what time? <|assistant|> SELECT "time" FROM "summary" WHERE "date"='october 8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "game" real, "date" text, "location" text, "time" text, "attendance" real ); Question: Game 1's sum of attendance is? <|assistant|> SELECT SUM("attendance") FROM "summary" WHERE "game"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What was the finish of the winner of the 2000 Masters? <|assistant|> SELECT "finish" FROM "made_the_cut" WHERE "year_s_won"='2000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: For the player from Fiji, what was his finish? <|assistant|> SELECT "finish" FROM "made_the_cut" WHERE "country"='fiji';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: For the player finishing at +8, what is his nationality? <|assistant|> SELECT "country" FROM "made_the_cut" WHERE "to_par"='+8';<|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, "record" text ); Question: What was the score of the game that had a record of 52–103? <|assistant|> SELECT "score" FROM "game_log" WHERE "record"='52–103';<|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, "record" text ); Question: What was the date of the game when the record was 53–104? <|assistant|> SELECT "date" FROM "game_log" WHERE "record"='53–104';<|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, "record" text ); Question: What was the record at the game that had a loss of Huffman (6–18)? <|assistant|> SELECT "record" FROM "game_log" WHERE "loss"='huffman (6–18)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wednesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text, "10_30" text ); Question: for the 8:00 of kid nation what is at 10:00? <|assistant|> SELECT "10_00" FROM "wednesday" WHERE "8_00"='kid nation';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wednesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text, "10_30" text ); Question: for the 10:00 of the simple life what is the 9:00? <|assistant|> SELECT "9_00" FROM "wednesday" WHERE "10_00"='the simple life';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wednesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text, "10_30" text ); Question: for the 10:00 of le journal du soir what is the 9:00? <|assistant|> SELECT "9_00" FROM "wednesday" WHERE "10_00"='le journal du soir';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wednesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text, "10_30" text ); Question: for the 7:30 of access hollywood what is the 10:00? <|assistant|> SELECT "10_00" FROM "wednesday" WHERE "7_30"='access hollywood';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wednesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text, "10_30" text ); Question: for the 9:00 of bionic woman what is the 8:30? <|assistant|> SELECT "8_30" FROM "wednesday" WHERE "9_00"='bionic woman';<|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: Which format is released on August 29, 1998? <|assistant|> SELECT "format" FROM "release_history" WHERE "date"='august 29, 1998';<|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 catalog number for the January 25, 1987 release? <|assistant|> SELECT "catalog" FROM "release_history" WHERE "date"='january 25, 1987';<|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: Which format is released on May 27, 2009? <|assistant|> SELECT "format" FROM "release_history" WHERE "date"='may 27, 2009';<|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 catalog number of the May 27, 2009 release? <|assistant|> SELECT "catalog" FROM "release_history" WHERE "date"='may 27, 2009';<|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 release date of a CD with the catalog number ALCA-9206? <|assistant|> SELECT "date" FROM "release_history" WHERE "format"='cd' AND "catalog"='alca-9206';<|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: Which format is released on May 27, 2009? <|assistant|> SELECT "format" FROM "release_history" WHERE "date"='may 27, 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "points" ( "rank" real, "player" text, "years" text, "games" real, "ppg_avg" real, "total_points" real ); Question: What was the average of points with ranks smaller than 7 but with total point games of 113? <|assistant|> SELECT AVG("total_points") FROM "points" WHERE "games"=113 AND "rank"<7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "gore_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the sum of the roll with an area of Waikaka? <|assistant|> SELECT SUM("roll") FROM "gore_district" WHERE "area"='waikaka';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "gore_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the roll number for East Gore School? <|assistant|> SELECT COUNT("roll") FROM "gore_district" WHERE "name"='east gore school';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "gore_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the lowest decile with 1-6 years and area of Maitland? <|assistant|> SELECT MIN("decile") FROM "gore_district" WHERE "years"='1-6' AND "area"='maitland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "gore_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Which gender has 7-15 years? <|assistant|> SELECT "gender" FROM "gore_district" WHERE "years"='7-15';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "gore_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the gender for Otama? <|assistant|> SELECT "gender" FROM "gore_district" WHERE "area"='otama';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "gore_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the authority for roll of 96? <|assistant|> SELECT "authority" FROM "gore_district" WHERE "roll"=96;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "southland_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: When is a Roll of 9? <|assistant|> SELECT "years" FROM "southland_district" WHERE "roll"=9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "southland_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the Area with 26 in Roll <|assistant|> SELECT "area" FROM "southland_district" WHERE "roll"=26;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: For nations with more than 6 silvers and more than 10 golds, what is the lowest total? <|assistant|> SELECT MIN("total") FROM "medal_table" WHERE "silver">6 AND "gold">10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest rank for nations with more than 3 bronze medals and more than 36 total medals? <|assistant|> SELECT MIN("rank") FROM "medal_table" WHERE "bronze">3 AND "total">36;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which country has the most bronze and has more than one silver, 1 gold, and less than 4 total medals. <|assistant|> SELECT MAX("bronze") FROM "medals_table" WHERE "silver">1 AND "gold"=1 AND "total"<4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What nation has the most bronze medals with over 11 total medals? <|assistant|> SELECT MAX("bronze") FROM "medals_table" WHERE "total">11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many silver medals does Cuba have? <|assistant|> SELECT SUM("silver") FROM "medals_table" WHERE "nation"='cuba';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s_patriots_8_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: Where was the game that the Indianapolis Colts lost 24-14? <|assistant|> SELECT "location" FROM "2000s_patriots_8_6" WHERE "loser"='indianapolis colts' AND "result"='24-14';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s_patriots_8_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: On what date was the game that the Indianapolis Colts lost in 2004? <|assistant|> SELECT "date" FROM "2000s_patriots_8_6" WHERE "loser"='indianapolis colts' AND "year"=2004;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s_patriots_8_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: Which team won against the New England Patriots 40-21? <|assistant|> SELECT "winner" FROM "2000s_patriots_8_6" WHERE "loser"='new england patriots' AND "result"='40-21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s_patriots_8_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: What was the date of the game played at Gillette Stadium with a score of 40-21? <|assistant|> SELECT "date" FROM "2000s_patriots_8_6" WHERE "location"='gillette stadium' AND "result"='40-21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s_patriots_8_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: What year was the game that ended with a score of 24-14? <|assistant|> SELECT AVG("year") FROM "2000s_patriots_8_6" WHERE "result"='24-14';<|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 of the 3-0 Win result? <|assistant|> SELECT "score" FROM "international_goals" WHERE "result"='3-0 win';<|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 result of the game from 10 October 2009? <|assistant|> SELECT "result" FROM "international_goals" WHERE "date"='10 october 2009';<|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 is the name of the competition that has a score of 2-0? <|assistant|> SELECT "competition" FROM "international_goals" WHERE "score"='2-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" text, "men_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Which Men's singles has a Mixed doubles of kai abraham petra michalowsky? <|assistant|> SELECT "men_s_singles" FROM "previous_winners" WHERE "mixed_doubles"='kai abraham petra michalowsky';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" text, "men_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Which women's doubles has a Year of 1992? <|assistant|> SELECT "women_s_doubles" FROM "previous_winners" WHERE "year"='1992';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" text, "men_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Which year has a Men's doubles of marcus ellis peter mills? <|assistant|> SELECT "year" FROM "previous_winners" WHERE "men_s_doubles"='marcus ellis peter mills';<|endoftext|>
<|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: Name the visitor for home of dallas <|assistant|> SELECT "visitor" FROM "april" WHERE "home"='dallas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chart_performance" ( "country" text, "chart" text, "period" text, "peak_position" text, "sales" text ); Question: Name the period for south korea with peak position of #1 <|assistant|> SELECT "period" FROM "chart_performance" WHERE "country"='south korea' AND "peak_position"='#1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chart_performance" ( "country" text, "chart" text, "period" text, "peak_position" text, "sales" text ); Question: Name the period for south korea with peak position of #24 <|assistant|> SELECT "period" FROM "chart_performance" WHERE "country"='south korea' AND "peak_position"='#24';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chart_performance" ( "country" text, "chart" text, "period" text, "peak_position" text, "sales" text ); Question: Name the period for Chart of g-music j-pop/k-pop chart <|assistant|> SELECT "period" FROM "chart_performance" WHERE "chart"='g-music j-pop/k-pop chart';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chart_performance" ( "country" text, "chart" text, "period" text, "peak_position" text, "sales" text ); Question: Name the sales with peak position of #24 <|assistant|> SELECT "sales" FROM "chart_performance" WHERE "peak_position"='#24';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_record" ( "round" text, "club" text, "home" text, "away" text, "aggregate" text ); Question: Which aggregate has ajax as the club? <|assistant|> SELECT "aggregate" FROM "european_record" WHERE "club"='ajax';<|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, "decision" text, "attendance" real, "record" text ); Question: How many attended on march 1? <|assistant|> SELECT AVG("attendance") FROM "march" WHERE "date"='march 1';<|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, "decision" text, "attendance" real, "record" text ); Question: Who was the visitor on march 21? <|assistant|> SELECT "visitor" FROM "march" WHERE "date"='march 21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_standings" ( "cyclist" text, "nation" text, "team" text, "time" text, "uci_points" real ); Question: Who was the cyclist from Belgium? <|assistant|> SELECT "cyclist" FROM "general_standings" WHERE "nation"='belgium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_standings" ( "cyclist" text, "nation" text, "team" text, "time" text, "uci_points" real ); Question: What is the nation of the person who was from the CSC team? <|assistant|> SELECT "nation" FROM "general_standings" WHERE "team"='csc';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_standings" ( "cyclist" text, "nation" text, "team" text, "time" text, "uci_points" real ); Question: Who is the cyclist from the GCE team and had UCI points under 20? <|assistant|> SELECT "cyclist" FROM "general_standings" WHERE "team"='gce' AND "uci_points"<20;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_standings" ( "cyclist" text, "nation" text, "team" text, "time" text, "uci_points" real ); Question: Which nation is Danilo di Luca from? <|assistant|> SELECT "nation" FROM "general_standings" WHERE "cyclist"='danilo di luca';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_standings" ( "cyclist" text, "nation" text, "team" text, "time" text, "uci_points" real ); Question: Which nation is Robert Gesink from? <|assistant|> SELECT "nation" FROM "general_standings" WHERE "cyclist"='robert gesink';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_standings" ( "cyclist" text, "nation" text, "team" text, "time" text, "uci_points" real ); Question: What is the sum of UCI points for Kim Kirchen? <|assistant|> SELECT SUM("uci_points") FROM "general_standings" WHERE "cyclist"='kim kirchen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assists" ( "rank" real, "player" text, "years" text, "games" real, "ast_avg" real, "total_assists" real ); Question: How many games for the player that has an over 2.7 assist average and over 598 total assists? <|assistant|> SELECT COUNT("games") FROM "assists" WHERE "ast_avg">2.7 AND "total_assists">598;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assists" ( "rank" real, "player" text, "years" text, "games" real, "ast_avg" real, "total_assists" real ); Question: How many assists does cam long average in under 132 games? <|assistant|> SELECT MAX("ast_avg") FROM "assists" WHERE "player"='cam long' AND "games"<132;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stadiums" ( "rank" real, "stadium" text, "total_capacity" text, "seating_capacity" real, "location" text ); Question: Where is the Stadium of Gortakeegan located? <|assistant|> SELECT "location" FROM "stadiums" WHERE "stadium"='gortakeegan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stadiums" ( "rank" real, "stadium" text, "total_capacity" text, "seating_capacity" real, "location" text ); Question: What is the lowest ranking seating capacity smaller than 7,485, and a stadium at St. Colman's Park? <|assistant|> SELECT MIN("rank") FROM "stadiums" WHERE "seating_capacity"<'7,485' AND "stadium"='st. colman''s park';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: In 1972, how many points did the entrant with the March 721G Chassis have? <|assistant|> SELECT "points" FROM "complete_formula_one_results" WHERE "year">1972 AND "chassis"='march 721g';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: In 1971, how many total points did the entrant stp march have? <|assistant|> SELECT COUNT("points") FROM "complete_formula_one_results" WHERE "entrant"='stp march' AND "year">1971;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which Chassis was featured in the year 1971? <|assistant|> SELECT "chassis" FROM "complete_formula_one_results" WHERE "year"=1971;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which Chassis did the Entrant clarke-mordaunt-guthrie-durlacher carry? <|assistant|> SELECT "chassis" FROM "complete_formula_one_results" WHERE "entrant"='clarke-mordaunt-guthrie-durlacher';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "squad_stats" ( "player" text, "l_apps" real, "c_apps" real, "total_apps" real, "total_g" real ); Question: What is Bartolo's Total G when his L Apps is 29 and his C Apps are larger than 5? <|assistant|> SELECT AVG("total_g") FROM "squad_stats" WHERE "l_apps"=29 AND "player"='bartolo' AND "c_apps">5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the lowest round for Southern College? <|assistant|> SELECT MIN("round") FROM "indianapolis_colts_draft_history" WHERE "college"='southern';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Who had the placekicker position with a round above 10? <|assistant|> SELECT "name" FROM "indianapolis_colts_draft_history" WHERE "round">10 AND "position"='placekicker';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_10_5_5" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What was the partner of the team that faced the guillermo garcía-lópez albert portas on clay? <|assistant|> SELECT "partner" FROM "doubles_10_5_5" WHERE "surface"='clay' AND "opponents"='guillermo garcía-lópez albert portas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_10_5_5" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What are the dates where the opponent was guillermo garcía-lópez albert portas? <|assistant|> SELECT "date" FROM "doubles_10_5_5" WHERE "opponents"='guillermo garcía-lópez albert portas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What is the earliest year in the 125cc class with more than 102 points and a rank of 2nd? <|assistant|> SELECT MIN("year") FROM "grand_prix_career_statistics" WHERE "class"='125cc' AND "points">102 AND "rank"='2nd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: Which team had fewer than 167 points in the 250cc class? <|assistant|> SELECT "team" FROM "grand_prix_career_statistics" WHERE "points"<167 AND "class"='250cc';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: For years before 1996, having a rank of 3rd in the 125cc class, what is the sum of the points? <|assistant|> SELECT SUM("points") FROM "grand_prix_career_statistics" WHERE "class"='125cc' AND "rank"='3rd' AND "year"<1996;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "opponent" text, "result" text, "game_site" text, "attendance" text ); Question: Who did the Raiders play in week 12? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "week"=12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "opponent" text, "result" text, "game_site" text, "attendance" text ); Question: How many people were at the game that took place at the Kingdome? <|assistant|> SELECT "attendance" FROM "schedule" WHERE "game_site"='the kingdome';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_championship" ( "team" text, "car_no" text, "mnz_spr" text, "mnz_fea" text, "spa_spr" text, "spa_fea" text, "mon_fea" text, "sil_spr" text, "sil_fea" text, "hun_spr" text, "hun_fea" text, "lms_spr" text, "lms_fea" text, "cat_spr" text, "cat_fea" text, "points" text ); Question: Which is the LMS SPR when the car number was 15? <|assistant|> SELECT "lms_spr" FROM "teams_championship" WHERE "car_no"='15';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_championship" ( "team" text, "car_no" text, "mnz_spr" text, "mnz_fea" text, "spa_spr" text, "spa_fea" text, "mon_fea" text, "sil_spr" text, "sil_fea" text, "hun_spr" text, "hun_fea" text, "lms_spr" text, "lms_fea" text, "cat_spr" text, "cat_fea" text, "points" text ); Question: When the CAT FEA is 3 how many points were scored? <|assistant|> SELECT "points" FROM "teams_championship" WHERE "cat_fea"='3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_championship" ( "team" text, "car_no" text, "mnz_spr" text, "mnz_fea" text, "spa_spr" text, "spa_fea" text, "mon_fea" text, "sil_spr" text, "sil_fea" text, "hun_spr" text, "hun_fea" text, "lms_spr" text, "lms_fea" text, "cat_spr" text, "cat_fea" text, "points" text ); Question: What was the SPA FEA when the LMS FEA was 5? <|assistant|> SELECT "spa_fea" FROM "teams_championship" WHERE "lms_fea"='5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_championship" ( "team" text, "car_no" text, "mnz_spr" text, "mnz_fea" text, "spa_spr" text, "spa_fea" text, "mon_fea" text, "sil_spr" text, "sil_fea" text, "hun_spr" text, "hun_fea" text, "lms_spr" text, "lms_fea" text, "cat_spr" text, "cat_fea" text, "points" text ); Question: What was the MNZ FEA when the SIL SPR was 18? <|assistant|> SELECT "mnz_fea" FROM "teams_championship" WHERE "sil_spr"='18';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "major_sports_teams" ( "club" text, "sport" text, "league" text, "venue" text, "championships_years" text ); Question: Which years did the Tampa Bay Storm win the Championships? <|assistant|> SELECT "championships_years" FROM "major_sports_teams" WHERE "club"='tampa bay storm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); Question: What is the height of the person born before 1975? <|assistant|> SELECT "height" FROM "fiba_euro_basket_2007_squads" WHERE "year_born"<1975;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sources" ( "name" text, "party" text, "province" text, "term_expires" real, "term_of_office" text ); Question: How many times did Ken Wright expired in North Western? <|assistant|> SELECT COUNT("term_expires") FROM "sources" WHERE "province"='north western' AND "name"='ken wright';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "birds" ( "species" text, "order" text, "family" text, "species_worldwide" real, "species_on_r_union" real ); Question: Which species on Réunion island is part of the procellariiformes order and is part of the hydrobatidae family and has less than 21 species worldwide? <|assistant|> SELECT SUM("species_on_r_union") FROM "birds" WHERE "order"='procellariiformes' AND "family"='hydrobatidae' AND "species_worldwide"<21;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "birds" ( "species" text, "order" text, "family" text, "species_worldwide" real, "species_on_r_union" real ); Question: How many species does the sternidae family have worldwide with less than 9 species on Réunion? <|assistant|> SELECT COUNT("species_worldwide") FROM "birds" WHERE "family"='sternidae' AND "species_on_r_union"<9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "birds" ( "species" text, "order" text, "family" text, "species_worldwide" real, "species_on_r_union" real ); Question: How many species on Réunion do the dromadidae family have with a worldwide speices larger than 1? <|assistant|> SELECT SUM("species_on_r_union") FROM "birds" WHERE "family"='dromadidae' AND "species_worldwide">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Name the 2010 with tournament of grand slam tournaments <|assistant|> SELECT "2010" FROM "doubles_performance_timeline" WHERE "tournament"='grand slam tournaments';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Name the 2008 with 2010 of 2r and wimbledon tournament <|assistant|> SELECT "2008" FROM "doubles_performance_timeline" WHERE "2010"='2r' AND "tournament"='wimbledon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Name the 2013 for 2010 of 1r <|assistant|> SELECT "2013" FROM "doubles_performance_timeline" WHERE "2010"='1r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Name the 2010 for 2008 of 1r and tournament of us open <|assistant|> SELECT "2010" FROM "doubles_performance_timeline" WHERE "2008"='1r' AND "2011"='1r' AND "tournament"='us open';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "waitomo_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Which years have a Decile of 4, an Authority of state, and a Name of mapiu school? <|assistant|> SELECT "years" FROM "waitomo_district" WHERE "decile"=4 AND "authority"='state' AND "name"='mapiu school';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "waitomo_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Which years have a Decile smaller than 6, an Area of te kuiti, and an Authority of state integrated? <|assistant|> SELECT "years" FROM "waitomo_district" WHERE "decile"<6 AND "area"='te kuiti' AND "authority"='state integrated';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "waitomo_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the average Decile with a state authority and a Name of mapiu school? <|assistant|> SELECT AVG("decile") FROM "waitomo_district" WHERE "authority"='state' AND "name"='mapiu school';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "waitomo_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Which years have an Area of rangitoto? <|assistant|> SELECT "years" FROM "waitomo_district" WHERE "area"='rangitoto';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "waitomo_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Which gender has a Name of rangitoto school? <|assistant|> SELECT "gender" FROM "waitomo_district" WHERE "name"='rangitoto school';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What is the t o par for Ralph Guldahl? <|assistant|> SELECT "to_par" FROM "final_leaderboard" WHERE "player"='ralph guldahl';<|endoftext|>