CREATE TABLE "western_open" (
  "year" real,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "margin" real,
  "earnings" real
);

Question: What is canada's margin?
SQL: SELECT SUM("margin") FROM "western_open" WHERE "country"='canada';

Question: What is russ cochran's average margin?
SQL: SELECT AVG("margin") FROM "western_open" WHERE "player"='russ cochran';

Question: How many years have a Player of joe durant, and Earnings ($) larger than 396,000?
SQL: SELECT COUNT("year") FROM "western_open" WHERE "player"='joe durant' AND "earnings">'396,000';

Question: Which Margin has a Country of united states, and a Score of 63-70-65-69=267?
SQL: SELECT "margin" FROM "western_open" WHERE "country"='united states' AND "score"='63-70-65-69=267';

Question: Which To Par has Earnings ($) larger than 360,000, and a Year larger than 1998, and a Country of united states, and a Score of 69-68-66-64=267?
SQL: SELECT "to_par" FROM "western_open" WHERE "earnings">'360,000' AND "year">1998 AND "country"='united states' AND "score"='69-68-66-64=267';