add support for fetch plans in query builder