| Alphos added a comment. |
Or, to handle the string literals too :
# People who died in the last 7 days
SELECT ?person ?deathDate {
?person wdt:P31 wd:Q5 .
?person wdt:P570 ?deathDate .
FILTER( IF ( sameTerm(dataType(?deathDate), xsd:dateTime), ?deathDate >= ( NOW() - "P7D"^^xsd:duration ), STRDT( ?deathDate, xsd:dateTime ) >= ( NOW() - "P7D"^^xsd:duration ) ) )
} ORDER BY ?deathDateTASK DETAIL
EMAIL PREFERENCES
To: Alphos
Cc: Esc3300, gerritbot, Smalyshev, Alphos, WikidataFacts, Aklapper, Sylvain_WMFr, mschwarzer, MelodyKramer, Avner, debt, Gehel, D3r1ck01, Jonas, FloNight, Xmlizer, Izno, jkroll, Wikidata-bugs, Jdouglas, aude, Deskana, Manybubbles, Mbch331
Cc: Esc3300, gerritbot, Smalyshev, Alphos, WikidataFacts, Aklapper, Sylvain_WMFr, mschwarzer, MelodyKramer, Avner, debt, Gehel, D3r1ck01, Jonas, FloNight, Xmlizer, Izno, jkroll, Wikidata-bugs, Jdouglas, aude, Deskana, Manybubbles, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
