red query builder integration