Question: What American football team has a member named Will Smith whose position is defensive end?
Choices:
New Orleans Saints
New England Patriots
Seattle Seahawks
Philadelphia Eagles
Carolina Panthers
California Golden Bears football
Chicago Bears
Atlanta Falcons
New York Jets
Oklahoma Sooners football
Program:
function: Find
inputs: defensive end
function: Relate
dependencies: 0
inputs: position played on team / speciality
backward
function: Find
inputs: Will Smith
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: member of sports team
forward
function: FilterConcept
dependencies: 4
inputs: American football team
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "American football team" . ?e_1 <member_of_sports_team> ?e . ?e_1 <pred:name> "Will Smith" . ?e_1 <position_played_on_team_/_speciality> ?e_2 . ?e_2 <pred:name> "defensive end" .   }
Answer: New Orleans Saints