QueryApi first implementation