query-f95fc97b96eb9a9cb6c7b8dcc1af1fb2
TODO
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 bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?director ?directorLabel
WHERE
{
VALUES ?author {wd:Q36322}
?item wdt:P31/wdt:P279* wd:Q2431196 .
?item wdt:P57 ?director;
{ ?item wdt:P144*/wdt:P50 ?author }
union { ?item wdt:P1877 ?author }
UNION { ?item wdt:P58 ?author }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en, [AUTO_LANGUAGE]". }
}
ORDER BY ?itemLabel ?itemDescription
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?author")
v5("?director"):::projected
v4("?item"):::projected
v2("?itemDescription"):::projected
v1("?itemLabel"):::projected
a1((" "))
a2((" "))
c10(["bd:serviceParam"]):::iri
c3(["wd:Q2431196"]):::iri
c12(["en, #91;AUTO_LANGUAGE#93;"]):::literal
bind0[/VALUES ?author/]
bind0-->v3
bind00(["wd:Q36322"])
bind00 --> bind0
v4 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v4 --"wdt:P57"--> v5
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P58"--> v3
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P1877"--> v3
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P144"--> a2
a2 --"wdt:P50"--> v3
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end