Developing a query cost model for the Weakly Dependent Subquery Optimization of ODRA