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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );. Question: "Name the opponent with record of 52-58". [/INST] SELECT "opponent" FROM "game_log" WHERE "record"='52-58';</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 "belfast_and_northern_counties_railway_18" ( "class" text, "type" text, "fleet_numbers" text, "quantity_made" real, "manufacturer" text, "date_made" text, "date_withdrawn" text );. Question: "What Class has a Quantity made of 5?". [/INST] SELECT "class" FROM "belfast_and_northern_counties_railway_18" WHERE "quantity_made"=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 "belfast_and_northern_counties_railway_18" ( "class" text, "type" text, "fleet_numbers" text, "quantity_made" real, "manufacturer" text, "date_made" text, "date_withdrawn" text );. Question: "What is listed as the Date made with a Quantity made of 13?". [/INST] SELECT "date_made" FROM "belfast_and_northern_counties_railway_18" WHERE "quantity_made"=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 "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What year shows 4 points?". [/INST] SELECT "year" FROM "complete_formula_one_results" WHERE "points"=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 "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What is the most points when the entrant was Jaguar racing earlier than 2001?". [/INST] SELECT MAX("points") FROM "complete_formula_one_results" WHERE "entrant"='jaguar racing' AND "year"<2001;</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 "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What is the entrant in 1999?". [/INST] SELECT "entrant" FROM "complete_formula_one_results" WHERE "year"=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 "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What is the most points when the chassis was Jaguar R3 later than 2002?". [/INST] SELECT MAX("points") FROM "complete_formula_one_results" WHERE "chassis"='jaguar r3' AND "year">2002;</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 "skin_depth_at_24_k_hz" ( "material" text, "resistivity_10_6_ohm_inches" real, "relative_permeability" real, "skin_depth_inches" real, "surface_resistance_relative_to_copper" real );. Question: "What is the lowest relative permeability with a skin depth larger than 0.112 inches?". [/INST] SELECT MIN("relative_permeability") FROM "skin_depth_at_24_k_hz" WHERE "skin_depth_inches">0.112;</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 "skin_depth_at_24_k_hz" ( "material" text, "resistivity_10_6_ohm_inches" real, "relative_permeability" real, "skin_depth_inches" real, "surface_resistance_relative_to_copper" real );. Question: "What is the average relative permeability with a resistivity smaller than 1.12 and a surface resistance relative to copper smaller than 1?". [/INST] SELECT AVG("relative_permeability") FROM "skin_depth_at_24_k_hz" WHERE "resistivity_10_6_ohm_inches"<1.12 AND "surface_resistance_relative_to_copper"<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 "skin_depth_at_24_k_hz" ( "material" text, "resistivity_10_6_ohm_inches" real, "relative_permeability" real, "skin_depth_inches" real, "surface_resistance_relative_to_copper" real );. Question: "What is the sum of skin depth with a resistivity of 1.12 and a relative permeability larger than 1?". [/INST] SELECT SUM("skin_depth_inches") FROM "skin_depth_at_24_k_hz" WHERE "resistivity_10_6_ohm_inches"=1.12 AND "relative_permeability">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 "contestants" ( "pos" text, "player" text, "team" text, "height" text, "weight" real );. Question: "How much does Jonathan Bender weigh?". [/INST] SELECT "weight" FROM "contestants" WHERE "player"='jonathan bender';</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 "contestants" ( "pos" text, "player" text, "team" text, "height" text, "weight" real );. Question: "Of those with a height of 7-0, who weighs the most?". [/INST] SELECT MAX("weight") FROM "contestants" WHERE "height"='7-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 "contestants" ( "pos" text, "player" text, "team" text, "height" text, "weight" real );. Question: "What does DeShawn Stevenson weigh?". [/INST] SELECT SUM("weight") FROM "contestants" WHERE "player"='deshawn stevenson';</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 "timaru_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );. Question: "Name the highest roll for coed and authority of state integrated with sacred heart school". [/INST] SELECT MAX("roll") FROM "timaru_district" WHERE "gender"='coed' AND "authority"='state integrated' AND "name"='sacred heart school';</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 "models" ( "engine_code" text, "displacement" text, "power_torque_rpm" text, "redline_rpm" real, "year" real );. Question: "What is the displacement of the engine that has a Redline rpm higher than 4750, from 2005?". [/INST] SELECT "displacement" FROM "models" WHERE "redline_rpm">4750 AND "year"=2005;</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 "models" ( "engine_code" text, "displacement" text, "power_torque_rpm" text, "redline_rpm" real, "year" real );. Question: "From what year is the engine with engine code M57D30?". [/INST] SELECT "year" FROM "models" WHERE "engine_code"='m57d30';</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 "models" ( "engine_code" text, "displacement" text, "power_torque_rpm" text, "redline_rpm" real, "year" real );. Question: "What is the average Redline RPM of engines with engine code M57TUD30, made after 2002?". [/INST] SELECT AVG("redline_rpm") FROM "models" WHERE "engine_code"='m57tud30' AND "year">2002;</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 "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );. Question: "What was the result against Beijing Hyundai?". [/INST] SELECT "result_f_a" FROM "pre_season_and_friendlies" WHERE "opponents"='beijing hyundai';</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 "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );. Question: "Was the game with Kashima antlers at home or away?". [/INST] SELECT "h_a" FROM "pre_season_and_friendlies" WHERE "opponents"='kashima antlers';</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 "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );. Question: "What date was the game against Royal Antwerp?". [/INST] SELECT "date" FROM "pre_season_and_friendlies" WHERE "opponents"='royal antwerp';</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, "time" text, "att" text, "record" text );. Question: "What Records Time is 3:38?". [/INST] SELECT "record" FROM "game_log" WHERE "time"='3: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 "list" ( "country" text, "2006" real, "2005" real, "2004" real, "2003" real );. Question: "What Country has a number smaller than 56 in 2005 and of 14 in 2006?". [/INST] SELECT COUNT("2004") FROM "list" WHERE "2005"<56 AND "2006"=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 "list" ( "country" text, "2006" real, "2005" real, "2004" real, "2003" real );. Question: "What Country has a number smaller than 3 in 2004 and larger than 1 in 2005?". [/INST] SELECT COUNT("2006") FROM "list" WHERE "2004"<3 AND "2005">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 "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real );. Question: "The building with 48 floors has an address in Las Vegas of what?". [/INST] SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "floors"=48;</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 "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real );. Question: "The Palazzo's street address is listed as what?". [/INST] SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "name"='the palazzo';</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 "main_setlist" ( "year" real, "song_title" text, "artist" text, "master_recording" text, "tier" text );. Question: "What's the title of the song by Winger?". [/INST] SELECT "song_title" FROM "main_setlist" WHERE "artist"='winger';</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 "winners" ( "year" text, "venue" text, "winners" text, "runner_up" text, "3rd_place" text );. Question: "What shows for 3rd place when Runner-up shows as runner-up?". [/INST] SELECT "3rd_place" FROM "winners" WHERE "runner_up"='runner-up';</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 "winners" ( "year" text, "venue" text, "winners" text, "runner_up" text, "3rd_place" text );. Question: "What year shows as Runner-up of england (24 pts)?". [/INST] SELECT "year" FROM "winners" WHERE "runner_up"='england (24 pts)';</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 "winners" ( "year" text, "venue" text, "winners" text, "runner_up" text, "3rd_place" text );. Question: "What shows for Winners when it shows 3rd place of [[|]] (21 pts), and a Runner-up of united states (23 pts)?". [/INST] SELECT "winners" FROM "winners" WHERE "3rd_place"='[[|]] (21 pts)' AND "runner_up"='united states (23 pts)';</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 "winners" ( "year" text, "venue" text, "winners" text, "runner_up" text, "3rd_place" text );. Question: "What shows for 3rd place when the venue was Pardubice?". [/INST] SELECT "3rd_place" FROM "winners" WHERE "venue"='pardubice';</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 "winners" ( "year" text, "venue" text, "winners" text, "runner_up" text, "3rd_place" text );. Question: "what shows for 3rd place in 1990?". [/INST] SELECT "3rd_place" FROM "winners" WHERE "year"='1990';</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 "winners" ( "year" text, "venue" text, "winners" text, "runner_up" text, "3rd_place" text );. Question: "What year was the venue Landshut?". [/INST] SELECT "year" FROM "winners" WHERE "venue"='landshut';</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 Tampa Bay is the visitor?". [/INST] SELECT "record" FROM "march" WHERE "visitor"='tampa bay';</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 date when Joseph is the decision and San Jose is the home team?". [/INST] SELECT "date" FROM "march" WHERE "decision"='joseph' AND "home"='san jose';</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 date of the match when Detroit is the home team and Colorado is the visiting team?". [/INST] SELECT "date" FROM "march" WHERE "home"='detroit' AND "visitor"='colorado';</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: "Who is the opponent with attendance greater than 73,984 with a result of w 28–14?". [/INST] SELECT "opponent" FROM "schedule" WHERE "attendance">'73,984' AND "result"='w 28–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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "How many people were in attendance in a week over 4 on December 6, 1981?". [/INST] SELECT COUNT("attendance") FROM "schedule" WHERE "week">4 AND "date"='december 6, 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 "summary" ( "game" real, "date" text, "location" text, "time" text, "attendance" real );. Question: "Name the least game for october 10 at shibe park". [/INST] SELECT MIN("game") FROM "summary" WHERE "location"='shibe park' AND "date"='october 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 "medal_table" ( "rank" text, "nation" text, "gold" text, "silver" text, "bronze" real, "total" real );. Question: "What is the lowest bronze total that has a rank of 1 and more than 34 total medals?". [/INST] SELECT MIN("bronze") FROM "medal_table" WHERE "rank"='1' AND "total">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 "medal_table" ( "rank" text, "nation" text, "gold" text, "silver" text, "bronze" real, "total" real );. Question: "What is the lowest bronze total that has a silver total of 13 medals?". [/INST] SELECT MIN("bronze") FROM "medal_table" WHERE "silver"='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 "appearances_by_team" ( "appearances" real, "team" text, "wins" real, "losses" real, "winning_percentage" real, "season_s" text );. Question: "With Appearances larger than 1, what is the Wins for the Reno Aces Team?". [/INST] SELECT MIN("wins") FROM "appearances_by_team" WHERE "team"='reno aces' AND "appearances">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 "appearances_by_team" ( "appearances" real, "team" text, "wins" real, "losses" real, "winning_percentage" real, "season_s" text );. Question: "For the Reno Aces, what are the Losses when they had 1 Appearances and a Winning Percentage of 1?". [/INST] SELECT SUM("losses") FROM "appearances_by_team" WHERE "appearances"=1 AND "winning_percentage"=1 AND "team"='reno aces';</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 "appearances_by_team" ( "appearances" real, "team" text, "wins" real, "losses" real, "winning_percentage" real, "season_s" text );. Question: "In 2009, what Appearances had a Winning Percentage of less than 0?". [/INST] SELECT AVG("appearances") FROM "appearances_by_team" WHERE "season_s"='2009' AND "winning_percentage"<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 "complete_world_championship_formula_one_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What is the chassis for the year of 1969?". [/INST] SELECT "chassis" FROM "complete_world_championship_formula_one_" WHERE "year"=1969;</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 "4_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text );. Question: "Which Occupation has a Rank of 5th, a Gender of M, with a Residence of orono?". [/INST] SELECT "occupation" FROM "4_seats" WHERE "rank"='5th' AND "gender"='m' AND "residence"='orono';</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 "4_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text );. Question: "Which Gender has a Residence of Haliburton?". [/INST] SELECT "gender" FROM "4_seats" WHERE "residence"='haliburton';</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 "4_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text );. Question: "What's the lowest in Votes with a Rank of 5th, has an Occupation of retired, along with a Riding of Brant?". [/INST] SELECT MIN("votes") FROM "4_seats" WHERE "rank"='5th' AND "occupation"='retired' AND "riding"='brant';</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 "4_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text );. Question: "What Occupation has the Rank of 5th and has a Candidate's Name of Henry Zekveld?". [/INST] SELECT "occupation" FROM "4_seats" WHERE "rank"='5th' AND "candidate_s_name"='henry zekveld';</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 sum of the people in attendance when there was a Loss of clement (5–7)?". [/INST] SELECT SUM("attendance") FROM "game_log" WHERE "loss"='clement (5–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 "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What place was Corey Pavin in?". [/INST] SELECT "place" FROM "second_round" WHERE "player"='corey pavin';</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: "What was the two-round score for Bob Tway?". [/INST] SELECT "score" FROM "second_round" WHERE "player"='bob tway';</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 "summary" ( "game" real, "date" text, "location" text, "time" text, "attendance" real );. Question: "How many people went to the game that lasted 2:37 after game 2?". [/INST] SELECT SUM("attendance") FROM "summary" WHERE "game">2 AND "time"='2:37';</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 "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What is the FCC info of the w214ba call sign with a frequency below 96.3?". [/INST] SELECT "fcc_info" FROM "translators" WHERE "frequency_m_hz"<96.3 AND "call_sign"='w214ba';</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 "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What is the total number of the ERP W with a call sign of w242ak?". [/INST] SELECT COUNT("erp_w") FROM "translators" WHERE "call_sign"='w242ak';</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 "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What is the FCC info of the station with a frequency above 95.3 and an ERP W smaller than 27 in Ocala, Florida?". [/INST] SELECT "fcc_info" FROM "translators" WHERE "frequency_m_hz">95.3 AND "erp_w"<27 AND "city_of_license"='ocala, florida';</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 "doubles_26_16_10" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "What date has an outcome of runner-up, and a Score of 6–4, 6–2, and a Opponents of gisela dulko flavia pennetta?". [/INST] SELECT "date" FROM "doubles_26_16_10" WHERE "outcome"='runner-up' AND "score"='6–4, 6–2' AND "opponents"='gisela dulko flavia pennetta';</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 "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );. Question: "In Round 10, what was the Overall for Ed Tomlin?". [/INST] SELECT AVG("overall") FROM "indianapolis_colts_draft_history" WHERE "round"=10 AND "name"='ed tomlin';</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 "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What was the Position of Pick #23 in a Round less than 5 with 23 Overall?". [/INST] SELECT "position" FROM "indianapolis_colts_draft_history" WHERE "round"<5 AND "pick_num"=23 AND "overall"=23;</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 "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What Average Pick # has an Overall of 296?". [/INST] SELECT AVG("pick_num") FROM "indianapolis_colts_draft_history" WHERE "overall"=296;</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 "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );. Question: "In Round 13, what was the Pick # of the Guard Position with an Overall greater than 23?". [/INST] SELECT "pick_num" FROM "indianapolis_colts_draft_history" WHERE "overall">23 AND "position"='guard' AND "round"=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 "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );. Question: "With an Overall larger than 107, in what Round was Jim Duncan picked?". [/INST] SELECT SUM("round") FROM "indianapolis_colts_draft_history" WHERE "name"='jim duncan' AND "overall">107;</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 "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the highest Pick # for the College of Maryland-Eastern Shore?". [/INST] SELECT MAX("pick_num") FROM "indianapolis_colts_draft_history" WHERE "college"='maryland-eastern shore';</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 "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What is Brown Motors best point total using the Offenhauser L4 engine since 1950?". [/INST] SELECT MAX("points") FROM "complete_formula_one_world_championship_" WHERE "year">1950 AND "engine"='offenhauser l4' AND "entrant"='brown motors';</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 "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "rally_leader" text );. Question: "Name the length for stage of ss6". [/INST] SELECT "length" FROM "special_stages" WHERE "stage"='ss6';</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 "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "rally_leader" text );. Question: "Name the stage for m. grönholm and winner of s.loeb with time of 17:57". [/INST] SELECT "stage" FROM "special_stages" WHERE "rally_leader"='m. grönholm' AND "winner"='s.loeb' AND "time_eest"='17:57';</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 "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "rally_leader" text );. Question: "Name the winner for schimatari 1". [/INST] SELECT "winner" FROM "special_stages" WHERE "name"='schimatari 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 "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "rally_leader" text );. Question: "Name the stage for 08:46". [/INST] SELECT "stage" FROM "special_stages" WHERE "time_eest"='08: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 "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "rally_leader" text );. Question: "Name the winner with rally leader of c. atkinson and name of agia sotira 1". [/INST] SELECT "winner" FROM "special_stages" WHERE "rally_leader"='c. atkinson' AND "name"='agia sotira 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 "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "rally_leader" text );. Question: "Name the winner for ss14". [/INST] SELECT "winner" FROM "special_stages" WHERE "stage"='ss14';</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 "previous_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "Who won the mixed doubles the same year that Andrew Downes won the men's singles?". [/INST] SELECT "mixed_doubles" FROM "previous_winners" WHERE "men_s_singles"='andrew downes';</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 "previous_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "Who won the mixed doubles in the years that the men's doubles has no competition?". [/INST] SELECT "mixed_doubles" FROM "previous_winners" WHERE "men_s_doubles"='no competition';</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, "record" text );. Question: "Who lost when the mariners played on September 12?". [/INST] SELECT "loss" FROM "game_log" WHERE "opponent"='mariners' AND "date"='september 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" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );. Question: "On September 7 what was the record?". [/INST] SELECT "record" FROM "game_log" WHERE "date"='september 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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );. Question: "Who plays on the date september 29?". [/INST] SELECT "opponent" FROM "game_log" WHERE "date"='september 29';</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 "radio_iq_full_power_affiliates" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text );. Question: "Which city of license has a wriq Call sign?". [/INST] SELECT "city_of_license" FROM "radio_iq_full_power_affiliates" WHERE "call_sign"='wriq';</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 "radio_iq_full_power_affiliates" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text );. Question: "What is the total of Frequency MHz with a Class of b1?". [/INST] SELECT SUM("frequency_m_hz") FROM "radio_iq_full_power_affiliates" WHERE "class"='b1';</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 "radio_iq_full_power_affiliates" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text );. Question: "Which ERP W has a Class of A, and a Call sign of wffc?". [/INST] SELECT "erp_w" FROM "radio_iq_full_power_affiliates" WHERE "class"='a' AND "call_sign"='wffc';</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 "radio_iq_full_power_affiliates" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text );. Question: "Which class City of license of ferrum, virginia?". [/INST] SELECT "class" FROM "radio_iq_full_power_affiliates" WHERE "city_of_license"='ferrum, virginia';</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 "radio_iq_full_power_affiliates" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text );. Question: "Which call sign has a Class of A, and a Frequency MHz of 88.7?". [/INST] SELECT "call_sign" FROM "radio_iq_full_power_affiliates" WHERE "class"='a' AND "frequency_m_hz"=88.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 "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "what heat number had a time of 58.44?". [/INST] SELECT COUNT("heat") FROM "heats" WHERE "time"='58.44';</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 "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "what lane was new zealand in?". [/INST] SELECT "lane" FROM "heats" WHERE "nationality"='new zealand';</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 "stage_results" ( "stage" text, "date" text, "course" text, "distance" text, "winner" text, "race_leader" text );. Question: "What stage of the race was held on the course Reggio Calabria to Catanzaro?". [/INST] SELECT "stage" FROM "stage_results" WHERE "course"='reggio calabria to catanzaro';</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 "stage_results" ( "stage" text, "date" text, "course" text, "distance" text, "winner" text, "race_leader" text );. Question: "Who was the winner for the Rome to Teramo course?". [/INST] SELECT "winner" FROM "stage_results" WHERE "course"='rome to teramo';</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 "stage_results" ( "stage" text, "date" text, "course" text, "distance" text, "winner" text, "race_leader" text );. Question: "Who was the winner of stage 11?". [/INST] SELECT "winner" FROM "stage_results" WHERE "stage"='11';</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 "club" ( "season" text, "team" text, "country" text, "division" text, "apps" real, "goals" real );. Question: "What is the average Apps of indonesia with Goals smaller than 1000?". [/INST] SELECT AVG("apps") FROM "club" WHERE "country"='indonesia' AND "goals"<1000;</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 "club" ( "season" text, "team" text, "country" text, "division" text, "apps" real, "goals" real );. Question: "What division is Traktor Tashkent in 2005?". [/INST] SELECT "division" FROM "club" WHERE "team"='traktor tashkent' AND "season"='2005';</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 "club" ( "season" text, "team" text, "country" text, "division" text, "apps" real, "goals" real );. Question: "How many apps does Uzbekistan have in 2003?". [/INST] SELECT "apps" FROM "club" WHERE "country"='uzbekistan' AND "season"='2003';</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 was the attendance at the game when the record was 74-77?". [/INST] SELECT "attendance" FROM "game_log" WHERE "record"='74-77';</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 was score of the game when the record was 72-74?". [/INST] SELECT "score" FROM "game_log" WHERE "record"='72-74';</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 "series_3" ( "episode_no" real, "airdate" text, "total_viewers" real, "share" text, "bbc_one_weekly_ranking" real );. Question: "What were the air-dates of the episodes before episode 4 that had a BBC One weekly ranking of 6?". [/INST] SELECT "airdate" FROM "series_3" WHERE "episode_no"<4 AND "bbc_one_weekly_ranking"=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 "series_3" ( "episode_no" real, "airdate" text, "total_viewers" real, "share" text, "bbc_one_weekly_ranking" real );. Question: "What was the total viewership for BBC One weekly rankings larger than 7, before episode 4?". [/INST] SELECT "total_viewers" FROM "series_3" WHERE "bbc_one_weekly_ranking">7 AND "episode_no"<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 "cultural_events" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Name the most rank with bronze of 0 and silver more than 1 and gold more than 0". [/INST] SELECT MAX("rank") FROM "cultural_events" WHERE "bronze"=0 AND "silver">1 AND "gold">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 "cultural_events" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Name the average silver with total less than 1". [/INST] SELECT AVG("silver") FROM "cultural_events" WHERE "total"<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 "awards" ( "year" real, "award" text, "festival" text, "nominated_work" text, "result" text );. Question: "Name the average year for result of nominated". [/INST] SELECT AVG("year") FROM "awards" WHERE "result"='nominated';</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 "awards" ( "year" real, "award" text, "festival" text, "nominated_work" text, "result" text );. Question: "Name the nominated work for 1996 and festival of black maria film and video festival". [/INST] SELECT "nominated_work" FROM "awards" WHERE "year"=1996 AND "festival"='black maria film and video festival';</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 "league" ( "date" text, "team" text, "venue" text, "win_draw_lose" text, "score" text );. Question: "What was the date of the away game that they lost to Accrington?". [/INST] SELECT "date" FROM "league" WHERE "venue"='away' AND "win_draw_lose"='lost' AND "team"='accrington';</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 "league" ( "date" text, "team" text, "venue" text, "win_draw_lose" text, "score" text );. Question: "What was the date of the home game against Accrington?". [/INST] SELECT "date" FROM "league" WHERE "team"='accrington' AND "venue"='home';</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 "league" ( "date" text, "team" text, "venue" text, "win_draw_lose" text, "score" text );. Question: "What was the result of the home game against Derby County?". [/INST] SELECT "win_draw_lose" FROM "league" WHERE "venue"='home' AND "team"='derby county';</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 "for_the_x_window_system" ( "name" text, "creator" text, "latest_stable_version" text, "standard_cost_usd" text, "software_license" text );. Question: "What is the Standard cost (USD) by hans Oischinger Creator ?". [/INST] SELECT "standard_cost_usd" FROM "for_the_x_window_system" WHERE "creator"='hans oischinger';</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 "for_the_x_window_system" ( "name" text, "creator" text, "latest_stable_version" text, "standard_cost_usd" text, "software_license" text );. Question: "What is the Standard cost (USD) of Kwin team creator?". [/INST] SELECT "standard_cost_usd" FROM "for_the_x_window_system" WHERE "creator"='kwin team';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.