Question: What sovereign state's capital is the city whose citizens are Hanoians?
Choices:
Yemen
San Marino
Argentina
Republic of the Congo
Kingdom of Romania
Vietnam
Cambodia
Socialist Federal Republic of Yugoslavia
Uruguay
Kingdom of Sardinia
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: demonym
Hanoians
function: FilterConcept
dependencies: 1
inputs: city
function: Relate
dependencies: 2
inputs: capital of
forward
function: FilterConcept
dependencies: 3
inputs: sovereign state
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e_1 <capital_of> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_1 <demonym> ?pv . ?pv <pred:value> "Hanoians" .   }
Answer: Vietnam