PPT Slide
Example of Query Transformation
Consider the query in the previous slide:
Incremental Query(from last_t to now())
m.to = {‘Joe’, ‘Mike’} AND
(m.subject LIKE ‘%CS294-7%’ OR
m.ts + [2 weeks] <= now() AND
(last_t < m.ts + [2 weeks] AND
m.ts + [2 weeks] <= now()) AND
mreply.sender=‘Mike’) AND
mreply.in_reply_to = {m} AND
mreply.ts <= m.ts + [2 weeks]) AND
EXISTS (a: a.type=‘endorsement’ AND
This line can be eliminated.