What is Tournament, when Black is "Kramnik", when Result is "½–½", and when Moves is "40"?
CREATE TABLE "rapid_games" (
  "white" text,
  "black" text,
  "year" real,
  "result" text,
  "moves" real,
  "tournament" text,
  "opening" text
);
SELECT "tournament" FROM "rapid_games" WHERE "black"='kramnik' AND "result"='½–½' AND "moves"=40;