Question: Which Manhattan (the one that is the residence of Groucho Marx) museum has the smallest total revenue?
Choices:
National Gallery
Metropolitan Museum of Art
prison
Warren County
Louvre Museum
Tower of London
National Gallery of Art
Museum of Modern Art
Thor
Museo del Prado
Program:
function: Find
inputs: Groucho Marx
function: Relate
dependencies: 0
inputs: residence
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
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 <residence> ?e_1 . ?e_2 <pred:name> "Groucho Marx" .  ?e <total_revenue> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Museum of Modern Art