query-ca6fbb54983c1d784f9e666779e3e476
Propertiesinstance of (P31)author (P50)cast member (P161)based on (P144)
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 ?bookLabel ?book ?movieLabel ?movie ?personLabel ?person
WHERE {
?book wdt:P31 wd:Q571;
wdt:P50 ?person .
?movie wdt:P31 wd:Q11424;
wdt:P161 ?person .
?book wdt:P144 ?movie .
# ?prop wikibase:directClaim ?p
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY ?bookLabel ?movieLabel
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?book"):::projected
v1("?bookLabel"):::projected
v5("?movie"):::projected
v2("?movieLabel"):::projected
v4("?person"):::projected
c8(["bd:serviceParam"]):::iri
c10(["en"]):::literal
c4(["wd:Q11424"]):::iri
c2(["wd:Q571"]):::iri
v3 --"wdt:P31"--> c2
v3 --"wdt:P50"--> v4
v5 --"wdt:P31"--> c4
v5 --"wdt:P161"--> v4
v3 --"wdt:P144"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end