Wikidata:WikiProject Heads of state and government/Youngest Heads of Government

From Wikidata
Jump to navigation Jump to search

This list is periodically updated by a bot. Manual changes to the list will be removed on the next update!

WDQS | PetScan | TABernacle | Find images | Recent changes | Query: SELECT DISTINCT ?item ?country ?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) } ORDER BY DESC(?birthdate) LIMIT 20
image Article ?country ?age
Daniel Noboa Ecuador 36
Milojko Spajić Montenegro 37
Simon Harris Ireland 38
Paetongtarn Shinawatra Thailand 38
Gabriel Boric Chile 39
Mohammed bin Salman Saudi Arabia 39
Serdar Berdimuhamedow Turkmenistan 43
Nayib Bukele El Salvador 43
Oljas Bektenov Kazakhstan 44
Mohammed bin Abdulrahman Al Thani Qatar 44
Oyunerdene Luvsannamsrai Mongolia 44
Xavier Espot Zamora Andorra 45
Santiago Peña Palacios Paraguay 46
Dickon Mitchell Grenada 46
Irakli Kobakhidze Georgia 46
Mohamed Muizzu Maldives 46
Daniel Risch Liechtenstein 47
Robert Abela Malta 47
Mette Frederiksen Kingdom of Denmark 47
Hun Manet Cambodia 47
End of automatically generated list.

The underlying query that generates this report is:

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)
Try it!