Question: What is the relation between Livingston (the one whose country is United States of America) and Essex County (the one that is located in New Jersey) ?
Choices:
terminus
item operated
famous people
practiced by
found
military rank
replaced by
doctoral student
located in the administrative territorial entity
family name
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Livingston
function: And
dependencies: 1
2
function: Find
inputs: New Jersey
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Essex County
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Livingston" . ?e_1 <country> ?e_3 . ?e_3 <pred:name> "United States of America" . ?e_2 <pred:name> "Essex County" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_4 . ?e_4 <pred:name> "New Jersey" . ?e_1 ?p ?e_2 .  }
Answer: located in the administrative territorial entity