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

Question: What is the mean number of goals when the rank's less than 8 and there are 261 matches?
SQL: SELECT AVG("goals") FROM "list_of_top_association_football_goal_sc" WHERE "rank"<8 AND "matches"=261;

Question: Which years had a rank of more than 6 and involved Oleksandr Kosyrin?
SQL: SELECT "years" FROM "list_of_top_association_football_goal_sc" WHERE "rank">6 AND "name"='oleksandr kosyrin';