Question: The Academy Award for Best Director was nominated to which person for Mr. Smith Goes to Washington, a Columbia Pictures production?
Choices:
Marvin Westmore
Frank Capra
William H. Ziegler
Gus Van Sant
Gregg Rudloff
Eric S. Hatch
Adam Sandler
Sally Kellerman
Jack Lemmon
Edward Anhalt
Program:
function: Find
inputs: Columbia Pictures
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Mr. Smith Goes to Washington
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Director
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
nominee
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Mr. Smith Goes to Washington" . ?e_1 <production_company> ?e_3 . ?e_3 <pred:name> "Columbia Pictures" . ?e_2 <pred:name> "Academy Award for Best Director" . ?e_1 <nominated_for> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <nominated_for> ; <pred:fact_t> ?e_2 ] <nominee> ?qpv .  }
Answer: Frank Capra