what is the {elected in} for {James Callaghan} has {position held} as {Member of the 47th Parliament of the United Kingdom} ?
Who did James Callaghan elect as a Member of the 47th Parliament of the UK?
Who is the elected for James Callaghan has position held as Member of the 47th Parliament of the United Kingdom?
SELECT ?v WHERE { ?y property:elected_in ?v . resource:James_Callaghan property:position_held ?y . ?y property:position_held resource:Member_of_the_47th_Parliament_of_the_United_Kingdom }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q9576> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q41582617> .
?statement <http://www.wikidata.org/entity/P2715> ?value. 
} 

SELECT ?value WHERE { wd:Q9576 p:P39 ?s . ?s ps:P39 wd:Q41582617 . ?s pq:P2715 ?value}