Question: How many literary works were the inspiration for The Godfather (the one whose box office is 268500000 United States dollar) or were nominated for Arthur C. Clarke Award ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary work" .  { ?e_1 <based_on> ?e . ?e_1 <pred:name> "The Godfather" . ?e_1 <box_office> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> "268500000"^^xsd:double .  } UNION { ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Arthur C. Clarke Award" .  } }
Program:
function: Find
inputs: The Godfather
function: FilterNum
dependencies: 0
inputs: box office
268500000 United States dollar
=
function: Relate
dependencies: 1
inputs: based on
forward
function: FilterConcept
dependencies: 2
inputs: literary work
function: Find
inputs: Arthur C. Clarke Award
function: Relate
dependencies: 4
inputs: nominated for
backward
function: FilterConcept
dependencies: 5
inputs: literary work
function: Or
dependencies: 3
6
function: Count
dependencies: 7