Question: How many musicals are either titled Rent or composed by the playwright Richard Rodgers?
Choices: 3
4
5
6
7
8
9
10
11
12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "musical" .  { ?e <title> ?pv . ?pv <pred:value> "Rent" .  } UNION { ?e <composer> ?e_1 . ?e_1 <pred:name> "Richard Rodgers" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "playwright" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: title
Rent
function: FilterConcept
dependencies: 1
inputs: musical
function: Find
inputs: playwright
function: Relate
dependencies: 3
inputs: occupation
backward
function: Find
inputs: Richard Rodgers
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: composer
backward
function: FilterConcept
dependencies: 7
inputs: musical
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 6