Question: How is The Office with John Krasinski as a cast member related to the Primetime Emmy Award for Outstanding Lead Actor in a Comedy Series?
Choices:
used by
practiced by
public holiday
work location
sponsor
located in the administrative territorial entity
nominated for
present in work
head coach
medical treatment
Answer: nominated for
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Office" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "John Krasinski" . ?e_2 <pred:name> "Primetime Emmy Award for Outstanding Lead Actor in a Comedy Series" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: John Krasinski
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Office
function: And
dependencies: 1
2
function: Find
inputs: Primetime Emmy Award for Outstanding Lead Actor in a Comedy Series
function: QueryRelation
dependencies: 3
4