Question: Does California (whose median income is 63636 United States dollars) or Louisiana (whose British Museum person-institution is 111527) have the lower elevation above sea level?
Choices:
New Mexico
Iowa
Hawaii
California
Massachusetts
Louisiana
New Jersey
Kansas
Florida
Illinois
Answer: Louisiana
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "California" . ?e <median_income> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "63636"^^xsd:double . } UNION { ?e <pred:name> "Louisiana" . ?e <British_Museum_person-institution> ?pv_2 . ?pv_2 <pred:value> "111527" . } ?e <elevation_above_sea_level> ?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: Find
inputs: Louisiana
function: FilterStr
dependencies: 2
inputs: British Museum person-institution
111527
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
less