Question: Which belief system is the religion of the political party whose headquarter location is Beirut (which has a Dewey Decimal Classification of 2--56925)?
Choices: Russian Orthodox Church
Baptists
Hinduism
Sunni Islam
Presbyterianism
Shinto
paganism
Greek Orthodox Church
Jainism
Shia Islam
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "belief system" . ?e_1 <religion> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "political party" . ?e_1 <headquarters_location> ?e_2 . ?e_2 <pred:name> "Beirut" . ?e_2 <Dewey_Decimal_Classification> ?pv . ?pv <pred:value> "2--56925" .   }
Program:
function: Find
inputs: Beirut
function: FilterStr
dependencies: 0
inputs: Dewey Decimal Classification
2--56925
function: Relate
dependencies: 1
inputs: headquarters location
backward
function: FilterConcept
dependencies: 2
inputs: political party
function: Relate
dependencies: 3
inputs: religion
forward
function: FilterConcept
dependencies: 4
inputs: belief system
function: What
dependencies: 5
Answer: Shia Islam