What rank was Peru with a total greater than 3?
CREATE TABLE "by_country_tally" (
  "rank" real,
  "country" text,
  "miss_united_continent" real,
  "virreina" real,
  "1st_ru" real,
  "2nd_ru" real,
  "3rd_ru" real,
  "4th_ru" real,
  "semifinalists" real,
  "total" real
);
SELECT MAX("rank") FROM "by_country_tally" WHERE "country"='peru' AND "total">3;