Question: What country does Northampton (whose WOEID is 30599), the birthplace of Alan Moore (whose official website is http://www.dodgemlogic.com/), belong to?
Choices:
United Kingdom
Austria
Brazil
Georgia
Bhutan
United Kingdom of Great Britain and Ireland
Germany
Orange Free State
Kingdom of Bavaria
Slovakia
Answer: United Kingdom
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Alan Moore" . ?e_1 <official_website> ?pv . ?pv <pred:value> "http://www.dodgemlogic.com/" . ?e_2 <pred:name> "Northampton" . ?e_2 <WOEID> ?pv_1 . ?pv_1 <pred:value> "30599" . ?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: Alan Moore
function: FilterStr
dependencies: 0
inputs: official website
http://www.dodgemlogic.com/
function: Find
inputs: Northampton
function: FilterStr
dependencies: 2
inputs: WOEID
30599
function: QueryRelationQualifier
dependencies: 1
3
inputs: place of birth
country