Question: Is the population larger in Northampton,  capital of Northamptonshire, or Warwick (OS grid reference SP2865)?
Choices: Warwick
Dorchester
Northampton
Guildford
Maidstone
Aylesbury
Taunton
Bedford
Reading
Oxford
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Northampton" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Northamptonshire" . } UNION { ?e <pred:name> "Warwick" . ?e <OS_grid_reference> ?pv_1 . ?pv_1 <pred:value> "SP2865" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Northamptonshire
function: Relate
dependencies: 0
inputs: capital
forward
function: Find
inputs: Northampton
function: And
dependencies: 1
2
function: Find
inputs: Warwick
function: FilterStr
dependencies: 4
inputs: OS grid reference
SP2865
function: SelectBetween
dependencies: 3
5
inputs: population
greater
Answer: Northampton