Question: How many singles are out there in English or named after Robert Evans, The Cotton club producer
Choices:
14
15
16
17
18
19
20
21
22
23
Answer: 18
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "single" .  { ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "English" .  } UNION { ?e <named_after> ?e_1 . ?e_1 <pred:name> "Robert Evans" . ?e_2 <producer> ?e_1 . ?e_2 <pred:name> "The Cotton Club" .  } }
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: language of work or name
backward
function: FilterConcept
dependencies: 1
inputs: single
function: Find
inputs: The Cotton Club
function: Relate
dependencies: 3
inputs: producer
forward
function: Find
inputs: Robert Evans
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: named after
backward
function: FilterConcept
dependencies: 7
inputs: single
function: Or
dependencies: 2
8
function: Count
dependencies: 9