Question: Tell me the city with the licence plate code of JK01 and that has an area of under 2800000 square kilometre
Choices:
Winnipeg
Hiroshima
Kingston
Cork
Kilkenny
Srinagar
Trieste
New York City
Casablanca
Bremen
Answer: Srinagar
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <licence_plate_code> ?pv . ?pv <pred:value> "JK01" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> ?v . FILTER ( ?v < "2800000"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: licence plate code
JK01
function: FilterConcept
dependencies: 1
inputs: city
function: FindAll
function: FilterNum
dependencies: 3
inputs: area
2800000 square kilometre
<
function: FilterConcept
dependencies: 4
inputs: city
function: And
dependencies: 2
5
function: What
dependencies: 6