human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Publication, Country, Accolade, Year, Rank
###Question: Which year's rank was #4 when the country was the US?
gpt
SELECT Year FROM table WHERE Rank = #4 AND Country = us