query-ba6b1a3ee6941fe71e788c5164bec948
should be a shipwreck
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "en-gb,en,mul". }
{
SELECT DISTINCT ?item WHERE {
?item p:P625 ?statement0.
?statement0 ps:P625 _:anyValueP625.
?item p:P137 ?statement1.
?statement1 (ps:P137/(wdt:P279*)) wd:Q172771.
?item p:P31 ?statement2.
?statement2 (ps:P31/(wdt:P279*)) wd:Q11446.
MINUS {
?item p:P31 ?statement3.
?statement3 (ps:P31/(wdt:P279*)) wd:Q852190.
}
}
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?statement0")
v3("?statement1")
v4("?statement2")
v5("?statement3")
a1((" "))
a2((" "))
a3((" "))
a4((" "))
c4(["en-gb,en,mul"]):::literal
c2(["bd:serviceParam"]):::iri
c13(["wd:Q11446"]):::iri
c14(["wd:Q852190"]):::iri
c10(["wd:Q172771"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"p:P625"--> v2
v2 --"p:statement/P625"--> a1
v1 --"p:P137"--> v3
v3 --"p:statement/P137"--> a2
a2 --"p:direct/P279"--> c10
v1 --"p:P31"--> v4
v4 --"p:statement/P31"--> a3
a3 --"p:direct/P279"--> c13
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"p:P31"--> v5
v5 --"p:statement/P31"--> a4
a4 --"p:direct/P279"--> c14
end