text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_15th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real ); Question: Which Agricultural Panel has a Nominated by the Taoiseach larger than 6, and a Total larger than 60? <|assistant|> SELECT SUM("agricultural_panel") FROM "composition_of_the_15th_seanad" WHERE "nominated_by_the_taoiseach">6 AND "total">60;<|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 Team 1 when Team 2 is Jac Port-Gentil? <|assistant|> SELECT "team_1" FROM "second_round" WHERE "team_2"='jac port-gentil';<|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 was Team 2 with a 2nd leg of 0-0? <|assistant|> SELECT "team_2" FROM "second_round" WHERE "2nd_leg"='0-0';<|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 of the Round that has a 2nd leg of 1-3 and Team 1 Es Tunis? <|assistant|> SELECT "1st_leg" FROM "second_round" WHERE "2nd_leg"='1-3' AND "team_1"='es tunis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sunshine_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is Winning Score, when Tournament is Joburg Open 1, and when Date is 17 Jan 2010? <|assistant|> SELECT "winning_score" FROM "sunshine_tour_wins_6" WHERE "tournament"='joburg open 1' AND "date"='17 jan 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sunshine_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is Date, when Tournament is Alfred Dunhill Championship 1? <|assistant|> SELECT "date" FROM "sunshine_tour_wins_6" WHERE "tournament"='alfred dunhill championship 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sunshine_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is Tournament, when Margin is Victory of 6 Strokes? <|assistant|> SELECT "tournament" FROM "sunshine_tour_wins_6" WHERE "margin_of_victory"='6 strokes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sunshine_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is Winning Score, when Date is 17 Jan 2010? <|assistant|> SELECT "winning_score" FROM "sunshine_tour_wins_6" WHERE "date"='17 jan 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sunshine_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is Tournament, when Runner(s)-Up is Garth Mulroy? <|assistant|> SELECT "tournament" FROM "sunshine_tour_wins_6" WHERE "runner_s_up"='garth mulroy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sunshine_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is Runner(s)-Up, when Margin of Victory is 1 Stroke, and when Tournament is Joburg Open 1? <|assistant|> SELECT "runner_s_up" FROM "sunshine_tour_wins_6" WHERE "margin_of_victory"='1 stroke' AND "tournament"='joburg open 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text ); Question: What is the points sum of the series with less than 0 poles? <|assistant|> SELECT SUM("points") FROM "career_summary" WHERE "poles"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text ); Question: What is the sum of the races in the 2007 season, which has more than 4 podiums? <|assistant|> SELECT SUM("races") FROM "career_summary" WHERE "podiums">4 AND "season"='2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text ); Question: What is the sum of the poles of Team la filière, which has less than 162 points? <|assistant|> SELECT SUM("poles") FROM "career_summary" WHERE "team"='la filière' AND "points"<162;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text ); Question: What is the average number of points in the 2012 season, which has less than 1 wins and less than 0 podiums? <|assistant|> SELECT AVG("points") FROM "career_summary" WHERE "wins"<1 AND "season"='2012' AND "podiums"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_class" ( "class" text, "season" text, "race" real, "podiums" real, "pole" real ); Question: How many poles had a moto2 class? <|assistant|> SELECT "pole" FROM "by_class" WHERE "class"='moto2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_7th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real ); Question: What is the sum of the Cultural and Educational Panels that have an Administrative Panel greater than 1, an Agricultural Panel of 11 and a University of Dublin smaller than 3? <|assistant|> SELECT SUM("cultural_and_educational_panel") FROM "composition_of_the_7th_seanad" WHERE "administrative_panel">1 AND "agricultural_panel"=11 AND "university_of_dublin"<3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_7th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real ); Question: What is the sum of Agricultural panels that have an Industrial and Commercial Panel smaller than 0? <|assistant|> SELECT SUM("agricultural_panel") FROM "composition_of_the_7th_seanad" WHERE "industrial_and_commercial_panel"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_7th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real ); Question: What is the lowest number of National University of Ireland that has a Cultural and Educational Panel of 0, and a Labour Panel smaller than 1? <|assistant|> SELECT MIN("national_university_of_ireland") FROM "composition_of_the_7th_seanad" WHERE "cultural_and_educational_panel"=0 AND "labour_panel"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_7th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real ); Question: What is the total of Industrial and Commercial Panels that have a Labour Panel greater than 1, a Nominated by the Taoiseach lesss than 11 and a Cultural and Educational Panel smaller than 0 <|assistant|> SELECT COUNT("industrial_and_commercial_panel") FROM "composition_of_the_7th_seanad" WHERE "labour_panel">1 AND "nominated_by_the_taoiseach"<11 AND "cultural_and_educational_panel"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players" ( "player" text, "position" text, "gp_gs" text, "minutes" real, "goals" real, "assists" real ); Question: What was the highest number of goals when 2428 minutes were played? <|assistant|> SELECT MAX("goals") FROM "players" WHERE "minutes"=2428;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players" ( "player" text, "position" text, "gp_gs" text, "minutes" real, "goals" real, "assists" real ); Question: What is the number of minutes when there are more than 4 goals and 3 assists? <|assistant|> SELECT "minutes" FROM "players" WHERE "goals">4 AND "assists"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players" ( "player" text, "position" text, "gp_gs" text, "minutes" real, "goals" real, "assists" real ); Question: What is the total number of assists when Edmundo Rodriguez is playing the position of striker, less than 4 goals were scored, and the minutes were less than 473? <|assistant|> SELECT COUNT("assists") FROM "players" WHERE "position"='striker' AND "goals"<4 AND "player"='edmundo rodriguez' AND "minutes"<473;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "fcc_info" text ); Question: What is the least ERP W when the freguency MHz is 89.3 fm? <|assistant|> SELECT MIN("erp_w") FROM "translators" WHERE "frequency_m_hz"='89.3 fm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "fcc_info" text ); Question: Call sign k216fo has what average ERP W? <|assistant|> SELECT AVG("erp_w") FROM "translators" WHERE "call_sign"='k216fo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "fcc_info" text ); Question: What city does call sign K248am have its license in? <|assistant|> SELECT "city_of_license" FROM "translators" WHERE "call_sign"='k248am';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "fcc_info" text ); Question: What call sign has ERP W greater than 197? <|assistant|> SELECT "call_sign" FROM "translators" WHERE "erp_w">197;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: How many points did Costa score in the Macau Grand Prix since 2011? <|assistant|> SELECT "points" FROM "career_summary" WHERE "season">2011 AND "series"='macau grand prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: Which teams had the 1st position and entered 1 race? <|assistant|> SELECT "team" FROM "career_summary" WHERE "races"='1' AND "position"='1st';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: How many points did Carlin have when they had 3 wins? <|assistant|> SELECT "points" FROM "career_summary" WHERE "wins"='3' AND "team"='carlin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many Points have an Against smaller than 43, and a Position smaller than 1? <|assistant|> SELECT SUM("points") FROM "laf_s_campeonato_paulista" WHERE "against"<43 AND "position"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many Drawn have a Position of 7, and Points larger than 18? <|assistant|> SELECT COUNT("drawn") FROM "laf_s_campeonato_paulista" WHERE "position"=7 AND "points">18;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many Against have a Team of hespanha, and Points smaller than 30? <|assistant|> SELECT COUNT("against") FROM "laf_s_campeonato_paulista" WHERE "team"='hespanha' AND "points"<30;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which Points is the average one that has Drawn of 3, and a Played smaller than 22? <|assistant|> SELECT AVG("points") FROM "laf_s_campeonato_paulista" WHERE "drawn"=3 AND "played"<22;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How much Played has an Against larger than 37, and a Lost of 15, and Points smaller than 11? <|assistant|> SELECT SUM("played") FROM "laf_s_campeonato_paulista" WHERE "against">37 AND "lost"=15 AND "points"<11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "spoofed_title" text, "actual_title" text, "writer" text, "artist" text, "issue" real, "date" text ); Question: Which artist has the Spoofed title Miscue 911? <|assistant|> SELECT "artist" FROM "1990s" WHERE "spoofed_title"='miscue 911';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "spoofed_title" text, "actual_title" text, "writer" text, "artist" text, "issue" real, "date" text ); Question: Which Spoofed title is from February 1998? <|assistant|> SELECT "spoofed_title" FROM "1990s" WHERE "date"='february 1998';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "spoofed_title" text, "actual_title" text, "writer" text, "artist" text, "issue" real, "date" text ); Question: Which artist has a Spoofed title in June 1992? <|assistant|> SELECT "artist" FROM "1990s" WHERE "date"='june 1992';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: What was the average number of laps completed by KTM riders, with times of +56.440 and grid values under 11? <|assistant|> SELECT AVG("laps") FROM "125cc_classification" WHERE "manufacturer"='ktm' AND "time_retired"='+56.440' AND "grid"<11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: What was the highest grid value for riders with manufacturer of Aprilia and time of +1.660? <|assistant|> SELECT MAX("grid") FROM "125cc_classification" WHERE "manufacturer"='aprilia' AND "time_retired"='+1.660';<|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: What Round against Aleksander Emelianenko had a time of 5:00? <|assistant|> SELECT "round" FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "opponent"='aleksander emelianenko';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_games" ( "season" real, "date" text, "venue" text, "city" text, "visitor" text, "score" text, "home" text, "attendance" real ); Question: In 1958, what has the IRFU All-Stars Home Venue? <|assistant|> SELECT "venue" FROM "list_of_games" WHERE "home"='irfu all-stars' AND "season"=1958;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_games" ( "season" real, "date" text, "venue" text, "city" text, "visitor" text, "score" text, "home" text, "attendance" real ); Question: On what Date was the Venue at Exhibition Stadium? <|assistant|> SELECT "date" FROM "list_of_games" WHERE "venue"='exhibition stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_games" ( "season" real, "date" text, "venue" text, "city" text, "visitor" text, "score" text, "home" text, "attendance" real ); Question: Before 1957, what was the largest in Attendance at Varsity Stadium? <|assistant|> SELECT MAX("attendance") FROM "list_of_games" WHERE "season"<1957 AND "venue"='varsity stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text ); Question: What is the Time with a Score that is 65-19? <|assistant|> SELECT "time" FROM "round_three" WHERE "score"='65-19';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text ); Question: What is the Time with an Away that is broadview hawks? <|assistant|> SELECT "time" FROM "round_three" WHERE "away"='broadview hawks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which Position has an Against of 32, and a Difference of 18, and a Drawn larger than 4? <|assistant|> SELECT SUM("position") FROM "campeonato_paulista" WHERE "against"=32 AND "difference"='18' AND "drawn">4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which Position has an Against smaller than 49, and a Drawn of 4? <|assistant|> SELECT MAX("position") FROM "campeonato_paulista" WHERE "against"<49 AND "drawn"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which Played has a Drawn of 5, and a Team of palmeiras, and a Position smaller than 6? <|assistant|> SELECT MAX("played") FROM "campeonato_paulista" WHERE "drawn"=5 AND "team"='palmeiras' AND "position"<6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What team played on November 17? <|assistant|> SELECT "team" FROM "game_log" WHERE "date"='november 17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "post_season" ( "year" text, "team" text, "comp" text, "long" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text, "lost" text ); Question: What is the comp when the ryds is 2? <|assistant|> SELECT "comp" FROM "post_season" WHERE "r_yds"='2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "post_season" ( "year" text, "team" text, "comp" text, "long" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text, "lost" text ); Question: What is the RAtt when the comp is 48? <|assistant|> SELECT "r_att" FROM "post_season" WHERE "comp"='48';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "post_season" ( "year" text, "team" text, "comp" text, "long" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text, "lost" text ); Question: What is the RAtt when the long is 73? <|assistant|> SELECT "r_att" FROM "post_season" WHERE "long"='73';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "post_season" ( "year" text, "team" text, "comp" text, "long" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text, "lost" text ); Question: What is the RYds when the RAtt was 2, and the comp is 41? <|assistant|> SELECT "r_yds" FROM "post_season" WHERE "r_att"='2' AND "comp"='41';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "post_season" ( "year" text, "team" text, "comp" text, "long" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text, "lost" text ); Question: What is the Long when the ryds is 18? <|assistant|> SELECT "long" FROM "post_season" WHERE "r_yds"='18';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "post_season" ( "year" text, "team" text, "comp" text, "long" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text, "lost" text ); Question: What is the RAvg when the ratt is 3? <|assistant|> SELECT "r_avg" FROM "post_season" WHERE "r_att"='3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Who was the Runner-up for the merrill lynch/golf digest commemorative pro-am tournament? <|assistant|> SELECT "runner_s_up" FROM "senior_pga_tour_wins_9" WHERE "tournament"='merrill lynch/golf digest commemorative pro-am';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the margin of victory when the winning score was –14 (70-68-67=205)? <|assistant|> SELECT "margin_of_victory" FROM "senior_pga_tour_wins_9" WHERE "winning_score"='–14 (70-68-67=205)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Who were the runner(s)-up when the winning score was –10 (69-68-74-67=278)? <|assistant|> SELECT "margin_of_victory" FROM "senior_pga_tour_wins_9" WHERE "winning_score"='–10 (69-68-74-67=278)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Who was the runner-up for the mazda senior tournament players championship tournament when the margin of victory was 2 strokes? <|assistant|> SELECT "runner_s_up" FROM "senior_pga_tour_wins_9" WHERE "margin_of_victory"='2 strokes' AND "tournament"='mazda senior tournament players championship';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "team_name_sponsored_name" text, "home_ground_a" text, "first_season" text, "last_title" text, "titles" real ); Question: When was the last title of the team with a home ground of Sydney cricket ground? <|assistant|> SELECT "last_title" FROM "teams" WHERE "home_ground_a"='sydney cricket ground';<|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 people were in attendance for the game week 15? <|assistant|> SELECT COUNT("attendance") FROM "schedule" WHERE "week"=15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the highest number of people in attendance in the game against the Buffalo Bills in a week later than 14? <|assistant|> SELECT MAX("attendance") FROM "schedule" WHERE "opponent"='buffalo bills' AND "week">14;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the average Week when there were more than 63,866 people in attendance on September 7, 1981? <|assistant|> SELECT AVG("week") FROM "schedule" WHERE "attendance">'63,866' AND "date"='september 7, 1981';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the average Attendance for the game on November 1, 1981? <|assistant|> SELECT AVG("attendance") FROM "schedule" WHERE "date"='november 1, 1981';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); Question: What position is played by the player from the Chicago Cubs? <|assistant|> SELECT "position" FROM "supplemental_first_round_selections" WHERE "team"='chicago cubs';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); Question: What is the name of the Outfielder that was picked prior to Pick 42? <|assistant|> SELECT "player" FROM "supplemental_first_round_selections" WHERE "position"='outfielder' AND "pick"<42;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "october" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text ); Question: What is the Week when anke huber chanda rubin shows for Semi finalists, and the Runner-up is meredith mcgrath larisa savchenko? <|assistant|> SELECT "week_of" FROM "october" WHERE "semi_finalists"='anke huber chanda rubin' AND "runner_up"='meredith mcgrath larisa savchenko';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "october" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text ); Question: What is the Semi finalists when the Runner-up was katrina adams zina garrison-jackson? <|assistant|> SELECT "semi_finalists" FROM "october" WHERE "runner_up"='katrina adams zina garrison-jackson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "october" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text ); Question: What is the Winner when anke huber chanda rubin was semi finalist? <|assistant|> SELECT "winner" FROM "october" WHERE "semi_finalists"='anke huber chanda rubin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "october" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text ); Question: What is the Tier when the runner-up is chanda rubin caroline vis? <|assistant|> SELECT "tier" FROM "october" WHERE "runner_up"='chanda rubin caroline vis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "october" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text ); Question: What is the Week when the winner was mary joe fernández 6–4, 7–5? <|assistant|> SELECT "week_of" FROM "october" WHERE "winner"='mary joe fernández 6–4, 7–5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "october" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text ); Question: What is the Runner-up with the tier was tier ii, and a Winner of gigi fernández natalia zvereva 5–7, 6–1, 6–4? <|assistant|> SELECT "runner_up" FROM "october" WHERE "tier"='tier ii' AND "winner"='gigi fernández natalia zvereva 5–7, 6–1, 6–4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performances" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" real, "result" text ); Question: Which week had safe as the result and Dolly Parton as the theme? <|assistant|> SELECT "week_num" FROM "performances" WHERE "result"='safe' AND "theme"='dolly parton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performances" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" real, "result" text ); Question: On which week was the beatles the original artist and the order # smaller than 10? <|assistant|> SELECT "week_num" FROM "performances" WHERE "original_artist"='the beatles' AND "order_num"<10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performances" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" real, "result" text ); Question: On which week was the result safe and the song choice " across the universe "? <|assistant|> SELECT "week_num" FROM "performances" WHERE "result"='safe' AND "song_choice"='\" across the universe \"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performances" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" real, "result" text ); Question: Which original artist had 5 as their order #? <|assistant|> SELECT "original_artist" FROM "performances" WHERE "order_num"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1997_broadway_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); Question: Which nominee was nominated in the Outstanding Director of a Musical category? <|assistant|> SELECT "nominee" FROM "1997_broadway_revival" WHERE "category"='outstanding director of a musical';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1997_broadway_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); Question: What is the result for Brent Spiner? <|assistant|> SELECT "result" FROM "1997_broadway_revival" WHERE "nominee"='brent spiner';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); Question: What is the number of games for Shaun Stonerook? <|assistant|> SELECT MIN("games") FROM "rebounds" WHERE "name"='shaun stonerook';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_leaders" ( "nation" text, "sport" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the highest total number of medals of the nation with less than 1 bronzes and less than 0 silver medals? <|assistant|> SELECT MAX("total") FROM "medal_leaders" WHERE "bronze"<1 AND "silver"<0;<|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: Total weeks of 49,980 attendance? <|assistant|> SELECT SUM("week") FROM "schedule" WHERE "attendance"='49,980';<|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: Mean attendance for December 22, 1980? <|assistant|> SELECT AVG("attendance") FROM "schedule" WHERE "date"='december 22, 1980';<|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: Overall attendance for week 4? <|assistant|> SELECT "attendance" FROM "schedule" WHERE "week"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text ); Question: What was in 2007 that has a 3r of 1999? <|assistant|> SELECT "2007" FROM "singles_performance_timeline" WHERE "1999"='3r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text ); Question: What was in 2007 that is from 2004 0f 2r and 2010 of A? <|assistant|> SELECT "2007" FROM "singles_performance_timeline" WHERE "2004"='2r' AND "2010"='a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text ); Question: What is in 2001, that has the year 2006, 2r, and in 2010 an A? <|assistant|> SELECT "2001" FROM "singles_performance_timeline" WHERE "2006"='2r' AND "2010"='a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "result" text, "category" text, "film" text ); Question: Who was awarded after 1947 in the category of, the best actor in a leading role? <|assistant|> SELECT "award" FROM "awards_and_nominations" WHERE "year">1947 AND "category"='best actor in a leading role';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "date" text, "result" text, "opponent" text, "location" text, "method" text, "round" real, "record" text ); Question: Which Opponent has a Method of tko, and a Location of elgin, illinois, usa on 2001-02-11? <|assistant|> SELECT "opponent" FROM "kickboxing_record" WHERE "method"='tko' AND "location"='elgin, illinois, usa' AND "date"='2001-02-11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "date" text, "result" text, "opponent" text, "location" text, "method" text, "round" real, "record" text ); Question: Which Round has a Location of auckland, new zealand, and a Method of tko on 1994-11-24? <|assistant|> SELECT AVG("round") FROM "kickboxing_record" WHERE "location"='auckland, new zealand' AND "method"='tko' AND "date"='1994-11-24';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "date" text, "result" text, "opponent" text, "location" text, "method" text, "round" real, "record" text ); Question: Which highest Round has a Result of loss? <|assistant|> SELECT MAX("round") FROM "kickboxing_record" WHERE "result"='loss';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "date" text, "result" text, "opponent" text, "location" text, "method" text, "round" real, "record" text ); Question: Which Location has a Method of decision? <|assistant|> SELECT "location" FROM "kickboxing_record" WHERE "method"='decision';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2010" text, "2011" text, "2012" text ); Question: What tournament has 1r as a 2004, and 1r as a 2007? <|assistant|> SELECT "tournament" FROM "grand_slam_singles_performance_timeline" WHERE "2004"='1r' AND "2007"='1r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2010" text, "2011" text, "2012" text ); Question: What 2012 has q2 as the 2010, and wimbledon as the tournament? <|assistant|> SELECT "2012" FROM "grand_slam_singles_performance_timeline" WHERE "2010"='q2' AND "tournament"='wimbledon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2010" text, "2011" text, "2012" text ); Question: What 2006 has grand slam tournaments of 2010? <|assistant|> SELECT "2006" FROM "grand_slam_singles_performance_timeline" WHERE "2010"='grand slam tournaments';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2010" text, "2011" text, "2012" text ); Question: What 2006 has grand slam tournaments of 2005? <|assistant|> SELECT "2006" FROM "grand_slam_singles_performance_timeline" WHERE "2005"='grand slam tournaments';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "2002" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2010" text, "2011" text, "2012" text ); Question: What 2006 has q2 as the 2007? <|assistant|> SELECT "2006" FROM "grand_slam_singles_performance_timeline" WHERE "2007"='q2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "season" text, "conference" text, "division" text, "finish" text, "wins" text, "losses" text, "winpct" text, "awards" text ); Question: What are the losses where the award is Mike Miller (Smoy)? <|assistant|> SELECT "losses" FROM "seasons" WHERE "awards"='mike miller (smoy)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "season" text, "conference" text, "division" text, "finish" text, "wins" text, "losses" text, "winpct" text, "awards" text ); Question: Where the wins are 46, what is the win%? <|assistant|> SELECT "winpct" FROM "seasons" WHERE "wins"='46';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "season" text, "conference" text, "division" text, "finish" text, "wins" text, "losses" text, "winpct" text, "awards" text ); Question: Where the Vancouver Grizzlies is the awards, what is the conference? <|assistant|> SELECT "conference" FROM "seasons" WHERE "awards"='vancouver grizzlies';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "elections_to_the_legislative_assembly_of" ( "party" text, "1985" real, "1987" real, "1990" real, "1995" real, "1999" real, "2003" real, "2007" real, "2011" real ); Question: What is the highest 1987 value with a 1995 value less than 1995 and a 1999 less than 9? <|assistant|> SELECT MAX("1987") FROM "elections_to_the_legislative_assembly_of" WHERE "1995"<1995 AND "1999"<9;<|endoftext|>