Question: What person in the position of Prime Minister was followed by John Turner?
Choices:
Simon Cowell
Rahul Dev Burman
Richard Gere
Paul Simon
David Byrne
Sylvester Stallone
James E. Reilly
Max Fleischer
William Henry Harrison
Pierre Trudeau
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: official name
Prime Minister
function: FilterConcept
dependencies: 1
inputs: prime minister
function: Relate
dependencies: 2
inputs: position held
backward
function: QFilterStr
dependencies: 3
inputs: replaced by
John Turner
function: FilterConcept
dependencies: 4
inputs: human
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <position_held> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "prime minister" . ?e_1 <official_name> ?pv . ?pv <pred:value> "Prime Minister" .  [ <pred:fact_h> ?e ; <pred:fact_r> <position_held> ; <pred:fact_t> ?e_1 ] <replaced_by> ?qpv . ?qpv <pred:value> "John Turner" .  }
Answer: Pierre Trudeau