Reachability Queries and Data Mining