Question: Tell me the city in the USA that is located in a Massachusetts County that was named after Suffolk (which has a TOID of 7000000000015934)
Choices:
Champaign
Lawrence
Columbus
Franklin
New Haven
Fort Collins
Frederick
Newton
Waukegan
Boston
Answer: Boston
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "county of Massachusetts" . ?e_1 <named_after> ?e_2 . ?e_2 <pred:name> "Suffolk" . ?e_2 <TOID> ?pv_1 . ?pv_1 <pred:value> "7000000000015934" .   }
Program:
function: Find
inputs: Suffolk
function: FilterStr
dependencies: 0
inputs: TOID
7000000000015934
function: Relate
dependencies: 1
inputs: named after
backward
function: FilterConcept
dependencies: 2
inputs: county of Massachusetts
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: What
dependencies: 5