Sql, Spl, Database.
subqueries need to be added in case of more steps, and hence the difficulty is evident. In contrast, SPL code is much simpler: A1=["etype1","etype2","etype3"]2=file("event.ctx").open()3=A2.cursor(id,etime,etype;etime>=date("2021–01–10") && etime<date("2021–01–25") && A1.contain(etype) &&