Question: Which port city belongs to the country Australia, which is in a diplomatic relationship with East Timor?
Choices:
Gold Coast United FC
Fremantle
Macquarie University
Busan
Perth Airport
Tianjin
Alexandria
Townsville
Collingwood Football Club
RMIT University
Program:
function: Find
inputs: East Timor
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: Find
inputs: Australia
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: port city
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "port city" . ?e <country> ?e_1 . ?e_1 <pred:name> "Australia" . ?e_2 <diplomatic_relation> ?e_1 . ?e_2 <pred:name> "East Timor" .   }
Answer: Fremantle