Can't help with SQL2, but, using the query building/debugger it's pretty darn simple.http://localhost:4502/libs/cq/search/content/querydebug.html?_charset_=UTF-8&query=type%3Dcq%3APage%0D%0A2_group.1_relativedaterange.property%3Djcr%3Acontent%2Fcq%3AlastReplicated%0D%0A2_group.1_relativedaterange.lo...