Question: Which democracy that is the residence of John Abraham (who lives in the United States of America) has the most total reserves?
Choices:
Bolivia
Germany
Italy
India
Zimbabwe
Tunisia
Mozambique
Sierra Leone
Tanzania
Namibia
Answer: India
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "democracy" . ?e_1 <residence> ?e . ?e_1 <pred:name> "John Abraham" . ?e_1 <residence> ?e_2 . ?e_2 <pred:name> "United States of America" .  ?e <total_reserves> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: residence
backward
function: Find
inputs: John Abraham
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: residence
forward
function: FilterConcept
dependencies: 4
inputs: democracy
function: SelectAmong
dependencies: 5
inputs: total reserves
largest