Question: How many science fictions correspond with IAB code 652 or share the genre of Stephen King, who is worth 400,000,000 USD?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: IAB code
652
function: FilterConcept
dependencies: 1
inputs: science fiction
function: Find
inputs: Stephen King
function: FilterNum
dependencies: 3
inputs: net worth
400000000 United States dollar
=
function: Relate
dependencies: 4
inputs: genre
forward
function: FilterConcept
dependencies: 5
inputs: science fiction
function: Or
dependencies: 2
6
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "science fiction" .  { ?e <IAB_code> ?pv . ?pv <pred:value> "652" .  } UNION { ?e_1 <genre> ?e . ?e_1 <pred:name> "Stephen King" . ?e_1 <net_worth> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> "400000000"^^xsd:double .  } }
Answer: 2