Table: liga_2006_stats
Columns: position
club
games_played
wins
draws
loses
goals_scored
goals_conceded
points

Question: What is the highest number of games played for teams with 3 draws, 5 losses, and under 39 points?
SQL: SELECT MAX("games_played") FROM liga_2006_stats WHERE "draws" = 3 AND "loses" = 5 AND "points" < 39

Question: What is the highest number of losses for teams with under 3 draws and 51 points?
SQL: SELECT MAX("loses") FROM liga_2006_stats WHERE "draws" < 3 AND "points" = 51