Question: LeVar Burton was cast as what character on Star Trek: The Next Generation, which also included Majel Barrett as a cast member?
Choices:
Ryan Howard
Vanity Smurf
Napoleon
Hannibal King
Geordi La Forge
Brain
Melvin Purvis
Will Scarlet
Murray the Mummy
Tapper
Answer: Geordi La Forge
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Star Trek: The Next Generation" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Majel Barrett" . ?e_2 <pred:name> "LeVar Burton" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Program:
function: Find
inputs: Majel Barrett
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Star Trek: The Next Generation
function: And
dependencies: 1
2
function: Find
inputs: LeVar Burton
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role