Question: Where was the visual artwork that is based on State of Play (which has Kelly Macdonald as a cast member) published on 2009-06-18?
Choices:
2004 Cannes Film Festival
Brazil
European Union
Germany
Beverly Hills
Philippines
Pakistan
Mexico
1949 Cannes Film Festival
Turkey
Answer: Germany
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e <based_on> ?e_1 . ?e_1 <pred:name> "State of Play" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Kelly Macdonald" .  ?e <publication_date> ?pv . ?pv <pred:date> "2009-06-18"^^xsd:date . [ <pred:fact_h> ?e ; <pred:fact_r> <publication_date> ; <pred:fact_t> ?pv ] <place_of_publication> ?qpv .  }
Program:
function: Find
inputs: Kelly Macdonald
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: State of Play
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: based on
backward
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: QueryAttrQualifier
dependencies: 5
inputs: publication date
2009-06-18
place of publication