"Has query" is a predefined property that represents meta information (in form of a subobject) about individual queries and is provided by Semantic MediaWiki. This property is pre-deployed (also known as special property) and comes with additional administrative privileges but can be used just like any other user-defined property.