to retrieve multiple rows from a dynamically constructed query.