Osquery is designed to turn operating system information into a format that can be queried using standard SQL-based statements.
“Osquery exposes an operating system as a high-performance relational database,” Facebook developer Mike Arpaia wrote in a Facebook note. “This design allows you to write SQL-based queries efficiently and easily to explore operating systems.”