Question: How many films are directed by Ang Lee or whose title is The Opposite of Sex?
Choices:
3
4
5
6
7
8
9
10
11
12
Program:
function: Find
inputs: Ang Lee
function: Relate
dependencies: 0
inputs: director
backward
function: FilterConcept
dependencies: 1
inputs: film
function: FindAll
function: FilterStr
dependencies: 3
inputs: title
The Opposite of Sex
function: FilterConcept
dependencies: 4
inputs: film
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" .  { ?e <director> ?e_1 . ?e_1 <pred:name> "Ang Lee" .  } UNION { ?e <title> ?pv . ?pv <pred:value> "The Opposite of Sex" .  } }
Answer: 9