Question: Does Worcester that is the headquarters location of Worcester City F.C. or Thunder Bay whose Twitter username is CityThunderBay have less area?
Choices:
Worcester
Kingston
Kilkenny
Trieste
Chihuahua
Bergen
Cork
Thunder Bay
Santo Domingo
Dundee
Answer: Worcester
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Worcester" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Worcester City F.C." . } UNION { ?e <pred:name> "Thunder Bay" . ?e <Twitter_username> ?pv_1 . ?pv_1 <pred:value> "CityThunderBay" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Worcester City F.C.
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: Find
inputs: Worcester
function: And
dependencies: 1
2
function: Find
inputs: Thunder Bay
function: FilterStr
dependencies: 4
inputs: Twitter username
CityThunderBay
function: SelectBetween
dependencies: 3
5
inputs: area
less