Question: Does Gloucestershire (that shares a border with Wiltshire) or Somerset (whose official website is http://www.somerset.gov.uk/) have the larger area?
Choices:
Warwickshire
Staffordshire
East Riding of Yorkshire
Essex
Northumberland
Cumbria
Gloucestershire
Somerset
Norfolk
Derbyshire
Answer: Somerset
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gloucestershire" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Wiltshire" . } UNION { ?e <pred:name> "Somerset" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.somerset.gov.uk/" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Wiltshire
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Gloucestershire
function: And
dependencies: 1
2
function: Find
inputs: Somerset
function: FilterStr
dependencies: 4
inputs: official website
http://www.somerset.gov.uk/
function: SelectBetween
dependencies: 3
5
inputs: area
greater