Question: What is the connection between Virginia (the one that contains Fredericksburg) to Fredericksburg?
Choices:
interests
political alignment
partner
tributary
film crew member
sports season of league or competition
contains administrative territorial entity
record label
conflict
airline alliance
Answer: contains administrative territorial entity
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Virginia" . ?e_3 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_3 <pred:name> "Fredericksburg" . ?e_2 <pred:name> "Fredericksburg" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Fredericksburg
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Virginia
function: And
dependencies: 1
2
function: Find
inputs: Fredericksburg
function: QueryRelation
dependencies: 3
4