CREATE TABLE "all_time_top_scorers" (
  "rank" real,
  "player" text,
  "goals" real,
  "apps" real,
  "avg_game" real
);

Question: What is the average number of goals of the player with 234 apps and a rank above 8?
SQL: SELECT AVG("goals") FROM "all_time_top_scorers" WHERE "apps"=234 AND "rank"<8;

Question: What is the average avg/game of the player with 97 goals and a rank above 7?
SQL: SELECT AVG("avg_game") FROM "all_time_top_scorers" WHERE "goals"=97 AND "rank"<7;