Include query functionality