Question: Among the metropolitan areas located in California (whose median income is 63636 United States dollars), which has the smallest population?
Choices:
San Francisco Bay Area
Greater Houston
New York metropolitan area
Seattle metropolitan area
New Orleans metropolitan area
Greater Los Angeles Area
Portland metropolitan area
Washington metropolitan area
Chicago metropolitan area
Pittsburgh metropolitan area
Answer: San Francisco Bay Area
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "metropolitan area" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "California" . ?e_1 <median_income> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "63636"^^xsd:double . ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: California
function: FilterNum
dependencies: 0
inputs: median income
63636 United States dollar
=
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: metropolitan area
function: SelectAmong
dependencies: 3
inputs: population
smallest