CREATE TABLE "goalscorers" (
  "player" text,
  "league" real,
  "scottish_cup" real,
  "league_cup" real,
  "challenge_cup" real,
  "total" real
);

Question: What is the lowest league for a less than 0 league cup?
SQL: SELECT MIN("league") FROM "goalscorers" WHERE "league_cup"<0;

Question: What is the lowest Scottish cup with a challenge cup less than 1, and 0 league cups, and player Kris Doolan?
SQL: SELECT MIN("scottish_cup") FROM "goalscorers" WHERE "challenge_cup"<1 AND "league_cup"=0 AND "player"='kris doolan';

Question: What is the sum for the Scottish cup that has player Damon Gray, and more than 1 league?
SQL: SELECT SUM("scottish_cup") FROM "goalscorers" WHERE "player"='damon gray' AND "league">1;

Question: What was the average league with Kris Doolan and a total less than 5?
SQL: SELECT AVG("league") FROM "goalscorers" WHERE "player"='kris doolan' AND "total"<5;