SPARQL query does not yield expected results
问题 I'm using this SPARQL query to obtain a list of European countries: SELECT ?item $itemLabel WHERE { ?item wdt:P31 wd:Q6256. #?item wdt:P30 wd:Q46 #?item wdt:P361* wd:Q46. ?item wdt:P30|wdt:P361* wd:Q46. SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } ORDER BY ASC($itemLabel) Line 3 limits the results to instances of Q6256, i.e. countries. Line 4 (currently commented out) limits the results to items which are on the continent Q46 (Europe). Line 5 (currently commented out)