Question: Which human received a Tony Award for Best Actor in a Play at the 27th Tony Awards and is a cast member of Hamlet (which has Stephen Dillane as a cast member)?
Choices:
Paul Simon
William Henry Harrison
James E. Reilly
Richard Gere
Max Fleischer
Alan Bates
Simon Cowell
Stephen Dillane
Rahul Dev Burman
Sylvester Stallone
Answer: Alan Bates
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <award_received> ?e_1 . ?e_1 <pred:name> "Tony Award for Best Actor in a Play" .  [ <pred:fact_h> ?e ; <pred:fact_r> <award_received> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "27th Tony Awards" . ?e_2 <cast_member> ?e . ?e_2 <pred:name> "Hamlet" . ?e_2 <cast_member> ?e_3 . ?e_3 <pred:name> "Stephen Dillane" .  }
Program:
function: Find
inputs: Tony Award for Best Actor in a Play
function: Relate
dependencies: 0
inputs: award received
backward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
27th Tony Awards
function: FilterConcept
dependencies: 2
inputs: human
function: Find
inputs: Stephen Dillane
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Hamlet
function: And
dependencies: 5
6
function: Relate
dependencies: 7
inputs: cast member
forward
function: FilterConcept
dependencies: 8
inputs: human
function: And
dependencies: 3
9
function: What
dependencies: 10