Question: What ethnic group is geographically distributed in a geographic region which is the continent where The Hague is located ?
Choices:
Koreans
Austrians
Tamil people
Romani people
Irish migration to Great Britain
Thai Chinese people
Indian American
Swedes
White American
Australians
Answer: Romani people
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ethnic group" . ?e <geographic_distribution> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "geographic region" . ?e_2 <continent> ?e_1 . ?e_2 <pred:name> "The Hague" .   }
Program:
function: Find
inputs: The Hague
function: Relate
dependencies: 0
inputs: continent
forward
function: FilterConcept
dependencies: 1
inputs: geographic region
function: Relate
dependencies: 2
inputs: geographic distribution
backward
function: FilterConcept
dependencies: 3
inputs: ethnic group
function: What
dependencies: 4