Count the Pommel Horse that has Rings smaller than 59.85 and a Team Total larger than 361.2?
CREATE TABLE "top_8_teams_qualified_for_team_finals" (
  "position" text,
  "country" text,
  "floor" real,
  "pommel_horse" real,
  "rings" real,
  "vault" real,
  "parallel_bars" real,
  "horizontal_bar" real,
  "team_total" real
);
SELECT SUM("pommel_horse") FROM "top_8_teams_qualified_for_team_finals" WHERE "rings"<59.85 AND "team_total">361.2;