query-c7cf51034964a3bd9e1b7cce0e91dc5a
title:get all male given names SELECT ?item ?itemLabel WHERE { { select * { # ?item wdt:P31 wd:Q12308941. # male # ?item wdt:P31 wd:Q11879590. # female ?item wdt:P31 wd:Q3409032. # neutral } } SERVICE wikibase:label { bd:serviceParam wikibase: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 bd: <http://www.bigdata.com/rdf#>
#title:get all male given names
SELECT ?item ?itemLabel
WHERE {
{
select * {
# ?item wdt:P31 wd:Q12308941. # male
# ?item wdt:P31 wd:Q11879590. # female
?item wdt:P31 wd:Q3409032. # neutral
}
}
SERVICE wikibase:label { bd:serviceParam wikibase:language 'de' }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
c6(["de"]):::literal
c4(["bd:serviceParam"]):::iri
c2(["wd:Q3409032"]):::iri
v1 --"wdt:P31"--> c2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end