Extract attribute query from request