Question: What river is located in or next to the Pennsylvania city that contains the University of Pittsburgh?
Choices:
River Thames
Mississippi River
Amazon
Coming Home
Danube
Missouri River
Hudson River
Rhine
Ohio River
Columbia River
Program:
function: Find
inputs: University of Pittsburgh
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 1
inputs: city of Pennsylvania
function: Relate
dependencies: 2
inputs: located in or next to body of water
forward
function: FilterConcept
dependencies: 3
inputs: river
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "river" . ?e_1 <located_in_or_next_to_body_of_water> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city of Pennsylvania" . ?e_3 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_3 <pred:name> "University of Pittsburgh" .   }
Answer: Ohio River