Lucas_Werkmeister_WMDE added a comment.
Seen on report a technical problem <https://www.wikidata.org/wiki/Wikidata:Report_a_technical_problem#Wikidata_Query_Builder_fails_to_produce_results> (permalink <https://www.wikidata.org/w/index.php?title=Wikidata:Report_a_technical_problem&oldid=1625062747#Wikidata_Query_Builder_fails_to_produce_results>): a query for humans without date of death <https://w.wiki/56Mp> generates the following SPARQL: SELECT DISTINCT ?item WHERE { ?item p:P31 ?statement0. ?statement0 (ps:P31/(wdt:P279*)) wd:Q5. MINUS { ?item p:P570 ?statement_1. ?statement_1 psv:P570 ?statementValue_1. ?statementValue_1 wikibase:timeValue ?P570_1. } } LIMIT 10 I think the `MINUS` block should only contain the first triple, and the other two should be removed. If I want items without the given property, that should also exclude items where the property is used in a somevalue or novalue statement; additionally, those extra triples probably slow down the query. TASK DETAIL https://phabricator.wikimedia.org/T291977 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lucas_Werkmeister_WMDE Cc: Michael, Lucas_Werkmeister_WMDE, Aklapper, Lydia_Pintscher, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
