Que + Infinitivo en español
I've seen this type of construction in several places, but as one example
"Me ha dado mucho que pensar"
I know that it means "You have given me a lot to think about" but I'm not sure I understand the role of the "que" and when to use the "que + infinitive". If anyone could clarify this piece of grammar to me (en español o inglés, no importa) and give some similar examples I would be extremely grateful
¡Muchas gracias!