SMASH: an extensible parallel processing system for databases and knowledge bases