query-ecf17a9f6a0dff6c840f0fef4308aae8

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select ?country (coalesce(?countryLabelFr, ?countryLabelEn, ?country) as ?countryLabel) ?creationDate ?dissolutionDate{
     ?country wdt:P31/wdt:P279* wd:Q3624078 # sovereign states, I don’t know if it’s the right item
     optional { ?country rdfs:label ?countryLabelFr filter(lang(?countryLabelFr)= "fr")} .
     optional { ?country rdfs:label ?countryLabelEn filter(lang(?countryLabelEn)= "en")}
     optional { ?country wdt:P571 ?creationDate }
    optional { ?country wdt:P576 ?dissolutionDate }

  } order by ?countryLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?country"):::projected v7("?countryLabel") v2("?countryLabelEn"):::projected v3("?countryLabelFr"):::projected v5("?creationDate"):::projected v6("?dissolutionDate"):::projected a1((" ")) c5(["wd:Q3624078"]):::iri v4 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."rdfs:label".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."rdfs:label".-> v2 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P571".-> v5 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P576".-> v6 end bind0[/"?countryLabelFr?countryLabelEn?country"/] v3 --o bind0 v2 --o bind0 v4 --o bind0 bind0 --as--o v7