Which of these lens will focus on Nikon D5000?

I've lost my manual for my Nikon D5000 and I don't exactly know what everything means when it comes to these lens 'cause there's so many different versions of them!
So I'd like to know which of the following lenses are compatible with the Nikon D5000.
- Nikon 50mm 1.4 Ai
- Nikon 50mm f1.4 Non-Ai
- Nikon 50mm 1.4 Nikkor Ai-S
- Nikon 50mm 1.4D
- Nikon 50mm 1.4G
Can they all at least manual focus on the Nikon D5000?
Apologies for my lack of knowledge. I don't want to end up buying the wrong lens.

The 50mm f/1.4 G will meter and autofocus. The 50mm 1.4D will meter and manual focus. The others will manual focus and will not meter with the D5000.

The 50mm/1.4G is an AF-S lens (you can see that bit in its full technical name). Lenses with the designations AF-S and AF-I (not to be confused with Ai) have their own autofocus motor and thus will autofocus on the D5000. A Nikkor lens that is simply an "AF" one without either -S or -I behind it will not autofocus, as it merely supports autofocus but depends on the autofocus motor in the camera body.
Other third party manufactureres use different designations though.

All will manual focus. The non-ai may not mount. The D will meter but only the g will autofocus.