Question: Regarding video game console models that comprise the platform of Shrek Forever After (the one released for Xbox 360), which one had the biggest number of sold units ?
Choices:
When in Rome
Lou Reed
The Dictator
PlayStation 3
Georgetown University
Wii
Nintendo Entertainment System
Into the Wild
PlayStation 2
Xbox 360
Answer: Wii
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "video game console model" . ?e_1 <platform> ?e . ?e_1 <pred:name> "Shrek Forever After" . ?e_1 <platform> ?e_2 . ?e_2 <pred:name> "Xbox 360" .  ?e <units_sold> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
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: Relate
dependencies: 3
inputs: platform
forward
function: FilterConcept
dependencies: 4
inputs: video game console model
function: SelectAmong
dependencies: 5
inputs: units sold
largest