Question: What country does Malibu (Lady Gaga's residence), where Home Alone (published 1990-11-16) was shot, belong to?
Choices:
Curaçao
United States of America
Romania
Ecuador
United Arab Republic
Austria
Costa Rica
Greece
Confederation of the Rhine
Venezuela
Answer: United States of America
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Home Alone" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "1990-11-16"^^xsd:date . ?e_2 <pred:name> "Malibu" . ?e_3 <residence> ?e_2 . ?e_3 <pred:name> "Lady Gaga" . ?e_1 <filming_location> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <filming_location> ; <pred:fact_t> ?e_2 ] <country> ?qpv .  }
Program:
function: Find
inputs: Home Alone
function: FilterDate
dependencies: 0
inputs: publication date
1990-11-16
=
function: Find
inputs: Lady Gaga
function: Relate
dependencies: 2
inputs: residence
forward
function: Find
inputs: Malibu
function: And
dependencies: 3
4
function: QueryRelationQualifier
dependencies: 1
5
inputs: filming location
country