note list using query function