when was the last time you went there?
the last time (when ) I went there 定语从句,the last time为先行词,省略了引导词when