CREATE TABLE "most_goals_in_a_season_all_competitions_" (
  "rank" real,
  "name" text,
  "season" text,
  "club" text,
  "goals" real,
  "apps" real,
  "goals_per_match" real
);

Question: How many ranks have 40 as the apps, with goals per match greater than 1?
SQL: SELECT SUM("rank") FROM "most_goals_in_a_season_all_competitions_" WHERE "apps"=40 AND "goals_per_match">1;

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?
SQL: SELECT MIN("rank") FROM "most_goals_in_a_season_all_competitions_" WHERE "goals_per_match"<1.237 AND "club"='real madrid' AND "goals"<53 AND "apps">40;