Queues, Trees and Water buckets