Question: Where was Avatar, which was nominated for the BAFTA Award for Best Film Music and had a box office of 2787965087 United States dollars published?
Choices:
India
European Union
58th Berlin International Film Festival
Grauman's Chinese Theatre
worldwide
Russia
Egypt
Beverly Hills
Tokyo
Davao City
Answer: worldwide
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:name> "Avatar" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "BAFTA Award for Best Film Music" .  ?e <box_office> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> "2787965087"^^xsd:double . [ <pred:fact_h> ?e ; <pred:fact_r> <box_office> ; <pred:fact_t> ?pv ] <place_of_publication> ?qpv .  }
Program:
function: Find
inputs: BAFTA Award for Best Film Music
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Avatar
function: And
dependencies: 1
2
function: QueryAttrQualifier
dependencies: 3
inputs: box office
2787965087 United States dollar
place of publication