retrieve data with static query