Complex sentence: Once the crew discover that the Doctor is daydreaming, in the holodeck they view his dreams, including his desire to be an Emergency Command Hologram.
Split into simpler sentences: Once the crew discover that the Doctor is daydreaming they use the holodeck to view his dreams. This includes the one expressing his desire to be an Emergency Command Hologram.