query-3c8c12cca8aed8a80253949e3d7a4a8d
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?value ?pit WHERE
{
?item p:P1087 ?stmt .
optional {?stmt ps:P1087 ?value.}
optional {?stmt pq:P585 ?pit.}
filter not exists { ?stmt prov:wasDerivedFrom [] . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v4("?pit"):::projected
v1("?stmt")
v3("?value"):::projected
a1((" "))
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"prov:wasDerivedFrom"--> e0a1
e0v1("?stmt"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
v1 --"prov:wasDerivedFrom"--> a1
v2 --"p:P1087"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:statement/P1087".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:qualifier/P585".-> v4
end