Question: What city is the capital of the government structure that has Uganda–United States diplomatic relations with the United States of America?
Choices: Belgrade
Kingston
Colombo
Rabat
Cork
Trieste
Kampala
Espoo
Mogadishu
Bonn
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <capital> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "form of government" . ?e_1 <diplomatic_relation> ?e_2 . ?e_2 <pred:name> "United States of America" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_2 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Uganda–United States relations" .   }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Uganda–United States relations
function: FilterConcept
dependencies: 2
inputs: form of government
function: Relate
dependencies: 3
inputs: capital
forward
function: FilterConcept
dependencies: 4
inputs: city
function: What
dependencies: 5
Answer: Kampala