Some queries implementation added

Signed-off-by: Sergey Krivohatskiy <s.krivohatskiy@gmail.com>