query-fa75b5f0622e390efd2c5c433e90c360
People with family name "Krupp" and "Bertha" somewhere in the label SELECT DISTINCT ?person ?personLabel WHERE { ?person wdt:P734 wd:Q37069298 . ?person rdfs:label ?label . FILTER REGEX(?label, "Bertha") SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de" } }
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
# People with family name "Krupp" and "Bertha" somewhere in the label
SELECT DISTINCT ?person ?personLabel WHERE {
?person wdt:P734 wd:Q37069298 .
?person rdfs:label ?label .
FILTER REGEX(?label, "Bertha")
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?label")
v2("?person"):::projected
c3(["wd:Q37069298"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,de"]):::literal
c6(["bd:serviceParam"]):::iri
f0[["regex(?label,'Bertha')"]]
f0 --> v1
v2 --"wdt:P734"--> c3
v2 --"rdfs:label"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end