Question: Which US city is the capital of Maryland, where Cecil County is located?
Choices:
Lansing
Franklin
Annapolis
Salem
Compton
Pensacola
Columbus
New Haven
Boulder
Oakland
Program:
function: Find
inputs: Cecil County
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Maryland
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: capital of
backward
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Maryland" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Cecil County" .   }
Answer: Annapolis