CREATE TABLE "goals" (
  "name" text,
  "league" real,
  "fa_cup" real,
  "league_cup" real,
  "other" real,
  "total" real
);

Question: Name the average total with league cup more than 0 and other more than 0
SQL: SELECT AVG("total") FROM "goals" WHERE "league_cup">0 AND "other">0;

Question: Name the least other for league cup less than 0, FA cup more than 0 and league of 2 with total less than 14
SQL: SELECT MIN("other") FROM "goals" WHERE "total"<14 AND "league"=2 AND "fa_cup">0 AND "league_cup"<0;

Question: Name the sum of FA cup when league cup is less than 0
SQL: SELECT SUM("fa_cup") FROM "goals" WHERE "league_cup"<0;