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

Question: What are the total apps that have 41 as the League apps, with total goals greater than 1?
SQL: SELECT "total_apps" FROM "appearances_and_goals" WHERE "league_apps"='41' AND "total_goals">1;

Question: What are the average league goals that have 2 (1) as the total apps?
SQL: SELECT AVG("league_goals") FROM "appearances_and_goals" WHERE "total_apps"='2 (1)';

Question: What is the highest league goals that have barry endean as the name, wirh FA cup apps greater than 0?
SQL: SELECT MAX("league_goals") FROM "appearances_and_goals" WHERE "name"='barry endean' AND "fa_cup_apps">0;