I would also try just doing your prompt as plain text - this is a prompt that I’ve been experimenting on one of our database tables.
I'm using Postgres and want to query the following table:
Table: xyz
Columns:
X: bigint
X: character varying
X: text
X: integer
X: character varying
X: integer
X: character varying
X: integer
... there's about 30 or so columns..
Write me a query for the following:
XXXXXXXXX
Do not output any explanation or additional text.