Question: When was James Callaghan elected as a Member of the 40th Parliament of the United Kingdom?
Paraphrase: When was James Callaghan elected as a member of the UK's 40th Parliament?
SPARQL (Wikidata): SELECT ?value1 ?value2 WHERE { wd:Q9576 p:P39 ?s . ?s ps:P39 wd:Q41582603 . ?s pq:P2715 ?value1 . ?s pq:P1534 ?value2 }