Question: Who is the author of On the Road (whose genre is novel), which On the Road (whose release region is Greece) is based on?
Choices:
J. G. Ballard
Cormac McCarthy
United States presidential election, 1792
Department of Statistics Singapore
J. K. Rowling
Ian McEwan
0361
Leo Tolstoy
Jack Kerouac
Frank Herbert
Answer: Jack Kerouac
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "On the Road" . ?e_1 <film_release_region> ?e_3 . ?e_3 <pred:name> "Greece" . ?e_2 <pred:name> "On the Road" . ?e_2 <genre> ?e_4 . ?e_4 <pred:name> "novel" . ?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: Greece
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: On the Road
function: And
dependencies: 1
2
function: Find
inputs: novel
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: On the Road
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: based on
author