Question: How many literary works are in French or inspired Sense and Sensibility, a Golden Globe nominee for Best Director?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary work" .  { ?e_1 <based_on> ?e . ?e_1 <pred:name> "Sense and Sensibility" . ?e_1 <nominated_for> ?e_2 . ?e_2 <pred:name> "Golden Globe Award for Best Director" .  } UNION { ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "French" .  } }
Program:
function: Find
inputs: Golden Globe Award for Best Director
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Sense and Sensibility
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: based on
forward
function: FilterConcept
dependencies: 4
inputs: literary work
function: Find
inputs: French
function: Relate
dependencies: 6
inputs: language of work or name
backward
function: FilterConcept
dependencies: 7
inputs: literary work
function: Or
dependencies: 5
8
function: Count
dependencies: 9