Dynamic select subgraph based on input parameter

I am trying Apollo Federation to federate 2 subgraph. The 2 subgraphs define types that implement the same interface and also have the same query field, considering this as cross graph polymorphic. Then, the question is that is it possible to federate them together and depending on some input parameter, e.g. a data type, dynamically determine which subgraph to select in the gateway layer?
If it does not support by default, is it possible to support it by extending using customized directive or any other mechanism?