user: ### NOW ANSWER:
Question: Which Males Rank is the highest one that has Females (%) smaller than 40, and Females Rank smaller than 22?
Columns: ['Males Rank', 'Females Rank', 'State', 'HIV awareness (males%)', 'Females (%)']
Types: ['real', 'real', 'text', 'real', 'real']
Sample row: [1.0, 2.0, 'Kerala', 99.0, 95.0]
SQL:

assistant: SELECT MAX("Males Rank") FROM "Table" WHERE "Females (%)" < 40.0 AND "Females Rank" < 22.0;