This question is really confusing and a lot of information is missing. At first it’s simple, but your query seems more complex than the example you presented.
I tried to simulate something approximate of your query and assimilate with the example presented. But I did not succeed.
It would be interesting to report what it means:
miid.ovd_level.3
miid.ovd_max_days
And give us more reproductive context.
This would be simple, you can use Kinds/Types or even a Type predicated indexed by Hash. But if your intention is otherwise, we need context. Maybe you want to filter by relation or something. It’s hard to know.
But I do not see relationship between miid1, miid2, devA, login1A, login2A. So you should use a type or some predicate with a specific reason.
as Karandeep says
or even more details like a similar schema.
