Question: The King and I, with director of photography Leon Shamroy, was an Academy Award contender for which nominated Best Actress?
Choices: China–Laos border
Illinois–Wisconsin border
Bahrain–Taiwan relations
29th Academy Awards
France–South Africa relations
Ohio–West Virginia border
Iraq–Taiwan relations
Malaysia–Soviet Union relations
Gabon–Republic of the Congo border
Guatemala–United States relations
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The King and I" . ?e_1 <director_of_photography> ?e_3 . ?e_3 <pred:name> "Leon Shamroy" . ?e_2 <pred:name> "Academy Award for Best Actress" . ?e_1 <nominated_for> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <nominated_for> ; <pred:fact_t> ?e_2 ] <statement_is_subject_of> ?qpv .  }
Program:
function: Find
inputs: Leon Shamroy
function: Relate
dependencies: 0
inputs: director of photography
backward
function: Find
inputs: The King and I
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Actress
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
statement is subject of
Answer: 29th Academy Awards