query-9a2d012a6a5ff69694e62aa12503752f
Most commonly used external ids for genderless japanese people
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 ?propertyLabel (count(?propertyLabel) as ?cnt)
{
?property wikibase:claim ?propertyclaim .
?item ?propertyclaim [] .
?property wikibase:propertyType wikibase:ExternalId .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
{
select ?item { ?item wdt:P31 wd:Q5 ; wdt:P27 wd:Q17 optional {?item wdt:P21 ?gender} filter (!bound(?gender)) }
}}
group by ?propertyLabel
order by desc(?cnt)
limit 20
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?cnt")
v5("?gender")
v4("?item")
v2("?property")
v6("?propertyLabel"):::projected
v3("?propertyclaim")
a1((" "))
c11(["wd:Q17"]):::iri
c5(["bd:serviceParam"]):::iri
c9(["wd:Q5"]):::iri
c7(["en"]):::literal
c3(["wikibase:ExternalId"]):::iri
v2 --"wikibase:claim"--> v3
v4 -->v3--> a1
v2 --"wikibase:propertyType"--> c3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
f0[["not bound(?gender)"]]
f0 --> v5
v4 --"wdt:P31"--> c9
v4 --"wdt:P27"--> c11
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P21".-> v5
end
bind2[/"count(?propertyLabel)"/]
v6 --o bind2
bind2 --as--o v7