query-ef074a9149853abbf0d13fc6e226b042
Queries All works with a reverse Bechdel test result
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?resultLabel ?external_identifiers
WHERE
{
#getting all items with one of these values
?item p:P5021 ?st. ?st ps:P5021 wd:Q105776216; pq:P9259 ?result.
#excluding television series episodes
MINUS{?item wdt:P31/wdt:P279* wd:Q21191270}
?item wikibase:identifiers ?external_identifiers
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY DESC(?external_identifiers)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?external_identifiers"):::projected
v2("?item"):::projected
v4("?result")
v3("?st")
a1((" "))
c10(["bd:serviceParam"]):::iri
c12(["en"]):::literal
c3(["wd:Q105776216"]):::iri
c7(["wd:Q21191270"]):::iri
v2 --"p:P5021"--> v3
v3 --"p:statement/P5021"--> c3
v3 --"p:qualifier/P9259"--> v4
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c7
end
v2 --"wikibase:identifiers"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end