query-23c5a11e4c5d7541d47cd6005a45f18d

rq turtle/ttl

Get the ISIL identifier of libraries in the US and UK SELECT ?item ?itemLabel ?isil WHERE { VALUES ?COUNTRIES { wd:Q30 wd:Q145 } ?item wdt:P791 ?isil; wdt:P17 ?COUNTRIES SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } Get the ISIL identifier of libraries in the US and UK SELECT ?item ?itemLabel ?isil WHERE { VALUES ?COUNTRIES { wd:Q30 wd:Q145 } ?item wdt:P791 ?isil; wdt:P17 ?COUNTRIES SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }

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#>
# Get the ISIL identifier of libraries in the US and UK
SELECT ?item ?itemLabel ?isil 
WHERE 
{
  VALUES ?COUNTRIES { wd:Q30 wd:Q145 }
  ?item wdt:P791 ?isil;
        wdt:P17 ?COUNTRIES
  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; v1("?COUNTRIES") v3("?isil"):::projected v2("?item"):::projected c4(["bd:serviceParam"]):::iri c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/VALUES ?COUNTRIES/] bind0-->v1 bind00(["wd:Q30"]) bind00 --> bind0 bind01(["wd:Q145"]) bind01 --> bind0 v2 --"wdt:P791"--> v3 v2 --"wdt:P17"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end