           ca.descendant_concept_id,
           ca.max_levels_of_separation,
           ca.min_levels_of_separation
-     FROM v5dev.concept_ancestor ca
+     FROM devv5.concept_ancestor ca
     WHERE     EXISTS
                  (SELECT 1
                     FROM concept c_int

          r.valid_start_date,
          r.valid_end_date,
          r.invalid_reason
     FROM v5dev.concept_relationship r, v5dev.relationship_conversion rc
    WHERE     r.relationship_id = rc.relationship_id_new
          AND EXISTS
                 (SELECT 1

                   r.valid_start_date AS VALID_START_DATE,
                   r.valid_end_date AS VALID_END_DATE,
                   r.invalid_reason AS INVALID_REASON
     FROM devv5.concept c1,
          devv5.concept c2,
          devv5.concept_relationship r,
          devv5.vocabulary_conversion vc1,
          devv5.vocabulary_conversion vc2
    WHERE     c1.concept_id = r.concept_id_1
          AND c2.concept_id = r.concept_id_2
          AND r.relationship_id = 'Maps to'
