CREATE TABLE "singles" (
  "year" real,
  "tournament" text,
  "surface" text,
  "round" text,
  "winner" text,
  "score" text,
  "length_h_mm" text,
  "sets" text,
  "federer" real,
  "nadal" real
);

Question: What tournament did Nadal win and had a nadal of 16?
SQL: SELECT "tournament" FROM "singles" WHERE "winner"='nadal' AND "nadal"=16;

Question: What was the nadal in Miami in the final round?
SQL: SELECT MAX("nadal") FROM "singles" WHERE "round"='final' AND "tournament"='miami';

Question: What were the sets when Federer had 6 and a nadal of 13?
SQL: SELECT "sets" FROM "singles" WHERE "nadal"=13 AND "federer"=6;