Question: What is the relation between Fredericton and New Brunswick (the one whose demonym is Néo-Brunswickoise)?
Choices:
production company
godparent
parent organization
capital of
substitute/deputy/replacement of office/officeholder
material used
editor
terminus
honorific prefix
production designer
Program:
function: Find
inputs: Fredericton
function: Find
inputs: New Brunswick
function: FilterStr
dependencies: 1
inputs: demonym
Néo-Brunswickoise
function: QueryRelation
dependencies: 0
2
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Fredericton" . ?e_2 <pred:name> "New Brunswick" . ?e_2 <demonym> ?pv . ?pv <pred:value> "Néo-Brunswickoise" . ?e_1 ?p ?e_2 .  }
Answer: capital of