Implemented half of metadata query