@prefix foaf: <http://xmlns.com/foaf/1.1/> .
@prefix log: <http://www.w3.org/2000/10/swap/log#> .

{ ?x a <http://xmlns.com/foaf/0.1/Person> ;
       <http://xmlns.com/foaf/0.1/mbox> ?direccion ;
       <http://xmlns.com/foaf/0.1/name> ?nombre  .

  ?y a  <http://xmlns.com/foaf/0.1/Person> ; 
       <http://xmlns.com/foaf/0.1/mbox> ?direccion ;
       <http://xmlns.com/foaf/0.1/givenname> ?apellido  .
} =>
{ ?x a <http://xmlns.com/foaf/0.1/Person> ;
       <http://xmlns.com/foaf/0.1/mbox> ?direccion ;
       <http://xmlns.com/foaf/0.1/givenname> ?apellido ;
       <http://xmlns.com/foaf/0.1/name> ?nombre } .


