Question: What number of different kinds of sports originate from England, where the story of The Duchess is set?
Choices:
6
7
8
9
10
11
12
13
14
15
Answer: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "type of sport" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "England" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "The Duchess" .   }
Program:
function: Find
inputs: The Duchess
function: Relate
dependencies: 0
inputs: narrative location
forward
function: Find
inputs: England
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: country of origin
backward
function: FilterConcept
dependencies: 4
inputs: type of sport
function: Count
dependencies: 5