1. In a computing environment, a method performed on at least one processor comprising: obtaining a rule pattern corresponding to a transformation rule of a transformation rule-based query optimizer of a database management system; generating a query based upon the rule pattern; providing the query to the transformation rule-based query optimizer for query processing; and receiving information from the database management system that indicates which rules are exercised during the query processing.