CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);

Question: How many ranks had 367 matches and more than 216 goals?
SQL: SELECT SUM("rank") FROM "list_of_top_association_football_goal_sc" WHERE "matches"=367 AND "goals">216;

Question: What is the mean rank number when goals are 230 and there are more than 535?
SQL: SELECT AVG("rank") FROM "list_of_top_association_football_goal_sc" WHERE "goals"=230 AND "matches">535;