AI-524 : added pagination to query result adapter