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
);

Question: What's the greatest 1st RU that has a 2nd RU less than 0?
SQL: SELECT MAX("1st_ru") FROM "by_country_tally" WHERE "2nd_ru"<0;

Question: How many semifinalists had a total less than 2, 1st RU greater than 0, 2nd RU was 0 and Miss United Continent of 0?
SQL: SELECT COUNT("semifinalists") FROM "by_country_tally" WHERE "miss_united_continent"=0 AND "2nd_ru"=0 AND "1st_ru">0 AND "total"<2;

Question: What rank was Peru with a total greater than 3?
SQL: SELECT MAX("rank") FROM "by_country_tally" WHERE "country"='peru' AND "total">3;

Question: What is the least 3rd RU that is ranked less than 8 with a 4th RU greater than 0?
SQL: SELECT MIN("3rd_ru") FROM "by_country_tally" WHERE "4th_ru">0 AND "rank"<8;