CREATE TABLE "chessmetrics" (
  "rank" real,
  "1_year_peak" text,
  "5_year_peak" text,
  "10_year_peak" text,
  "15_year_peak" text,
  "20_year_peak" text
);

Question: What is every 5-year peek with a when Anatoly Karpov, 2820 is 15-year peak?
SQL: SELECT "5_year_peak" FROM "chessmetrics" WHERE "15_year_peak"='Anatoly Karpov, 2820';

Question: What is the highest rank when Garry Kasparov, 2879 is the 1-year peak?
SQL: SELECT MAX("rank") FROM "chessmetrics" WHERE "1_year_peak"='Garry Kasparov, 2879';

Question: What is every 5-year peak when Emanuel Lasker, 2847 is the 10-year peak?
SQL: SELECT "5_year_peak" FROM "chessmetrics" WHERE "10_year_peak"='Emanuel Lasker, 2847';

Question: What is the highest rank when Anatoly Karpov, 2820 is the 15-year peak?
SQL: SELECT MAX("rank") FROM "chessmetrics" WHERE "15_year_peak"='Anatoly Karpov, 2820';