Question: How is War and Peace (with Paul Dano) related to Leo Tolstoy?
Choices:
narrator
family
home world
performer
location of final assembly
godparent
after a work by
religious order
designed by
official religion
Program:
function: Find
inputs: Paul Dano
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: War and Peace
function: And
dependencies: 1
2
function: Find
inputs: Leo Tolstoy
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "War and Peace" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Paul Dano" . ?e_2 <pred:name> "Leo Tolstoy" . ?e_1 ?p ?e_2 .  }
Answer: after a work by