test avanced query