query-7bc58e21b0ea5d374bd6fdf890927424
Adding different from for pairs of ships, removing disambiguation pages
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 ?itemLabel ?item WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
{
SELECT DISTINCT ?item WHERE {
?item wdt:P31/wdt:P279* wd:Q11446.
?item wdt:P137 wd:Q172771.
?item wdt:P1889 ?confused.
?confused wdt:P31 wd:Q4167410.
}
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?confused")
v1("?item"):::projected
a1((" "))
c2(["bd:serviceParam"]):::iri
c11(["wd:Q4167410"]):::iri
c4(["#91;AUTO_LANGUAGE#93;"]):::literal
c7(["wd:Q11446"]):::iri
c9(["wd:Q172771"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c7
v1 --"wdt:P137"--> c9
v1 --"wdt:P1889"--> v2
v2 --"wdt:P31"--> c11