Page MenuHomePhabricator

Wikidata query incomplete result
Open, Needs TriagePublicBUG REPORT

Description

Steps to Reproduce:
Following query is incomplete:
https://query.wikidata.org/#SELECT%20%3Fcountry%20%3FcountryLabel%20%0AWHERE%20%7B%0A%20%20%3Fcountry%20wdt%3AP31%20wd%3AQ6256.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D

Expected Results:
The query should return all items which are instance of(wdt:P31) country(wd:Q6256).

Actual Results:
Some items like Germany(wd:Q183), France(wd:Q142), and Iceland(wd:Q189) are not contained in the result, even though they have the requested property.

Event Timeline

Tc14Hd created this task.Oct 20 2019, 2:31 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 20 2019, 2:31 PM
Tc14Hd updated the task description. (Show Details)Oct 20 2019, 2:33 PM

Please note that those items have multiple statements for "instance of", only the "preferred value" gets displayed in simple queries.

Please note that those items have multiple statements for "instance of", only the "preferred value" gets displayed in simple queries.

OK. But how can I change my query to find all countries, even if "country" is not the "preferred value"?