text: select S.SPACEKEY, S.SPACENAME,C.CONTENTTYPE,C.TITLE,C.LASTMODDATE from CONTENT C
  LEFT JOIN SPACES S ON C.SPACEID = S.SPACEID where (CONTENTTYPE = 'PAGE' OR CONTENTTYPE = 'ATTACHMENT') AND (C.LASTMODDATE <= '2015-01-01') AND S.SPACETYPE <> 'personal' ORDER BY S.SPACEKEY ASC;