query-6877371aff3004b9090799207972945a

rq turtle/ttl

Statistics

Use at

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/>
SELECT (COUNT(DISTINCT(?consortium)) AS ?consortia) (COUNT(DISTINCT(?section)) AS ?sections) (COUNT(DISTINCT(?member)) AS ?members) (COUNT(DISTINCT(?applicant)) AS ?applicants)
WHERE 
{
  SELECT ?consortium ?member ?section ?applicant
  WHERE {
    ?consortium wdt:P31 wd:Q98270496 . 
    { 
      SELECT ?member ?section ?applicant
        WHERE {
        ?member wdt:P463 wd:Q105757481 .
    { 
      SELECT ?section ?applicant
        WHERE {
        ?section wdt:P31 wd:Q111582288 .
    { 
      SELECT (?organisation AS ?applicant)
        WHERE {
          ?p wdt:P31 wd:Q98270496 .
          ?p p:P1416 ?statement .
          ?statement ps:P1416 ?organisation .
          ?statement pq:P3831 wd:Q54875338 . 
        }
     }
        }
     }
        }
     }
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?applicant"):::projected v11("?applicants") v8("?consortia") v1("?consortium"):::projected v2("?member"):::projected v10("?members") v6("?organisation") v4("?p") v3("?section"):::projected v9("?sections") v5("?statement") c9(["wd:Q54875338"]):::iri c4(["wd:Q105757481"]):::iri c5(["wd:Q111582288"]):::iri c2(["wd:Q98270496"]):::iri v1 --"p:direct/P31"--> c2 v2 --"p:direct/P463"--> c4 v3 --"p:direct/P31"--> c5 v4 --"p:direct/P31"--> c2 v4 --"p:P1416"--> v5 v5 --"p:statement/P1416"--> v6 v5 --"p:qualifier/P3831"--> c9 bind0[/"?organisation"/] v6 --o bind0 bind0 --as--o v7 bind5[/"count(?consortium)"/] v1 --o bind5 bind5 --as--o v8 bind6[/"count(?section)"/] v3 --o bind6 bind6 --as--o v9 bind7[/"count(?member)"/] v2 --o bind7 bind7 --as--o v10 bind8[/"count(?applicant)"/] v7 --o bind8 bind8 --as--o v11