added api query example