query-6f4f7dd605a9d46b5b53ee303af48a1c
Disambiguation page where there should be a family name SELECT DISTINCT ?item ?surnameLabel WHERE {?item wdt:P31 wd:Q5 . ?item wdt:P734 ?surname . ?surname wdt:P31 wd:Q4167410 . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
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#>
#Disambiguation page where there should be a family name
SELECT DISTINCT ?item ?surnameLabel
WHERE {?item wdt:P31 wd:Q5 .
?item wdt:P734 ?surname .
?surname wdt:P31 wd:Q4167410 .
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("?item"):::projected
v2("?surname")
c4(["wd:Q4167410"]):::iri
c6(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> c2
v1 --"wdt:P734"--> v2
v2 --"wdt:P31"--> c4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end