Something that might happen as a consequence of going to sleep is having a dream.