Question: Is the larger area occupied by Newport (local dialing code 01633) or Sheffield, headquarters of the University of Sheffield?
Choices:
Chihuahua
Cork
Abidjan
Newport
Trieste
Dundee
Kilkenny
Santo Domingo
Bergen
Sheffield
Program:
function: Find
inputs: Newport
function: FilterStr
dependencies: 0
inputs: local dialing code
01633
function: Find
inputs: University of Sheffield
function: Relate
dependencies: 2
inputs: headquarters location
forward
function: Find
inputs: Sheffield
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Newport" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "01633" . } UNION { ?e <pred:name> "Sheffield" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "University of Sheffield" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Sheffield