query-8f99a07f38715fd8bd7f365efdb84f85

rq turtle/ttl

ItemsSARS-CoV-2 (Q82069695)COVID-19 (Q84263196)COVID-19 pandemic (Q81068910)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?property ?propertyLabel ?count


WHERE {
   {
  SELECT DISTINCT ?property (COUNT(*) AS ?count) WHERE {
   {
  SELECT DISTINCT ?item WHERE {
    VALUES ?topic { wd:Q82069695 wd:Q84263196 wd:Q81068910 }
    ?item ?claim ?topic . 
    ?property wikibase:directClaim ?claim.
  }
  LIMIT 200000
  }
    ?item ?p [ ] .
    ?property a wikibase:Property;
                wikibase:claim ?p.
  }
  GROUP BY ?property 
  LIMIT 100
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY DESC(?count)
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?claim") v7("?count"):::projected v3("?item") v6("?p") v5("?property"):::projected v2("?topic") a1((" ")) c6(["bd:serviceParam"]):::iri c3(["wikibase:Property"]):::iri c8(["en"]):::literal bind0[/VALUES ?topic/] bind0-->v2 bind00(["wd:Q82069695"]) bind00 --> bind0 bind01(["wd:Q84263196"]) bind01 --> bind0 bind02(["wd:Q81068910"]) bind02 --> bind0 v3 -->v4--> v2 v5 --"wikibase:directClaim"--> v4 v3 -->v6--> a1 v5 --"a"--> c3 v5 --"wikibase:claim"--> v6 bind2[/"count(*)"/] bind2 --as--o v7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end