Question: For Taken (the one that has Maggie Grace as a cast member), which is a part of Taken (the one that contains Taken 2), what is it followed by?
Choices:
Men at Work
Sade
Taken 2
Rocky Balboa
Second Crusade
Sheryl Crow
Carrie Underwood
John Legend
Shelby Lynne
Star Wars Episode IV: A New Hope
Program:
function: Find
inputs: Maggie Grace
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Taken
function: And
dependencies: 1
2
function: Find
inputs: Taken 2
function: Relate
dependencies: 4
inputs: part of the series
forward
function: Find
inputs: Taken
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: part of the series
followed by
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Taken" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Maggie Grace" . ?e_2 <pred:name> "Taken" . ?e_4 <part_of_the_series> ?e_2 . ?e_4 <pred:name> "Taken 2" . ?e_1 <part_of_the_series> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <part_of_the_series> ; <pred:fact_t> ?e_2 ] <followed_by> ?qpv .  }
Answer: Taken 2