query-21c64f9fc6df3db115fd5fb555ab0830

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#>
#Bechdel test, year by year
#defaultView:LineChart
SELECT ?year (COUNT(?film) AS ?nb_films) ?statusLabel WHERE {
  ?film wdt:P31/wdt:P279* wd:Q11424 ;
            wdt:P577 ?date ;
            wdt:P1552 ?status.
  BIND(STR(YEAR(?date)) AS ?year)
  VALUES ?status { wd:Q45171911 wd:Q45172088   }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?year ?statusLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?date") v1("?film"):::projected v5("?nb_films") v5("?status") v4("?year"):::projected a1((" ")) c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal c3(["wd:Q11424"]):::iri v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P577"--> v2 v1 --"wdt:P1552"--> v5 bind0[/"str(year-from-dateTime(?date))"/] v2 --o bind0 bind0 --as--o v4 bind1[/VALUES ?status/] bind1-->v5 bind10(["wd:Q45171911"]) bind10 --> bind1 bind11(["wd:Q45172088"]) bind11 --> bind1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind3[/"count(?film)"/] v1 --o bind3 bind3 --as--o v5