What is the highest bronze for San Marino with less than 82 total and less than 3 golds?
CREATE TABLE "medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT MAX("bronze") FROM "medal_table" WHERE "total"<82 AND "nation"='san marino' AND "gold"<3;