human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Rank, Club, Season, Goals, Apps
###Question: What are the apps for less than 61 goals and before rank 6?
gpt
SELECT SUM Apps FROM table WHERE Rank < 6 AND Goals < 61