Question: What is the ceremonial county of England whose capital is Ipswich (whose population is 147522) and border is shared with Norfolk (whose official website is http://www.norfolk.gov.uk/)?
Choices:
Suffolk
Derbyshire
Cambridgeshire
Lincolnshire
Northumberland
Somerset
Warwickshire
Essex
Cumbria
Staffordshire
Program:
function: Find
inputs: Ipswich
function: FilterNum
dependencies: 0
inputs: population
147522
=
function: Relate
dependencies: 1
inputs: capital
backward
function: FilterConcept
dependencies: 2
inputs: ceremonial county of England
function: Find
inputs: Norfolk
function: FilterStr
dependencies: 4
inputs: official website
http://www.norfolk.gov.uk/
function: Relate
dependencies: 5
inputs: shares border with
forward
function: FilterConcept
dependencies: 6
inputs: ceremonial county of England
function: And
dependencies: 3
7
function: What
dependencies: 8
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ceremonial county of England" . ?e <capital> ?e_1 . ?e_1 <pred:name> "Ipswich" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "147522"^^xsd:double .  ?e_2 <shares_border_with> ?e . ?e_2 <pred:name> "Norfolk" . ?e_2 <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.norfolk.gov.uk/" .  }
Answer: Suffolk