Try to resolve the subselects, what a hell