Question: Who is the author of Anna Karenina (whose narrative location is Saint Petersburg) that is based on Anna Karenina whose OCLC control number is 220005468?
Choices:
0.00589
Star Trek Ⅵ: The Undiscovered Country
Leo Tolstoy
Department of Statistics Singapore
J. G. Ballard
Cormac McCarthy
J. K. Rowling
Jack Kerouac
Frank Herbert
Ian McEwan
Answer: Leo Tolstoy
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Anna Karenina" . ?e_1 <narrative_location> ?e_3 . ?e_3 <pred:name> "Saint Petersburg" . ?e_2 <pred:name> "Anna Karenina" . ?e_2 <OCLC_control_number> ?pv . ?pv <pred:value> "220005468" . ?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: Saint Petersburg
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Anna Karenina
function: And
dependencies: 1
2
function: Find
inputs: Anna Karenina
function: FilterStr
dependencies: 4
inputs: OCLC control number
220005468
function: QueryRelationQualifier
dependencies: 3
5
inputs: based on
author