I am trying to learn sparql by thinking of problems to solve, with a view to one day writing a wikidata bot, whilst I use SQL every day, I find sparql confusing.
What I thought I would do is try to list everyone of a first name, that does not have the P735 "given name" attribute, I have got it to list 10 humans called Neil but cannot find how to only show those without the attribute (or to not show duplicates)
SELECT DISTINCT ?item ?itemLabel
WHERE {
?item rdfs:label ?itemLabel.
?item wdt:P31 wd:Q5 .
FILTER(STRSTARTS(?itemLabel, "Neil "@en)).
} limit 10