I think you can parse that sentence like this: Do you have anything going on this weekend? ) -> Do you have [what] going on this weekend? -> What do you have going on this weekend?
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.