Question: What is the area of a city located in  Punjab (the one whose country is British Raj until 14th August 1947) ?
Choices:
248.31 square kilometre
102.970084 square kilometre
355087369 square metre
275068 square kilometre
91 square kilometre
5286 square kilometre
1572 square kilometre
1687 square kilometre
2265.297842 square kilometre
10495 square kilometre
Program:
function: Find
inputs: British Raj
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Punjab
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: QFilterDate
dependencies: 4
inputs: end time
1947-08-14
=
function: FilterConcept
dependencies: 5
inputs: city
function: QueryAttr
dependencies: 6
inputs: area
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Punjab" . ?e_1 <country> ?e_2 . ?e_2 <pred:name> "British Raj" .  [ <pred:fact_h> ?e ; <pred:fact_r> <located_in_the_administrative_territorial_entity> ; <pred:fact_t> ?e_1 ] <end_time> ?qpv . ?qpv <pred:date> "1947-08-14"^^xsd:date . ?e <area> ?pv .  }
Answer: 5286 square kilometre