Complex sentence: It stayed in the Hot 100 for 18 weeks, the longest time for any entry within 1965, and was nominated for a Grammy Award.
Split into simpler sentences: It stayed in the Hot 100 for a then-impressive 18 weeks, in fact the most weeks for any entry within that calendar year. It was nominated for a Grammy Award.