query-4acc4421d0e01da5438ff84a83a6f312
Bouzinac
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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 ?item ?itemLabel ?disputed1Label ?disputed2Label
{
?statement1 ps:P17 wd:Q244165 .
?statement2 ps:P17 wd:Q227 .
?item p:P17 ?statement1 .
?item p:P17 ?statement2 .
OPTIONAL { ?statement1 pq:P1310 ?disputed1 . }
OPTIONAL { ?statement2 pq:P1310 ?disputed2 . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?disputed1")
v5("?disputed2")
v3("?item"):::projected
v1("?statement1")
v2("?statement2")
c2(["wd:Q244165"]):::iri
c7(["bd:serviceParam"]):::iri
c3(["wd:Q227"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:statement/P17"--> c2
v2 --"p:statement/P17"--> c3
v3 --"p:P17"--> v1
v3 --"p:P17"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:qualifier/P1310".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P1310".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end