Optimization of a relational-algebra query to a distributed database using statistical sampling methods | NiceBooksReads