# People who died before independence of India but erroneously tagged as citizen of Republic of India
SELECT
?item
?itemLabel
?deathLabel
WHERE
{
?item
wdt
:
P31
wd
:
Q5
.
# all humans
?item
wdt
:
P27
wd
:
Q668
.
# tagged as Indian citizen
?item
wdt
:
P570
?death
.
# who died
FILTER
(
?death
<=
"1947-08-16T00:00:00Z"
^^
xsd
:
dateTime
)
.
# before 16 August 1947
SERVICE
wikibase
:
label
{
bd
:
serviceParam
wikibase
:
language
"[AUTO_LANGUAGE],en,bn,hi,mr,gu,pa,ta,te,ml,as,or"
.}
}
ORDER BY
(
?deathLabel
)