CREATE TABLE "passing" (
  "player" text,
  "att" real,
  "comp" real,
  "yards" real,
  "rating" real
);

Question: What was the Comp average, having Gino Guidugli as a player and a rating of more than 92.2?
SQL: SELECT AVG("comp") FROM "passing" WHERE "player"='gino guidugli' AND "rating">92.2;

Question: For the player with yards less than 138, and Comp more than 0, what was the highest Att.?
SQL: SELECT MAX("att") FROM "passing" WHERE "yards"<138 AND "comp">0;