A Combinatorial Approach to the Multiple-Query Optimization