Question: Of facilities in Manhattan (population 1644518), which boasts the highest total revenue?
Choices:
Museo del Prado
Tower of London
National Gallery
National Gallery of Art
Metropolitan Museum of Art
The Portrait of a Lady
Weber State University
prison
Louvre Museum
Museum of Modern Art
Answer: Metropolitan Museum of Art
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "facility" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Manhattan" . ?e_1 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1644518"^^xsd:double . ?e <total_revenue> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Manhattan
function: FilterNum
dependencies: 0
inputs: population
1644518
=
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: facility
function: SelectAmong
dependencies: 3
inputs: total revenue
largest