CREATE TABLE "season" (
  "rank" real,
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "matches" real,
  "average" real
);

Question: what is the rank when the player is henry shefflin and the matches is higher than 4?
SQL: SELECT SUM("rank") FROM "season" WHERE "player"='henry shefflin' AND "matches">4;

Question: what is the rank when the total is 39 in the county of dublin and the matches is less than 4?
SQL: SELECT AVG("rank") FROM "season" WHERE "total"=39 AND "county"='dublin' AND "matches"<4;