query-7a8c7b8dad0f0196c4811e220bc55f0c
First rate ships without Three Decks ship id
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?launchdate WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "en-gb,en,mul". }
{
SELECT DISTINCT ?item ?launchdate WHERE {
#?item p:P137 ?statement0.
#?statement0 (ps:P137/(wdt:P279*)) wd:Q172771.
?item p:P793 ?statement1.
?statement1 (ps:P793/(wdt:P279*)) wd:Q596643.
?statement1 pq:P585 ?launchdate.
?item p:P31 ?statement2.
?statement2 (ps:P31/(wdt:P279*)) wd:Q892367.
MINUS {
?item p:P11085 ?statement3.
?statement3 (ps:P11085) _:anyValueP11085.
}
}
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v3("?launchdate"):::projected
v2("?statement1")
v4("?statement2")
v5("?statement3")
a3((" "))
a1((" "))
a2((" "))
c4(["en-gb,en,mul"]):::literal
c8(["wd:Q596643"]):::iri
c12(["wd:Q892367"]):::iri
c2(["bd:serviceParam"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"p:P793"--> v2
v2 --"p:statement/P793"--> a1
a1 --"p:direct/P279"--> c8
v2 --"p:qualifier/P585"--> v3
v1 --"p:P31"--> v4
v4 --"p:statement/P31"--> a2
a2 --"p:direct/P279"--> c12
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"p:P11085"--> v5
v5 --"p:statement/P11085"--> a3
end