Complex sentence: Once the crew discover that The Doctor is daydreaming they use the holodeck to view his dreams, including the one expressing 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.