def get_with_children_with_session(self, session, questionnaire_id_and_semantic_version):
    query = session.query(QuestionnaireHistory).options(subqueryload(QuestionnaireHistory.concepts), subqueryload(QuestionnaireHistory.questions)).filter((QuestionnaireHistory.questionnaireId == questionnaire_id_and_semantic_version[0]), (QuestionnaireHistory.semanticVersion == questionnaire_id_and_semantic_version[1]))
    return query.first()
def get_with_children_with_session(self, session, questionnaire_id_and_semantic_version):
    query = session.query(QuestionnaireHistory).options(subqueryload(QuestionnaireHistory.concepts), subqueryload(QuestionnaireHistory.questions)).filter((QuestionnaireHistory.questionnaireId == questionnaire_id_and_semantic_version[0]), (QuestionnaireHistory.semanticVersion == questionnaire_id_and_semantic_version[1]))
    return query.first()