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: "Which Home team has a Venue of arden street oval?". [/INST] SELECT "home_team" 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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "When did tavárez lose?". [/INST] SELECT "date" FROM "game_log" WHERE "loss"='tavárez';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_municipalities_in_quebec" ( "code" real, "type" text, "name" text, "area_km_2" real, "population" real, "regional_county_municipality" text, "metropolitan_area" text, "region" real );. Question: "What is the largest area with a Code of 66097, and a Region larger than 6?". [/INST] SELECT MAX("area_km_2") FROM "list_of_municipalities_in_quebec" WHERE "code"=66097 AND "region">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 "list_of_municipalities_in_quebec" ( "code" real, "type" text, "name" text, "area_km_2" real, "population" real, "regional_county_municipality" text, "metropolitan_area" text, "region" real );. Question: "What is the largest region with a Code smaller than 66112, and a Name of l'île-dorval?". [/INST] SELECT MAX("region") FROM "list_of_municipalities_in_quebec" WHERE "code"<66112 AND "name"='l''île-dorval';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );. Question: "Name the away team score for lake oval". [/INST] SELECT "away_team_score" FROM "round_2" 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_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );. Question: "Name the home team score for south melbourne home team". [/INST] SELECT "home_team_score" FROM "round_2" WHERE "home_team"='south 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_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );. Question: "Name the home team for carlton away team". [/INST] SELECT "home_team" FROM "round_2" WHERE "away_team"='carlton';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "Who was the women's singles champion in 1984?". [/INST] SELECT "women_s_singles" FROM "references" WHERE "year"='1984';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "Who were the men's doubles champions when the men's singles champion was muljadi?". [/INST] SELECT "men_s_doubles" FROM "references" WHERE "men_s_singles"='muljadi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );. Question: "when was the site listed when the county is cochise?". [/INST] SELECT "listed" FROM "superfund_sites" WHERE "county"='cochise';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );. Question: "what is the cerclis ID when the site was proposed on 12/30/1982 and was partially deleted on 05/01/2003?". [/INST] SELECT "cerclis_id" FROM "superfund_sites" WHERE "proposed"='12/30/1982' AND "partially_deleted"='05/01/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 "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );. Question: "when was the site partially deleted when the cerclis id is az7570028582?". [/INST] SELECT "partially_deleted" FROM "superfund_sites" WHERE "cerclis_id"='az7570028582';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "gsm_900_gsm_1800_and_egsm_egsm_900" ( "system" text, "band" real, "uplink_m_hz" text, "downlink_m_hz" text, "channel_number" text );. Question: "What band is the highest and has a System of gsm-450?". [/INST] SELECT MAX("band") FROM "gsm_900_gsm_1800_and_egsm_egsm_900" WHERE "system"='gsm-450';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What was the constructor when there were 95 laps and a grid less than 15?". [/INST] SELECT "constructor" FROM "classification" WHERE "grid"<15 AND "laps"=95;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What was the grid for suspension time/retired?". [/INST] SELECT "grid" FROM "classification" WHERE "time_retired"='suspension';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When the venue is victoria park, what's the largest Crowd that attended?". [/INST] SELECT MAX("crowd") FROM "round_17" WHERE "venue"='victoria 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_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When the Away team is south melbourne, what's the Home team score?". [/INST] SELECT "home_team_score" FROM "round_17" WHERE "away_team"='south 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_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "If the Away team is north melbourne, what's the Home team score?". [/INST] SELECT "home_team_score" FROM "round_17" WHERE "away_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_17" ( "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 score was 15.18 (108), what's the lowest Crowd turnout?". [/INST] SELECT MIN("crowd") FROM "round_17" WHERE "home_team_score"='15.18 (108)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "If the Crowd is larger than 10,000 and the Away team score is 11.15 (81), what is the venue being played at?". [/INST] SELECT "venue" FROM "round_17" WHERE "away_team_score"='11.15 (81)' AND "crowd">'10,000';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );. Question: "Name the manner of departyre for 26 january date of appointment". [/INST] SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_appointment"='26 january';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );. Question: "I want to know the team that was sacked and date of vacancy was 4 december". [/INST] SELECT "team" FROM "managerial_changes" WHERE "manner_of_departure"='sacked' AND "date_of_vacancy"='4 december';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );. Question: "Tell me the outgoing manager for 22 november date of vacancy". [/INST] SELECT "outgoing_manager" FROM "managerial_changes" WHERE "date_of_vacancy"='22 november';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );. Question: "Tell me the outgoing manager for livingston". [/INST] SELECT "outgoing_manager" FROM "managerial_changes" WHERE "team"='livingston';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );. Question: "Tell me the manner of departure for 3 january date of appointment". [/INST] SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_appointment"='3 january';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );. Question: "When did the Argentine Grand Prix race?". [/INST] SELECT "date" FROM "season_review" WHERE "race"='argentine 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 "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );. Question: "What day did Emerson Fittipaldi win the Spanish Grand Prix?". [/INST] SELECT "date" FROM "season_review" WHERE "winning_driver"='emerson fittipaldi' AND "race"='spanish 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 "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );. Question: "What circuit was the British Grand Prix?". [/INST] SELECT "circuit" FROM "season_review" WHERE "race"='british 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 "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "On which date was the 2006 FIFA World Cup Qualification in Manama, Bahrain?". [/INST] SELECT "date" FROM "goals_for_senior_national_team" WHERE "venue"='manama, bahrain' AND "competition"='2006 fifa world cup qualification';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What was the final score of the Friendly Competition in Manama, Bahrain?". [/INST] SELECT "score" FROM "goals_for_senior_national_team" WHERE "venue"='manama, bahrain' AND "competition"='friendly';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "On which date was the match in Manama, Bahrain?". [/INST] SELECT "date" FROM "goals_for_senior_national_team" WHERE "venue"='manama, bahrain';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "How many laps did Emerson Fittipaldi do on a grid larger than 14, and when was the Time/Retired of accident?". [/INST] SELECT COUNT("laps") FROM "classification" WHERE "grid">14 AND "time_retired"='accident' AND "driver"='emerson fittipaldi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the Time/Retired of Carlos Reutemann who was driving a brabham - Alfa Romeo?". [/INST] SELECT "time_retired" FROM "classification" WHERE "constructor"='brabham - alfa romeo' AND "driver"='carlos reutemann';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "preservation" ( "vehicle_numbers" text, "vehicle_types" text, "livery" text, "location" text, "status" text );. Question: "what status is the vehicle types of dmbs+tcl+dmcl?". [/INST] SELECT "status" FROM "preservation" WHERE "vehicle_types"='dmbs+tcl+dmcl';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "preservation" ( "vehicle_numbers" text, "vehicle_types" text, "livery" text, "location" text, "status" text );. Question: "what livery has a status of in service as coaching stock?". [/INST] SELECT "livery" FROM "preservation" WHERE "status"='in service as coaching stock';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "preservation" ( "vehicle_numbers" text, "vehicle_types" text, "livery" text, "location" text, "status" text );. Question: "what status is the vehicle numbers of adb977554?". [/INST] SELECT "status" FROM "preservation" WHERE "vehicle_numbers"='adb977554';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_teams" ( "name" text, "city" text, "stadium" text, "first_season_in_first_division" text, "first_season_after_most_recent_promotion" text );. Question: "Which city is Alianza?". [/INST] SELECT "city" FROM "current_teams" WHERE "name"='alianza';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_teams" ( "name" text, "city" text, "stadium" text, "first_season_in_first_division" text, "first_season_after_most_recent_promotion" text );. Question: "When was Alianza's first season in first division with a promotion after 1959?". [/INST] SELECT "first_season_in_first_division" FROM "current_teams" WHERE "first_season_after_most_recent_promotion"='1959' AND "name"='alianza';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the largest crowd with Away team score of 13.16 (94)?". [/INST] SELECT MAX("crowd") FROM "round_2" WHERE "away_team_score"='13.16 (94)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the away team with a Crowd greater than 13,000, and a Home team score of 12.11 (83)?". [/INST] SELECT "away_team" FROM "round_2" WHERE "crowd">'13,000' AND "home_team_score"='12.11 (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 "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the total of crowd with Home team score of 14.12 (96)?". [/INST] SELECT SUM("crowd") FROM "round_2" WHERE "home_team_score"='14.12 (96)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the home team for victoria park?". [/INST] SELECT "home_team" FROM "round_2" WHERE "venue"='victoria 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_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which home team has a Away team of hawthorn?". [/INST] SELECT "home_team" FROM "round_2" WHERE "away_team"='hawthorn';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "save" text );. Question: "Who is the opponent with a score of 6–5 13?". [/INST] SELECT "opponent" FROM "game_log" WHERE "score"='6–5 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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text );. Question: "Who is the opponent with a save of ||33,453||36–27?". [/INST] SELECT "opponent" FROM "game_log" WHERE "save"='||33,453||36–27';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What is the top grid that laps less than 66 and a retried engine?". [/INST] SELECT MAX("grid") FROM "race" WHERE "time_retired"='engine' AND "laps"<66;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What is the top lap that had a tyre time?". [/INST] SELECT MAX("laps") FROM "race" WHERE "time_retired"='tyre';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What is the top grid that roger williamson lapped less than 7?". [/INST] SELECT MAX("grid") FROM "race" WHERE "driver"='roger williamson' AND "laps"<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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text, "location" text );. Question: "What opponent does she fight when she is 10-1?". [/INST] SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "record"='10-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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text, "location" text );. Question: "What is the highest number of rounds for a 3:16 fight?". [/INST] SELECT MAX("round") FROM "mixed_martial_arts_record" WHERE "time"='3: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 "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What day is south melbourne at home?". [/INST] SELECT "date" FROM "round_7" WHERE "home_team"='south 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_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the listed crowd when hawthorn is away?". [/INST] SELECT COUNT("crowd") FROM "round_7" WHERE "away_team"='hawthorn';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the home team's score at mcg?". [/INST] SELECT "home_team_score" FROM "round_7" WHERE "venue"='mcg';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Tell me who was the opponent on May 6". [/INST] SELECT "opponent" FROM "game_log" WHERE "date"='may 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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "Name the score when the opponent was the dodgers on april 21". [/INST] SELECT "score" FROM "game_log" WHERE "opponent"='dodgers' AND "date"='april 21';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1983_nfl_draft" ( "round" real, "pick" real, "name" text, "position" text, "school" text );. Question: "What is the number of the pick for round 11?". [/INST] SELECT SUM("pick") FROM "1983_nfl_draft" WHERE "round"=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 "1983_nfl_draft" ( "round" real, "pick" real, "name" text, "position" text, "school" text );. Question: "What is the largest pick in round 8?". [/INST] SELECT MAX("pick") FROM "1983_nfl_draft" WHERE "round"=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 "1983_nfl_draft" ( "round" real, "pick" real, "name" text, "position" text, "school" text );. Question: "What is the position of the player for Washington school?". [/INST] SELECT "position" FROM "1983_nfl_draft" WHERE "school"='washington';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1960s" ( "year" real, "network" text, "play_by_play" text, "colour_commentator_s" text, "studio_host" text );. Question: "Who gave the play by play commentary with studio host Ward Cornell?". [/INST] SELECT "play_by_play" FROM "1960s" WHERE "studio_host"='ward cornell';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1960s" ( "year" real, "network" text, "play_by_play" text, "colour_commentator_s" text, "studio_host" text );. Question: "Were the color commentators who worked with Bill Hewitt doing the play-by-play?". [/INST] SELECT "colour_commentator_s" FROM "1960s" WHERE "play_by_play"='bill hewitt';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1960s" ( "year" real, "network" text, "play_by_play" text, "colour_commentator_s" text, "studio_host" text );. Question: "Who did the play-by-play with studio host Ward Cornell and color commentator Bob Goldham?". [/INST] SELECT "play_by_play" FROM "1960s" WHERE "studio_host"='ward cornell' AND "colour_commentator_s"='bob goldham';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1960s" ( "year" real, "network" text, "play_by_play" text, "colour_commentator_s" text, "studio_host" text );. Question: "Who did the play-by-play on the CBC network before 1961?". [/INST] SELECT "play_by_play" FROM "1960s" WHERE "network"='cbc' AND "year"<1961;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "organisation" text, "ceremony" text, "award" text, "result" text );. Question: "What's the award for #100?". [/INST] SELECT "award" FROM "awards" WHERE "result"='#100';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "organisation" text, "ceremony" text, "award" text, "result" text );. Question: "Which award was nominated for in 2000?". [/INST] SELECT "award" FROM "awards" WHERE "year"=2000 AND "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, "organisation" text, "ceremony" text, "award" text, "result" text );. Question: "What were the results before the year 2000?". [/INST] SELECT "result" FROM "awards" WHERE "year"<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 "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "What is the 2nd leg of the Comunicaciones team?". [/INST] SELECT "2nd_leg" FROM "first_round" WHERE "team_1"='comunicaciones';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 is the 1st leg where Team 1 is C.D. Plaza Amador?". [/INST] SELECT "1st_leg" FROM "first_round" WHERE "team_1"='c.d. plaza amador';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 is the 1st leg where Team 1 is C.D. Plaza Amador?". [/INST] SELECT "1st_leg" FROM "first_round" WHERE "team_1"='c.d. plaza amador';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_7_6_1" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text );. Question: "Who played on a hard surface?". [/INST] SELECT "partner" FROM "doubles_7_6_1" WHERE "surface"='hard';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 north melbourne's score as an away side?". [/INST] SELECT "away_team_score" FROM "round_18" WHERE "away_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: "Whom is the home team when the away team score is 9.11 (65)?". [/INST] SELECT "home_team" FROM "round_18" WHERE "away_team_score"='9.11 (65)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "festival" text, "year" real, "result" text, "award" text, "category" text );. Question: "What is the average year of the Fantasia Section Award?". [/INST] SELECT AVG("year") FROM "awards" WHERE "award"='fantasia section award';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "other_picks" ( "round" real, "pick" real, "player" text, "position" text, "nationality" text, "team" text, "college" text );. Question: "What is the sum total of picks for drake players from the tri-cities blackhawks?". [/INST] SELECT SUM("pick") FROM "other_picks" WHERE "team"='tri-cities blackhawks' AND "college"='drake';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "other_picks" ( "round" real, "pick" real, "player" text, "position" text, "nationality" text, "team" text, "college" text );. Question: "What is the lowest pick number for players from king's (ny)?". [/INST] SELECT MIN("pick") FROM "other_picks" WHERE "college"='king''s (ny)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "Who was the Home Team while Calgary was visiting while having an Attendance above 15,655?". [/INST] SELECT "home" FROM "game_log" WHERE "visitor"='calgary' AND "attendance">'15,655';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "standard" ( "string" text, "scientific_pitch" text, "helmholtz_pitch" text, "interval_from_middle_c" text, "frequency_hz" real );. Question: "What is the lowest Frequency where the Hemholtz pitch is d?". [/INST] SELECT MIN("frequency_hz") FROM "standard" WHERE "helmholtz_pitch"='d';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "standard" ( "string" text, "scientific_pitch" text, "helmholtz_pitch" text, "interval_from_middle_c" text, "frequency_hz" real );. Question: "What is the scientific pitch when the Helmholtz pitch is D?". [/INST] SELECT "scientific_pitch" FROM "standard" WHERE "helmholtz_pitch"='d';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text );. Question: "What company constrcuted the vehicle with a circuit of oulton park on 15 april?". [/INST] SELECT "constructor" FROM "non_championship_race_results" WHERE "circuit"='oulton park' AND "date"='15 april';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text );. Question: "What is the name of the race on 16 september?". [/INST] SELECT "race_name" FROM "non_championship_race_results" WHERE "date"='16 september';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text );. Question: "What is the circuit held on 15 april?". [/INST] SELECT "circuit" FROM "non_championship_race_results" WHERE "date"='15 april';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text );. Question: "What date was the xiv international gold cup?". [/INST] SELECT "date" FROM "non_championship_race_results" WHERE "race_name"='xiv international gold cup';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text );. Question: "Name the date for race title lakeside". [/INST] SELECT "date" FROM "race_calendar" WHERE "race_title"='lakeside';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text );. Question: "Name the team for launceston". [/INST] SELECT "team" FROM "race_calendar" WHERE "race_title"='launceston';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sri_lanka" ( "player" text, "date_of_birth" text, "batting_style" text, "bowling_style" text, "first_class_team" text );. Question: "Who has a bowling style of source:?". [/INST] SELECT "player" FROM "sri_lanka" WHERE "bowling_style"='source:';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sri_lanka" ( "player" text, "date_of_birth" text, "batting_style" text, "bowling_style" text, "first_class_team" text );. Question: "What first class team does sanath jayasuriya play for?". [/INST] SELECT "first_class_team" FROM "sri_lanka" WHERE "player"='sanath jayasuriya';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sri_lanka" ( "player" text, "date_of_birth" text, "batting_style" text, "bowling_style" text, "first_class_team" text );. Question: "When was roshan mahanama born?". [/INST] SELECT "date_of_birth" FROM "sri_lanka" WHERE "player"='roshan mahanama';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sri_lanka" ( "player" text, "date_of_birth" text, "batting_style" text, "bowling_style" text, "first_class_team" text );. Question: "When was avishka gunawardene born?". [/INST] SELECT "date_of_birth" FROM "sri_lanka" WHERE "player"='avishka gunawardene';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What was the venue where the result was 2-1?". [/INST] SELECT "venue" FROM "international_goals" WHERE "result"='2-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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What was the score of the match with a 3-0 result?". [/INST] SELECT "score" FROM "international_goals" WHERE "result"='3-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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the score of the match on July 29, 1990?". [/INST] SELECT "score" FROM "international_goals" WHERE "date"='july 29, 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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the venue of the 1990 Asian games?". [/INST] SELECT "venue" FROM "international_goals" WHERE "competition"='1990 asian games';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the score of the match on October 5, 1990?". [/INST] SELECT "score" FROM "international_goals" WHERE "date"='october 5, 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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the competition at the ta'qali venue?". [/INST] SELECT "competition" FROM "international_goals" WHERE "venue"='ta''qali';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "torneo_clausura_closing_tournament" ( "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "diff" real );. Question: "What is the average against score of all teams with less than 7 losses, more than 6 draws, and 25 points?". [/INST] SELECT AVG("against") FROM "torneo_clausura_closing_tournament" WHERE "lost"<7 AND "drawn">6 AND "points"=25;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "torneo_clausura_closing_tournament" ( "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "diff" real );. Question: "What is the lowest number of points of any team with less than 6 draws and less than 18 matches played?". [/INST] SELECT MIN("points") FROM "torneo_clausura_closing_tournament" WHERE "drawn"<6 AND "played"<18;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "torneo_clausura_closing_tournament" ( "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "diff" real );. Question: "What is the sum of the points of all teams that had against scores less than 14?". [/INST] SELECT SUM("points") FROM "torneo_clausura_closing_tournament" WHERE "against"<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 "superfund_sites" ( "cerclis_id" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );. Question: "What construction completed on 08/10/2007?". [/INST] SELECT "listed" FROM "superfund_sites" WHERE "construction_completed"='08/10/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 "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What away team played at western oval?". [/INST] SELECT "away_team" FROM "round_2" WHERE "venue"='western 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_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which away team has a Home team score of 12.14 (86)?". [/INST] SELECT "away_team_score" FROM "round_2" WHERE "home_team_score"='12.14 (86)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2" ( "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 an Away team of richmond?". [/INST] SELECT "home_team" FROM "round_2" WHERE "away_team"='richmond';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.