PREFIX foaf: DELETE { ?a foaf:knows ?b . } WHERE { ?a foaf:name "Alan" . ?a foaf:knows ?b }