query-206c2fcf1e56f4c156f78469e7b7409f
TODO
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 ?item ?itemLabel ?subjectItem ?subjectItemLabel WHERE {
?item wdt:P31 wd:Q18618628 .
?item wikibase:propertyType wikibase:ExternalId .
?item wikibase:directClaim ?propertyclaim .
OPTIONAL { ?item wdt:P1629 ?subjectItem } .
MINUS { ?status wdt:P1687 ?item } .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
}
LIMIT 250
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?propertyclaim")
v4("?status")
v3("?subjectItem"):::projected
c9(["bd:serviceParam"]):::iri
c2(["wd:Q18618628"]):::iri
c11(["en"]):::literal
c4(["wikibase:ExternalId"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wikibase:propertyType"--> c4
v1 --"wikibase:directClaim"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1629".-> v3
end
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v4 --"wdt:P1687"--> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end