Question: How many song there are whose title is Beauty and the Beast or that are in English?
Choices:
11
12
13
14
15
16
17
18
19
20
Answer: 12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "song" .  { ?e <title> ?pv . ?pv <pred:value> "Beauty and the Beast" .  } UNION { ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "English" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: title
Beauty and the Beast
function: FilterConcept
dependencies: 1
inputs: song
function: Find
inputs: English
function: Relate
dependencies: 3
inputs: language of work or name
backward
function: FilterConcept
dependencies: 4
inputs: song
function: Or
dependencies: 2
5
function: Count
dependencies: 6