Question: What country does Northampton (the one whose official website is http://www.northampton.gov.uk/), where Alan Moore (known by a notable work From Hell), belong to ?
Choices:
Taiwan
United Kingdom
Uruguay
international
Weimar Republic
France
Union of South Africa
Netherlands
Kingdom of Great Britain
Holy Roman Empire
Answer: United Kingdom
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Alan Moore" . ?e_1 <notable_work> ?e_3 . ?e_3 <pred:name> "From Hell" . ?e_2 <pred:name> "Northampton" . ?e_2 <official_website> ?pv . ?pv <pred:value> "http://www.northampton.gov.uk/" . ?e_1 <place_of_birth> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <place_of_birth> ; <pred:fact_t> ?e_2 ] <country> ?qpv .  }
Program:
function: Find
inputs: From Hell
function: Relate
dependencies: 0
inputs: notable work
backward
function: Find
inputs: Alan Moore
function: And
dependencies: 1
2
function: Find
inputs: Northampton
function: FilterStr
dependencies: 4
inputs: official website
http://www.northampton.gov.uk/
function: QueryRelationQualifier
dependencies: 3
5
inputs: place of birth
country