Question: What American football team has member Tom Brady (the one that belongs to United States of America)?
Choices:
Atlanta Falcons
Los Angeles Chargers
Oklahoma Sooners football
Chicago Bears
New England Patriots
Kansas City Chiefs
Baltimore Ravens
Houston Texans
Carolina Panthers
Miami Dolphins
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country for sport
backward
function: Find
inputs: Tom Brady
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> "Tom Brady" . ?e_1 <country_for_sport> ?e_2 . ?e_2 <pred:name> "United States of America" .   }
Answer: New England Patriots