query-a6afef4adc2bca87f4784f5860188bfd

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
#Bubble chart of number of times Shahrukh Khan collaborated with other actors
#defaultView:BubbleChart
SELECT DISTINCT ?coactorLabel (COUNT(?film) as ?films) WHERE {
  ?film wdt:P31 wd:Q11424 ; wdt:P161 wd:Q9535 ; wdt:P161 ?coactor.
  FILTER(?coactor != wd:Q9535)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
GROUP BY ?coactorLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?coactor") v2("?film"):::projected v3("?films") c6(["bd:serviceParam"]):::iri c8(["en"]):::literal c1(["wd:Q9535"]):::iri c3(["wd:Q11424"]):::iri f0[["?coactor != 'wd:Q9535'"]] f0 --> v1 v2 --"wdt:P31"--> c3 v2 --"wdt:P161"--> c1 v2 --"wdt:P161"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind2[/"count(?film)"/] v2 --o bind2 bind2 --as--o v3