SELECT "Registration".*, "Person"."id" AS "Person.id", "Person"."firstName" AS "Person.firstName", "Person"."lastName" AS "Person.lastName", "Person"."email" AS "Person.email", "Person"."createdAt" AS "Person.createdAt", "Person"."updatedAt" AS "Person.updatedAt", "PersonAnswers"."id" AS "PersonAnswers.id", "PersonAnswers"."createdAt" AS "PersonAnswers.createdAt", "PersonAnswers"."updatedAt" AS "PersonAnswers.updatedAt", "PersonAnswers"."AnswerId" AS "PersonAnswers.AnswerId", "PersonAnswers"."RegistrationId" AS "PersonAnswers.RegistrationId", "PersonAnswers"."ChildrenId" AS "PersonAnswers.ChildrenId", "PersonAnswers"."QuestionId" AS "PersonAnswers.QuestionId", "PersonAnswers.Question"."id" AS "
PersonAnswers.Question.id", "PersonAnswers.Question"."questionText" AS "PersonAnswers.Question.questionText", "PersonAnswers.Question"."order" AS "PersonAnswers.Question.order", "PersonAnswers.Question"."isActive" AS "PersonAnswers.Question.isActive", "PersonAnswers.Question"."isMinor" AS "PersonAnswers.Question.isMinor", "PersonAnswers.Question"."createdAt" AS "PersonAnswers.Question.createdAt", "PersonAnswers.Question"."updatedAt" AS "PersonAnswers.Question.updatedAt", "PersonAnswers.Answer"."id" AS "
PersonAnswers.Answer.id", "PersonAnswers.Answer"."answerText" AS "PersonAnswers.Answer.answerText", "PersonAnswers.Answer"."isNegative" AS "PersonAnswers.Answer.isNegative", "PersonAnswers.Answer"."order" AS "PersonAnswers.Answer.order", "PersonAnswers.Answer"."createdAt" AS "PersonAnswers.Answer.createdAt", "PersonAnswers.Answer"."updatedAt" AS "PersonAnswers.Answer.updatedAt", "PersonAnswers.Answer"."QuestionId" AS "PersonAnswers.Answer.QuestionId", "Children"."id" AS "Children.id", "Children"."firstName" AS "Children.firstName", "Children"."lastName" AS "Children.lastName", "Children"."createdAt" AS "Children.createdAt", "Children"."updatedAt" AS "Children.updatedAt", "Children"."RegistrationId" AS "Children.RegistrationId", "Children.PersonAnswers"."id" AS "
Children.PersonAnswers.id", "Children.PersonAnswers"."createdAt" AS "Children.PersonAnswers.createdAt", "Children.PersonAnswers"."updatedAt" AS "Children.PersonAnswers.updatedAt", "Children.PersonAnswers"."AnswerId" AS "Children.PersonAnswers.AnswerId", "Children.PersonAnswers"."RegistrationId" AS "Children.PersonAnswers.RegistrationId", "Children.PersonAnswers"."ChildrenId" AS "Children.PersonAnswers.ChildrenId", "Children.PersonAnswers"."QuestionId" AS "Children.PersonAnswers.QuestionId", "Children.PersonAnswers.Question"."id" AS "
Children.PersonAnswers.Question.id", "Children.PersonAnswers.Question"."questionText" AS "Children.PersonAnswers.Question.questionText", "Children.PersonAnswers.Question"."order" AS "Children.PersonAnswers.Question.order", "Children.PersonAnswers.Question"."isActive" AS "Children.PersonAnswers.Question.isActive", "Children.PersonAnswers.Question"."isMinor" AS "Children.PersonAnswers.Question.isMinor", "Children.PersonAnswers.Question"."createdAt" AS "Children.PersonAnswers.Question.createdAt", "Children.PersonAnswers.Question"."updatedAt" AS "Children.PersonAnswers.Question.updatedAt", "Children.PersonAnswers.Answer"."id" AS "
Children.PersonAnswers.Answer.id", "Children.PersonAnswers.Answer"."answerText" AS "Children.PersonAnswers.Answer.answerText", "Children.PersonAnswers.Answer"."isNegative" AS "Children.PersonAnswers.Answer.isNegative", "Children.PersonAnswers.Answer"."order" AS "Children.PersonAnswers.Answer.order", "Children.PersonAnswers.Answer"."createdAt" AS "Children.PersonAnswers.Answer.createdAt", "Children.PersonAnswers.Answer"."updatedAt" AS "Children.PersonAnswers.Answer.updatedAt", "Children.PersonAnswers.Answer"."QuestionId" AS "Children.PersonAnswers.Answer.QuestionId" FROM (SELECT "Registration".* FROM "Registration" WHERE "Registration"."id"=64 LIMIT 1) AS "Registration" LEFT OUTER JOIN "Persons" AS "Person" ON "Person"."id" = "Registration"."PersonId" LEFT OUTER JOIN "PersonAnswers" AS "PersonAnswers" ON "Registration"."id" = "PersonAnswers"."RegistrationId" LEFT OUTER JOIN "Questions" AS "PersonAnswers.Question" ON "PersonAnswers.Question"."id" = "PersonAnswers"."QuestionId" LEFT OUTER JOIN "Answers" AS "PersonAnswers.Answer" ON "PersonAnswers.Answer"."id" = "PersonAnswers"."AnswerId" LEFT OUTER JOIN "Children" AS "Children" ON "Registration"."id" = "Children"."RegistrationId" LEFT OUTER JOIN "PersonAnswers" AS "Children.PersonAnswers" ON "Children"."id" = "Children.PersonAnswers"."ChildrenId" LEFT OUTER JOIN "Questions" AS "Children.PersonAnswers.Question" ON "Children.PersonAnswers.Question"."id" = "Children.PersonAnswers"."QuestionId" LEFT OUTER JOIN "Answers" AS "Children.PersonAnswers.Answer" ON "Children.PersonAnswers.Answer"."id" = "Children.PersonAnswers"."AnswerId";