The key here Robert is to understand which would make sense. Because 'querer' is already conjugated you would never also conjugate 'trabajar'. Instead it must remain unchanged.
You can use other words in the sentence to narrow down what is being said. This is actually how your native language works as well. It is just that we are so used to the language we do it automatically.