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 "see_also" ( "harmonic" real, "ratio" text, "cents" real, "12_et_cents" text, "53_et_commas" real, "53_et_cents" real );. Question: "What is the sum of cents that has 53ET cents less than 113.21, and a harmonic more than 1?". [/INST] SELECT SUM("cents") FROM "see_also" WHERE "53_et_cents"<113.21 AND "harmonic">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 "see_also" ( "harmonic" real, "ratio" text, "cents" real, "12_et_cents" text, "53_et_commas" real, "53_et_cents" real );. Question: "What is the sum of cents that has 12ET cents of 100, and less than 17 harmonic?". [/INST] SELECT SUM("cents") FROM "see_also" WHERE "12_et_cents"='100' AND "harmonic"<17;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "hydro_power_stations" ( "s_no" real, "power_plant" text, "state" text, "commissioned_capacity_mw" real, "year_of_commission" real );. Question: "What power plant was commissioned in 2008?". [/INST] SELECT "power_plant" FROM "hydro_power_stations" WHERE "year_of_commission"=2008;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_and_nominations" ( "year" real, "event" text, "category" text, "nominated_work" text, "result" text );. Question: "What is the Nominated work of popularity award (actor in a motion picture)?". [/INST] SELECT "nominated_work" FROM "awards_and_nominations" WHERE "category"='popularity award (actor in a motion picture)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "game_site" text, "record" text, "attendance" real );. Question: "What is the game site of the game with the san diego chargers as the opponent?". [/INST] SELECT "game_site" FROM "schedule" WHERE "opponent"='san diego chargers';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_of_16" ( "team_1" text, "score" text, "team_2" text, "1st_round" text, "2nd_round" text );. Question: "What is the first round when team 1 was toulouse fc (d1)?". [/INST] SELECT "1st_round" FROM "round_of_16" WHERE "team_1"='toulouse fc (d1)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "record_against_other_players" ( "player" text, "ranking" real, "record" text, "hardcourt" text, "clay" text, "grass" text, "carpet" text );. Question: "What is Shahar Pe'er's record?". [/INST] SELECT "record" FROM "record_against_other_players" WHERE "player"='shahar pe''er';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Which country placed t3 and had the player Fred Couples?". [/INST] SELECT "country" FROM "second_round" WHERE "place"='t3' AND "player"='fred couples';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 is the to par for Fred Couples when the score is 68-66=134?". [/INST] SELECT "to_par" FROM "second_round" WHERE "score"='68-66=134' AND "player"='fred couples';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Which country scored 66-68=134?". [/INST] SELECT "country" FROM "second_round" WHERE "score"='66-68=134';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 did Fred Couples place?". [/INST] SELECT "place" FROM "second_round" WHERE "player"='fred couples';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 player scored 68-66=134?". [/INST] SELECT "player" FROM "second_round" WHERE "score"='68-66=134';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "What Player has a To par of +5 with a Score of 70-70-71-74=285?". [/INST] SELECT "player" FROM "final_leaderboard" WHERE "to_par"='+5' AND "score"='70-70-71-74=285';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "What is the Place of the Player with a Score of 73-67-74-71=285?". [/INST] SELECT "place" FROM "final_leaderboard" WHERE "score"='73-67-74-71=285';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "What T9 Place Player had a Score of 73-67-74-71=285?". [/INST] SELECT "player" FROM "final_leaderboard" WHERE "place"='t9' AND "score"='73-67-74-71=285';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "Who is the player with a t8 place?". [/INST] SELECT "player" FROM "final_round" WHERE "place"='t8';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "What is the average amount of money of players in t8 place with a 68-71-69-72=280 score?". [/INST] SELECT AVG("money") FROM "final_round" WHERE "place"='t8' AND "score"='68-71-69-72=280';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "What is the country of player vijay singh?". [/INST] SELECT "country" FROM "final_round" WHERE "player"='vijay singh';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "knockout_phase" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );. Question: "What is the Result F-A that was the quarter-final first leg round with a H/A of h?". [/INST] SELECT "result_f_a" FROM "knockout_phase" WHERE "h_a"='h' AND "round"='quarter-final first leg';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "decision" text, "attendance" real, "record" text );. Question: "What was the score when the decision was Raycroft, with attendance larger than 18,277, on February 11?". [/INST] SELECT "score" FROM "game_log" WHERE "decision"='raycroft' AND "attendance">'18,277' AND "date"='february 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 "game_log" ( "date" text, "opponent" text, "score" text, "decision" text, "attendance" real, "record" text );. Question: "What was the opponent when the score was 3 - 2, and the decision was Raycroft, with a record of 25-29-1?". [/INST] SELECT "opponent" FROM "game_log" WHERE "score"='3 - 2' AND "decision"='raycroft' AND "record"='25-29-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 "round_two" ( "pick_num" real, "player" text, "nationality" text, "position" text, "team_from" text, "league_from" text );. Question: "Which Position has a League from of western hockey league, and a Team from of everett silvertips?". [/INST] SELECT "position" FROM "round_two" WHERE "league_from"='western hockey league' AND "team_from"='everett silvertips';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_two" ( "pick_num" real, "player" text, "nationality" text, "position" text, "team_from" text, "league_from" text );. Question: "Which Player has a Position of rw, and a League from of western hockey league?". [/INST] SELECT "player" FROM "round_two" WHERE "position"='rw' AND "league_from"='western hockey league';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_two" ( "pick_num" real, "player" text, "nationality" text, "position" text, "team_from" text, "league_from" text );. Question: "Which Pick # has a Nationality of canada, and a Team from of sudbury wolves?". [/INST] SELECT MIN("pick_num") FROM "round_two" WHERE "nationality"='canada' AND "team_from"='sudbury wolves';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_two" ( "pick_num" real, "player" text, "nationality" text, "position" text, "team_from" text, "league_from" text );. Question: "Which Pick # has a League from of ontario hockey league, a Nationality of united states, and a Team from of brampton battalion?". [/INST] SELECT COUNT("pick_num") FROM "round_two" WHERE "league_from"='ontario hockey league' AND "nationality"='united states' AND "team_from"='brampton battalion';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_two" ( "pick_num" real, "player" text, "nationality" text, "position" text, "team_from" text, "league_from" text );. Question: "Which League from has a Position of lw, a Pick # larger than 34, and a Player of bradley ross?". [/INST] SELECT "league_from" FROM "round_two" WHERE "position"='lw' AND "pick_num">34 AND "player"='bradley ross';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_two" ( "pick_num" real, "player" text, "nationality" text, "position" text, "team_from" text, "league_from" text );. Question: "Which Position has a Team from of ottawa 67's, and a Pick # smaller than 47?". [/INST] SELECT "position" FROM "round_two" WHERE "team_from"='ottawa 67''s' AND "pick_num"<47;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pennsylvania" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );. Question: "Who is the republican Incumbent for Pennsylvania 9?". [/INST] SELECT "incumbent" FROM "pennsylvania" WHERE "party"='republican' AND "district"='pennsylvania 9';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pennsylvania" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );. Question: "What are the results for Bill Shuster?". [/INST] SELECT "results" FROM "pennsylvania" WHERE "incumbent"='bill shuster';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pennsylvania" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );. Question: "What is the greatest first elected for Pennsylvania 10?". [/INST] SELECT MAX("first_elected") FROM "pennsylvania" WHERE "district"='pennsylvania 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 "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What country had a Finish of t8?". [/INST] SELECT "country" FROM "made_the_cut" WHERE "finish"='t8';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What Player had a To Par of +2?". [/INST] SELECT "player" FROM "made_the_cut" WHERE "to_par"='+2';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What is the To Par of the player with a t8 Finish?". [/INST] SELECT "to_par" FROM "made_the_cut" WHERE "finish"='t8';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_ft_m" text, "floors" real, "year" real );. Question: "How tall is the building built in 1985 with 22 floors?". [/INST] SELECT "height_ft_m" FROM "tallest_buildings" WHERE "floors"=22 AND "year"=1985;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_ft_m" text, "floors" real, "year" real );. Question: "How many floors are in the building built after 2007, and ranked #10=?". [/INST] SELECT AVG("floors") FROM "tallest_buildings" WHERE "rank"='10=' AND "year">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 "tallest_buildings" ( "rank" text, "name" text, "height_ft_m" text, "floors" real, "year" real );. Question: "How tall is the building ranked #13?". [/INST] SELECT "height_ft_m" FROM "tallest_buildings" WHERE "rank"='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 "title_holders_from_2000_until_2010" ( "year" real, "miss_universe_philippines" text, "binibining_pilipinas_world" text, "binibining_pilipinas_international" text, "binibining_pilipinas_tourism" text, "first_runner_up" text, "second_runner_up" text );. Question: "Who won Miss Universe Philippines when the first runner-up was Danielle Castaño and Janina San Miguel won Binibining Pilipinas-World?". [/INST] SELECT "miss_universe_philippines" FROM "title_holders_from_2000_until_2010" WHERE "first_runner_up"='danielle castaño' AND "binibining_pilipinas_world"='janina san miguel';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "title_holders_from_2000_until_2010" ( "year" real, "miss_universe_philippines" text, "binibining_pilipinas_world" text, "binibining_pilipinas_international" text, "binibining_pilipinas_tourism" text, "first_runner_up" text, "second_runner_up" text );. Question: "Who won Miss Universe Philippines when Regina Hahn was second runner-up?". [/INST] SELECT "miss_universe_philippines" FROM "title_holders_from_2000_until_2010" WHERE "second_runner_up"='regina hahn';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "title_holders_from_2000_until_2010" ( "year" real, "miss_universe_philippines" text, "binibining_pilipinas_world" text, "binibining_pilipinas_international" text, "binibining_pilipinas_tourism" text, "first_runner_up" text, "second_runner_up" text );. Question: "When Bianca Manalo won Miss Universe Philippines who was the second runner-up?". [/INST] SELECT "second_runner_up" FROM "title_holders_from_2000_until_2010" WHERE "miss_universe_philippines"='bianca manalo';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "order" text, "title" text, "elevated" text, "elevator" text );. Question: "What order has the title Deacon of SS. Cosma E Damiano?". [/INST] SELECT "order" FROM "cardinal_electors" WHERE "title"='deacon of ss. cosma e damiano';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "widebody_specifications" ( "model" text, "eis_final_prod_year" text, "num_eng" real, "maximum_metric_mtow" text, "outside_diameter_main_passenger_deck" text );. Question: "What is # Eng., when Outside Diameter, Main Passenger Deck is "inches (m)", and when Maximum Metric MTOW is "231.3 tons"?". [/INST] SELECT "num_eng" FROM "widebody_specifications" WHERE "outside_diameter_main_passenger_deck"='inches (m)' AND "maximum_metric_mtow"='231.3 tons';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );. Question: "What is 2009, when 2008 is "A", when 2011 is "A", and when Tournament is "Paris Masters"?". [/INST] SELECT "2009" FROM "singles_performance_timeline" WHERE "2008"='a' AND "2011"='a' AND "tournament"='paris masters';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );. Question: "What is 2008, when 2009 is "A", and when Tournament is "Madrid Masters"?". [/INST] SELECT "2008" FROM "singles_performance_timeline" WHERE "2009"='a' AND "tournament"='madrid masters';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );. Question: "What is Tournament, when 2012 is "A", when 2011 is "A", and when 2008 is "A"?". [/INST] SELECT "tournament" FROM "singles_performance_timeline" WHERE "2012"='a' AND "2011"='a' AND "2008"='a';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );. Question: "What is 2009, when 2011 is "Q2"?". [/INST] SELECT "2009" FROM "singles_performance_timeline" WHERE "2011"='q2';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );. Question: "What is 2011, when Tournament is "Year-End Ranking"?". [/INST] SELECT "2011" FROM "singles_performance_timeline" WHERE "tournament"='year-end ranking';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" text, "to_par" text );. Question: "What was Mark O'Meara's total?". [/INST] SELECT "total" FROM "missed_the_cut" WHERE "player"='mark o''meara';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" text, "to_par" text );. Question: "What year did Tom Watson win?". [/INST] SELECT "year_s_won" FROM "missed_the_cut" WHERE "player"='tom watson';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parliaments_of_king_henry_viii" ( "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text );. Question: "Who was the 1st member elected in 1511/12?". [/INST] SELECT "1st_member" FROM "parliaments_of_king_henry_viii" WHERE "elected"='1511/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 "parliaments_of_king_henry_viii" ( "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text );. Question: "Who was the 1st member of the parliament that was dissolved 23 february 1510?". [/INST] SELECT "1st_member" FROM "parliaments_of_king_henry_viii" WHERE "dissolved"='23 february 1510';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parliaments_of_king_henry_viii" ( "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text );. Question: "When was the parliament that was elected in 1509/10, and had an unknown second member, dissolved?". [/INST] SELECT "dissolved" FROM "parliaments_of_king_henry_viii" WHERE "2nd_member"='unknown' AND "elected"='1509/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 "parliaments_of_king_henry_viii" ( "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text );. Question: "Who was the 1st member that was elected in 1541/42?". [/INST] SELECT "1st_member" FROM "parliaments_of_king_henry_viii" WHERE "elected"='1541/42';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parliaments_of_king_henry_viii" ( "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text );. Question: "Who was the 2nd member of the parliament that was assembled on 3 november 1529?". [/INST] SELECT "2nd_member" FROM "parliaments_of_king_henry_viii" WHERE "assembled"='3 november 1529';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parliaments_of_king_henry_viii" ( "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text );. Question: "Who was the 2nd member of the parliament that was assembled on 3 november 1529?". [/INST] SELECT "2nd_member" FROM "parliaments_of_king_henry_viii" WHERE "assembled"='3 november 1529';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1990s" ( "date" text, "result" text, "competition" text, "venue" text, "attendance" real );. Question: "What date was the competition of the Emerging Nations Tournament and a result of Scotland 34-9 Russia?". [/INST] SELECT "date" FROM "1990s" WHERE "competition"='emerging nations tournament' AND "result"='scotland 34-9 russia';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "locomotives_of_the_early_period_for_all_" ( "class" text, "number_s" text, "quantity" text, "year_s_of_manufacture" text, "type" text );. Question: "What number was manufactured 1 in 1841?". [/INST] SELECT "number_s" FROM "locomotives_of_the_early_period_for_all_" WHERE "quantity"='1' AND "year_s_of_manufacture"='1841';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "locomotives_of_the_early_period_for_all_" ( "class" text, "number_s" text, "quantity" text, "year_s_of_manufacture" text, "type" text );. Question: "What is the quantity of class B V?". [/INST] SELECT "quantity" FROM "locomotives_of_the_early_period_for_all_" WHERE "class"='b v';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "locomotives_of_the_early_period_for_all_" ( "class" text, "number_s" text, "quantity" text, "year_s_of_manufacture" text, "type" text );. Question: "What number corresponds to the quantity of 24?". [/INST] SELECT "number_s" FROM "locomotives_of_the_early_period_for_all_" WHERE "quantity"='24';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "germany" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );. Question: "What is Tim Wollthan's Date of Birth?". [/INST] SELECT "date_of_birth" FROM "germany" WHERE "name"='tim wollthan';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "germany" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );. Question: "What D Player with a Height of m (ft 4in) is in the Spandau 04 Club?". [/INST] SELECT "name" FROM "germany" WHERE "club"='spandau 04' AND "height"='m (ft 4in)' AND "pos"='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 "germany" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );. Question: "What is the Club of the Player with a Date of Birth of 1979-01-29?". [/INST] SELECT "club" FROM "germany" WHERE "date_of_birth"='1979-01-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 "germany" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );. Question: "What is the Weight of the Spandau 04 Player with a Height of m (ft 5in)?". [/INST] SELECT "weight" FROM "germany" WHERE "club"='spandau 04' AND "height"='m (ft 5in)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "germany" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );. Question: "What is Spandau 04 Player Jens Pohlmann's Pos.?". [/INST] SELECT "pos" FROM "germany" WHERE "club"='spandau 04' AND "name"='jens pohlmann';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "Which play is from Ireland?". [/INST] SELECT "player" FROM "first_round" WHERE "country"='ireland';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "Which country is Howard Clark from?". [/INST] SELECT "country" FROM "first_round" WHERE "player"='howard clark';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medals_by_country" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the most silver medals won among nations that won more than 40 medals total, less than 25 of them being gold, and more than 15 of them being bronze?". [/INST] SELECT MAX("silver") FROM "medals_by_country" WHERE "total">40 AND "gold"<25 AND "bronze">15;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "Of the 1978 winners, who had finish totals smaller than 292?". [/INST] SELECT "finish" FROM "made_the_cut" WHERE "total"<292 AND "year_s_won"='1978';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What were the finishes by David Graham with totals lower than 292?". [/INST] SELECT "finish" FROM "made_the_cut" WHERE "total"=292 AND "player"='david graham';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What is Australia´s finish?". [/INST] SELECT "finish" FROM "made_the_cut" WHERE "country"='australia';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text );. Question: "What is the name of the church that is located in florø?". [/INST] SELECT "church_name" FROM "churches_in_flora" WHERE "location_of_the_church"='florø';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text );. Question: "What is the name of the church that is located in eikefjord?". [/INST] SELECT "church_name" FROM "churches_in_flora" WHERE "location_of_the_church"='eikefjord';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text );. Question: "In which Parish (Prestegjeld) is the church called Stavang Kyrkje?". [/INST] SELECT "parish_prestegjeld" FROM "churches_in_flora" WHERE "church_name"='stavang kyrkje';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text );. Question: "What is the Sub-Parish (Sokn) that was built in 1957 in the location of Stavang?". [/INST] SELECT "sub_parish_sokn" FROM "churches_in_flora" WHERE "year_built"='1957' AND "location_of_the_church"='stavang';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text );. Question: "In what year was the church located in florø built?". [/INST] SELECT "year_built" FROM "churches_in_flora" WHERE "location_of_the_church"='florø';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text );. Question: "Which Parish (Prestegjeld) was built in 1907?". [/INST] SELECT "parish_prestegjeld" FROM "churches_in_flora" WHERE "year_built"='1907';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "high_prominence_peaks" ( "mountain_peak" text, "height_metres" real, "prominence_metres" real, "height_feet" real, "prominence_feet" real );. Question: "What's the height in feet of Mount Queen Bess with a height in metres less than 3298 and a prominence in feet of more than 7,126?". [/INST] SELECT MAX("height_feet") FROM "high_prominence_peaks" WHERE "prominence_feet">'7,126' AND "mountain_peak"='mount queen bess' AND "height_metres"<3298;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "high_prominence_peaks" ( "mountain_peak" text, "height_metres" real, "prominence_metres" real, "height_feet" real, "prominence_feet" real );. Question: "What's the total number of prominence in metres when the prominence is 7,356 ft and less than 2692 metres in height?". [/INST] SELECT COUNT("prominence_metres") FROM "high_prominence_peaks" WHERE "prominence_feet"='7,356' AND "height_metres"<2692;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "high_prominence_peaks" ( "mountain_peak" text, "height_metres" real, "prominence_metres" real, "height_feet" real, "prominence_feet" real );. Question: "What's the total number of prominence in metres of Otter Mountain with a height of less than 2692 metres and taller than 11,663 ft?". [/INST] SELECT COUNT("prominence_metres") FROM "high_prominence_peaks" WHERE "height_feet">'11,663' AND "mountain_peak"='otter mountain' AND "height_metres"<2692;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2000s" ( "year" real, "network" text, "play_by_play" text, "colour_commentator_s" text, "sideline_reporters" text, "pregame_host" text, "pregame_analysts" text );. Question: "What's the average year that sara orlesky and farhan lalji are the sideline reporters?". [/INST] SELECT AVG("year") FROM "2000s" WHERE "sideline_reporters"='sara orlesky and farhan lalji';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "game_site" text, "record" text, "attendance" real );. Question: "What was the attendance on september 29?". [/INST] SELECT MAX("attendance") FROM "schedule" 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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );. Question: "What was the attendance on september 8?". [/INST] SELECT AVG("attendance") FROM "schedule" WHERE "date"='september 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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );. Question: "Which Week has a Result of l 10–30, and an Attendance larger than 57,312?". [/INST] SELECT AVG("week") FROM "schedule" WHERE "result"='l 10–30' AND "attendance">'57,312';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What is Date, when Tie no is "3"?". [/INST] SELECT "date" FROM "sixth_round_proper" WHERE "tie_no"='3';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What is Date, when Away Team is "Brentford"?". [/INST] SELECT "date" FROM "sixth_round_proper" WHERE "away_team"='brentford';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What is Date, when Home Team is "Everton"?". [/INST] SELECT "date" FROM "sixth_round_proper" WHERE "home_team"='everton';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What is Away Team, when Home Team is "West Ham United"?". [/INST] SELECT "away_team" FROM "sixth_round_proper" WHERE "home_team"='west ham united';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_centuries" ( "name" text, "score" text, "balls" real, "venue" text, "date" text );. Question: "What is Venue, when Balls is "148"?". [/INST] SELECT "venue" FROM "list_of_centuries" WHERE "balls"=148;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_centuries" ( "name" text, "score" text, "balls" real, "venue" text, "date" text );. Question: "What is Name, when Score is "101"?". [/INST] SELECT "name" FROM "list_of_centuries" WHERE "score"='101';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_centuries" ( "name" text, "score" text, "balls" real, "venue" text, "date" text );. Question: "What is Date, when Venue is "Taunton", and when Name is "SC Ganguly"?". [/INST] SELECT "date" FROM "list_of_centuries" WHERE "venue"='taunton' AND "name"='sc ganguly';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_centuries" ( "name" text, "score" text, "balls" real, "venue" text, "date" text );. Question: "What is Balls, when Venue is "Bristol", and when Score is "104*"?". [/INST] SELECT "balls" FROM "list_of_centuries" WHERE "venue"='bristol' AND "score"='104*';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the number of silver when bronze is less than 0?". [/INST] SELECT COUNT("silver") FROM "performances_by_nation" WHERE "bronze"<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 "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the gold when silver is less than 1, rank is 12, and total is less than 3?". [/INST] SELECT MAX("gold") FROM "performances_by_nation" WHERE "silver"<1 AND "rank"=12 AND "total"<3;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What shows for gold when the rank is less than 3, and silver less than 1?". [/INST] SELECT SUM("gold") FROM "performances_by_nation" WHERE "rank"<3 AND "silver"<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 "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the total when gold is 1, and rank is more than 4, and bronze is 0?". [/INST] SELECT COUNT("total") FROM "performances_by_nation" WHERE "gold"=1 AND "rank">4 AND "bronze"=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 "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What shows for bronze when silver is 1, rank is smaller than 4, and gold is larger than 1?". [/INST] SELECT SUM("bronze") FROM "performances_by_nation" WHERE "silver"=1 AND "rank"<4 AND "gold">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 "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the gold when silver is 1, rank is larger than 3, total is smaller than 2, bronze is smaller than 0?". [/INST] SELECT SUM("gold") FROM "performances_by_nation" WHERE "silver"=1 AND "rank">3 AND "total"<2 AND "bronze"<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 "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What player is from France?". [/INST] SELECT "player" FROM "second_round" WHERE "country"='france';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 is S.K. Ho in?". [/INST] SELECT "place" FROM "second_round" WHERE "player"='s.k. ho';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 player is from Scotland and has a score of 74-70=144?". [/INST] SELECT "player" FROM "second_round" WHERE "score"='74-70=144' AND "country"='scotland';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Which player is from South Africa?". [/INST] SELECT "player" FROM "second_round" WHERE "country"='south africa';</s>