Add tuple support for func WHERE