It did until somewhat recently. I'm not sure when things changed and the OS started interpreting that hotkey directly as meaning Log Out. As far as I can tell, Log Out is
Cmd+Shift+Q vs.
Cmd+Opt+Shift+Q for the SOQL Query tool window, so it seems like it's only doing a partial check of the applied modifier keys which would be incorrrect. Of course, it's very unlikely that Apple will be fixing that anytime soon, though, so it probably makes sense to change that hot key on Mac to be something else now. I'll add that to my list.
Regards,
Scott Wells