CREATE TABLE "program_details" (
  "final_rank" real,
  "skater" text,
  "rank_in_sp" real,
  "rank_in_fs" real,
  "total_score" text
);

Question: How many skaters have a Rank in FS of 3, and a Rank in SP larger than 4?
SQL: SELECT COUNT("final_rank") FROM "program_details" WHERE "rank_in_fs"=3 AND "rank_in_sp">4;

Question: What is the average SP rank for skaters with a Rank in FS larger than 2, and a Final Rank larger than 5?
SQL: SELECT AVG("rank_in_sp") FROM "program_details" WHERE "rank_in_fs">2 AND "final_rank">5;