Question: What was Traffic (the one that has James Brolin as a cast member and received an Academy Award for Best Director) about?
Choices:
Zambia–Zimbabwe border
Pennsylvania–West Virginia border
73rd Academy Awards
Denmark–Iran relations
European Union–Ukraine border
Massachusetts–New Hampshire border
Greece–Iraq relations
Djibouti–Ethiopia relations
Austria–Switzerland border
New Zealand–Spain relations
Answer: 73rd Academy Awards
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Traffic" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "James Brolin" . ?e_2 <pred:name> "Academy Award for Best Director" . ?e_1 <award_received> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <award_received> ; <pred:fact_t> ?e_2 ] <statement_is_subject_of> ?qpv .  }
Program:
function: Find
inputs: James Brolin
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Traffic
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Director
function: QueryRelationQualifier
dependencies: 3
4
inputs: award received
statement is subject of