query-d3a993a89d0db68078e5d1a504111ab6
Missing family names
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#>
SELECT ?name (COUNT(?item) AS ?count)
WHERE
{
?item wdt:P27 wd:Q33;
rdfs:label ?fiLabel.
FILTER(LANG(?fiLabel) = 'fi')
BIND(STRAFTER(?fiLabel, ' ') AS ?name)
FILTER NOT EXISTS {
?item wdt:P734 ?familyname.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?name
HAVING (?count > 3)
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?count")
v3("?familyname")
v4("?fiLabel")
v2("?item"):::projected
v5("?name"):::projected
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c5(["wd:Q33"]):::iri
f0[["?count > '3^^xsd:integer'"]]
f0 --> v6
f1[["not "]]
subgraph f1e0["Exists Clause"]
e0v1 --"wdt:P734"--> e0v2
e0v2("?familyname"):::projected
e0v1("?item"):::projected
end
f1--EXISTS--> f1e0
f1 --> v2
f1 --> c2
f1 --> v3
v2 --"wdt:P734"--> v3
f2[["?fiLabel = 'fi'"]]
f2 --> v4
v2 --"wdt:P27"--> c5
v2 --"rdfs:label"--> v4
bind3[/"substring-after(?fiLabel,' ')"/]
v4 --o bind3
bind3 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind5[/"count(?item)"/]
v2 --o bind5
bind5 --as--o v6