CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" real,
  "total" real,
  "to_par" real
);

Question: What is the total number of years won by Justin Leonard with a to par under 9?
SQL: SELECT COUNT("year_s_won") FROM "missed_the_cut" WHERE "player"='justin leonard' AND "to_par"<9;

Question: What is the highest total for Scotland with a year won of 1985?
SQL: SELECT MAX("total") FROM "missed_the_cut" WHERE "country"='scotland' AND "year_s_won"=1985;