Question: What team with head coach Rick Carlisle did Derek Fisher play for in 2012?
Answer(s):
answer: Dallas Mavericks

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ns:m.04lvwk)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.04lvwk ns:sports.pro_athlete.teams ?y .
?y ns:sports.sports_team_roster.team ?x .
FILTER(NOT EXISTS {?y ns:sports.sports_team_roster.from ?sk0} || 
EXISTS {?y ns:sports.sports_team_roster.from ?sk1 . 
FILTER(xsd:datetime(?sk1) <= "2012-12-31"^^xsd:dateTime) })
FILTER(NOT EXISTS {?y ns:sports.sports_team_roster.to ?sk2} || 
EXISTS {?y ns:sports.sports_team_roster.to ?sk3 . 
FILTER(xsd:datetime(?sk3) >= "2012-01-01"^^xsd:dateTime) })
?x ns:basketball.basketball_team.head_coach ns:m.02zxw4 . 
}