Question: Which museum that is located in Manhattan (that is the birthplace of Peter Falk) has the lowest total revenue?
Choices:
Hawaii
San Bernardino County
Museo del Prado
Metropolitan Museum of Art
Louvre Museum
prison
Tower of London
National Gallery
National Gallery of Art
Museum of Modern Art
Answer: Museum of Modern Art
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "museum" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Manhattan" . ?e_2 <place_of_birth> ?e_1 . ?e_2 <pred:name> "Peter Falk" .  ?e <total_revenue> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Peter Falk
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Manhattan
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: museum
function: SelectAmong
dependencies: 5
inputs: total revenue
smallest