Often, we use qui to ask a question, but it can be part of a statement too! Use it after a noun to add more information about it.
Some verbs are followed by à, like penser à. Some are followed by de, like rêver de. You just gotta memorize which uses which! C'est la vie !