text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "biggest_wins" ( "margin" real, "score" text, "opponent" text, "venue" text, "year" real ); Question: Name the sum of year for penrith panthers opponent <|assistant|> SELECT SUM("year") FROM "biggest_wins" WHERE "opponent"='penrith panthers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "biggest_wins" ( "margin" real, "score" text, "opponent" text, "venue" text, "year" real ); Question: Name the opponent for 1996 at the mt smart stadium venue <|assistant|> SELECT "opponent" FROM "biggest_wins" WHERE "venue"='mt smart stadium' AND "year"=1996;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "biggest_wins" ( "margin" real, "score" text, "opponent" text, "venue" text, "year" real ); Question: Name the average year for 46 margin <|assistant|> SELECT AVG("year") FROM "biggest_wins" WHERE "margin"=46;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "biggest_wins" ( "margin" real, "score" text, "opponent" text, "venue" text, "year" real ); Question: Name the margin for 2002 <|assistant|> SELECT "margin" FROM "biggest_wins" WHERE "year"=2002;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who participated in the Mixed Doubles when Tracey Hallam participated in the Women's Singles? <|assistant|> SELECT "mixed_doubles" FROM "past_winners" WHERE "women_s_singles"='tracey hallam';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who participated in the Mixed Doubles when Simon Santoso participated in the Men's Singles after 2008? <|assistant|> SELECT "mixed_doubles" FROM "past_winners" WHERE "men_s_singles"='simon santoso' AND "year">2008;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "private_schools" ( "school" text, "grades" text, "affiliation" text, "student_body" text, "enrollment" real ); Question: Which Affiliation has an Enrollement larger than 502? <|assistant|> SELECT "affiliation" FROM "private_schools" WHERE "enrollment">502;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "private_schools" ( "school" text, "grades" text, "affiliation" text, "student_body" text, "enrollment" real ); Question: What School has an Enrollement smaller than 301? <|assistant|> SELECT "school" FROM "private_schools" WHERE "enrollment"<301;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "private_schools" ( "school" text, "grades" text, "affiliation" text, "student_body" text, "enrollment" real ); Question: Which Grades has an Enrollment larger htan 443 with a Student body of Co-ed? <|assistant|> SELECT "grades" FROM "private_schools" WHERE "enrollment">443 AND "student_body"='co-ed';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "private_schools" ( "school" text, "grades" text, "affiliation" text, "student_body" text, "enrollment" real ); Question: What's the Student Body with an Affiliation of Roman Catholic and has an Enrollment of 502? <|assistant|> SELECT "student_body" FROM "private_schools" WHERE "affiliation"='roman catholic' AND "enrollment"=502;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_tour_finishers" ( "rider" text, "year" real, "final_position_giro" real, "final_position_tour" real, "final_position_vuelta" real ); Question: What is the average year that has a final Tour position of 54 and a final Vuelta position over 55? <|assistant|> SELECT AVG("year") FROM "grand_tour_finishers" WHERE "final_position_tour"=54 AND "final_position_vuelta">55;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_tour_finishers" ( "rider" text, "year" real, "final_position_giro" real, "final_position_tour" real, "final_position_vuelta" real ); Question: What is the final Vuelta position associated with a final Giro position over 39 and a final Tour position of 90? <|assistant|> SELECT "final_position_vuelta" FROM "grand_tour_finishers" WHERE "final_position_giro">39 AND "final_position_tour"=90;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_tour_finishers" ( "rider" text, "year" real, "final_position_giro" real, "final_position_tour" real, "final_position_vuelta" real ); Question: How many Giro positions are associated with the year 1971 and Tour final positions over 50? <|assistant|> SELECT COUNT("final_position_giro") FROM "grand_tour_finishers" WHERE "year"=1971 AND "final_position_tour">50;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: How many laps did the rider Alex Baldolini take? <|assistant|> SELECT SUM("laps") FROM "250cc_classification" WHERE "rider"='alex baldolini';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: How many laps were completed in the time of +7.213 with a grid number larger than 7? <|assistant|> SELECT COUNT("laps") FROM "250cc_classification" WHERE "time_retired"='+7.213' AND "grid">7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: What is total number of laps for bikes manufactured by KTM with a time of +3.578 and a grid number larger than 4? <|assistant|> SELECT COUNT("laps") FROM "250cc_classification" WHERE "manufacturer"='ktm' AND "time_retired"='+3.578' AND "grid">4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atp_challenger_tour_and_itf_futures_doub" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What was the surface for the May 10, 2009 tournament? <|assistant|> SELECT "surface" FROM "atp_challenger_tour_and_itf_futures_doub" WHERE "date"='may 10, 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "class" text, "tyres" text, "team" text, "co_drivers" text, "laps" real, "pos" text, "class_pos" text ); Question: Which co-driver has fewer than 282 laps and type P tyres? <|assistant|> SELECT "co_drivers" FROM "24_hours_of_le_mans_results" WHERE "laps"<282 AND "tyres"='p';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "class" text, "tyres" text, "team" text, "co_drivers" text, "laps" real, "pos" text, "class_pos" text ); Question: Which class more recent than 1988 has G tyres? <|assistant|> SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "tyres"='g' AND "year">1988;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "internationally_capped_players" ( "player" text, "country" text, "caps" real, "goals" text, "years_active" text, "years_at_club" text ); Question: What is the greatest number of caps for Bruce Djite? <|assistant|> SELECT MAX("caps") FROM "internationally_capped_players" WHERE "player"='bruce djite';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "internationally_capped_players" ( "player" text, "country" text, "caps" real, "goals" text, "years_active" text, "years_at_club" text ); Question: How many goals were scored by Eugene Galeković? <|assistant|> SELECT "goals" FROM "internationally_capped_players" WHERE "player"='eugene galeković';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "internationally_capped_players" ( "player" text, "country" text, "caps" real, "goals" text, "years_active" text, "years_at_club" text ); Question: How many goals were scored by players with more than 16 caps? <|assistant|> SELECT "goals" FROM "internationally_capped_players" WHERE "caps">16;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the highest place of a swimmer from the Netherlands? <|assistant|> SELECT MAX("rank") FROM "semifinal_2" WHERE "nationality"='netherlands';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "waikato_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" text, "roll" real ); Question: Name the authority for te akau with roll less than 254 and decile of 8 <|assistant|> SELECT "authority" FROM "waikato_district" WHERE "roll"<254 AND "decile"='8' AND "area"='te akau';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "waikato_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" text, "roll" real ); Question: Tell me the name with decile of 6 and roll of 93 <|assistant|> SELECT "name" FROM "waikato_district" WHERE "decile"='6' AND "roll"=93;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the result of the match on January 26, 2006? <|assistant|> SELECT "result" FROM "international_goals" WHERE "date"='january 26, 2006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "specifications" ( "model" text, "launch_year" real, "ram_mi_b" real, "rom_mi_b" real, "slots" text, "wi_fi" text, "bluetooth" text ); Question: What was the status of Bluetooth for the model that launched after 2004 with a ROM (MiB) of 128 and a Wifi of 802.11b? <|assistant|> SELECT "bluetooth" FROM "specifications" WHERE "launch_year">2004 AND "rom_mi_b"=128 AND "wi_fi"='802.11b';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "specifications" ( "model" text, "launch_year" real, "ram_mi_b" real, "rom_mi_b" real, "slots" text, "wi_fi" text, "bluetooth" text ); Question: What is the RAM (MiB) value for the X30 Mid-Range model? <|assistant|> SELECT "ram_mi_b" FROM "specifications" WHERE "model"='x30 mid-range';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "season" text, "games" real, "lost" real, "tied" text, "points" real, "goals_for" real, "goals_against" real, "standing" text ); Question: How many points did the team with more than 68 games, 4 ties, and more than 272 goals against have? <|assistant|> SELECT SUM("points") FROM "regular_season" WHERE "games">68 AND "tied"='4' AND "goals_against">272;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "short_course_25_meter_pool" ( "event" text, "time" text, "venue" text, "date" text, "notes" text ); Question: Which event had the time 45.74? <|assistant|> SELECT "event" FROM "short_course_25_meter_pool" WHERE "time"='45.74';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "short_course_25_meter_pool" ( "event" text, "time" text, "venue" text, "date" text, "notes" text ); Question: What was the time of December 15, 2010? <|assistant|> SELECT "time" FROM "short_course_25_meter_pool" WHERE "date"='december 15, 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "short_course_25_meter_pool" ( "event" text, "time" text, "venue" text, "date" text, "notes" text ); Question: What were the notes for the time 45.74? <|assistant|> SELECT "notes" FROM "short_course_25_meter_pool" WHERE "time"='45.74';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_squad_statistics" ( "player" text, "position" text, "previous_club" text, "apps" real, "tries" real, "goals" text, "points" real ); Question: What Player has 23 Tries? <|assistant|> SELECT "player" FROM "2008_squad_statistics" WHERE "tries"=23;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_squad_statistics" ( "player" text, "position" text, "previous_club" text, "apps" real, "tries" real, "goals" text, "points" real ); Question: How many Goals did Matt Cook have? <|assistant|> SELECT "goals" FROM "2008_squad_statistics" WHERE "player"='matt cook';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_squad_statistics" ( "player" text, "position" text, "previous_club" text, "apps" real, "tries" real, "goals" text, "points" real ); Question: What Full Back Player has 0 Apps? <|assistant|> SELECT "player" FROM "2008_squad_statistics" WHERE "position"='full back' AND "apps"=0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_squad_statistics" ( "player" text, "position" text, "previous_club" text, "apps" real, "tries" real, "goals" text, "points" real ); Question: With 0 Goals and less than 1 Tries, what is Matt James position? <|assistant|> SELECT "position" FROM "2008_squad_statistics" WHERE "goals"='0' AND "tries"<1 AND "player"='matt james';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january_secondary_phase" ( "round" real, "name" text, "position" text, "school" text, "signed" text ); Question: What is the earliest round drafted for a University of Southern California player? <|assistant|> SELECT MIN("round") FROM "january_secondary_phase" WHERE "school"='university of southern california';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january_secondary_phase" ( "round" real, "name" text, "position" text, "school" text, "signed" text ); Question: What round drafted was the 1b and a Signed of no cardinals - 1969 june? <|assistant|> SELECT COUNT("round") FROM "january_secondary_phase" WHERE "position"='1b' AND "signed"='no cardinals - 1969 june';<|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, "location" text ); Question: Which event has an Opponent of akihiro gono, and a Method of decision? <|assistant|> SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='akihiro gono' AND "method"='decision';<|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, "location" text ); Question: Which location has an Opponent of masanori suda? <|assistant|> SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='masanori suda';<|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, "location" text ); Question: Which opponent has a Time of 1:34? <|assistant|> SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "time"='1:34';<|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, "location" text ); Question: Which event resulted in loss with an Opponent of maurice smith? <|assistant|> SELECT "event" FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "opponent"='maurice smith';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "changes_in_medal_standings" ( "sport" text, "event" text, "nation" text, "gold" text, "silver" text, "bronze" text, "total" text ); Question: What is the winner of gold that also has ↓ 1 in the sport of cycling? <|assistant|> SELECT "gold" FROM "changes_in_medal_standings" WHERE "bronze"='↓ 1' AND "sport"='cycling';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "pos" text, "class_pos" text ); Question: What is the most recent year that Gulf Racing Middle East won? <|assistant|> SELECT MAX("year") FROM "complete_24_hours_of_le_mans_results" WHERE "team"='gulf racing middle east';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "pos" text, "class_pos" text ); Question: What is the class of the co-driver emanuele pirro jj lehto? <|assistant|> SELECT "class" FROM "complete_24_hours_of_le_mans_results" WHERE "co_drivers"='emanuele pirro jj lehto';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "pos" text, "class_pos" text ); Question: What was the final position of Arena Motorsports International? <|assistant|> SELECT "pos" FROM "complete_24_hours_of_le_mans_results" WHERE "team"='arena motorsports international';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "pos" text, "class_pos" text ); Question: Who was the Co-Driver of the winner of 1992's race? <|assistant|> SELECT "co_drivers" FROM "complete_24_hours_of_le_mans_results" WHERE "year"=1992;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_3_titles_2_runner_ups" ( "outcome" text, "date" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What is the score in the final with runner-up as the outcome and hard (i) as the surface? <|assistant|> SELECT "score_in_the_final" FROM "singles_5_3_titles_2_runner_ups" WHERE "outcome"='runner-up' AND "surface"='hard (i)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: Who is team 1 when 2nd leg score is 1-3 and Asec Mimosas is Team 2? <|assistant|> SELECT "team_1" FROM "second_round" WHERE "2nd_leg"='1-3' AND "team_2"='asec mimosas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the 1st leg score when 2nd leg score is 3-3? <|assistant|> SELECT "1st_leg" FROM "second_round" WHERE "2nd_leg"='3-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the 1st leg score when US Mbila Nzambi is team 1? <|assistant|> SELECT "1st_leg" FROM "second_round" WHERE "team_1"='us mbila nzambi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: Who was the opponent on May 20? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "date"='may 20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: Who took the loss on May 25? <|assistant|> SELECT "loss" FROM "game_log" WHERE "date"='may 25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What was the record after the game that ended in a 2-3 loss? <|assistant|> SELECT "record" FROM "game_log" WHERE "score"='2-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What was the date of the game that had a loss of Politte (0-2)? <|assistant|> SELECT "date" FROM "game_log" WHERE "loss"='politte (0-2)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: Who was the opponent at the game that had a loss of Hendrickson (0-1)? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "loss"='hendrickson (0-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" real, "record" text ); Question: What was the smallest attendance at a game when the record was 7-15? <|assistant|> SELECT MIN("attendance") FROM "game_log" WHERE "record"='7-15';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What was the average attendance at a game when the record was 6-13? <|assistant|> SELECT AVG("attendance") FROM "game_log" WHERE "record"='6-13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "principle" ( "group" real, "half_life_s" real, "decay_constant_s_1" real, "yield_neutrons_per_fission" real, "fraction" real ); Question: What is the yield, neutrons per fission of the group with decay constants less than 0.301, a half-life of 22.72, and a group number larger than 2? <|assistant|> SELECT SUM("yield_neutrons_per_fission") FROM "principle" WHERE "decay_constant_s_1"<0.301 AND "half_life_s"=22.72 AND "group">2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "principle" ( "group" real, "half_life_s" real, "decay_constant_s_1" real, "yield_neutrons_per_fission" real, "fraction" real ); Question: What is the decay constant with a half-life less than 22.72, a yield, neutrons per fission of 0.0031000000000000003, and a group number less than 3? <|assistant|> SELECT COUNT("decay_constant_s_1") FROM "principle" WHERE "half_life_s"<22.72 AND "yield_neutrons_per_fission"=0.0031000000000000003 AND "group"<3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "principle" ( "group" real, "half_life_s" real, "decay_constant_s_1" real, "yield_neutrons_per_fission" real, "fraction" real ); Question: What is the lowest half-life with a yield, neutrons per fission bigger than 0.0031000000000000003 and a decay constant less than 0.030500000000000003? <|assistant|> SELECT MIN("half_life_s") FROM "principle" WHERE "yield_neutrons_per_fission">0.0031000000000000003 AND "decay_constant_s_1"<0.030500000000000003;<|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: With Round 3 and Pick # over 10, what is the higher Overall number? <|assistant|> SELECT MAX("overall") FROM "indianapolis_colts_draft_history" WHERE "round"=3 AND "pick_num">10;<|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 highest round for College of Nebraska if the Overall is under 190? <|assistant|> SELECT MAX("round") FROM "indianapolis_colts_draft_history" WHERE "college"='nebraska' AND "overall"<190;<|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: Which college has a Pick # 1, Overall more than one, and Round is 7? <|assistant|> SELECT "college" FROM "indianapolis_colts_draft_history" WHERE "pick_num"=1 AND "overall">1 AND "round"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_premier_league" ( "date" text, "opponents" text, "result_f_a" text, "attendance" real, "league_position" text ); Question: What was the attendance on 21 August 2004? <|assistant|> SELECT SUM("attendance") FROM "fa_premier_league" WHERE "date"='21 august 2004';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: What is the average rank of an athlete that holds a time higher than 53.38? <|assistant|> SELECT AVG("rank") FROM "semifinal_2" WHERE "time">53.38;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: What lane did the swimmer with a time of 52.84 have? <|assistant|> SELECT MAX("lane") FROM "semifinal_2" WHERE "time"=52.84;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: What lane did the rank 3 swimmer use? <|assistant|> SELECT MAX("lane") FROM "semifinal_2" WHERE "rank"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: Which opponent played on July 15? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "date"='july 15';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What is the record for a game played on July 16 with attendance of more than 32,162? <|assistant|> SELECT "record" FROM "game_log" WHERE "attendance">'32,162' AND "date"='july 16';<|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: Where has Jimmy Demaret as a player? <|assistant|> SELECT "place" FROM "final_leaderboard" WHERE "player"='jimmy demaret';<|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: How much does it cost for United States and Byron nelson? <|assistant|> SELECT COUNT("money") FROM "final_leaderboard" WHERE "country"='united states' AND "player"='byron nelson';<|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: Which Country has a Place of t8 and byron nelson? <|assistant|> SELECT "country" FROM "final_leaderboard" WHERE "place"='t8' AND "player"='byron nelson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_japanese_prefectural_capitals" ( "capital" text, "prefecture" text, "region" text, "island" text, "pop" real ); Question: Name the average pop for chūgoku and prefecture of okayama <|assistant|> SELECT AVG("pop") FROM "list_of_japanese_prefectural_capitals" WHERE "region"='chūgoku' AND "prefecture"='okayama';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_japanese_prefectural_capitals" ( "capital" text, "prefecture" text, "region" text, "island" text, "pop" real ); Question: Name the highest pop for tottori <|assistant|> SELECT MAX("pop") FROM "list_of_japanese_prefectural_capitals" WHERE "prefecture"='tottori';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_japanese_prefectural_capitals" ( "capital" text, "prefecture" text, "region" text, "island" text, "pop" real ); Question: Name the sum of pop for shizuoka <|assistant|> SELECT SUM("pop") FROM "list_of_japanese_prefectural_capitals" WHERE "prefecture"='shizuoka';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_japanese_prefectural_capitals" ( "capital" text, "prefecture" text, "region" text, "island" text, "pop" real ); Question: Name the total number of pop for ibaraki <|assistant|> SELECT COUNT("pop") FROM "list_of_japanese_prefectural_capitals" WHERE "prefecture"='ibaraki';<|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_ihsaa_class" text, "joined" real, "previous_conference" text ); Question: Who is the mascot for Mishawaka? <|assistant|> SELECT "mascot" FROM "current_members" WHERE "location"='mishawaka';<|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_ihsaa_class" text, "joined" real, "previous_conference" text ); Question: Which previous conference is associated with Penn school? <|assistant|> SELECT "previous_conference" FROM "current_members" WHERE "school"='penn';<|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_ihsaa_class" text, "joined" real, "previous_conference" text ); Question: Which location is in 71 St. Joseph county with South Bend Washington school? <|assistant|> SELECT "location" FROM "current_members" WHERE "county"='71 st. joseph' AND "school"='south bend washington';<|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_ihsaa_class" text, "joined" real, "previous_conference" text ); Question: What is the mascot for South Bend Clay? <|assistant|> SELECT "mascot" FROM "current_members" WHERE "school"='south bend clay';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" text, "architect" text ); Question: What was the address of the building with architects Edmund Woolley and Andrew Hamilton? <|assistant|> SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "architect"='edmund woolley and andrew hamilton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" text, "architect" text ); Question: How many years as tallest building was the Tenth Presbyterian Church? <|assistant|> SELECT "years_as_tallest" FROM "timeline_of_tallest_buildings" WHERE "name"='tenth presbyterian church';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" text, "architect" text ); Question: How many years as tallest building was Independence Hall? <|assistant|> SELECT "years_as_tallest" FROM "timeline_of_tallest_buildings" WHERE "name"='independence hall';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" text, "architect" text ); Question: What is the height of the Tenth Presbyterian Church? <|assistant|> SELECT "height_ft_m" FROM "timeline_of_tallest_buildings" WHERE "name"='tenth presbyterian church';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: For the Loss of Plesac (1-5), what is the Record? <|assistant|> SELECT "record" FROM "game_log" WHERE "loss"='plesac (1-5)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: For the Loss of Plesac (1-5), what is the Record? <|assistant|> SELECT "record" FROM "game_log" WHERE "loss"='plesac (1-5)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Name the entrant for year less than 1990 and chassis of eurobrun er189 <|assistant|> SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "year"<1990 AND "chassis"='eurobrun er189';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Name the engine for years before 1990 and chassis of eurobrun er189 <|assistant|> SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "year"<1990 AND "chassis"='eurobrun er189';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "year" text, "games_played" real, "games_started" real, "attempts" real, "yards" real, "touchdowns" real, "receptions" real, "rec_yards" real, "rec_touchdowns" real, "fumbles" real ); Question: With games started smaller than 16 plus receptions of 51, what is the smallest amount of touchdowns listed? <|assistant|> SELECT MIN("touchdowns") FROM "statistics" WHERE "receptions"=51 AND "games_started"<16;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "year" text, "games_played" real, "games_started" real, "attempts" real, "yards" real, "touchdowns" real, "receptions" real, "rec_yards" real, "rec_touchdowns" real, "fumbles" real ); Question: What are the highest number of games played that had game starts of 10, receptions of 6 and fumbles smaller than 3? <|assistant|> SELECT MAX("games_played") FROM "statistics" WHERE "receptions"=6 AND "games_started"=10 AND "fumbles"<3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011" ( "date" text, "location" text, "nature_of_incident" text, "circumstances" text, "casualties" text ); Question: When was the location 15km NW of Pol-E Khomri, the circumstaances IED and the casualties of 1 WIA? <|assistant|> SELECT "date" FROM "2011" WHERE "casualties"='1 wia' AND "circumstances"='ied' AND "location"='15km nw of pol-e khomri';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011" ( "date" text, "location" text, "nature_of_incident" text, "circumstances" text, "casualties" text ); Question: When was the incident in Pol-E Khomri? <|assistant|> SELECT "date" FROM "2011" WHERE "location"='pol-e khomri';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011" ( "date" text, "location" text, "nature_of_incident" text, "circumstances" text, "casualties" text ); Question: What was the incident in imam sahib area, kunduz province? <|assistant|> SELECT "nature_of_incident" FROM "2011" WHERE "location"='imam sahib area, kunduz province';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_hostages" ( "romanized_name" text, "name_in_hangul" text, "name_in_hanja" text, "gender" text, "birth_year" real ); Question: What gender has Romanized name and kim yoon-yeong? <|assistant|> SELECT "gender" FROM "list_of_hostages" WHERE "romanized_name"='kim yoon-yeong';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_statistics" ( "year" real, "team" text, "games" real, "attempts" real, "yards" real ); Question: What year did Willis McGahee play fewer than 15 games with the Baltimore Ravens? <|assistant|> SELECT MIN("year") FROM "career_statistics" WHERE "team"='baltimore ravens' AND "games"<15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_statistics" ( "year" real, "team" text, "games" real, "attempts" real, "yards" real ); Question: After the 2013 season, what was the fewest number of games that Willis McGahee played in a single season? <|assistant|> SELECT MIN("games") FROM "career_statistics" WHERE "year">2013;<|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 result when the competition was the 2006 fifa world cup qualifier, and a Venue of warner park sporting complex, bassaterre? <|assistant|> SELECT "result" FROM "international_goals" WHERE "competition"='2006 fifa world cup qualifier' AND "venue"='warner park sporting complex, bassaterre';<|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 venue when the competition was friendly, with a Result of 2–3? <|assistant|> SELECT "venue" FROM "international_goals" WHERE "competition"='friendly' AND "result"='2–3';<|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 venue when the score was 5–0, and a Competition of 2007 caribbean cup qualifier? <|assistant|> SELECT "venue" FROM "international_goals" WHERE "score"='5–0' AND "competition"='2007 caribbean cup qualifier';<|endoftext|>