query-30d38e836d7aa1e2fe2ed47c6cde6fa4
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:P27 wd:Q17 .
FILTER NOT EXISTS {?item wdt:P21 ?gender}
?item wdt:P31 wd:Q5 .
}
}}
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((" "))
c10(["wd:Q17"]):::iri
c5(["bd:serviceParam"]):::iri
c12(["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 "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P21"--> e0v2
e0v2("?gender"):::projected
e0v1("?item"):::projected
end
f0--EXISTS--> f0e0
f0 --> v4
f0 --> c8
f0 --> v5
v4 --"wdt:P21"--> v5
v4 --"wdt:P27"--> c10
v4 --"wdt:P31"--> c12
bind2[/"count(?propertyLabel)"/]
v6 --o bind2
bind2 --as--o v7