query-5af2ad99535714977306c831dcaf5891

rq turtle/ttl

Les éléments ayant pour pays le Canada et qui possèdent une entrée pour la propriété P239 sourcée à partir de mswiki select distinct ?item ?itemLabel ?ICAO WHERE { ?item wdt:P17 wd:Q16 . ?item p:P239 ?statement . ?statement ps:P239 ?ICAO.
?statement prov:wasDerivedFrom ?from. ?from pr:P143 wd:Q845993. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO LANGUAGE],en". } } order by ?itemLabel

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 prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Les éléments ayant pour pays le Canada et qui possèdent une entrée pour la propriété P239 sourcée à partir de mswiki
select distinct ?item ?itemLabel ?ICAO
WHERE 
{
  ?item wdt:P17 wd:Q16 .
  ?item p:P239 ?statement .
  ?statement ps:P239 ?ICAO.  
  ?statement prov:wasDerivedFrom ?from.
  ?from pr:P143 wd:Q845993.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO LANGUAGE],en". }
} order by ?itemLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?ICAO"):::projected v5("?from") v2("?item"):::projected v1("?itemLabel"):::projected v3("?statement") c2(["wd:Q16"]):::iri c7(["wd:Q845993"]):::iri c9(["bd:serviceParam"]):::iri c11(["#91;AUTO LANGUAGE#93;,en"]):::literal v2 --"p:direct/P17"--> c2 v2 --"p:P239"--> v3 v3 --"p:statement/P239"--> v4 v3 --"prov:wasDerivedFrom"--> v5 v5 --"p:reference/P143"--> c7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end