Question: Which Ohio county contains the administrative division Lima (the one whose country is United States of America)?
Choices:
Cuyahoga County
Stark County
Summit County
Mahoning County
Delaware County
Ashtabula County
Butler County
Wayne County
Allen County
Erie County
Answer: Allen County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Ohio" . ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Lima" . ?e_1 <country> ?e_2 . ?e_2 <pred:name> "United States of America" .   }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Lima
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: county of Ohio
function: What
dependencies: 5