Question: Which city has a citizen who is a human involved in the conflict Second Punic War?
Choices:
Cork
Bologna
Hong Kong
Como
Madrid
Carthage
Bhubaneswar
Kilkenny
Kingston
Frankfurt
Program:
function: Find
inputs: Second Punic War
function: Relate
dependencies: 0
inputs: conflict
backward
function: FilterConcept
dependencies: 1
inputs: human
function: Relate
dependencies: 2
inputs: country of citizenship
forward
function: FilterConcept
dependencies: 3
inputs: city
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <country_of_citizenship> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_1 <conflict> ?e_2 . ?e_2 <pred:name> "Second Punic War" .   }
Answer: Carthage