Instruct: 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?
Output: SELECT MIN Rank FROM table WHERE Goals per Match < 1.237 AND Club = real madrid AND Goals < 53 AND Apps > 40