Question: How many Academy Awards ceremonies were in the US or in Bahamas (the one whose nominal GDP is 3259000000 United States dollars)  ?
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> "Academy Awards ceremony" .  { ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "Bahamas" . ?e_1 <nominal_GDP> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> "3259000000"^^xsd:double .  } }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: Academy Awards ceremony
function: Find
inputs: Bahamas
function: FilterNum
dependencies: 3
inputs: nominal GDP
3259000000 United States dollar
=
function: Relate
dependencies: 4
inputs: country
backward
function: FilterConcept
dependencies: 5
inputs: Academy Awards ceremony
function: Or
dependencies: 2
6
function: Count
dependencies: 7