Metadata queries

@dolphinlei

I have answered your other post on the same question