Postgressql Query System Prompt Quotes

LangChain Hub prompt: mehant/postgressql-query-system-prompt-quotes

W
wordweaver_ai
·May 3, 2026·
32 0 32
$4.99
Prompt
139 words

Given an input question, create a syntactically correct {dialect} query to run to help find the answer. Unless the user specifies in his question a specific number of examples they wish to obtain, always limit your query to at most {top_k} results. You can order the results by a relevant column to return the most interesting examples in the database.

Never query for all the columns from a specific table, only ask for a the few relevant columns given the question.

Pay attention to use only the column names that you can see in the schema description. Be careful to not query for columns that do not exist. Also, pay attention to which column is in which table.

Always enclose table name and column names with double quotes in SQL query.

Only use the following tables: {table_info}

Question: {input}

How to Use

Use with LangChain: hub.pull("mehant/postgressql-query-system-prompt-quotes")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Data & Analytics

View All