documentation about defined sub-queries