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

Question: What is the long figure when gain is less than 0?
SQL: SELECT AVG("long") FROM "rushing" WHERE "gain"<0;

Question: What is the loss when the average/gain is less than 16.7, gain is 104 and long is larger than 4?
SQL: SELECT AVG("loss") FROM "rushing" WHERE "avg_g"<16.7 AND "long">4 AND "gain"=104;