added select query