SELECT tp2.o FROM rdf tp0 JOIN rdf tp1 ON (tp0.s=tp1.s) JOIN rdf tp2 ON (tp1.o = tp2.s) WHERE tp0.p='' and tp0.o='"Joe Foo"' and tp1.p='' and tp2.p='';