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 "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Who was home at Princes Park?". [/INST] SELECT "home_team_score" FROM "round_18" WHERE "venue"='princes park';</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 "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the away team's score at Princes Park?". [/INST] SELECT "away_team_score" FROM "round_18" WHERE "venue"='princes park';</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 "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When was the game played at Lake Oval?". [/INST] SELECT "date" FROM "round_18" WHERE "venue"='lake oval';</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 "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the away team when the game was at Princes Park?". [/INST] SELECT "away_team" FROM "round_18" WHERE "venue"='princes park';</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 "average_chart" ( "rank_by_average" real, "place" real, "couple" text, "total" real, "number_of_dances" real, "average" real );. Question: "What is the smallest place number when the total is 16 and average is less than 16?". [/INST] SELECT MIN("place") FROM "average_chart" WHERE "total"=16 AND "average"<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 "average_chart" ( "rank_by_average" real, "place" real, "couple" text, "total" real, "number_of_dances" real, "average" real );. Question: "What is the average when the rank by average is more than 12?". [/INST] SELECT SUM("average") FROM "average_chart" WHERE "rank_by_average">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 "average_chart" ( "rank_by_average" real, "place" real, "couple" text, "total" real, "number_of_dances" real, "average" real );. Question: "What is the average place for a couple with the rank by average of 9 and total smaller than 83?". [/INST] SELECT AVG("place") FROM "average_chart" WHERE "rank_by_average"=9 AND "total"<83;</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 "average_chart" ( "rank_by_average" real, "place" real, "couple" text, "total" real, "number_of_dances" real, "average" real );. Question: "What is the rank by average where the total was larger than 245 and the average was 27.1 with fewer than 15 dances?". [/INST] SELECT AVG("rank_by_average") FROM "average_chart" WHERE "total">245 AND "average"=27.1 AND "number_of_dances"<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 "clubs" ( "club" text, "founded" real, "joined" real, "location" text, "stadium" text, "capacity" real, "2012_13_position" text, "top_division_titles" real );. Question: "Which stadium was used for the North East Stars club?". [/INST] SELECT "stadium" FROM "clubs" WHERE "club"='north east stars';</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 "clubs" ( "club" text, "founded" real, "joined" real, "location" text, "stadium" text, "capacity" real, "2012_13_position" text, "top_division_titles" real );. Question: "What was the total number of Top Division Titles where the year founded was prior to 1975 and the location was in Chaguaramas?". [/INST] SELECT SUM("top_division_titles") FROM "clubs" WHERE "founded"<1975 AND "location"='chaguaramas';</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, "attendance" real );. Question: "What was the higest attendance on November 9, 1958?". [/INST] SELECT MAX("attendance") FROM "schedule" WHERE "date"='november 9, 1958';</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 "players_who_made_their_debut_for_the_gee" ( "debut_year" real, "player" text, "date_of_birth" text, "games" real, "goals" real, "years_at_club" text );. Question: "How many games had 22 goals before 1935?". [/INST] SELECT SUM("games") FROM "players_who_made_their_debut_for_the_gee" WHERE "goals"=22 AND "debut_year"<1935;</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 "players_who_made_their_debut_for_the_gee" ( "debut_year" real, "player" text, "date_of_birth" text, "games" real, "goals" real, "years_at_club" text );. Question: "What is the average games a player born on 17 March 1915 and debut before 1935 had?". [/INST] SELECT AVG("games") FROM "players_who_made_their_debut_for_the_gee" WHERE "date_of_birth"='17 march 1915' AND "debut_year"<1935;</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 "players_who_made_their_debut_for_the_gee" ( "debut_year" real, "player" text, "date_of_birth" text, "games" real, "goals" real, "years_at_club" text );. Question: "What is the lowest number of games Jack Gaudion, who debut in 1936, played?". [/INST] SELECT MIN("games") FROM "players_who_made_their_debut_for_the_gee" WHERE "debut_year"=1936 AND "player"='jack gaudion';</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 "players_who_made_their_debut_for_the_gee" ( "debut_year" real, "player" text, "date_of_birth" text, "games" real, "goals" real, "years_at_club" text );. Question: "What is the years at the club of the player with 2 goals and was born on 23 July 1910?". [/INST] SELECT "years_at_club" FROM "players_who_made_their_debut_for_the_gee" WHERE "goals"=2 AND "date_of_birth"='23 july 1910';</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_by_season_records" ( "season" text, "div" text, "pos" text, "pld" text, "pts" text, "play_offs" text, "trophy" text );. Question: "During the play-off quarter-final which team scored position was the team that scored 56 points?". [/INST] SELECT "pos" FROM "season_by_season_records" WHERE "play_offs"='quarter-final' AND "pts"='56';</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 "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What is the score when Philadelphia is at home?". [/INST] SELECT "score" FROM "december" WHERE "home"='philadelphia';</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 "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What is the record on December 4?". [/INST] SELECT "record" FROM "december" WHERE "date"='december 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 "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "what is the decision when the record is 13β10β4?". [/INST] SELECT "decision" FROM "december" WHERE "record"='13β10β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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "What is the lowest attendance total on August 26?". [/INST] SELECT MIN("attendance") FROM "game_log" WHERE "date"='august 26';</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 "longest_winning_streaks" ( "year" real, "competition" text, "date" text, "location" text, "score" text, "result" text );. Question: "What is the sum of the year for 5 february?". [/INST] SELECT SUM("year") FROM "longest_winning_streaks" WHERE "date"='5 february';</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 "longest_winning_streaks" ( "year" real, "competition" text, "date" text, "location" text, "score" text, "result" text );. Question: "What was the location for a year later than 2012?". [/INST] SELECT "location" FROM "longest_winning_streaks" WHERE "year">2012;</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 "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "who is the constructor when the laps is more than 72 and the driver is eddie irvine?". [/INST] SELECT "constructor" FROM "race" WHERE "laps">72 AND "driver"='eddie irvine';</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 "december" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );. Question: "What was the record of the game where the Rockets were the visiting team?". [/INST] SELECT "record" FROM "december" WHERE "visitor"='rockets';</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 "65_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text );. Question: "What's the voltage for the pentium dual-core e2140?". [/INST] SELECT "voltage" FROM "65_nm" WHERE "model_number"='pentium dual-core e2140';</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 "65_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text );. Question: "What part number(s) has a frequency of 2.4 ghz?". [/INST] SELECT "part_number_s" FROM "65_nm" WHERE "frequency"='2.4 ghz';</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 "65_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text );. Question: "What's the release price (USD) for part number hh80557pg0491m?". [/INST] SELECT "release_price_usd" FROM "65_nm" WHERE "part_number_s"='hh80557pg0491m';</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 "65_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text );. Question: "What L2 cache had a release date of august 26, 2007?". [/INST] SELECT "l2_cache" FROM "65_nm" WHERE "release_date"='august 26, 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 "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text );. Question: "Where did the team in which Tom Pryce was in Pole Position race?". [/INST] SELECT "location" FROM "season_review" WHERE "pole_position"='tom pryce';</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_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text );. Question: "Who ran the fastest lap in the team that competed in Zolder, in which Ferrari was the Constructor?". [/INST] SELECT "fastest_lap" FROM "season_review" WHERE "constructor"='ferrari' AND "location"='zolder';</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 "pga_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text );. Question: "What tournament was on Jan 29, 2012?". [/INST] SELECT "tournament" FROM "pga_tour_wins_6" WHERE "date"='jan 29, 2012';</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 "pga_tour_wins_6" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text );. Question: "What is the to par of the match with a winning score 69-67-72-64=272?". [/INST] SELECT "to_par" FROM "pga_tour_wins_6" WHERE "winning_score"='69-67-72-64=272';</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_3" ( "production_no" real, "episode_no" real, "original_airdate" text, "episode_title" text, "host" text );. Question: "What is the episode number of the episode that originally aired on January 26, 2009 and had a production number smaller than 38?". [/INST] SELECT COUNT("episode_no") FROM "season_3" WHERE "original_airdate"='january 26, 2009' AND "production_no"<38;</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 "defencemen" ( "player" text, "shoots" text, "acquired" real, "place_of_birth" text, "joined_from" text );. Question: "Who acquired tom norton?". [/INST] SELECT "acquired" FROM "defencemen" WHERE "player"='tom norton';</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 "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Where did Geelong play as the home team?". [/INST] SELECT "venue" FROM "round_8" WHERE "home_team"='geelong';</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 "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which home team played against the away team with a score of 13.19 (97)?". [/INST] SELECT "home_team" FROM "round_8" WHERE "away_team_score"='13.19 (97)';</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 "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which away team had more than 17,903 spectators and played Melbourne?". [/INST] SELECT "away_team_score" FROM "round_8" WHERE "crowd">'17,903' AND "home_team"='melbourne';</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 "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Where did North Melbourne play as the home team?". [/INST] SELECT "venue" FROM "round_8" WHERE "home_team"='north melbourne';</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 "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What did the away team score when playing Footscray?". [/INST] SELECT "away_team_score" FROM "round_8" WHERE "home_team"='footscray';</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, "game_site" text );. Question: "What's the record for October 8, 2000 before week 13?". [/INST] SELECT "record" FROM "schedule" WHERE "week"<13 AND "date"='october 8, 2000';</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, "game_site" text );. Question: "What game site has a result of bye?". [/INST] SELECT "game_site" FROM "schedule" WHERE "result"='bye';</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, "game_site" text );. Question: "What's the record after week 16?". [/INST] SELECT "record" FROM "schedule" WHERE "week">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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text );. Question: "What's the result at psinet stadium when the cincinnati bengals are the opponent?". [/INST] SELECT "result" FROM "schedule" WHERE "game_site"='psinet stadium' AND "opponent"='cincinnati bengals';</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, "game_site" text );. Question: "What's the record after week 12 with a game site of bye?". [/INST] SELECT "record" FROM "schedule" WHERE "week">12 AND "game_site"='bye';</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 "regional_auditions" ( "episode_air_date" text, "audition_city" text, "date" text, "first_audition_venue" text, "callback_date" text, "callback_venue" text, "golden_tickets" real );. Question: "What audition city has a Callback Date of october 5β6, 2007?". [/INST] SELECT "audition_city" FROM "regional_auditions" WHERE "callback_date"='october 5β6, 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 "regional_auditions" ( "episode_air_date" text, "audition_city" text, "date" text, "first_audition_venue" text, "callback_date" text, "callback_venue" text, "golden_tickets" real );. Question: "What day has a callback Venue of total tickets to hollywood? Question". [/INST] SELECT "date" FROM "regional_auditions" WHERE "callback_venue"='total tickets to hollywood';</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 "regional_auditions" ( "episode_air_date" text, "audition_city" text, "date" text, "first_audition_venue" text, "callback_date" text, "callback_venue" text, "golden_tickets" real );. Question: "How many golden tickets for the georgia international convention center?". [/INST] SELECT SUM("golden_tickets") FROM "regional_auditions" WHERE "callback_venue"='georgia international convention center';</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 "locomotives_of_the_london_and_north_east" ( "class" text, "w_a" text, "quantity" real, "date" text, "lner_class" text );. Question: "What class is associated with a W.A. of 0-8-0?". [/INST] SELECT "class" FROM "locomotives_of_the_london_and_north_east" WHERE "w_a"='0-8-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 "locomotives_of_the_london_and_north_east" ( "class" text, "w_a" text, "quantity" real, "date" text, "lner_class" text );. Question: "What WA has a LNER Class of n13 and 10?". [/INST] SELECT "w_a" FROM "locomotives_of_the_london_and_north_east" WHERE "quantity"=10 AND "lner_class"='n13';</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, "opponent" text, "result" text, "game_site" text, "record" text );. Question: "Who was the Opponent at the Game Site Indianapolis Hoosierdome?". [/INST] SELECT "opponent" FROM "schedule" WHERE "game_site"='indianapolis hoosierdome';</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 "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the St Kilda Away team score?". [/INST] SELECT "away_team_score" FROM "round_18" WHERE "away_team"='st kilda';</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 "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What home team has a team score of 8.12 (60)?". [/INST] SELECT "home_team" FROM "round_18" WHERE "home_team_score"='8.12 (60)';</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 "lightweight_69_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real );. Question: "Tell me the highest snatch for 68.63 bodyweight and total kg less than 290". [/INST] SELECT MAX("snatch") FROM "lightweight_69_kg" WHERE "bodyweight"=68.63 AND "total_kg"<290;</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 "lightweight_69_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real );. Question: "Tell me the total number of snatches for clean and jerk more than 132.5 when the total kg was 315 and bodyweight was 68.63". [/INST] SELECT COUNT("snatch") FROM "lightweight_69_kg" WHERE "clean_jerk">132.5 AND "total_kg"=315 AND "bodyweight"=68.63;</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 "lightweight_69_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real );. Question: "Name the average clean and jerk for snatch of 140 and total kg less than 315". [/INST] SELECT AVG("clean_jerk") FROM "lightweight_69_kg" WHERE "snatch"=140 AND "total_kg"<315;</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 "drivers_and_constructors" ( "constructor" text, "chassis" text, "engine" text, "tyres" text, "driver" text, "rounds" text );. Question: "Who constructed the car that Derek Warwick raced in with a TG181 chassis?". [/INST] SELECT "constructor" FROM "drivers_and_constructors" WHERE "chassis"='tg181' AND "driver"='derek warwick';</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 "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );. Question: "Which player has a Club/province of direito, less than 21 caps, and a Position of lock?". [/INST] SELECT "player" FROM "2007_rugby_world_cup_squads" WHERE "club_province"='direito' AND "caps"<21 AND "position"='lock';</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 "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );. Question: "How many caps have a Position of prop, and a Player of rui cordeiro?". [/INST] SELECT COUNT("caps") FROM "2007_rugby_world_cup_squads" WHERE "position"='prop' AND "player"='rui cordeiro';</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 "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );. Question: "Which Club/province has a Player of david penalva?". [/INST] SELECT "club_province" FROM "2007_rugby_world_cup_squads" WHERE "player"='david penalva';</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 "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );. Question: "How many caps have a Date of Birth (Age) of 15 july 1981?". [/INST] SELECT COUNT("caps") FROM "2007_rugby_world_cup_squads" WHERE "date_of_birth_age"='15 july 1981';</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 "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );. Question: "Which player has a Position of fly-half, and a Caps of 3?". [/INST] SELECT "player" FROM "2007_rugby_world_cup_squads" WHERE "position"='fly-half' AND "caps"=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 "constituency_nominations" ( "constituency" text, "conservative" text, "labour" text, "liberal_democrats" text, "plaid_cymru" text, "result" text );. Question: "What constituency does the Conservative Darren Millar belong to?". [/INST] SELECT "constituency" FROM "constituency_nominations" WHERE "conservative"='darren millar';</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 "constituency_nominations" ( "constituency" text, "conservative" text, "labour" text, "liberal_democrats" text, "plaid_cymru" text, "result" text );. Question: "In what constituency was the result labour hold and Liberal democrat Elizabeth Newton won?". [/INST] SELECT "constituency" FROM "constituency_nominations" WHERE "result"='labour hold' AND "liberal_democrats"='elizabeth newton';</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 "european_tour_wins_40" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "Who has the Winning score of β10 (66-71-62-71=270) ?". [/INST] SELECT "runner_s_up" FROM "european_tour_wins_40" WHERE "winning_score"='β10 (66-71-62-71=270)';</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 "european_tour_wins_40" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "Who is Runner(s)-up that has a Date of may 24, 1999?". [/INST] SELECT "runner_s_up" FROM "european_tour_wins_40" WHERE "date"='may 24, 1999';</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 "european_tour_wins_40" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "Which Tournament has a Margin of victory of 7 strokes". [/INST] SELECT "tournament" FROM "european_tour_wins_40" WHERE "margin_of_victory"='7 strokes';</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 "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What was the decision of the Kings game when Chicago was the visiting team?". [/INST] SELECT "decision" FROM "february" WHERE "visitor"='chicago';</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" ( "pick" text, "round" real, "player" text, "position" text, "school" text );. Question: "What round was the nose tackle drafted?". [/INST] SELECT SUM("round") FROM "nfl_draft" WHERE "position"='nose tackle';</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 "march" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What is the Record when Buffalo is at Home?". [/INST] SELECT "record" FROM "march" WHERE "home"='buffalo';</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 "race_results" ( "driver" text, "car_num" real, "make" text, "points" real, "laps" real, "winnings" text );. Question: "What were the winnings for the Chevrolet with a number larger than 29 and scored 102 points?". [/INST] SELECT "winnings" FROM "race_results" WHERE "make"='chevrolet' AND "car_num">29 AND "points"=102;</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 "race_results" ( "driver" text, "car_num" real, "make" text, "points" real, "laps" real, "winnings" text );. Question: "What is the make of car 31?". [/INST] SELECT "make" FROM "race_results" WHERE "car_num"=31;</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 "race_results" ( "driver" text, "car_num" real, "make" text, "points" real, "laps" real, "winnings" text );. Question: "What is the car number that has less than 369 laps for a Dodge with more than 49 points?". [/INST] SELECT SUM("car_num") FROM "race_results" WHERE "laps"<369 AND "make"='dodge' AND "points">49;</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 "managers" ( "name" text, "tenure" text, "ties" real, "lost" real, "win_pct" real );. Question: "Tell me the total number of ties for name of totals and lost more than 30". [/INST] SELECT COUNT("ties") FROM "managers" WHERE "name"='totals' AND "lost">30;</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 "managers" ( "name" text, "tenure" text, "ties" real, "lost" real, "win_pct" real );. Question: "I want the total number of ties for win % more than 0 and tenure of 2001-2011 with lost more than 16". [/INST] SELECT COUNT("ties") FROM "managers" WHERE "win_pct">0 AND "tenure"='2001-2011' AND "lost">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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "What's the record when the attendance was 28,531?". [/INST] SELECT "record" FROM "game_log" WHERE "attendance"='28,531';</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" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "What's the record when the attendance was 41,573?". [/INST] SELECT "record" FROM "game_log" WHERE "attendance"='41,573';</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" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "Who's the opponent for June 13?". [/INST] SELECT "opponent" FROM "game_log" WHERE "date"='june 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 "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "Where does center Joakim Andersson come from?". [/INST] SELECT "nationality" FROM "draft_picks" WHERE "position"='center' AND "player"='joakim andersson';</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 position does Zack Torquato play?". [/INST] SELECT "position" FROM "draft_picks" WHERE "player"='zack torquato';</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" ( "athlete" text, "final" text, "lane" real, "semi" real, "quart" real, "heat" real );. Question: "When a lane of 4 has a QUART greater than 44.62, what is the lowest HEAT?". [/INST] SELECT MIN("heat") FROM "final" WHERE "lane"=4 AND "quart">44.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 "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When was a game played where the away team scored 10.19 (79)?". [/INST] SELECT "date" FROM "round_18" WHERE "away_team_score"='10.19 (79)';</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 "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When did the game at Arden Street Oval occur?". [/INST] SELECT "date" FROM "round_18" WHERE "venue"='arden street oval';</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 "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Where did the home team score 11.18 (84)?". [/INST] SELECT "venue" FROM "round_18" WHERE "home_team_score"='11.18 (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 "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What did the away team score when playing North Melbourne?". [/INST] SELECT "away_team_score" FROM "round_18" WHERE "home_team"='north melbourne';</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 "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "How many people attended the game at VFL Park?". [/INST] SELECT SUM("crowd") FROM "round_18" WHERE "venue"='vfl park';</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 "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When the home team was fitzroy, what did the away team score?". [/INST] SELECT "away_team_score" FROM "round_12" WHERE "home_team"='fitzroy';</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 "grands_prix" ( "round" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "Name the fastest lap for the brazilian grand prix". [/INST] SELECT "fastest_lap" FROM "grands_prix" WHERE "grand_prix"='brazilian grand prix';</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 "grands_prix" ( "round" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "Name the pole position at the japanese grand prix when the fastest lap is damon hill". [/INST] SELECT "pole_position" FROM "grands_prix" WHERE "fastest_lap"='damon hill' AND "grand_prix"='japanese grand prix';</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 "grands_prix" ( "round" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "Name the lowest round for when pole position and winning driver is michael schumacher". [/INST] SELECT MIN("round") FROM "grands_prix" WHERE "fastest_lap"='michael schumacher' AND "winning_driver"='michael schumacher' AND "pole_position"='michael schumacher';</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_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );. Question: "How many reg GP for nathan barrett in a round less than 8?". [/INST] SELECT COUNT("reg_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='nathan barrett' AND "rd_num"<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 "quality_of_life" ( "index" text, "organization" text, "year" real, "rank" text, "out_of" real );. Question: "What organization ranks 68?". [/INST] SELECT "organization" FROM "quality_of_life" WHERE "rank"='68';</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 "quality_of_life" ( "index" text, "organization" text, "year" real, "rank" text, "out_of" real );. Question: "What year is the happy planet index?". [/INST] SELECT SUM("year") FROM "quality_of_life" WHERE "index"='happy planet index';</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 "quality_of_life" ( "index" text, "organization" text, "year" real, "rank" text, "out_of" real );. Question: "What year for the legatum institute?". [/INST] SELECT "year" FROM "quality_of_life" WHERE "organization"='legatum institute';</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" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "What 1st leg has Alense Vivaldi (Trentino) as Agg.?". [/INST] SELECT "1st_leg" FROM "first_round" WHERE "agg"='alense vivaldi (trentino)';</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" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );. Question: "What is the grid for the Minardi Team USA with laps smaller than 90?". [/INST] SELECT "grid" FROM "results" WHERE "laps"<90 AND "team"='minardi team usa';</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 "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is Fitzroy's Home team score?". [/INST] SELECT "home_team_score" FROM "round_16" WHERE "home_team"='fitzroy';</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 "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is Fitzroy's Home team Crowd?". [/INST] SELECT SUM("crowd") FROM "round_16" WHERE "home_team"='fitzroy';</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 "receiving" ( "player" text, "rec" real, "yards" real, "avg" real, "td_s" real );. Question: "What is the average number of TDs when the yards are less than 119, the AVG is larger than 5, and Jamarr Ward is a player?". [/INST] SELECT AVG("td_s") FROM "receiving" WHERE "yards"<119 AND "player"='jamarr ward' AND "avg">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 "receiving" ( "player" text, "rec" real, "yards" real, "avg" real, "td_s" real );. Question: "What is the total Avg when TDs are 0 and Dawan Moss is a player?". [/INST] SELECT COUNT("avg") FROM "receiving" WHERE "player"='dawan moss' AND "td_s"<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 "receiving" ( "player" text, "rec" real, "yards" real, "avg" real, "td_s" real );. Question: "What is the highest number of TDs when the Avg is larger than 8.5 and the Rec is less than 1?". [/INST] SELECT MAX("td_s") FROM "receiving" WHERE "avg">8.5 AND "rec"<1;</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.