connecting parts for new query functionality