Question: How many plays based on Beauty and the Beast, BAFTA  nominee for Best Film Music, originate in the USA?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "play" . ?e <based_on> ?e_1 . ?e_1 <pred:name> "Beauty and the Beast" . ?e_1 <nominated_for> ?e_2 . ?e_2 <pred:name> "BAFTA Award for Best Film Music" .  ?e <country_of_origin> ?e_3 . ?e_3 <pred:name> "United States of America" .  }
Program:
function: Find
inputs: BAFTA Award for Best Film Music
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Beauty and the Beast
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: based on
backward
function: FilterConcept
dependencies: 4
inputs: play
function: Find
inputs: United States of America
function: Relate
dependencies: 6
inputs: country of origin
backward
function: FilterConcept
dependencies: 7
inputs: play
function: And
dependencies: 5
8
function: Count
dependencies: 9
Answer: 1