From the screenshot above, I'm assuming you are using VCSA with PostgreSQL DB and the command you are trying, is a SQL query command.
I think the document is misleading and they are showing how to find the MOID from a SQL server then from a PostgreSQL database. I'm not familiar with these commands, so you will have to do a little google search or call support.
Unless someone else on the community can respond with those commands.
Mike_A