Question: What platform was Shrek Forever After (the one that is released for Xbox 360), distributed on DVD, made for?
Choices:
85–118
Microsoft Windows
7310
PlayStation 2
0362-4331
Xbox 360
Nintendo Entertainment System
30000 hertz
PlayStation 3
junior tennis
Answer: Xbox 360
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Shrek Forever After" . ?e_1 <platform> ?e_3 . ?e_3 <pred:name> "Xbox 360" . ?e_2 <pred:name> "DVD" . ?e_1 <distribution> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <distribution> ; <pred:fact_t> ?e_2 ] <platform> ?qpv .  }
Program:
function: Find
inputs: Xbox 360
function: Relate
dependencies: 0
inputs: platform
backward
function: Find
inputs: Shrek Forever After
function: And
dependencies: 1
2
function: Find
inputs: DVD
function: QueryRelationQualifier
dependencies: 3
4
inputs: distribution
platform