Readers may also enjoy Steampipe [1], an open source tool to live query 140+ services with SQL (e.g. AWS, GitHub, CSV, Kubernetes, etc). It uses Postgres Foreign Data Wrappers under the hood and supports joins etc with other tables. (Disclaimer - I'm a lead on the project.)
If you're looking at this, you might want to also look at fleetdm (https://github.com/fleetdm/fleet), from which hosts that have osquery installed, can be queried.