human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Rank, Lane, Athlete, Nationality, Time, React
###Question: What is the total average for Rank entries where the Lane listed is smaller than 4 and the Nationality listed is San Marino?
gpt
SELECT AVG Rank FROM table WHERE Lane < 4 AND Nationality = san marino