Subtemplate is replaced with the templateoutput of the subtemplates. Dependent on the type of the relation (1:1,1:n,n:m or n:1) one or more related datasets are displayed.
All movies with {joodb field|actor} {joodb subtemplate|movies}
.... now the content of your subtemplate ....