rename query to select