Added selectExists to subquery