CREATE TABLE "appearances_and_goals" (
  "squad_no" real,
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);

Question: What is the most league cup goals for David Beresford having less than 0 FA Cup Goals?
SQL: SELECT MAX("league_cup_goals") FROM "appearances_and_goals" WHERE "name"='david beresford' AND "fa_cup_goals"<0;

Question: What is the league goals when the league cup goals is less than 0 and 16 (1) league apps?
SQL: SELECT AVG("league_goals") FROM "appearances_and_goals" WHERE "league_apps"='16 (1)' AND "league_cup_goals"<0;

Question: What is the league cup apps when the league goals are greater than 3, there are 30 (2) total apps, and has a position of mf?
SQL: SELECT "league_cup_apps" FROM "appearances_and_goals" WHERE "position"='mf' AND "league_goals">3 AND "total_apps"='30 (2)';

Question: What is the FA Cup App for Squad Number 3 having fewer than 4 league goals?
SQL: SELECT "fa_cup_apps" FROM "appearances_and_goals" WHERE "league_goals"<4 AND "squad_no"=3;