refactor: tighten up `is_subquery` check
refactor: tighten up `is_subquery` check

ibis-project/ibis,ibis-project/ibis,cpcloud/ibis,cpcloud/ibis,ibis-project/ibis,cpcloud/ibis,ibis-project/ibis,cpcloud/ibis