query-879585d36f952ea2c8e85e4578980204

rq turtle/ttl

Wikipedia articlesHello. Can you change the query show in the results will be a column with the Wikipedia article (if wikibase:language "en" then English Wikipedia, if wikibase:language "el" the Greek Wikipedia).

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
{
    VALUES ?countries { wd:Q229 wd:Q41 wd:Q15240466 }
    ?item wdt:P27 ?countries .
    ?item wdt:P31 wd:Q5 .
    ?item wdt:P735 wd:Q87263878 .
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?countries") v2("?item"):::projected c7(["bd:serviceParam"]):::iri c3(["wd:Q5"]):::iri c9(["en"]):::literal c5(["wd:Q87263878"]):::iri bind0[/VALUES ?countries/] bind0-->v1 bind00(["wd:Q229"]) bind00 --> bind0 bind01(["wd:Q41"]) bind01 --> bind0 bind02(["wd:Q15240466"]) bind02 --> bind0 v2 --"wdt:P27"--> v1 v2 --"wdt:P31"--> c3 v2 --"wdt:P735"--> c5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end