mary: sql with temporary data