Question: How many households are in the state of India with the capital Shimla, which has an urban population of 688552?
Choices:
1813768
7140
170770
109976
14234387
21782
55427
75076
113525
427350
Answer: 170770
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Shimla" .  ?e <urban_population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "688552"^^xsd:double . [ <pred:fact_h> ?e ; <pred:fact_r> <urban_population> ; <pred:fact_t> ?pv ] <number_of_households> ?qpv .  }
Program:
function: Find
inputs: Shimla
function: Relate
dependencies: 0
inputs: capital of
forward
function: FilterConcept
dependencies: 1
inputs: state of India
function: QueryAttrQualifier
dependencies: 2
inputs: urban population
688552
number of households