Table: spanish_football_records_2
Columns: rank
club
season
goals
apps

Question: Which Apps have a Club of barcelona, and a Season of 1996/97, and a Rank smaller than 7?
SQL: SELECT MIN("apps") FROM spanish_football_records_2 WHERE "club" = 'barcelona' AND "season" = '1996/97' AND "rank" < 7

Question: Which Season has a Club of real madrid, and a Rank smaller than 6, and less than 121 goals?
SQL: SELECT "season" FROM spanish_football_records_2 WHERE "club" = 'real madrid' AND "rank" < 6 AND "goals" < 121

Question: How many Apps have a Rank larger than 2, and Goals smaller than 102?
SQL: SELECT SUM("apps") FROM spanish_football_records_2 WHERE "rank" > 2 AND "goals" < 102

Question: Which Season has a Rank smaller than 4, and a Club of barcelona, and less than 115 goals?
SQL: SELECT "season" FROM spanish_football_records_2 WHERE "rank" < 4 AND "club" = 'barcelona' AND "goals" < 115