PREFIX foaf: PREFIX : SELECT * { NOT EXISTS { ?s :hairColor "brown" } ?s a foaf:Person . }