Question: What capital is in a sovereign state whose motto text is Lā ilāha illā llāh Muhammadun rasūlu llāh ?
Choices:
Lausanne
Prague
Port-au-Prince
Addis Ababa
Riyadh
Kuala Lumpur
Rome
Manila
Luxembourg
Ottawa
Answer: Riyadh
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "capital" . ?e_1 <capital> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_1 <motto_text> ?pv . ?pv <pred:value> "Lā ilāha illā llāh Muhammadun rasūlu llāh." .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: motto text
Lā ilāha illā llāh Muhammadun rasūlu llāh.
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: Relate
dependencies: 2
inputs: capital
forward
function: FilterConcept
dependencies: 3
inputs: capital
function: What
dependencies: 4