Question: What is the connection between Massachusetts (whose population is 3852356) and Franklin County (that shares a border with Worcester County)?
Choices:
located on terrain feature
start point
inspired by
member of sports team
contains administrative territorial entity
feast day
film editor
programming paradigm
software engine
winner
Answer: contains administrative territorial entity
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Massachusetts" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "3852356"^^xsd:double . ?e_2 <pred:name> "Franklin County" . ?e_3 <shares_border_with> ?e_2 . ?e_3 <pred:name> "Worcester County" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Massachusetts
function: FilterNum
dependencies: 0
inputs: population
3852356
=
function: Find
inputs: Worcester County
function: Relate
dependencies: 2
inputs: shares border with
forward
function: Find
inputs: Franklin County
function: And
dependencies: 3
4
function: QueryRelation
dependencies: 1
5