GENERATING QUALIFIED PLANS FOR MULTIPLE QUERIES IN DATA STREAM SYSTEMS