Using Queries to Associate Metadata with Data