query redefined