query-24149495a668e4e0d5a2ddaf47c471c4
TODO
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?mem (COUNT(?start) AS ?memberships)
WHERE
{
?item p:P39 ?mem .
?mem ps:P39 [ wdt:P279 wd:Q3272410 ] ; pq:P580 ?start .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
GROUP BY ?mem
HAVING (COUNT(?start) > 1)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?_anon_42b5416610844a34809f33a099ae9de130643")
v1("?item")
v2("?mem"):::projected
v5("?memberships")
v3("?start"):::projected
a2((" "))
a1((" "))
c8(["bd:serviceParam"]):::iri
c10(["en"]):::literal
c4(["wd:Q3272410"]):::iri
f0[[" > '1^^xsd:integer'"]]
f0 --> a1
v1 --"p:P39"--> v2
a2 --"p:direct/P279"--> c4
v2 --"p:statement/P39"--> a2
v2 --"p:qualifier/P580"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind3[/"count(?start)"/]
v3 --o bind3
bind3 --as--o v4
bind4[/"count(?start)"/]
v3 --o bind4
bind4 --as--o v5