Returns the QueryDef object associated with the specified chart.
You can use this method to get the query information associated with the specified chart. You can also use the returned QueryDef object to get information about the query, including the name of the query and the SQL string used to execute the query.