Question: What film festival edition is followed by the 59th Berlin International Film Festival and whose location is Berlin?
Choices:
60th Berlin International Film Festival
2012 Sundance Film Festival
34th Berlin International Film Festival
2009 Sundance Film Festival
2011 Toronto International Film Festival
58th Berlin International Film Festival
32nd Berlin International Film Festival
2008 Sundance Film Festival
61st Berlin International Film Festival
59th Berlin International Film Festival
Answer: 58th Berlin International Film Festival
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film festival edition" . ?e_1 <follows> ?e . ?e_1 <pred:name> "59th Berlin International Film Festival" .  ?e <location> ?e_2 . ?e_2 <pred:name> "Berlin" .  }
Program:
function: Find
inputs: 59th Berlin International Film Festival
function: Relate
dependencies: 0
inputs: follows
forward
function: FilterConcept
dependencies: 1
inputs: film festival edition
function: Find
inputs: Berlin
function: Relate
dependencies: 3
inputs: location
backward
function: FilterConcept
dependencies: 4
inputs: film festival edition
function: And
dependencies: 2
5
function: What
dependencies: 6