query-ce55d65b8ebe892b08b4ea16f23c020f
Llywelyn2000
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?film ?filmLabel ?directorLabel (GROUP_CONCAT(DISTINCT ?genre_label; SEPARATOR = " ") AS ?genres)
(MIN(?publicationDate) AS ?firstPublication)
WHERE
{
?director rdfs:label "Rob Minkoff"@en.
?film wdt:P57 ?director. # P57 = film director
OPTIONAL {
?film wdt:P136 ?genre.
?genre rdfs:label ?genre_label.
FILTER((LANG(?genre_label)) = "en")
}
OPTIONAL { ?film wdt:P577 ?publicationDate. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
GROUP BY ?director ?directorLabel ?film ?filmLabel
LIMIT 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?director")
v3("?film"):::projected
v7("?firstPublication")
v4("?genre")
v1("?genre_label"):::projected
v6("?genres")
v5("?publicationDate"):::projected
c8(["bd:serviceParam"]):::iri
c3([sRob Minkoff^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"]):::literal
c1(["en"]):::literal
v2 --"rdfs:label"--> c3
v3 --"wdt:P57"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P136".-> v4
v4 --"rdfs:label"--> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P577".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c1
end
bind2[/"?genre_label"/]
v1 --o bind2
bind2 --as--o v6
bind3[/"min(?publicationDate)"/]
v5 --o bind3
bind3 --as--o v7