Deepstream 4.0 two primary-gie

How can I use two primary-gie? each follows different secondary-gie. Is this possible in deepstream 4.0?

Please refer to

Assume we have two models.The first model will only have the primary inference and second model will have both primary and secondary. Second model depends on first model output. Can we do that?