Table: niner_seasons
Columns: season
league
finish
wins
losses
ties

Question: What league had a finish of 2nd and 3 losses?
SQL: SELECT "league" FROM niner_seasons 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 niner_seasons 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 niner_seasons 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 niner_seasons 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 niner_seasons WHERE "league" = 'nfl' AND "losses" < 2 AND "wins" < 15