partitioning: selecting now with self-built query