Question: What county in New York is named after the ceremonial county of England that has the capital Ipswich (the one whose WOEID is 24522)?
Choices:
Jefferson County
Warren County
Suffolk County
Essex County
Clinton County
Greene County
Cattaraugus County
Suffolk
Livingston County
Orange County
Program:
function: Find
inputs: Ipswich
function: FilterStr
dependencies: 0
inputs: WOEID
24522
function: Relate
dependencies: 1
inputs: capital of
forward
function: FilterConcept
dependencies: 2
inputs: ceremonial county of England
function: Relate
dependencies: 3
inputs: named after
backward
function: FilterConcept
dependencies: 4
inputs: county of New York
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New York" . ?e <named_after> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "ceremonial county of England" . ?e_3 <capital_of> ?e_1 . ?e_3 <pred:name> "Ipswich" . ?e_3 <WOEID> ?pv . ?pv <pred:value> "24522" .   }
Answer: Suffolk County