adding some useful methods for querying entity attribute value