Question: Which has more people, Russian Soviet Federative Socialist Republic (the one that shares border with Empire of Japan) or Jordan?
Choices:
People's Republic of China
Kiribati
Benin
Jordan
Samoa
Cambodia
Weimar Republic
Russian Soviet Federative Socialist Republic
South Sudan
Socialist Federal Republic of Yugoslavia
Answer: Russian Soviet Federative Socialist Republic
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Russian Soviet Federative Socialist Republic" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Empire of Japan" .   } UNION { ?e <pred:name> "Jordan" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Empire of Japan
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Russian Soviet Federative Socialist Republic
function: And
dependencies: 1
2
function: Find
inputs: Jordan
function: SelectBetween
dependencies: 3
4
inputs: population
greater