text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the margin of victory at the Texas International Open...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the margin of victory in the tournament with a winnin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "cmp_att_int" text, "avg_g" real ); Question: Which Avg/G has an Effic larger than 129.73, and a Cmp-Att-Int of 333-500-13? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "cmp_att_int" text, "avg_g" real ); Question: Which Effic is the highest one that has an Avg/G smaller than 305.6, and a GP-GS of 13-13? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "cmp_att_int" text, "avg_g" real ); Question: Which Avg/G that has a Name of opponents, and an Effic smaller than 129.73? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "cmp_att_int" text, "avg_g" real ); Question: Which Cmp-Att-Int has a GP-GS of 3-0? <|assistant|> SELECT "cmp_att_int" FROM "passing" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "cmp_att_int" text, "avg_g" real ); Question: Which Effic is the average one that has an Avg/G larger than 3.7, and a GP-GS of 13, and a Cmp-...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); Question: Which home team was playing on January 13? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_against_each_opponent" ( "matches" real, "innings" real, "not_out" real, "runs" real, "high_score" real, "average" real ); Question: How many runs were there when the high score w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_against_each_opponent" ( "matches" real, "innings" real, "not_out" real, "runs" real, "high_score" real, "average" real ); Question: How many runs were there when there was 1 matc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "digital_channels" ( "channel" real, "station" text, "video" text, "aspect" text, "psip_short_name" text, "programming" text ); Question: Which station has programming of Me-TV? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "digital_channels" ( "channel" real, "station" text, "video" text, "aspect" text, "psip_short_name" text, "programming" text ); Question: Which station has programming of Me-TV? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "digital_channels" ( "channel" real, "station" text, "video" text, "aspect" text, "psip_short_name" text, "programming" text ); Question: What is the short name having video of 720p and progra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "digital_channels" ( "channel" real, "station" text, "video" text, "aspect" text, "psip_short_name" text, "programming" text ); Question: What is the video associated with a short name of KSTC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "digital_channels" ( "channel" real, "station" text, "video" text, "aspect" text, "psip_short_name" text, "programming" text ); Question: What is the short name of channel 5.5, KSTC-TV? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "digital_channels" ( "channel" real, "station" text, "video" text, "aspect" text, "psip_short_name" text, "programming" text ); Question: What is the short name of the channel under 5.2? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Which Men's doubles has a Women's do...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "province" text, "prefecture" text, "county" text, "tujia_population" real, "pct_of_china_s_tujia_population" text ); Question: Which province has a prefecture of Xiangxi with 0.81...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "province" text, "prefecture" text, "county" text, "tujia_population" real, "pct_of_china_s_tujia_population" text ); Question: Which prefecture is in Hubei province and Enshi coun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "province" text, "prefecture" text, "county" text, "tujia_population" real, "pct_of_china_s_tujia_population" text ); Question: What is the sum of Tujia population with the Zhangji...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real ); Question: What is the total number of attendence has points greater th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "season" text, "tropical_lows" real, "tropical_cyclones" real, "severe_tropical_cyclones" real, "strongest_storm" text ); Question: What is the total number of Tropical Lows for more t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "season" text, "tropical_lows" real, "tropical_cyclones" real, "severe_tropical_cyclones" real, "strongest_storm" text ); Question: What is the largest number for tropical Lows for the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "season" text, "tropical_lows" real, "tropical_cyclones" real, "severe_tropical_cyclones" real, "strongest_storm" text ); Question: What is the least number of tropical cyclones when t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "season" text, "tropical_lows" real, "tropical_cyclones" real, "severe_tropical_cyclones" real, "strongest_storm" text ); Question: What is the least amount of severe tropical cyclones...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "season" text, "tropical_lows" real, "tropical_cyclones" real, "severe_tropical_cyclones" real, "strongest_storm" text ); Question: What is the least amount of tropical lows for the 19...
<|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: How many Weeks are on september 8, 1980 and Attendances larger than 55,045? Question 4 <|ass...
<|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, "college" text ); Question: Which Round has a College of stanford? <|assistant|> SELECT "round" FROM "nfl_draft" WHERE "c...
<|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, "college" text ); Question: Which Round has a Pick of 174? <|assistant|> SELECT "round" FROM "nfl_draft" WHERE "pick"=174...
<|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, "college" text ); Question: Which Position has a Pick of 174? <|assistant|> SELECT "position" FROM "nfl_draft" WHERE "pic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: that was held in 1964? <|assistant|> SELECT "event" FROM "achievements" WHERE "year"=19...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: What is the name of the Event with a venue that was in toronto, canada? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: What is the Year the competition the british empire and commonwealth games were held? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: What is the position of the commonwealth games? <|assistant|> SELECT "position" FROM "a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: What is the venue with a competition in 1964? <|assistant|> SELECT "venue" FROM "achiev...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_finals_19_8_11" ( "outcome" text, "date" text, "location" text, "surface" text, "opponent_in_final" text, "score" text ); Question: Name the date for clay surface and location of sant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_finals_19_8_11" ( "outcome" text, "date" text, "location" text, "surface" text, "opponent_in_final" text, "score" text ); Question: Name the date with outcome of winner and score of 4...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2004" text ); Question: What's the highest capacity for a position of 5 in 2004? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2004" text ); Question: Which venue has a capacity over 41,040 for Darida? <|assistant|> SELECT "ve...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2004" text ); Question: Which venue was number 9 for 2004? <|assistant|> SELECT "venue" FROM "teams...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "institutions" ( "school" text, "city" text, "state" text, "enrollment" real, "founded" real ); Question: What city was founded in 1857? <|assistant|> SELECT "city" FROM "institutions" WHERE "fo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text ); Question: Which Opponent has a Time of 2:31? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text ); Question: Which Method has a Round of 1, and a Time of 0:2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text ); Question: Which Time has an Event of call to arms i? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); Question: what team played on april 9 <|assistant|> SELECT "opponent" FROM "playoffs" WHERE "date"='april 9...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "am_stations" ( "frequency_k_hz" real, "call_letters" text, "licensed_location" text, "type" text, "format" text ); Question: What is the smallest frequency (kHz) that is in the location of Long...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "am_stations" ( "frequency_k_hz" real, "call_letters" text, "licensed_location" text, "type" text, "format" text ); Question: What is the location with a frequency (kHz) greater than 1370? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2002" text ); Question: What is the capacity number for Yunost? <|assistant|> SELECT COUNT("capacit...
<|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 is the total number of first prizes in USD for the Canad...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_12_3_9" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: Who is the opponent in the final of the match on 19 F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_12_3_9" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: Who is the opponent in the final of the match on 26 M...
<|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 overall number of the player from Utah wi...
<|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 highest round of the player with a pick n...
<|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 round did Mitch Davis, with an overall higher th...
<|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 highest overall of the player from Georgi...
<|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 position of the player with an overall of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: How many wins for team nsu and over 2 points? <|assistant|> SELECT AVG("wins") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: What is the earliest year associated with under 0 wins? <|assistant|> SELECT MIN...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: How many wins for team mv agusta, over 10 points, and after 1957? <|assistant|> ...
<|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/Junior/Club Team (League) has a round of 3? <|a...
<|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 player has a round larger than 1 in Austria? <|assistan...
<|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 player's nationality is from Sweden? <|assistant|> SEL...
<|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/Junior/Club Team (League) from Canada has a rou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_kayak" ( "distance" text, "event" text, "record" text, "nationality" text, "year" real, "location" text ); Question: What was the distance in 1997? <|assistant|> SELECT "distance" FROM "m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_19_12_titles_7_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Who was the opponents i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_19_12_titles_7_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: What was the final scor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conference_national" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance_away" real ); Question: Name the least attendance with venue of away on 24 august 2007 <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conference_national" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance_away" real ); Question: Name the average attendance with result of won 2-0 on 2 november 2007 <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "uninum" real, "bats" text, "throws" text, "position" text ); Question: What is the uniform number of the player whose last name...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "rank" real, "first_quarter" text, "second_quarter" text, "third_quarter" text, "fourth_quarter" text ); Question: When the rank is larger than 3 with a second quarter of johnson & john...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "rank" real, "first_quarter" text, "second_quarter" text, "third_quarter" text, "fourth_quarter" text ); Question: With a rank of 2 what is the second quarter? <|assistant|> SELECT "sec...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "rank" real, "first_quarter" text, "second_quarter" text, "third_quarter" text, "fourth_quarter" text ); Question: When the third quarter is China Mobile 195,680.4, what is the rank? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "rank" real, "first_quarter" text, "second_quarter" text, "third_quarter" text, "fourth_quarter" text ); Question: When the first quarter is procter & gamble 138,013, what is the rank? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "rank" real, "first_quarter" text, "second_quarter" text, "third_quarter" text, "fourth_quarter" text ); Question: When the rank is less than 4, and has a second quarter of exxon mobil ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_ministers_for_the_interior" ( "order" text, "minister" text, "party" text, "prime_minister" text, "title" text, "term_start" text, "term_end" text, "term_in_office" text ); Questi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "defensive" ( "player" text, "sacks" real, "int_s" real, "yards" real, "average" real, "long" text ); Question: How many values for INT's occur with more than 0 yards, over 6 sacks, and averag...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "defensive" ( "player" text, "sacks" real, "int_s" real, "yards" real, "average" real, "long" text ); Question: What is the sum of average values for 23 yards? <|assistant|> SELECT SUM("averag...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "defensive" ( "player" text, "sacks" real, "int_s" real, "yards" real, "average" real, "long" text ); Question: What is the lowest value of INT's with an average more than 25? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "defensive" ( "player" text, "sacks" real, "int_s" real, "yards" real, "average" real, "long" text ); Question: What are the most yards for 2 sacks and an average greater than 0? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "defensive" ( "player" text, "sacks" real, "int_s" real, "yards" real, "average" real, "long" text ); Question: What is the sum of values for INT'S with Mossy Cade for 0 yards and less than 3 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: What is listed for the Bronze, with the Location of Bangkok, and the Year of 1978? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: What's listed for the lowest Year that a Silver of Kim Kyung-Ho? <|assistant|> SELECT MIN("yea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: What's the Gold that also has Bronze of Kim Sun-Bin? <|assistant|> SELECT "gold" FROM "individ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: What's the Bronze that's also got a Godl of Kim Woo-Jin? <|assistant|> SELECT "bronze" FROM "i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: What is listed as the highest Year that's also got a Bronze of Wataru Haraguchi? <|assistant|>...
<|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, "record" text ); Question: What was the score when their record was 35–23–15? <|assistant|> SELECT "score" FROM "march" WHERE "r...
<|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, "record" text ); Question: Which home team has a score of 5 – 6? <|assistant|> SELECT "home" FROM "march" WHERE "score"='5 – 6';...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "school" text, "location" text, "mascot" text, "county" text, "enrollment_08_09" real, "ihsaa_class" text, "ihsaa_class_football" text, "year_joined" real, "previous_c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "school" text, "location" text, "mascot" text, "county" text, "enrollment_08_09" real, "ihsaa_class" text, "ihsaa_class_football" text, "year_joined" real, "previous_c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "school" text, "location" text, "mascot" text, "county" text, "enrollment_08_09" real, "ihsaa_class" text, "ihsaa_class_football" text, "year_joined" real, "previous_c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scorers" ( "player" text, "league" real, "malaysia_cup" real, "fa_cup" real, "total" real ); Question: Which FA Cup is the highest one that has a Malaysia Cup of 0, and a Player of ahmad fouzee...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scorers" ( "player" text, "league" real, "malaysia_cup" real, "fa_cup" real, "total" real ); Question: How many totals have a Player of ahmad fouzee masuri, and an FA Cup larger than 0? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scorers" ( "player" text, "league" real, "malaysia_cup" real, "fa_cup" real, "total" real ); Question: Which FA Cup has a Player of khairan ezuan razali, and a Total smaller than 0? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scorers" ( "player" text, "league" real, "malaysia_cup" real, "fa_cup" real, "total" real ); Question: How many Malaysia Cups have a Total larger than 3, and a Player of ivan yusoff, and a Leag...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scorers" ( "player" text, "league" real, "malaysia_cup" real, "fa_cup" real, "total" real ); Question: Which FA Cup has a Malaysia Cup larger than 0, and a Total of 8? <|assistant|> SELECT SUM(...