Resource Discovery for Query Processing in Data Grids