query-43a3fe6d27255dce848c67ac74f3b41f
Populating the operators of ship classes from the operators of individual ships says the same thing. I think this is because the class has also a different operators which are confusing it, and me. (Q1428155)Fletcher-class destroyer and reporting it even though its class (Q676404)Spanish Navy which was operated by the (Q2469026)USS Converse I want list destroyers which have an operator which does not exist in the vessel class's list of operators, so I can propagate the information. The problem is my query below is it finds
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?class ?classLabel ?operatorLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
{
SELECT DISTINCT ?item ?class ?operator WHERE {
?item wdt:P31 wd:Q174736.
?item wdt:P137 ?operator.
?item wdt:P289 ?class.
MINUS {?class wdt:P137 ?operator}
}
LIMIT 100
}