CREATE TABLE "appearances_and_goals" (
  "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: How many league goals did the player with 10 league apps and 0 FA cup goals have?
SQL: SELECT COUNT("league_goals") FROM "appearances_and_goals" WHERE "fa_cup_goals"=0 AND "league_apps"='10';

Question: What was the sum of league goals where the toal was 8 and league cup goals were larger than 0?
SQL: SELECT SUM("league_goals") FROM "appearances_and_goals" WHERE "total_goals"=8 AND "league_cup_goals">0;