Question: Which state that is member of the European Union has the smallest area?
Choices:
Denmark
Greece
Cuba
Sweden
Malta
Luxembourg
Croatia
Lithuania
Finland
Bulgaria
Program:
function: Find
inputs: European Union
function: Relate
dependencies: 0
inputs: has part
forward
function: FilterConcept
dependencies: 1
inputs: state
function: SelectAmong
dependencies: 2
inputs: area
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state" . ?e_1 <has_part> ?e . ?e_1 <pred:name> "European Union" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Malta