Function useQueryCall