Question: Which human settlement belongs to the sovereign-state country where John Mills, nicknamed Jack, has citizenship?
Choices:
Rotorua
Ridgewood
Exeter
Invercargill
Belleville
West Orange
New Plymouth
Auckland City
Subiaco
Whanganui
Answer: Whanganui
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human settlement" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_2 <country_of_citizenship> ?e_1 . ?e_2 <pred:name> "John Mills" . ?e_2 <nickname> ?pv . ?pv <pred:value> "Jack" .   }
Program:
function: Find
inputs: John Mills
function: FilterStr
dependencies: 0
inputs: nickname
Jack
function: Relate
dependencies: 1
inputs: country of citizenship
forward
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: human settlement
function: What
dependencies: 5