Distributed SQL query engine for big data