Question: What political party replaced the one that James Mason, a general officer in the military, belonged to?
Choices:
United National Party
Conservative Party of Canada
Federalist Party
Ontario Liberal Party
Republican Party
Progressive Conservative Party of Canada
Communist Party of India (Marxist)
Pakistan Peoples Party
Indian National Congress
Labour Party
Program:
function: Find
inputs: general officer
function: Relate
dependencies: 0
inputs: military rank
backward
function: Find
inputs: James Mason
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: member of political party
forward
function: FilterConcept
dependencies: 4
inputs: political party
function: Relate
dependencies: 5
inputs: replaced by
forward
function: FilterConcept
dependencies: 6
inputs: political party
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "political party" . ?e_1 <replaced_by> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "political party" . ?e_2 <member_of_political_party> ?e_1 . ?e_2 <pred:name> "James Mason" . ?e_2 <military_rank> ?e_3 . ?e_3 <pred:name> "general officer" .   }
Answer: Progressive Conservative Party of Canada