Crossword Genius

Somehow thinks wife cheated, invoking puzzled query (4,3,7)

Ross

I believe the answer is:

what the dickens

I'm a little stuck... Click here to teach me more about this clue!

'puzzled query' is the definition.
I don't know anything about this answer so I can't tell whether this works.

'somehow thinks wife cheated' is the wordplay.
'somehow' indicates an anagram.
'wife' becomes 'w' (abbreviation).
'thinks'+'w'+'cheated'='thinkswcheated'
'thinkswcheated' is an anagram of 'WHAT THE DICKENS'.

'invoking' acts as a link.

Can you help me to learn more?

I've seen this clue in The Times.
Want a hint initially instead of a full solution? Install my app