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,
  "flt_apps" text,
  "flt_goals" real,
  "total_apps" text,
  "total_goals" real
);

Question: Tell me the highest league goals with total goals less than 1 and FA cups more than 0
SQL: SELECT MAX("league_goals") FROM "appearances_and_goals" WHERE "total_goals"<1 AND "fa_cup_goals">0;

Question: I want to know the sum of fa cup goals for david mirfin and total goals less than 1
SQL: SELECT SUM("fa_cup_goals") FROM "appearances_and_goals" WHERE "name"='david mirfin' AND "total_goals"<1;

Question: Tell me the league apps with league goals less than 2 and position of df and FA cup apps of 5
SQL: SELECT "league_apps" FROM "appearances_and_goals" WHERE "league_goals"<2 AND "position"='df' AND "fa_cup_apps"='5';