Question: What is the relationship between Virginia (the one that contains the administrative division Albemarle County) and Greene County (the one whose population is 19162)?
Choices:
separated from
filming location
culture
said to be the same as
head of state
award disciplines or subjects
contains administrative territorial entity
programming language
located on terrain feature
presenter
Answer: contains administrative territorial entity
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Virginia" . ?e_1 <contains_administrative_territorial_entity> ?e_3 . ?e_3 <pred:name> "Albemarle County" . ?e_2 <pred:name> "Greene County" . ?e_2 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "19162"^^xsd:double . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Albemarle County
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
backward
function: Find
inputs: Virginia
function: And
dependencies: 1
2
function: Find
inputs: Greene County
function: FilterNum
dependencies: 4
inputs: population
19162
=
function: QueryRelation
dependencies: 3
5