query-24ab79c1329c2071949c2cc367b80eac
Persons by birthday and number of letters in name
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?person ?personLabel ?actualName ?length ?birthday ?article WHERE {
?person wdt:P31 wd:Q5 .
?person wdt:P569 ?birthday . FILTER(?birthday = "1976-10-19"^^xsd:dat)
?person wdt:P735 ?name .
?name rdfs:label ?actualName . FILTER(lang(?actualName) = "en") .
BIND(STRLEN(?actualName) AS ?length) FILTER(?length = 4)
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
?article schema:about ?person . ?article schema:isPartOf <https://de.wikipedia.org/>
}
ORDER BY ?actualName
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?actualName"):::projected
v6("?article"):::projected
v3("?birthday"):::projected
v6("?length"):::projected
v5("?name")
v4("?person"):::projected
c14([https://de.wikipedia.org/]):::iri
c2(["en"]):::literal
c10(["bd:serviceParam"]):::iri
c5(["wd:Q5"]):::iri
f0[["?length = '4^^xsd:integer'"]]
f0 --> v6
f1[["?actualName = 'en'"]]
f1 --> v1
f2[["?birthday = s1976-10-19^^<http://www.w3.org/2001/XMLSchema#dat>'"]]
f2 --> v3
v4 --"wdt:P31"--> c5
v4 --"wdt:P569"--> v3
v4 --"wdt:P735"--> v5
v5 --"rdfs:label"--> v1
bind3[/"string-length(?actualName)"/]
v1 --o bind3
bind3 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c2
end
v6 --"schema:about"--> v4
v6 --"schema:isPartOf"--> c14