Question: Which has the smallest area among the sovereign states that contain Prague, the capital of Czechoslovakia?
Choices:
Socialist Federal Republic of Yugoslavia
Weimar Republic
Czech Republic
Czechoslovakia
South Sudan
Samoa
Kiribati
Cambodia
Switzerland
Benin
Answer: Czech Republic
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Prague" . ?e_1 <capital_of> ?e_2 . ?e_2 <pred:name> "Czechoslovakia" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Czechoslovakia
function: Relate
dependencies: 0
inputs: capital of
backward
function: Find
inputs: Prague
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: sovereign state
function: SelectAmong
dependencies: 5
inputs: area
smallest