user: Question: What is the lowest rank that has goals per match less than 1.237, Real Madrid as the club, goals less than 53, with apps greater than 40?
Columns: ['Rank', 'Name', 'Season', 'Club', 'Goals', 'Apps', 'Goals per Match']
Types: ['real', 'text', 'text', 'text', 'real', 'real', 'real']
Sample row: [1.0, 'Lionel Messi', '2011/12', 'Barcelona', 73.0, 60.0, 1.217]
SQL:

assistant: SELECT MIN("Rank") FROM "Table" WHERE "Goals per Match" < 1.237 AND "Club" = 'Real Madrid' AND "Goals" < 53.0 AND "Apps" > 40.0;