Question: How is Frank Vincent from the cast of Goodfellas related to the role of writer?
Choices:
basic form of government
honorific suffix
contains administrative territorial entity
significant person
broadcast by
public holiday
religion
dissertation submitted to
occupation
home world
Program:
function: Find
inputs: Goodfellas
function: Relate
dependencies: 0
inputs: cast member
forward
function: Find
inputs: Frank Vincent
function: And
dependencies: 1
2
function: Find
inputs: writer
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Frank Vincent" . ?e_3 <cast_member> ?e_1 . ?e_3 <pred:name> "Goodfellas" . ?e_2 <pred:name> "writer" . ?e_1 ?p ?e_2 .  }
Answer: occupation