How many runs allowed did the team ranked 2 with more than 2 losses have?
CREATE TABLE "pool_a" (
  "rank" real,
  "team" text,
  "wins" real,
  "losses" real,
  "runs_allowed" real,
  "run_ratio" real
);
SELECT AVG("runs_allowed") FROM "pool_a" WHERE "rank"=2 AND "losses">2;