Question: What Massachusetts county's capital is Northampton (that is the work site of Mo Willems) and Dewey Decimal Classification is 2--74423?
Choices:
Plymouth County
Barnstable County
Norfolk County
Essex County
Berkshire County
Franklin County
Middlesex County
Hampshire County
Bristol County
Worcester County
Program:
function: Find
inputs: Mo Willems
function: Relate
dependencies: 0
inputs: work location
forward
function: Find
inputs: Northampton
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: capital
backward
function: FilterConcept
dependencies: 4
inputs: county of Massachusetts
function: FindAll
function: FilterStr
dependencies: 6
inputs: Dewey Decimal Classification
2--74423
function: FilterConcept
dependencies: 7
inputs: county of Massachusetts
function: And
dependencies: 5
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Massachusetts" . ?e <capital> ?e_1 . ?e_1 <pred:name> "Northampton" . ?e_2 <work_location> ?e_1 . ?e_2 <pred:name> "Mo Willems" .  ?e <Dewey_Decimal_Classification> ?pv . ?pv <pred:value> "2--74423" .  }
Answer: Hampshire County