Question: Who is the author of the Anna Karenina (the one that origins from Russian Empire), on which Anna Karenina (the one whose release region is Hungary) is based?
Choices:
Department of Statistics Singapore
J. G. Ballard
25.6 millipascal-second
Jack Kerouac
Leo Tolstoy
J. K. Rowling
Frank Herbert
Ian McEwan
4.83
Cormac McCarthy
Answer: Leo Tolstoy
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Anna Karenina" . ?e_1 <film_release_region> ?e_3 . ?e_3 <pred:name> "Hungary" . ?e_2 <pred:name> "Anna Karenina" . ?e_2 <country_of_origin> ?e_4 . ?e_4 <pred:name> "Russian Empire" . ?e_1 <based_on> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <based_on> ; <pred:fact_t> ?e_2 ] <author> ?qpv .  }
Program:
function: Find
inputs: Hungary
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Anna Karenina
function: And
dependencies: 1
2
function: Find
inputs: Russian Empire
function: Relate
dependencies: 4
inputs: country of origin
backward
function: Find
inputs: Anna Karenina
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: based on
author