Question: What is the American football team that has members Jeff Garcia and Chris Carter who is a member of Cincinnati Bengals?
Choices:
Cincinnati Bengals
Tampa Bay Buccaneers
Cleveland Browns
Detroit Lions
Atlanta Falcons
San Francisco 49ers
New England Patriots
Carolina Panthers
Chicago Bears
Houston Texans
Program:
function: Find
inputs: Cincinnati Bengals
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Chris Carter
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: member of sports team
forward
function: FilterConcept
dependencies: 4
inputs: American football team
function: Find
inputs: Jeff Garcia
function: Relate
dependencies: 6
inputs: member of sports team
forward
function: FilterConcept
dependencies: 7
inputs: American football team
function: And
dependencies: 5
8
function: What
dependencies: 9
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> "Chris Carter" . ?e_1 <member_of_sports_team> ?e_2 . ?e_2 <pred:name> "Cincinnati Bengals" .  ?e_3 <member_of_sports_team> ?e . ?e_3 <pred:name> "Jeff Garcia" .  }
Answer: Houston Texans