MMS: Using Queries as Data Values for Metadata Management