Question: What is the relationship between John Mayer, whose occupation is singer-songwriter, and the Grammy Award for Best New Artist?
Choices: feast day
father
start point
parent organization
designed by
published in
occupant
costume designer
academic degree
nominated for
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Mayer" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "singer-songwriter" . ?e_2 <pred:name> "Grammy Award for Best New Artist" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: singer-songwriter
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: John Mayer
function: And
dependencies: 1
2
function: Find
inputs: Grammy Award for Best New Artist
function: QueryRelation
dependencies: 3
4
Answer: nominated for