added adp compatible code generation.
added cloud query 1