Question: How is Belgrade related to the Kingdom of Hungary, with the demonym magyar?
Choices:
works in collection
country
color
territory overlaps
architectural style
affiliation
place of burial
student
mountain range
studied by
Answer: country
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Belgrade" . ?e_2 <pred:name> "Kingdom of Hungary" . ?e_2 <demonym> ?pv . ?pv <pred:value> "magyar" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Belgrade
function: Find
inputs: Kingdom of Hungary
function: FilterStr
dependencies: 1
inputs: demonym
magyar
function: QueryRelation
dependencies: 0
2