This seems too simple. This decides correctly for all kinds of subquery? With or without a LIMIT or GROUP BY in the subquery? I'm confused.