query-36411de70cdfc3f6de2a5064b3c837f2

rq turtle/ttl

Useful queries

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#>
SELECT DISTINCT ?planetLabel ?gridLocationLabel ?filmLabel
WHERE
{
  ?planet wdt:P31 wd:Q108059870 .
  ?planet wdt:P1441 ?film .
  ?film wdt:P31 ?filmClass . 
  ?filmClass wdt:P279* wd:Q11424 .
  ?film wdt:P577 ?publicationDate .
  OPTIONAL
  {
  ?planet wdt:P276 ?gridLocation .
  }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
ORDER BY ?publicationDate

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?film") v4("?filmClass") v5("?gridLocation") v2("?planet") v1("?publicationDate") c9(["bd:serviceParam"]):::iri c2(["wd:Q108059870"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal c5(["wd:Q11424"]):::iri v2 --"wdt:P31"--> c2 v2 --"wdt:P1441"--> v3 v3 --"wdt:P31"--> v4 v4 --"wdt:P279"--> c5 v3 --"wdt:P577"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P276".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end