query-e8c8391f0d6bcefd8fa72b6a0c209023
Hungarian citizenship Bencemac: Request date: 12 August 2018, byTask description 17:59, 12 August 2018 (UTC)) talk (Bencemac. I tried to make their queries but I was not able to; please forgive me, I am bad at Wikidata Query (yet). If it is possible to do, I would have similar request in the future (before 1946). (Q28)Hungary is (P27)country of citizenship and (Q5)human is (P31)instance of I would like to ask the following changes where 1. Born after 1989-10-23 (optional) the person is still alive:→date of birth(P580)start time the person is dead→date of death(P582)end time →date of birth, (P580)start time 2. Born after 1949-08-20 the person died before 1989-10-23:→date of death(P582)end time →date of birth, (P580)start time , (Q16410)Hungarian People's Republic →(P27)country of citizenship the person died after 1989-10-23:→date of death (preferred rank)(P582)end time →1989-10-23, (P580)start time , (Q28)Hungary →(P27)country of citizenship →1989-10-23(P582)end time →date of birth, (P580)start time , (Q16410)Hungarian People's Republic →(P27)country of citizenship the person is still alive:→1989-10-23 (preferred rank)(P580)start time , (Q28)Hungary →(P27)country of citizenship →1989-10-23(P582)end time →date of birth, (P580)start time , (Q16410)Hungarian People's Republic →(P27)country of citizenship 3. Born after 1946-02-01 the person died before 1949-08-20:→date of death(P582)end time →date of birth, (P580)start time , (Q940741)Second Hungarian Republic →(P27)country of citizenship the person died before 1989-10-23:→date of death (preferred rank)(P582)end time →1949-08-20, (P580)start time , (Q16410)Hungarian People's Republic →(P27)country of citizenship →1949-08-20(P582)end time →date of birth, (P580)start time , (Q940741)Second Hungarian Republic →(P27)country of citizenship the person died after 1989-10-23:→date of death (preferred rank)(P580)start time , (Q28)Hungary →(P27)country of citizenship →1989-10-23(P582)end time →1949-08-20, (P580)start time , (Q16410)Hungarian People's Republic →(P27)country of citizenship →1949-08-20(P582)end time →date of birth, (P580)start time , (Q940741)Second Hungarian Republic →(P27)country of citizenship the person is still alive:→1989-10-23 (preferred rank)(P580)start time , (Q28)Hungary →(P27)country of citizenship →1989-10-23(P582)end time →1949-08-20, (P580)start time , (Q16410)Hungarian People's Republic →(P27)country of citizenship →1949-08-20(P582)end time →date of birth, (P580)start time , (Q940741)Second Hungarian Republic →(P27)country of citizenship Discussion
Use at
- https://query.wikidata.org/sparql
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 ?person ?personLabel ?birthdate ?deathdate
WHERE {
?person wdt:P31 wd:Q5;
wdt:P27 wd:Q28;
wdt:P569 ?birthdate;
wdt:P570 ?deathdate.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}