text
stringlengths 411
1.74k
|
---|
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "s_rebroadcaster_of_ckyl" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text );. Question: "what is the City of license that has a 1,400 watts Power". [/INST] SELECT "city_of_license" FROM "s_rebroadcaster_of_ckyl" WHERE "power"='1,400 watts';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rushing" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" real );. Question: "How much Loss has a Gain smaller than 1571, and a Long smaller than 47, and an Avg/G of 36.4?". [/INST] SELECT COUNT("loss") FROM "rushing" WHERE "gain"<1571 AND "long"<47 AND "avg_g"=36.4;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rushing" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" real );. Question: "Which Avg/G has a Name of david allen, and a Gain larger than 371?". [/INST] SELECT AVG("avg_g") FROM "rushing" WHERE "name"='david allen' AND "gain">371;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rushing" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" real );. Question: "Which Avg/G is the lowest one that has a Long smaller than 47, and a Name of frank murphy, and a Gain smaller than 569?". [/INST] SELECT MIN("avg_g") FROM "rushing" WHERE "long"<47 AND "name"='frank murphy' AND "gain"<569;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rushing" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" real );. Question: "How much Avg/G has a Gain smaller than 1571, and a Long smaller than 46?". [/INST] SELECT COUNT("avg_g") FROM "rushing" WHERE "gain"<1571 AND "long"<46;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2005" text );. Question: "Can you tell me the highest Capacity that has the Team of torpedo?". [/INST] SELECT MAX("capacity") FROM "teams_and_venues" WHERE "team"='torpedo';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2005" text );. Question: "Can you tell me the Capacity that has the Position in 2005 of 8?". [/INST] SELECT "capacity" FROM "teams_and_venues" WHERE "position_in_2005"='8';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2005" text );. Question: "Can you tell me the Venue that has the Position in 2005 of 8?". [/INST] SELECT "venue" FROM "teams_and_venues" WHERE "position_in_2005"='8';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_7_2_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );. Question: "Which tournament was held on October 14, 2007?". [/INST] SELECT "tournament" FROM "singles_7_2_5" WHERE "date"='october 14, 2007';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_7_2_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );. Question: "Who was the opponent with a score of 4-6, 7-5, 4-6?". [/INST] SELECT "opponent" FROM "singles_7_2_5" WHERE "score"='4-6, 7-5, 4-6';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_7_2_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );. Question: "What was the outcome when Jing-Jing Lu was the opponent?". [/INST] SELECT "outcome" FROM "singles_7_2_5" WHERE "opponent"='jing-jing lu';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "What week was the attendance smaller than 22,204 on December 8, 1962?". [/INST] SELECT SUM("week") FROM "season_schedule" WHERE "attendance"<'22,204' AND "date"='december 8, 1962';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "venue" text, "score" text, "result" text, "attendance" text, "record" text );. Question: "What is Opponent, when Result is Loss, and when Venue is Mosaic Stadium?". [/INST] SELECT "opponent" FROM "season_schedule" WHERE "result"='loss' AND "venue"='mosaic stadium';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_street_railways_in_canada" ( "name_of_system" text, "location" text, "traction_type" text, "date_from" text, "date_to" text );. Question: "What is the date (to) associated wiht a traction type of electric and the Yarmouth Light and Power Company system?". [/INST] SELECT "date_to" FROM "list_of_street_railways_in_canada" WHERE "traction_type"='electric' AND "name_of_system"='yarmouth light and power company';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is Name, when Overall is less than 175, and when College is "Georgia"?". [/INST] SELECT "name" FROM "washington_redskins_draft_history" WHERE "overall"<175 AND "college"='georgia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the highest Pick, when Round is greater than 15, and when College is "Tennessee"?". [/INST] SELECT MAX("pick") FROM "washington_redskins_draft_history" WHERE "round">15 AND "college"='tennessee';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is Pick, when Round is 15?". [/INST] SELECT "pick" FROM "washington_redskins_draft_history" WHERE "round"=15;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the sum of Overall, when Pick is greater than 5, when Round is less than 11, and when Name is "Tom Barrington"?". [/INST] SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "pick">5 AND "round"<11 AND "name"='tom barrington';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results" ( "season" real, "team_1" text, "score" text, "team_2" text, "venue" text );. Question: "Which venue was used for the game whose score was 2:3?". [/INST] SELECT "venue" FROM "results" WHERE "score"='2:3';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results" ( "season" real, "team_1" text, "score" text, "team_2" text, "venue" text );. Question: "What was the score for the game in which Al-Qadsia was Team 2?". [/INST] SELECT "score" FROM "results" WHERE "team_2"='al-qadsia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "t" ( "player" text, "nationality" text, "jersey_number_s" real, "position" text, "years" text, "from" text );. Question: "Who was the player that was from west virginia tech?". [/INST] SELECT "player" FROM "t" WHERE "from"='west virginia tech';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "t" ( "player" text, "nationality" text, "jersey_number_s" real, "position" text, "years" text, "from" text );. Question: "What years did the player with the jersey number 33 and played position pf play?". [/INST] SELECT "years" FROM "t" WHERE "jersey_number_s"=33 AND "position"='pf';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "t" ( "player" text, "nationality" text, "jersey_number_s" real, "position" text, "years" text, "from" text );. Question: "What years did the player with the jersey number bigger than 20 play?". [/INST] SELECT "years" FROM "t" WHERE "jersey_number_s">20;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "t" ( "player" text, "nationality" text, "jersey_number_s" real, "position" text, "years" text, "from" text );. Question: "What was the highest jersey number for the player from oklahoma baptist?". [/INST] SELECT MAX("jersey_number_s") FROM "t" WHERE "from"='oklahoma baptist';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "WHich Place has a To par of –2, and a Player of bernhard langer?". [/INST] SELECT "place" FROM "second_round" WHERE "to_par"='–2' AND "player"='bernhard langer';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "WHich Score has a To par of –3, and a Country of united states?". [/INST] SELECT "score" FROM "second_round" WHERE "to_par"='–3' AND "country"='united states';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Who is the Player with a Score of 70-72=142? Question 3". [/INST] SELECT "player" FROM "second_round" WHERE "score"='70-72=142';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Name the Player who has a To par of –2 and a Score of 69-73=142?". [/INST] SELECT "player" FROM "second_round" WHERE "to_par"='–2' AND "score"='69-73=142';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Name the Player who has a Country of united states, and a To par of –5?". [/INST] SELECT "player" FROM "second_round" WHERE "country"='united states' AND "to_par"='–5';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Name the Player who has a Place of t7 in Country of united states?". [/INST] SELECT "player" FROM "second_round" WHERE "place"='t7' AND "country"='united states';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "week_1_10_april_2008" ( "couple" text, "style" text, "music" text, "choreographer_s" text, "result" text );. Question: "What is the result of choreographer bjørn holthe?". [/INST] SELECT "result" FROM "week_1_10_april_2008" WHERE "choreographer_s"='bjørn holthe';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "week_1_10_april_2008" ( "couple" text, "style" text, "music" text, "choreographer_s" text, "result" text );. Question: "What is the music for choreographer sabina dalfjäll?". [/INST] SELECT "music" FROM "week_1_10_april_2008" WHERE "choreographer_s"='sabina dalfjäll';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "week_1_10_april_2008" ( "couple" text, "style" text, "music" text, "choreographer_s" text, "result" text );. Question: "What couple had a safe result and a lyrical jazz style?". [/INST] SELECT "couple" FROM "week_1_10_april_2008" WHERE "result"='safe' AND "style"='lyrical jazz';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "result" text, "nets_points" real, "opponents" real, "record" text, "streak" text );. Question: "How many games had fewer than 118 opponents and more than 109 net points with an opponent of Washington?". [/INST] SELECT COUNT("game") FROM "game_log" WHERE "opponents"<118 AND "nets_points">109 AND "opponent"='washington';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "result" text, "nets_points" real, "opponents" real, "record" text, "streak" text );. Question: "which opponent is from February 12?". [/INST] SELECT "opponent" FROM "game_log" WHERE "date"='february 12';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "result" text, "nets_points" real, "opponents" real, "record" text, "streak" text );. Question: "How many opponents were there in a game higher than 20 on January 28?". [/INST] SELECT "opponents" FROM "game_log" WHERE "game">20 AND "date"='january 28';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real );. Question: "What round did the celtic played away on 24 february 1900?". [/INST] SELECT "round" FROM "scottish_cup" WHERE "opponent"='celtic' AND "date"='24 february 1900';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real );. Question: "Who played against in venue a on 17 february 1900?". [/INST] SELECT "opponent" FROM "scottish_cup" WHERE "venue"='a' AND "date"='17 february 1900';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real );. Question: "How many people attended in the game against morton?". [/INST] SELECT "attendance" FROM "scottish_cup" WHERE "opponent"='morton';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "What is the Total of the Player with a To par of 4?". [/INST] SELECT COUNT("total") FROM "missed_the_cut" WHERE "to_par"=4;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "What is the Total of the Player with a Year(s) won of 1982?". [/INST] SELECT MIN("total") FROM "missed_the_cut" WHERE "year_s_won"='1982';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "What is the To par of the Player wtih Year(s) won of 1983?". [/INST] SELECT AVG("to_par") FROM "missed_the_cut" WHERE "year_s_won"='1983';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "What is Andy North with a To par greater than 8 Country?". [/INST] SELECT "country" FROM "missed_the_cut" WHERE "to_par">8 AND "player"='andy north';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "What is the Country of the Player with a Total less than 153 and Year(s) won of 1984?". [/INST] SELECT "country" FROM "missed_the_cut" WHERE "total"<153 AND "year_s_won"='1984';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "What is the To par of Player Andy North with a Total larger than 153?". [/INST] SELECT COUNT("to_par") FROM "missed_the_cut" WHERE "player"='andy north' AND "total">153;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2006_07_liverpool_f_c_season" ( "kick_off" text, "opponents" text, "result" text, "referee" text, "attendance" real );. Question: "WHAT OPPONENT HAD A KICKOFF OF 2007-03-06, 20:45?". [/INST] SELECT "opponents" FROM "2006_07_liverpool_f_c_season" WHERE "kick_off"='2007-03-06, 20:45';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2006_07_liverpool_f_c_season" ( "kick_off" text, "opponents" text, "result" text, "referee" text, "attendance" real );. Question: "WHAT WAS THE SCORE OF THE GAME WITH A 2007-03-06, 20:45 KICKOFF?". [/INST] SELECT "result" FROM "2006_07_liverpool_f_c_season" WHERE "kick_off"='2007-03-06, 20:45';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tallest_buildings" ( "rank" real, "name" text, "stories" real, "height" text, "year_completed" text, "primary_purpose" text, "city" text );. Question: "What is the total stories that rank number 10?". [/INST] SELECT COUNT("stories") FROM "tallest_buildings" WHERE "rank"=10;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tallest_buildings" ( "rank" real, "name" text, "stories" real, "height" text, "year_completed" text, "primary_purpose" text, "city" text );. Question: "What is the height of the EMC Insurance Building in Des Moines?". [/INST] SELECT "height" FROM "tallest_buildings" WHERE "city"='des moines' AND "name"='emc insurance building';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_timelines" ( "tournament" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "career_sr" text, "career_win_loss" text );. Question: "What was the 1997 value when 2002 was A and 2003 was 1R?". [/INST] SELECT "1997" FROM "performance_timelines" WHERE "2002"='a' AND "2003"='1r';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_timelines" ( "tournament" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "career_sr" text, "career_win_loss" text );. Question: "What was the value in 1989 with QF in 1997 and A in 1993?". [/INST] SELECT "1989" FROM "performance_timelines" WHERE "1997"='qf' AND "1993"='a';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_timelines" ( "tournament" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "career_sr" text, "career_win_loss" text );. Question: "What is the value in 1997 when the value in 1989 is A, 1995 is QF, 1996 is 3R and the career SR is 0 / 8?". [/INST] SELECT "1997" FROM "performance_timelines" WHERE "1989"='a' AND "1995"='qf' AND "1996"='3r' AND "career_sr"='0 / 8';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_timelines" ( "tournament" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "career_sr" text, "career_win_loss" text );. Question: "What was the value in 1995 for A in 2000 at the Indian Wells tournament?". [/INST] SELECT "1995" FROM "performance_timelines" WHERE "2000"='a' AND "tournament"='indian wells';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_timelines" ( "tournament" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "career_sr" text, "career_win_loss" text );. Question: "What was the career SR with a value of A in 1980 and F in 1997?". [/INST] SELECT "career_sr" FROM "performance_timelines" WHERE "1989"='a' AND "1997"='f';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What is Year(s) Won, when Total is less than 285?". [/INST] SELECT "year_s_won" FROM "made_the_cut" WHERE "total"<285;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What is Finish, when Country is "United States", and when Player is "Julius Boros"?". [/INST] SELECT "finish" FROM "made_the_cut" WHERE "country"='united states' AND "player"='julius boros';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What is Country, when Year(s) Won is "1962"?". [/INST] SELECT "country" FROM "made_the_cut" WHERE "year_s_won"='1962';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What is Finish, when Country is "United States", and when To Par is "+21"?". [/INST] SELECT "finish" FROM "made_the_cut" WHERE "country"='united states' AND "to_par"='+21';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "compilations" ( "title" text, "release_date" text, "format" text, "release" text, "label" text, "code" text );. Question: "What format was released in August 1996?". [/INST] SELECT "format" FROM "compilations" WHERE "release_date"='august 1996';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "compilations" ( "title" text, "release_date" text, "format" text, "release" text, "label" text, "code" text );. Question: "What Label has a Code of cocy-78365?". [/INST] SELECT "label" FROM "compilations" WHERE "code"='cocy-78365';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "compilations" ( "title" text, "release_date" text, "format" text, "release" text, "label" text, "code" text );. Question: "When was Gala released?". [/INST] SELECT "release" FROM "compilations" WHERE "title"='gala';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "compilations" ( "title" text, "release_date" text, "format" text, "release" text, "label" text, "code" text );. Question: "What Label released an album in August 1996?". [/INST] SELECT "label" FROM "compilations" WHERE "release_date"='august 1996';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_semester" ( "day_1" text, "day_2" text, "day_3" text, "day_4" text, "day_5" text, "wednesday" text );. Question: "What is the Wednesday when day 3 is math?". [/INST] SELECT "wednesday" FROM "second_semester" WHERE "day_3"='math';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_semester" ( "day_1" text, "day_2" text, "day_3" text, "day_4" text, "day_5" text, "wednesday" text );. Question: "What is the day 1 when the day 3 is math?". [/INST] SELECT "day_1" FROM "second_semester" WHERE "day_3"='math';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_semester" ( "day_1" text, "day_2" text, "day_3" text, "day_4" text, "day_5" text, "wednesday" text );. Question: "What is the day 1 when day 5 is math?". [/INST] SELECT "day_1" FROM "second_semester" WHERE "day_5"='math';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_semester" ( "day_1" text, "day_2" text, "day_3" text, "day_4" text, "day_5" text, "wednesday" text );. Question: "What is the day 3 when day 4 is fr.?". [/INST] SELECT "day_3" FROM "second_semester" WHERE "day_4"='fr.';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text );. Question: "what is the date when the opponent# is iowa?". [/INST] SELECT "date" FROM "schedule" WHERE "opponentnum"='iowa';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text );. Question: "what is the date when the site is memorial stadium • minneapolis, mn, and the Attendance is 53,192?". [/INST] SELECT "date" FROM "schedule" WHERE "site"='memorial stadium • minneapolis, mn' AND "attendance"='53,192';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text );. Question: "What is the Attendance when the Result is l0-13?". [/INST] SELECT "attendance" FROM "schedule" WHERE "result"='l0-13';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text );. Question: "What is the Site when the date is 11/11/1950?". [/INST] SELECT "site" FROM "schedule" WHERE "date"='11/11/1950';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text );. Question: "What is the Date when the result is *non-conference game. #rankings from ap poll .?". [/INST] SELECT "date" FROM "schedule" WHERE "result"='*non-conference game. #rankings from ap poll .';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text );. Question: "Which Player has a Round smaller than 5, and a School/Club Team of florida state?". [/INST] SELECT "player" FROM "nfl_draft" WHERE "round"<5 AND "school_club_team"='florida state';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text );. Question: "Which School/Club Team has a Pick of 198?". [/INST] SELECT "school_club_team" FROM "nfl_draft" WHERE "pick"=198;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text );. Question: "Which Round has a School/Club Team of indiana, and a Pick smaller than 198?". [/INST] SELECT AVG("round") FROM "nfl_draft" WHERE "school_club_team"='indiana' AND "pick"<198;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text );. Question: "Which Round has a School/Club Team of north carolina, and a Pick larger than 131?". [/INST] SELECT COUNT("round") FROM "nfl_draft" WHERE "school_club_team"='north carolina' AND "pick">131;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text );. Question: "Which Round has a School/Club Team of cal-poly slo, and a Pick smaller than 238?". [/INST] SELECT MAX("round") FROM "nfl_draft" WHERE "school_club_team"='cal-poly slo' AND "pick"<238;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What is the away team with a 5 tie no?". [/INST] SELECT "away_team" FROM "first_round_proper" WHERE "tie_no"='5';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What is the home team with scarborough as the away team?". [/INST] SELECT "home_team" FROM "first_round_proper" WHERE "away_team"='scarborough';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What is the date of tie no. 34?". [/INST] SELECT "date" FROM "first_round_proper" WHERE "tie_no"='34';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "What is Michael Del Zotto's nationality?". [/INST] SELECT "nationality" FROM "draft_picks" WHERE "player"='michael del zotto';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pivc_pmsc_laureates" ( "pmsc_no" text, "year" real, "1st_prize" text, "2nd_prize" text, "3rd_prize" text );. Question: "In what year did Kin-fung Leung get 2nd prize?". [/INST] SELECT "year" FROM "pivc_pmsc_laureates" WHERE "2nd_prize"='kin-fung leung';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pivc_pmsc_laureates" ( "pmsc_no" text, "year" real, "1st_prize" text, "2nd_prize" text, "3rd_prize" text );. Question: "What is the earliest year in which the 1st price went to Che-Yen (Brian) Chen?". [/INST] SELECT MIN("year") FROM "pivc_pmsc_laureates" WHERE "1st_prize"='che-yen (brian) chen';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_league" ( "team" text, "match" real, "points" real, "draw" real, "lost" real );. Question: "What is the highest loss with points less than 7?". [/INST] SELECT MAX("lost") FROM "third_league" WHERE "points"<7;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_league" ( "team" text, "match" real, "points" real, "draw" real, "lost" real );. Question: "What is the sum for the match with a draw less than 0?". [/INST] SELECT SUM("match") FROM "third_league" WHERE "draw"<0;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_league" ( "team" text, "match" real, "points" real, "draw" real, "lost" real );. Question: "What is the lowest points for a match before 14?". [/INST] SELECT MIN("points") FROM "third_league" WHERE "match">14;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_shot_blocking_efforts" ( "blocks" text, "opponent" text, "home_away" text, "minutes_played" real, "points" real, "rebounds" real, "assists" real );. Question: "How many points were there when there were less than 16 rebounds and 5 assists?". [/INST] SELECT COUNT("points") FROM "top_shot_blocking_efforts" WHERE "assists"=5 AND "rebounds"<16;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_shot_blocking_efforts" ( "blocks" text, "opponent" text, "home_away" text, "minutes_played" real, "points" real, "rebounds" real, "assists" real );. Question: "How many minutes were played when there were 18 points and the opponent was Chicago Bulls?". [/INST] SELECT COUNT("minutes_played") FROM "top_shot_blocking_efforts" WHERE "points"=18 AND "opponent"='chicago bulls';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "the_200_most_topographically_isolated_mo" ( "rank" real, "mountain_peak" text, "region" text, "mountain_range" text, "location" text );. Question: "Which Mountain Range has a Region of haiti, and a Location of 18.3601°n 71.9764°w?". [/INST] SELECT "mountain_range" FROM "the_200_most_topographically_isolated_mo" WHERE "region"='haiti' AND "location"='18.3601°n 71.9764°w';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "the_200_most_topographically_isolated_mo" ( "rank" real, "mountain_peak" text, "region" text, "mountain_range" text, "location" text );. Question: "Name the Mountain Peak which has a Rank of 62?". [/INST] SELECT "mountain_peak" FROM "the_200_most_topographically_isolated_mo" WHERE "rank"=62;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "the_200_most_topographically_isolated_mo" ( "rank" real, "mountain_peak" text, "region" text, "mountain_range" text, "location" text );. Question: "Which Mountain Peak has a Region of baja california, and a Location of 28.1301°n 115.2206°w?". [/INST] SELECT "mountain_peak" FROM "the_200_most_topographically_isolated_mo" WHERE "region"='baja california' AND "location"='28.1301°n 115.2206°w';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "the_200_most_topographically_isolated_mo" ( "rank" real, "mountain_peak" text, "region" text, "mountain_range" text, "location" text );. Question: "Name the Region with a Mountain Peak of dillingham high point?". [/INST] SELECT "region" FROM "the_200_most_topographically_isolated_mo" WHERE "mountain_peak"='dillingham high point';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "What was Marty Furgol's place when he was paid less than $3,000?". [/INST] SELECT "place" FROM "final_round" WHERE "money"<'3,000' AND "player"='marty furgol';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "How much was paid to the player whose score was 70-71-77-76=294?". [/INST] SELECT SUM("money") FROM "final_round" WHERE "score"='70-71-77-76=294';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "Which country is Pete Cooper, who made $816, from?". [/INST] SELECT "country" FROM "final_round" WHERE "money"=816 AND "player"='pete cooper';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the lowest round of the position de player with an overall less than 84?". [/INST] SELECT MIN("round") FROM "washington_redskins_draft_history" WHERE "position"='de' AND "overall"<84;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the highest pick of the player from texas a&i with an overall less than 28?". [/INST] SELECT MAX("pick") FROM "washington_redskins_draft_history" WHERE "college"='texas a&i' AND "overall"<28;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the average round of the player from the college of baylor with a pick less than 28?". [/INST] SELECT AVG("round") FROM "washington_redskins_draft_history" WHERE "college"='baylor' AND "pick"<28;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the sum of the pick from texas a&i college with a round greater than 1?". [/INST] SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "college"='texas a&i' AND "round">1;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text );. Question: "What date was the opponent the Boston Yanks?". [/INST] SELECT "date" FROM "schedule" WHERE "opponent"='boston yanks';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text );. Question: "What was the record for December 5, 1948?". [/INST] SELECT "record" FROM "schedule" WHERE "date"='december 5, 1948';</s> |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.