Using Subsumption in Semantic Query Optmization