MKtl: add a query for inputElements and outputElements