What is {has effect} and {killed by} of {{John F. Kennedy} has {cause of death} as {ballistic trauma}}
Who assassinated John F. Kennedy?
Who shot and killed JFK?
SELECT ?m ?g WHERE { ?w property:cause_of_death resource:ballistic_trauma . ?w property:has_effect ?m . resource:John_F._Kennedy property:cause_of_death ?w . ?w property:killed_by ?g }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q9696> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P509> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q2140674>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q9696 p:P509 ?s . ?s ps:P509 wd:Q2140674 . ?s pq:P1542 ?value1 . ?s pq:P157 ?value2 }