Question: When was the Battle of Hakusukinoe?
Sentence: Following the Battle of Hakusukinoe against Tang China and Silla in 663 AD that led to a Japanese retreat from Korean affairs, Japan underwent widespread reform.
Answer in sentence: yes