1. A method for querying program design models, comprising the steps of: obtaining a tree structure representation of a subject metamodel, the subject metamodel being formed of model elements; likening the tree structure representation to a database representation of the model elements; and forming a query statement corresponding to the database representation to search and retrieve desired model elements.