Added benchmark.

Relaxed query() conditions.