Because my actual functions are very complex, I would like to calculate the derivative of nested functions first and then substitute the functions afterwards. 
A minimal example looks like this:
Q    = G(h)
Q = 
 dGdt = diff(Q,t)   
dGdt = 

dGdh = diff(G,h)
dGdh(t) = 
 How is it possible, to insert the derivative of G with respect to h as the partial derivative? 
I tried this, but it is not working:
I really appreciate any feedback!