Question: Does Bradford (official name Bradford) or Shiraz, twinned administrative body of Chongqing, have the higher elevation?
Choices:
Shiraz
Abidjan
Cork
Trieste
Kilkenny
Bergen
Santo Domingo
Kingston
Bradford
Dundee
Answer: Shiraz
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bradford" . ?e <official_name> ?pv_1 . ?pv_1 <pred:value> "Bradford" . } UNION { ?e <pred:name> "Shiraz" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Chongqing" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Bradford
function: FilterStr
dependencies: 0
inputs: official name
Bradford
function: Find
inputs: Chongqing
function: Relate
dependencies: 2
inputs: twinned administrative body
backward
function: Find
inputs: Shiraz
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: elevation above sea level
greater