Question: Which US city is the capital of Orange County, where Fullerton is located?
Choices:
Rapid City
Oakland
Waukegan
Boulder
Orlando
Santa Ana
Columbus
Irvine
New Haven
Franklin
Answer: Santa Ana
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> "Orange County" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Fullerton" .   }
Program:
function: Find
inputs: Fullerton
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Orange County
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