Question: Does Dorchester (the one whose TOID is 4000000074550040) or Northampton (the one that is the twinned administrative body of Marburg) have the greater population?
Choices:
Ipswich
Northampton
Dorchester
Maidstone
Reading
Aylesbury
Warwick
Oxford
Taunton
Bedford
Program:
function: Find
inputs: Dorchester
function: FilterStr
dependencies: 0
inputs: TOID
4000000074550040
function: Find
inputs: Marburg
function: Relate
dependencies: 2
inputs: twinned administrative body
backward
function: Find
inputs: Northampton
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dorchester" . ?e <TOID> ?pv_1 . ?pv_1 <pred:value> "4000000074550040" . } UNION { ?e <pred:name> "Northampton" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Marburg" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Northampton