Question: What country is Northampton (WOEID 30599), the birthplace of Alan Moore (the one whose ISNI is 0000 0001 2095 9030) belonging to ?
Choices: Argentina
United Kingdom
Curaçao
English
Albania
Kingdom of Great Britain
Venezuela
Kingdom of Bavaria
Sint Maarten
Portugal
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Alan Moore" . ?e_1 <ISNI> ?pv . ?pv <pred:value> "0000 0001 2095 9030" . ?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: ISNI
0000 0001 2095 9030
function: Find
inputs: Northampton
function: FilterStr
dependencies: 2
inputs: WOEID
30599
function: QueryRelationQualifier
dependencies: 1
3
inputs: place of birth
country
Answer: United Kingdom