Question: Which has a lesser population, Stockport (located in Greater Manchester) or Wakefield (whose official website is http://www.wakefield.gov.uk/)?
Choices: Sheffield
Newcastle upon Tyne
Solihull
Walsall
Wakefield
Rochdale
Stockport
Leeds
Bury
Birmingham
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Stockport" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Greater Manchester" . } UNION { ?e <pred:name> "Wakefield" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.wakefield.gov.uk/" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Greater Manchester
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Stockport
function: And
dependencies: 1
2
function: Find
inputs: Wakefield
function: FilterStr
dependencies: 4
inputs: official website
http://www.wakefield.gov.uk/
function: SelectBetween
dependencies: 3
5
inputs: population
less
Answer: Stockport