query-a97659ba2525da5028458eab7af29546
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 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 ?born ?died {
?item (p:P569|p:P570)/pq:P31 wd:Q26961029; wdt:P569 ?born; wdt:P570 ?died .
FILTER( YEAR(?born) > 600 && YEAR(?died) < 1500 ) .
VALUES ?Czechia { wd:Q213 wd:Q2162698 wd:Q42585 } .
?item wdt:P19/wdt:P131* ?Czechia;
wdt:P20/wdt:P131* ?Czechia .
SERVICE wikibase:label { bd:serviceParam wikibase:language "cs,en" } .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?Czechia")
v1("?born"):::projected
v2("?died"):::projected
v3("?item"):::projected
a1((" "))
a2((" "))
a3((" "))
c15(["cs,en"]):::literal
c6(["wd:Q26961029"]):::iri
c13(["bd:serviceParam"]):::iri
f0[["year-from-dateTime(?born) > '600^^xsd:integer'year-from-dateTime(?died) < '1500^^xsd:integer'"]]
f0 --> v1
f0 --> v2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v3 --"p:P570"--> a1
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"p:P569"--> a1
end
union0r <== or ==> union0l
end
a1 --"p:qualifier/P31"--> c6
v3 --"p:direct/P569"--> v1
v3 --"p:direct/P570"--> v2
bind1[/VALUES ?Czechia/]
bind1-->v4
bind10(["wd:Q213"])
bind10 --> bind1
bind11(["wd:Q2162698"])
bind11 --> bind1
bind12(["wd:Q42585"])
bind12 --> bind1
v3 --"p:direct/P19"--> a2
a2 --"p:direct/P131"--> v4
v3 --"p:direct/P20"--> a3
a3 --"p:direct/P131"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end