Invia SMS: On distributed query processing and multiple query optimization