query-733dffeac7a4f3ba52040901e46c03d1
Sample check queries
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
?subject ?subjectLabel ?dob
?relative ?relativeLabel ?dob2
{
BIND( wd:Q57224 as ?subject )
?subject wdt:P40+ ?relative .
?subject wdt:P569 ?dob .
?relative wdt:P569 ?dob2 .
FILTER (?dob > ?dob2 )
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;
v1("?dob"):::projected
v2("?dob2"):::projected
v4("?relative"):::projected
v3("?subject"):::projected
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?dob > ?dob2"]]
f0 --> v1
f0 --> v2
bind1[/"'wd:Q57224'"/]
bind1 --as--o v3
v3 --"wdt:P40"--> v4
v3 --"wdt:P569"--> v1
v4 --"wdt:P569"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end