Steps to Reproduce:
# See https://www.wikidata.org/wiki/Q12034722 (veteran tree), specifically the value of P2670 (has parts of the class) and its qualifier P1114 (quantity). It has no quantity unit specified.
# In the RDF version https://www.wikidata.org/wiki/Special:EntityData/Q12034722.ttl search for `wikibase:quantityUnit <http://www.wikidata.org/entity/Q199>` - the quantity unit is set to Q199 - which stands for one. So far so good.
# In the Wikidata Query Service, run [this](https://query.wikidata.org/#SELECT%20%3Funit%0AWHERE%20%0A%7B%0A%20%20%3Chttp%3A%2F%2Fwww.wikidata.org%2Fentity%2FQ12034722%3E%20p%3AP2670%20%3Fstatement%20.%0A%20%20%0A%20%20%3Fstatement%20pqv%3AP1114%20%3Fquantity.%0A%20%20%0A%20%20%3Fquantity%20wikibase%3AquantityUnit%20%3Funit%20.%0A%7D) query. It searches for the quanityUnits of this qualifier.
Actual Results:
# It returns wd:P199 and wd:Q199
Expected Results:
# It should return just wd:Q199