Question: What is the connection between Empire of the Sun (the one that is authored by J. G. Ballard) to World War II?
Choices:
employer
main subject
sexual orientation
allegiance
licensed to broadcast to
next lower rank
military rank
location of formation
candidate
country of origin
Answer: main subject
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Empire of the Sun" . ?e_1 <author> ?e_3 . ?e_3 <pred:name> "J. G. Ballard" . ?e_2 <pred:name> "World War II" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: J. G. Ballard
function: Relate
dependencies: 0
inputs: author
backward
function: Find
inputs: Empire of the Sun
function: And
dependencies: 1
2
function: Find
inputs: World War II
function: QueryRelation
dependencies: 3
4