Invoke OSQuery from Command Line (Ubuntu)

Job ID: 34060174

Budget: $10 – $30 USD

I want to invoke OSQuery from the command line on Ubuntu. I am doing the below:

# osqueryi select * from system_info
Error: incomplete input

What am I doing wrong?

I need an answer quickly. I will pay up to $20.
Related categories: Python System Admin Linux Software Architecture Ubuntu