Question: What activity is based on Star Trek: The Next Generation starring Patrick Stewart and was released for Microsoft Windows?
Choices:
Star Trek: The Next Generation
Shrek Forever After
Batman
Prince of Persia: The Sands of Time
Guitar Hero 5
Battleship
The Incredible Hulk
music video game
X-Men Origins: Wolverine
G-Force
Program:
function: Find
inputs: Patrick Stewart
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Star Trek: The Next Generation
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: based on
backward
function: FilterConcept
dependencies: 4
inputs: activity
function: Find
inputs: Microsoft Windows
function: Relate
dependencies: 6
inputs: platform
backward
function: FilterConcept
dependencies: 7
inputs: activity
function: And
dependencies: 5
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "activity" . ?e <based_on> ?e_1 . ?e_1 <pred:name> "Star Trek: The Next Generation" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Patrick Stewart" .  ?e <platform> ?e_3 . ?e_3 <pred:name> "Microsoft Windows" .  }
Answer: Star Trek: The Next Generation