PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?person ?name ?email ?knows
WHERE {
	?person
		foaf:mbox_sha1sum ?email ;
		foaf:name ?name ;
	OPTIONAL {
		?person foaf:knows [ foaf:name ?knows ]
	}
}