query-2adda85a3c7ece9c15187632d380a6c3
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?img ?img2 WHERE {
?item wdt:P31 wd:Q1362233.
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,cs,en" . }
?item p:P18 ?stat.
?stat ps:P18 ?img.
?item p:P18 ?stat2.
?stat2 ps:P18 ?img2.
filter(str(?stat) < str(?stat2))
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?img"):::projected
v5("?img2"):::projected
v3("?item"):::projected
v1("?stat")
v2("?stat2")
c6(["de,cs,en"]):::literal
c4(["bd:serviceParam"]):::iri
c2(["wd:Q1362233"]):::iri
f0[["str(?stat) < str(?stat2)"]]
f0 --> v1
f0 --> v2
v3 --"p:direct/P31"--> c2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
v3 --"p:P18"--> v1
v1 --"p:statement/P18"--> v4
v3 --"p:P18"--> v2
v2 --"p:statement/P18"--> v5