Question: What basketball team has the Twitter username HoustonRockets and a member named Kevin McHale (who is a member of the Boston Celtics)?
Choices:
Boston Celtics
Seattle Storm
Los Angeles Lakers
New Orleans Pelicans
Brooklyn Nets
Villanova Wildcats men's basketball
Minnesota Timberwolves
Houston Rockets
Cleveland Cavaliers
Toronto Raptors
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Twitter username
HoustonRockets
function: FilterConcept
dependencies: 1
inputs: basketball team
function: Find
inputs: Boston Celtics
function: Relate
dependencies: 3
inputs: member of sports team
backward
function: Find
inputs: Kevin McHale
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: member of sports team
forward
function: FilterConcept
dependencies: 7
inputs: basketball team
function: And
dependencies: 2
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "basketball team" . ?e <Twitter_username> ?pv . ?pv <pred:value> "HoustonRockets" . ?e_1 <member_of_sports_team> ?e . ?e_1 <pred:name> "Kevin McHale" . ?e_1 <member_of_sports_team> ?e_2 . ?e_2 <pred:name> "Boston Celtics" .  }
Answer: Houston Rockets