query-9bc0be9f6e1e8b4ed554561e4f944511

rq turtle/ttl

| Query: Recent changes | Find images | TABernacle | PetScan | WDQS . Manual changes to the list will be removed on the next update! a botThis list is periodically updated by Manually update list 47 Kingdom of Denmark Mette Frederiksen 47 Malta Robert Abela 47 Liechtenstein Daniel Risch 46 Maldives Mohamed Muizzu 46 Georgia Irakli Kobakhidze 46 Grenada Dickon Mitchell 46 Paraguay Santiago Peña Palacios 45 Andorra Xavier Espot Zamora 44 Mongolia Oyunerdene Luvsannamsrai 44 Qatar Mohammed bin Abdulrahman Al Thani 44 Kazakhstan Oljas Bektenov 43 El Salvador Nayib Bukele 43 Turkmenistan Serdar Berdimuhamedow 39 Saudi Arabia Mohammed bin Salman 39 Chile Gabriel Boric 38 Thailand Paetongtarn Shinawatra 38 Ireland Simon Harris 37 Montenegro Milojko Spajić 36 Ecuador Daniel Noboa 25 Afghanistan Mohammad Hasan Akhund ?age ?country Article image End of automatically generated list.The underlying query that generates this report is:

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 DISTINCT  ?item ?itemLabel ?country ?countryLabel ?age
WHERE { 
  ?country wdt:P31 wd:Q3624078 ; wdt:P1313 ?office . 
  ?office wdt:P1308 ?item .
  ?item wdt:P569 ?birthdate .
  FILTER (!isBLANK(?birthdate))
  BIND(ROUND((NOW() - ?birthdate)/365.2425) AS ?age)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
ORDER BY DESC(?birthdate)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?age"):::projected v1("?birthdate") v2("?country"):::projected v4("?item"):::projected v3("?office") c2(["wd:Q3624078"]):::iri c7(["bd:serviceParam"]):::iri c9(["en"]):::literal f0[["not isBlank(?birthdate)"]] f0 --> v1 v2 --"wdt:P31"--> c2 v2 --"wdt:P1313"--> v3 v3 --"wdt:P1308"--> v4 v4 --"wdt:P569"--> v1 bind1[/"numeric-round(NOW() - ?birthdate / '365.2425^^xsd:decimal')"/] v1 --o bind1 bind1 --as--o v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end