trying to fix query to get battle data