Configuration Manager 2007 has only one query view, v_Query. It contains information about all the queries in the Configuration Manager hierarchy. The query ID, query name, comment, target class name, and the collection ID to which the query is limited, if applicable, are all listed.
The v_Query view can be joined to the v_CollectionRuleQuery collection view by using the QueryID column and to collection views by using the LimitToCollectionID column, which contains the same information as the CollectionID column in other views. It is also possible to join the query view to a security view so that the query name can be displayed when listing the class or instance permissions on the specific query object. An example of this is available in the section Query View Sample Query.