CREATE TABLE "all_time_records" (
  "season" real,
  "league" text,
  "finish" text,
  "wins" real,
  "losses" real,
  "ties" real
);

Question: What league had a finish of 2nd and 3 losses?
SQL: SELECT "league" FROM "all_time_records" WHERE "finish"='2nd' AND "losses"=3;

Question: What is the number of losses when the ties are lesser than 0?
SQL: SELECT COUNT("losses") FROM "all_time_records" WHERE "ties"<0;

Question: What is the losses in the NFL in the 2011 season with less than 13 wins?
SQL: SELECT AVG("losses") FROM "all_time_records" WHERE "league"='nfl' AND "season"=2011 AND "wins"<13;

Question: What is the highest wins for the NFL with a finish of 1st, and more than 6 losses?
SQL: SELECT MAX("wins") FROM "all_time_records" WHERE "league"='nfl' AND "finish"='1st' AND "losses">6;

Question: What is the lowest number of ties in the NFL, with less than 2 losses and less than 15 wins?
SQL: SELECT MIN("ties") FROM "all_time_records" WHERE "league"='nfl' AND "losses"<2 AND "wins"<15;