Determining if SQL query A returns a subset of query B can be complex without data. ER/Studio’s comprehensive data modeling and SQL analysis tools can help by providing schema insights, constraints, and relationships. These can be used programmatically to infer subset relationships. ER Studio