Question: How many occupations are related to the sport of basketball or are a citizen of India (release region of The Butterfly Effect)?
Choices:
5
6
7
8
9
10
11
12
13
14
Answer: 8
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "occupation" .  { ?e <sport> ?e_1 . ?e_1 <pred:name> "basketball" .  } UNION { ?e <country_of_citizenship> ?e_1 . ?e_1 <pred:name> "India" . ?e_2 <film_release_region> ?e_1 . ?e_2 <pred:name> "The Butterfly Effect" .  } }
Program:
function: Find
inputs: basketball
function: Relate
dependencies: 0
inputs: sport
backward
function: FilterConcept
dependencies: 1
inputs: occupation
function: Find
inputs: The Butterfly Effect
function: Relate
dependencies: 3
inputs: film release region
forward
function: Find
inputs: India
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: country of citizenship
backward
function: FilterConcept
dependencies: 7
inputs: occupation
function: Or
dependencies: 2
8
function: Count
dependencies: 9