Question: How is Kingston (an administrative division of Ulster County) related to United States of America?
Choices: manner of death
has quality
military rank
series spin-off
subsidiary
country
professional or sports partner
part of the series
after a work by
programming language
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Kingston" . ?e_3 <contains_administrative_territorial_entity> ?e_1 . ?e_3 <pred:name> "Ulster County" . ?e_2 <pred:name> "United States of America" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Ulster County
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: Find
inputs: Kingston
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: QueryRelation
dependencies: 3
4
Answer: country