query-1417e0d9fe382959237ddb0c1ecdb71b

rq turtle/ttl

Ez pedig csak összeszámolja őket

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT (COUNT(DISTINCT ?subject) AS ?subjcount ) 
WHERE
{
     ?subject wdt:P31 wd:Q5 .
    {?subject wdt:P27 wd:Q28} UNION {?subject wdt:P27 wd:Q171150}  UNION {?subject wdt:P27 wd:Q655621} 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?subjcount") v1("?subject"):::projected c4(["wd:Q28"]):::iri c5(["wd:Q171150"]):::iri c6(["wd:Q655621"]):::iri c2(["wd:Q5"]):::iri v1 --"wdt:P31"--> c2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P27"--> c6 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P27"--> c5 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P27"--> c4 end union0r <== or ==> union0l end bind1[/"count(?subject)"/] v1 --o bind1 bind1 --as--o v2