Question: What United States city is the capital of the administrative territorial entity that is named after James Madison (who uses the English language)?
Choices:
Mount Vernon
Lake Charles
San Juan
Jackson
Provo
Memphis
Kansas City
Montpelier
Tupelo
Portland
Answer: Jackson
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:instance_of> ?c_1 . ?c_1 <pred:name> "administrative territorial entity" . ?e_1 <named_after> ?e_2 . ?e_2 <pred:name> "James Madison" . ?e_2 <languages_spoken,_written_or_signed> ?e_3 . ?e_3 <pred:name> "English" .   }
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: languages spoken, written or signed
backward
function: Find
inputs: James Madison
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: named after
backward
function: FilterConcept
dependencies: 4
inputs: administrative territorial entity
function: Relate
dependencies: 5
inputs: capital of
backward
function: FilterConcept
dependencies: 6
inputs: city of the United States
function: What
dependencies: 7