Validation framework for schema and query translation