Question: Does the Kingdom of Italy (that has military conflicts with Hungary) or Poland have the larger land area?
Choices:
Poland
Cambodia
South Sudan
Weimar Republic
Kiribati
Benin
Russian Soviet Federative Socialist Republic
Samoa
Kingdom of Italy
Socialist Federal Republic of Yugoslavia
Answer: Poland
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kingdom of Italy" . ?e_1 <military_conflicts> ?e . ?e_1 <pred:name> "Hungary" .   } UNION { ?e <pred:name> "Poland" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Hungary
function: Relate
dependencies: 0
inputs: military conflicts
forward
function: Find
inputs: Kingdom of Italy
function: And
dependencies: 1
2
function: Find
inputs: Poland
function: SelectBetween
dependencies: 3
4
inputs: area
greater