Create DynamicSQLQuery