SELECT ?item ?itemLabel 
WHERE 
{
  ?item wdt:P106 wd:Q170790. 
  OPTIONAL{?horse wdt:P569 ?birthdate .} 
  OPTIONAL{?horse wdt:P570 ?deathdate .}     
  OPTIONAL{?horse wdt:P21 ?gender .}   
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } 
}

39188 results


SELECT ?item ?itemLabel ?article ?work ?lang
WHERE 
{
  ?item wdt:P106 wd:Q170790. # <span lang="en" dir="ltr" class="mw-content-ltr">Must be a cat</span>
  ?article schema:about ?item . # . hint:Prior hint:runFirst true.
  ?article schema:inLanguage ?lang ;
    schema:name ?name ;
    schema:isPartOf [ wikibase:wikiGroup "wikipedia" ] .
  FILTER(?lang in ('uk'))
  OPTIONAL{?item wdt:P569 ?birthdate .} # P569 : Date de naissance
  OPTIONAL{?item wdt:P570 ?deathdate .}     # P570 : Date de décès
  OPTIONAL{?item wdt:P21 ?gender .}   
  OPTIONAL{?item wdt:P800 ?work .}     
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # <span lang="en" dir="ltr" class="mw-content-ltr">Helps get the label in your language, if not, then en language</span>
}