Question: What was the highest number of losses for a position less than 6, with more than 11 wins and 36 points, with a played entry of more than 30?
SQL: SELECT MAX("Losses") FROM "2-17715861-2" WHERE "Position" < 6.0 AND "Wins" > 11.0 AND "Points" = 36.0 AND "Played" > 30.0;

Question: What is the total number of wins for the entry that has fewer than 49 goals against, 39 goals for, 9 draws, and fewer than 31 points?
SQL: SELECT COUNT("Wins") FROM "2-17715861-2" WHERE "Goals against" < 49.0 AND "Draws" = 9.0 AND "Goals for" = 39.0 AND "Points" < 31.0;

Question: What is the average number of goals for entries with more than 12 losses, more than 10 wins, more than 3 draws, and fewer than 29 points?
SQL: SELECT AVG("Goals for") FROM "2-17715861-2" WHERE "Losses" > 12.0 AND "Wins" > 10.0 AND "Points" < 29.0 AND "Draws" > 3.0;

Question: What is the highest number of wins for club cd orense, with points greater than 36 and more than 4 draws?
SQL: SELECT MAX("Wins") FROM "2-17715861-2" WHERE "Draws" > 4.0 AND "Club" = 'cd orense' AND "Points" > 36.0;

Question: What is the total number of played for the entry with a position of less than 1?
SQL: SELECT SUM("Played") FROM "2-17715861-2" WHERE "Position" < 1.0;