query-c55bbbf19c82caefcd6ccc9b33c50e9a

rq turtle/ttl

Trade

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 ?item ?itemLabel ?instanceOf ?instanceOfLabel
WHERE
{
  OPTIONAL { ?item wdt:P852 wd:Q14864333. BIND(true AS ?pending). }
  OPTIONAL { ?item wdt:P3156 wd:Q95469534. BIND(true AS ?pending). }
  OPTIONAL { ?item wdt:P852 wd:Q57312857. BIND(true AS ?pending). }
  OPTIONAL { ?item wdt:P853 wd:Q14864333. BIND(true AS ?pending). }
  FILTER (?pending)
  OPTIONAL { ?item wdt:P577 ?release_date. }
  FILTER (! BOUND(?release_date) || NOW() > ?release_date)
  ?item wdt:P31 ?instanceOf.
  VALUES ?classes { wd:Q7889 wd:Q11424 } # Video game, film
  ?instanceOf wdt:P279* ?classes.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?classes") v4("?instanceOf"):::projected v3("?item"):::projected v4("?pending") v1("?release_date") c11(["bd:serviceParam"]):::iri c2(["wd:Q14864333"]):::iri c5(["wd:Q57312857"]):::iri c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal c4(["wd:Q95469534"]):::iri f0[["(not bound(?release_date) || NOW() > ?release_date)"]] f0 --> v1 f1[["?pending"]] f1 --> v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P852".-> c2 bind2[/"'true^^xsd:boolean'"/] bind2 --as--o v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P3156".-> c4 bind3[/"'true^^xsd:boolean'"/] bind3 --as--o v4 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P852".-> c5 bind4[/"'true^^xsd:boolean'"/] bind4 --as--o v4 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P853".-> c2 bind5[/"'true^^xsd:boolean'"/] bind5 --as--o v4 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P577".-> v1 end v3 --"wdt:P31"--> v4 bind6[/VALUES ?classes/] bind6-->v5 bind60(["wd:Q7889"]) bind60 --> bind6 bind61(["wd:Q11424"]) bind61 --> bind6 v4 --"wdt:P279"--> v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end