CREATE TABLE "rushing" (
  "name" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);

Question: When the player gained below 1,405 yards and lost over 390 yards, what's the sum of the long yards?
SQL: SELECT SUM("long") FROM "rushing" WHERE "loss">390 AND "gain"<'1,405';

Question: When the Gain is 29, and the average per game is 2, and the player lost less than 390 yards, what's the sum of the Long yards?
SQL: SELECT SUM("long") FROM "rushing" WHERE "loss"<390 AND "avg_g"=2 AND "gain">29;

Question: What's the sum of all average yards gained when the gained yards is under 1,276 and lost more than 3 yards?
SQL: SELECT SUM("avg_g") FROM "rushing" WHERE "gain"<'1,276' AND "loss">3;