CREATE TABLE "sheffield_united_career" (
  "season" text,
  "division" text,
  "league_apps_sub" real,
  "league_goals" real,
  "fa_cup_apps_sub" text,
  "fa_cup_goals" real,
  "fl_cup_apps_sub" real,
  "fl_cup_goals" real,
  "other_apps" real,
  "other_goals" real,
  "total_apps_sub" text,
  "total_goals" real
);

Question: League apps (sub) maximum?
SQL: SELECT MAX("league_apps_sub") FROM "sheffield_united_career";

Question: When total goals is 11 what was the league apps (sub)?
SQL: SELECT MAX("league_apps_sub") FROM "sheffield_united_career" WHERE "total_goals"=11;