Question: How is Greek that hails from the USA related to Georgia, which has diplomatic ties to Gambia?
Choices:
conflict
different from
sexual orientation
allegiance
location of formation
founded by
country of origin
subject has role
history of topic
country
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Greek
function: And
dependencies: 1
2
function: Find
inputs: Gambia
function: Relate
dependencies: 4
inputs: diplomatic relation
backward
function: Find
inputs: Georgia
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Greek" . ?e_1 <country> ?e_3 . ?e_3 <pred:name> "United States of America" . ?e_2 <pred:name> "Georgia" . ?e_2 <diplomatic_relation> ?e_4 . ?e_4 <pred:name> "Gambia" . ?e_1 ?p ?e_2 .  }
Answer: country