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? <|assistant|> SELECT "margin_of_victory" FROM "pga_tour_wins_6" WHERE "tournament"='texas international open';<|endoftext|>
<|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 winning score of βˆ’3 (74-68-72-71=285)? <|assistant|> SELECT "margin_of_victory" FROM "pga_tour_wins_6" WHERE "winning_score"='βˆ’3 (74-68-72-71=285)';<|endoftext|>
<|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|> SELECT SUM("avg_g") FROM "passing" WHERE "effic">129.73 AND "cmp_att_int"='333-500-13';<|endoftext|>
<|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? <|assistant|> SELECT MAX("effic") FROM "passing" WHERE "avg_g"<305.6 AND "gp_gs"='13-13';<|endoftext|>
<|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|> SELECT SUM("avg_g") FROM "passing" WHERE "name"='opponents' AND "effic"<129.73;<|endoftext|>
<|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 "gp_gs"='3-0';<|endoftext|>
<|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-Att-Int of 318-521-15? <|assistant|> SELECT AVG("effic") FROM "passing" WHERE "avg_g">3.7 AND "gp_gs"='13' AND "cmp_att_int"='318-521-15';<|endoftext|>
<|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? <|assistant|> SELECT "home" FROM "january" WHERE "date"='january 13';<|endoftext|>
<|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 was 55 and there were more than 12 innings? <|assistant|> SELECT SUM("runs") FROM "performance_against_each_opponent" WHERE "high_score"=55 AND "innings">12;<|endoftext|>
<|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 match and les than 86 average? <|assistant|> SELECT SUM("runs") FROM "performance_against_each_opponent" WHERE "matches"=1 AND "average"<86;<|endoftext|>
<|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|> SELECT "station" FROM "digital_channels" WHERE "programming"='me-tv';<|endoftext|>
<|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|> SELECT "station" FROM "digital_channels" WHERE "programming"='me-tv';<|endoftext|>
<|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 programming of Main KSTC-TV programming? <|assistant|> SELECT "psip_short_name" FROM "digital_channels" WHERE "video"='720p' AND "programming"='main kstc-tv programming';<|endoftext|>
<|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 KSTCDT2? <|assistant|> SELECT "video" FROM "digital_channels" WHERE "psip_short_name"='kstcdt2';<|endoftext|>
<|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? <|assistant|> SELECT "psip_short_name" FROM "digital_channels" WHERE "station"='kstc-tv' AND "channel"=5.5;<|endoftext|>
<|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? <|assistant|> SELECT "psip_short_name" FROM "digital_channels" WHERE "channel"<5.2;<|endoftext|>
<|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 doubles of pam brady rosine lemon? <|assistant|> SELECT "men_s_doubles" FROM "past_winners" WHERE "women_s_doubles"='pam brady rosine lemon';<|endoftext|>
<|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% of China's Tujia population? <|assistant|> SELECT "province" FROM "by_county" WHERE "prefecture"='xiangxi' AND "pct_of_china_s_tujia_population"='0.81%';<|endoftext|>
<|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 county? <|assistant|> SELECT "prefecture" FROM "by_county" WHERE "province"='hubei' AND "county"='enshi';<|endoftext|>
<|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 Zhangjiajie prefecture in Sangzhi county? <|assistant|> SELECT SUM("tujia_population") FROM "by_county" WHERE "prefecture"='zhangjiajie' AND "county"='sangzhi';<|endoftext|>
<|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 than 40, and detroit as the home? <|assistant|> SELECT COUNT("attendance") FROM "game_log" WHERE "points">40 AND "home"='detroit';<|endoftext|>
<|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 than 11 tropical cyclones in 1998–99, and a Severe Tropical Cyclones larger than 9? <|assistant|> SELECT COUNT("tropical_lows") FROM "1990s" WHERE "tropical_cyclones">11 AND "season"='1998–99' AND "severe_tropical_cyclones">9;<|endoftext|>
<|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 1990–91 season with more than 10 tropical cyclones? <|assistant|> SELECT MAX("tropical_lows") FROM "1990s" WHERE "season"='1990–91' AND "tropical_cyclones">10;<|endoftext|>
<|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 the strongest storm was Tiffany and less than 10 tropical lows. <|assistant|> SELECT MIN("severe_tropical_cyclones") FROM "1990s" WHERE "strongest_storm"='tiffany' AND "tropical_lows">10;<|endoftext|>
<|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 for the 1992–93 season and the tropical Lows smaller than 6? <|assistant|> SELECT MIN("severe_tropical_cyclones") FROM "1990s" WHERE "season"='1992–93' AND "tropical_lows"<6;<|endoftext|>
<|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 1993–94 season with less than 11 tropical cyclones <|assistant|> SELECT MIN("tropical_lows") FROM "1990s" WHERE "season"='1993–94' AND "tropical_cyclones"<11;<|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: How many Weeks are on september 8, 1980 and Attendances larger than 55,045? Question 4 <|assistant|> SELECT COUNT("week") FROM "schedule" WHERE "date"='september 8, 1980' AND "attendance">'55,045';<|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, "college" text ); Question: Which Round has a College of stanford? <|assistant|> SELECT "round" FROM "nfl_draft" WHERE "college"='stanford';<|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, "college" text ); Question: Which Round has a Pick of 174? <|assistant|> SELECT "round" FROM "nfl_draft" WHERE "pick"=174;<|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, "college" text ); Question: Which Position has a Pick of 174? <|assistant|> SELECT "position" FROM "nfl_draft" WHERE "pick"=174;<|endoftext|>
<|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"=1964;<|endoftext|>
<|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|> SELECT "event" FROM "achievements" WHERE "venue"='toronto, canada';<|endoftext|>
<|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? <|assistant|> SELECT SUM("year") FROM "achievements" WHERE "competition"='british empire and commonwealth games';<|endoftext|>
<|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 "achievements" WHERE "competition"='commonwealth games';<|endoftext|>
<|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 "achievements" WHERE "year"=1964;<|endoftext|>
<|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 santos, brazil <|assistant|> SELECT "date" FROM "singles_finals_19_8_11" WHERE "surface"='clay' AND "location"='santos, brazil';<|endoftext|>
<|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–6 6–2 7–6 (7–4) <|assistant|> SELECT "date" FROM "singles_finals_19_8_11" WHERE "outcome"='winner' AND "score"='4–6 6–2 7–6 (7–4)';<|endoftext|>
<|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|> SELECT MAX("capacity") FROM "teams_and_venues" WHERE "position_in_2004"='5';<|endoftext|>
<|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 "venue" FROM "teams_and_venues" WHERE "capacity">'41,040' AND "team"='darida';<|endoftext|>
<|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_and_venues" WHERE "position_in_2004"='9';<|endoftext|>
<|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 "founded"=1857;<|endoftext|>
<|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|> SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "time"='2:31';<|endoftext|>
<|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:28? <|assistant|> SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "time"='0:28';<|endoftext|>
<|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? <|assistant|> SELECT "time" FROM "mixed_martial_arts_record" WHERE "event"='call to arms i';<|endoftext|>
<|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';<|endoftext|>
<|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 Longview? <|assistant|> SELECT MIN("frequency_k_hz") FROM "am_stations" WHERE "licensed_location"='longview';<|endoftext|>
<|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? <|assistant|> SELECT "licensed_location" FROM "am_stations" WHERE "frequency_k_hz">1370;<|endoftext|>
<|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("capacity") FROM "teams_and_venues" WHERE "venue"='yunost';<|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 is the total number of first prizes in USD for the Canadian Open? <|assistant|> SELECT SUM("1st_prize") FROM "tournament_results" WHERE "tournament"='canadian open';<|endoftext|>
<|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_bonus" text, "points" text ); Question: Which Drawn has a Lost of 19? <|assistant|> SELECT "drawn" FROM "2011_2012_table" WHERE "lost"='19';<|endoftext|>
<|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_bonus" text, "points" text ); Question: Which Played has a Club of club? <|assistant|> SELECT "played" FROM "2011_2012_table" WHERE "club"='club';<|endoftext|>
<|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_bonus" text, "points" text ); Question: Which Club has 1 Losing bonus? <|assistant|> SELECT "club" FROM "2011_2012_table" WHERE "losing_bonus"='1';<|endoftext|>
<|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_bonus" text, "points" text ); Question: What is the Losing bonus of 571 Points ? <|assistant|> SELECT "losing_bonus" FROM "2011_2012_table" WHERE "points_for"='571';<|endoftext|>
<|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_bonus" text, "points" text ); Question: Which Lost has a Tries for of 75? <|assistant|> SELECT "lost" FROM "2011_2012_table" WHERE "tries_for"='75';<|endoftext|>
<|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 February 2006? <|assistant|> SELECT "opponent_in_the_final" FROM "singles_12_3_9" WHERE "date"='19 february 2006';<|endoftext|>
<|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 March 2006? <|assistant|> SELECT "opponent_in_the_final" FROM "singles_12_3_9" WHERE "date"='26 march 2006';<|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 overall number of the player from Utah with a pick # higher than 7? <|assistant|> SELECT SUM("overall") FROM "atlanta_falcons_draft_history" WHERE "college"='utah' AND "pick_num"<7;<|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 highest round of the player with a pick number lower than 34? <|assistant|> SELECT MAX("round") FROM "atlanta_falcons_draft_history" WHERE "pick_num">34;<|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 round did Mitch Davis, with an overall higher than 118, have? <|assistant|> SELECT SUM("round") FROM "atlanta_falcons_draft_history" WHERE "name"='mitch davis' AND "overall"<118;<|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 highest overall of the player from Georgia? <|assistant|> SELECT MAX("overall") FROM "atlanta_falcons_draft_history" WHERE "college"='georgia';<|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 position of the player with an overall of 45? <|assistant|> SELECT "position" FROM "atlanta_falcons_draft_history" WHERE "overall"=45;<|endoftext|>
<|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") FROM "motorcycle_grand_prix_results" WHERE "team"='nsu' AND "points">2;<|endoftext|>
<|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("year") FROM "motorcycle_grand_prix_results" WHERE "wins"<0;<|endoftext|>
<|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|> SELECT SUM("wins") FROM "motorcycle_grand_prix_results" WHERE "team"='mv agusta' AND "points">10 AND "year">1957;<|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/Junior/Club Team (League) has a round of 3? <|assistant|> SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "round"=3;<|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 player has a round larger than 1 in Austria? <|assistant|> SELECT "player" FROM "draft_picks" WHERE "round">1 AND "nationality"='austria';<|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 player's nationality is from Sweden? <|assistant|> SELECT "player" FROM "draft_picks" WHERE "nationality"='sweden';<|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/Junior/Club Team (League) from Canada has a round smaller than 3? <|assistant|> SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "nationality"='canada' AND "round"<3;<|endoftext|>
<|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 "men_kayak" WHERE "year"=1997;<|endoftext|>
<|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 in the final on January 5, 2003, on a hard surface? <|assistant|> SELECT "opponents_in_the_final" FROM "doubles_19_12_titles_7_runners_up" WHERE "surface"='hard' AND "date"='january 5, 2003';<|endoftext|>
<|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 score on the February 19, 2012 final? <|assistant|> SELECT "score_in_the_final" FROM "doubles_19_12_titles_7_runners_up" WHERE "date"='february 19, 2012';<|endoftext|>
<|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|> SELECT MIN("attendance_away") FROM "conference_national" WHERE "venue"='away' AND "date"='24 august 2007';<|endoftext|>
<|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 <|assistant|> SELECT AVG("attendance_away") FROM "conference_national" WHERE "result"='won 2-0' AND "date"='2 november 2007';<|endoftext|>
<|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 is Wiltshire? <|assistant|> SELECT MIN("uninum") FROM "player_roster" WHERE "surname"='wiltshire';<|endoftext|>
<|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 & johnson 156,515.9, what is the fourth quarter? <|assistant|> SELECT "fourth_quarter" FROM "2009" WHERE "rank">3 AND "second_quarter"='johnson & johnson 156,515.9';<|endoftext|>
<|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 "second_quarter" FROM "2009" WHERE "rank"=2;<|endoftext|>
<|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? <|assistant|> SELECT "rank" FROM "2009" WHERE "third_quarter"='china mobile 195,680.4';<|endoftext|>
<|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? <|assistant|> SELECT "rank" FROM "2009" WHERE "first_quarter"='procter & gamble 138,013';<|endoftext|>
<|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 341,140.3, what is the fourth quarter? <|assistant|> SELECT "fourth_quarter" FROM "2009" WHERE "rank"<4 AND "second_quarter"='exxon mobil 341,140.3';<|endoftext|>
<|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 ); Question: What is the Term end that has a Party of united australia and 184 days in office? <|assistant|> SELECT "term_end" FROM "list_of_ministers_for_the_interior" WHERE "party"='united australia' AND "term_in_office"='184 days';<|endoftext|>
<|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 average above 17.5? <|assistant|> SELECT COUNT("int_s") FROM "defensive" WHERE "yards">0 AND "sacks">6 AND "average">17.5;<|endoftext|>
<|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("average") FROM "defensive" WHERE "yards"=23;<|endoftext|>
<|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|> SELECT MIN("int_s") FROM "defensive" WHERE "average">25;<|endoftext|>
<|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|> SELECT MAX("yards") FROM "defensive" WHERE "sacks"=2 AND "average">0;<|endoftext|>
<|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 sacks? <|assistant|> SELECT SUM("int_s") FROM "defensive" WHERE "yards"=0 AND "sacks"<3 AND "player"='mossy cade';<|endoftext|>
<|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|> SELECT "bronze" FROM "individual" WHERE "location"='bangkok' AND "year"=1978;<|endoftext|>
<|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("year") FROM "individual" WHERE "silver"='kim kyung-ho';<|endoftext|>
<|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 "individual" WHERE "bronze"='kim sun-bin';<|endoftext|>
<|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 "individual" WHERE "gold"='kim woo-jin';<|endoftext|>
<|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|> SELECT MAX("year") FROM "individual" WHERE "bronze"='wataru haraguchi';<|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, "record" text ); Question: What was the score when their record was 35–23–15? <|assistant|> SELECT "score" FROM "march" WHERE "record"='35–23–15';<|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, "record" text ); Question: Which home team has a score of 5 – 6? <|assistant|> SELECT "home" FROM "march" WHERE "score"='5 – 6';<|endoftext|>
<|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_conference" text ); Question: In what county is the school of Merrillville? <|assistant|> SELECT "county" FROM "current_members" WHERE "school"='merrillville';<|endoftext|>
<|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_conference" text ); Question: The school of Portage was in what conference previous? <|assistant|> SELECT "previous_conference" FROM "current_members" WHERE "school"='portage';<|endoftext|>
<|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_conference" text ); Question: What is the name of the school that is in Valparaiso? <|assistant|> SELECT "school" FROM "current_members" WHERE "location"='valparaiso';<|endoftext|>
<|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 masuri, and a Total larger than 0? <|assistant|> SELECT MAX("fa_cup") FROM "scorers" WHERE "malaysia_cup"=0 AND "player"='ahmad fouzee masuri' AND "total">0;<|endoftext|>
<|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? <|assistant|> SELECT COUNT("total") FROM "scorers" WHERE "player"='ahmad fouzee masuri' AND "fa_cup">0;<|endoftext|>
<|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|> SELECT AVG("fa_cup") FROM "scorers" WHERE "player"='khairan ezuan razali' AND "total"<0;<|endoftext|>
<|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 League smaller than 2? <|assistant|> SELECT COUNT("malaysia_cup") FROM "scorers" WHERE "total">3 AND "player"='ivan yusoff' AND "league"<2;<|endoftext|>
<|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("fa_cup") FROM "scorers" WHERE "malaysia_cup">0 AND "total"=8;<|endoftext|>