Question: Which has more people, Bedford (the one whose area is 20.2 square kilometre) or Guildford (the one whose official website is http://www.guildford.gov.uk/)?
Choices:
Aylesbury
Guildford
Warwick
Maidstone
Bedford
Northampton
Ipswich
Reading
Taunton
Dorchester
Answer: Bedford
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bedford" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "20.2"^^xsd:double . } UNION { ?e <pred:name> "Guildford" . ?e <official_website> ?pv_2 . ?pv_2 <pred:value> "http://www.guildford.gov.uk/" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Bedford
function: FilterNum
dependencies: 0
inputs: area
20.2 square kilometre
=
function: Find
inputs: Guildford
function: FilterStr
dependencies: 2
inputs: official website
http://www.guildford.gov.uk/
function: SelectBetween
dependencies: 1
3
inputs: population
greater