Question: What is the platform of Shrek Forever After (that is released for iOS) whose distribution format is DVD?
Choices:
Microsoft Windows
PlayStation 2
Xbox 360
Nintendo Entertainment System
08019
hereditary monarchy
PlayStation 3
331
06
25085 United States dollar
Answer: Xbox 360
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Shrek Forever After" . ?e_1 <platform> ?e_3 . ?e_3 <pred:name> "iOS" . ?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: iOS
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