Question: What is the relationship between the Cold War (the one whose number of episodes is 24) to United Kingdom?
Choices:
after a work by
derivative work
designed by
official color
currency
product or material produced
educated at
country of origin
director
named after
Answer: country of origin
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Cold War" . ?e_1 <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "24"^^xsd:double . ?e_2 <pred:name> "United Kingdom" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Cold War
function: FilterNum
dependencies: 0
inputs: number of episodes
24
=
function: Find
inputs: United Kingdom
function: QueryRelation
dependencies: 1
2