query-d55b3e9c1c2e7367d173f4dd7b7597da

rq turtle/ttl

Check RO demonyms SELECT DISTINCT ?country ?countryLabel ?demonym ?qualLabel WHERE { ?country wdt:P31 wd:Q6256 . ?country p:P1549 [ ps:P1549 ?demonym; pq:P518 ?qual ] . FILTER(LANG(?demonym) = "ro"). VALUES ?qual {wd:Q499327 wd:Q1775415 } #BIND( wd:Q499327 as ?qual ) . SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } ORDER BY ASC(?countryLabel)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Check RO demonyms
SELECT DISTINCT ?country ?countryLabel ?demonym ?qualLabel 
WHERE {
  ?country wdt:P31 wd:Q6256 .
  ?country p:P1549 [ ps:P1549 ?demonym; pq:P518 ?qual ] . FILTER(LANG(?demonym) = "ro").
  VALUES ?qual {wd:Q499327 wd:Q1775415 } #BIND( wd:Q499327 as ?qual ) .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } 
}
ORDER BY ASC(?countryLabel)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?country"):::projected v1("?countryLabel"):::projected v2("?demonym"):::projected v5("?qual") a1((" ")) c8(["bd:serviceParam"]):::iri c10(["en"]):::literal c3(["wd:Q6256"]):::iri f0[["?demonym = 'ro'"]] f0 --> v2 v3 --"p:direct/P31"--> c3 a1 --"p:statement/P1549"--> v2 a1 --"p:qualifier/P518"--> v5 v3 --"p:P1549"--> a1 bind1[/VALUES ?qual/] bind1-->v5 bind10(["wd:Q499327"]) bind10 --> bind1 bind11(["wd:Q1775415"]) bind11 --> bind1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end