query-793ff4e76d247ef871a043371abbe205

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 ?item ?itemLabel ?free_license ?free_licenseLabel ?other_license ?other_licenseLabel
WHERE
{
  VALUES ?free_license { wd:Q178285 wd:Q1414510 }
  ?item wdt:P31 / wdt:P279 * wd:Q7889 . # ?item is instance of video game
  ?item wdt:P275 ?free_license .
  ?item wdt:P275 ?other_license .
  FILTER (?free_license != ?other_license)
  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; v3("?free_license"):::projected v3("?item"):::projected v2("?other_license"):::projected a1((" ")) c6(["bd:serviceParam"]):::iri c3(["wd:Q7889"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?free_license != ?other_license"]] f0 --> v3 f0 --> v2 bind1[/VALUES ?free_license/] bind1-->v3 bind10(["wd:Q178285"]) bind10 --> bind1 bind11(["wd:Q1414510"]) bind11 --> bind1 v3 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v3 --"wdt:P275"--> v3 v3 --"wdt:P275"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end