what is the {instance of} for {Homer Simpson} has {given name} as {Jay} ?
What did Jay get from Homer Simpson?
What did Homer Simpson give Jay?
SELECT ?j WHERE { ?g property:given_name resource:Jay . ?g rdf:type ?j . resource:Homer_Simpson property:given_name ?g }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q7810> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P735> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q19817029> .
?statement <http://www.wikidata.org/entity/P31> ?value. 
} 

SELECT ?value WHERE { wd:Q7810 p:P735 ?s . ?s ps:P735 wd:Q19817029 . ?s pq:P31 ?value}