Question: For the political party whose country equals the German Democratic Republic (the involved part of this statement is eastern Germany), what political party follows it?
Choices:
Ontario Liberal Party
United National Party
Indian National Congress
Bharatiya Janata Party
Socialist Unity Party of Germany
Kuomintang
Pakistan Peoples Party
Conservative Party of Canada
Labour Party
Communist Party of India (Marxist)
Answer: Socialist Unity Party of Germany
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "political party" . ?e_1 <followed_by> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "political party" . ?e_1 <country> ?e_2 . ?e_2 <pred:name> "German Democratic Republic" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <followed_by> ; <pred:fact_t> ?e ] <applies_to_part> ?qpv . ?qpv <pred:value> "eastern Germany" .  }
Program:
function: Find
inputs: German Democratic Republic
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: political party
function: Relate
dependencies: 2
inputs: followed by
forward
function: QFilterStr
dependencies: 3
inputs: applies to part
eastern Germany
function: FilterConcept
dependencies: 4
inputs: political party
function: What
dependencies: 5