Yeah, blame the user for for poorly named columns and whatever "clean" means, that's it. That's what's blocking the feature.
The issue is that SQL is not composable. It's necessary to articulate the messy operation all at once and it's not possible to iterate on it.
Good luck!