Question: Does Reading (that is the capital of Berkshire) or Bedford (whose country is the United Kingdom) have the lower population?
Choices: Ipswich
Maidstone
Guildford
Taunton
Warwick
Reading
Dorchester
Northampton
Bedford
Oxford
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Reading" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Berkshire" .   } UNION { ?e <pred:name> "Bedford" . ?e <country> ?e_2 . ?e_2 <pred:name> "United Kingdom" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Berkshire
function: Relate
dependencies: 0
inputs: capital of
backward
function: Find
inputs: Reading
function: And
dependencies: 1
2
function: Find
inputs: United Kingdom
function: Relate
dependencies: 4
inputs: country
backward
function: Find
inputs: Bedford
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: population
less
Answer: Bedford