The hover text for the Favorite Query star on Stack Exchange Data Explorer displays the hover text "This is a favorite query (click again to undo)".
This hover text shows the same message even if the query hasn't been favorited, or if the user is logged out:
The tooltip for an unfavorited question should read "Click to mark as favorite question (click again to undo)", similar to its appearance on Meta Stack Exchange.