Extract SQL information and execute
Labels: name: auto:improvement, name: area: models

Hello, 

### System Info
Langchain Version: 0.0.336
OS: Windows

### Who can help?
No response

### Information

- [x] The official example notebooks/scripts

- [x] My own modified scripts

### Related Components

- [x] LLMs/Chat Models
- [x] Prompts / Prompt Templates / Prompt Selectors
- [x] Vector Stores / Retrievers
- [x] Chains
- [x] SQL Database
### Reproduction

Related to structured data.
I have predefined SQL and variable information. SQL is quite complicated when having to join multiple tables with abbreviated column names. This is a common practical situation. Is there a way to output sqltext and run them with the constraint that the user must fully fill in the variable value?

Example SQL standard information:

<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">

<head>

<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Microsoft Excel 15">
<link id=Main-File rel=Main-File
href="file:///C:/Users/buido/AppData/Local/Temp/msohtmlclip1/01/clip.htm">
<link rel=File-List
href="file:///C:/Users/buido/AppData/Local/Temp/msohtmlclip1/01/clip_filelist.xml">
<style>
<!--table
	{mso-displayed-decimal-separator:"\.";
	mso-displayed-thousand-separator:"\,";}
@page
	{margin:.75in .7in .75in .7in;
	mso-header-margin:.3in;
	mso-footer-margin:.3in;}
tr
	{mso-height-source:auto;}
col
	{mso-width-source:auto;}
br
	{mso-data-placement:same-cell;}
td
	{padding-top:1px;
	padding-right:1px;
	padding-left:1px;
	mso-ignore:padding;
	color:black;
	font-size:11.0pt;
	font-weight:400;
	font-style:normal;
	text-decoration:none;
	font-family:Calibri, sans-serif;
	mso-font-charset:0;
	mso-number-format:General;
	text-align:general;
	vertical-align:bottom;
	border:none;
	mso-background-source:auto;
	mso-pattern:auto;
	mso-protection:locked visible;
	white-space:nowrap;
	mso-rotate:0;}
.xl65
	{border:.5pt solid windowtext;}
.xl66
	{text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;}
.xl67
	{text-align:left;
	vertical-align:middle;}
.xl68
	{font-size:9.0pt;
	font-weight:700;
	font-family:"Malgun Gothic", sans-serif;
	mso-font-charset:0;
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;}
.xl69
	{font-size:9.0pt;
	font-family:"Malgun Gothic", sans-serif;
	mso-font-charset:0;
	text-align:left;
	vertical-align:middle;
	border:.5pt solid windowtext;
	white-space:normal;}
.xl70
	{font-size:9.0pt;
	font-family:"Malgun Gothic", sans-serif;
	mso-font-charset:0;
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;}
.xl71
	{font-weight:700;
	border:.5pt solid windowtext;}
-->
</style>
</head>

<body link="#0563C1" vlink="#954F72">


No | Schema | SQL Text | Intent | Condition | Example
-- | -- | -- | -- | -- | --
1 | m_data | Select   sum(s.qty)      from shipment_info s, product_info p     where 1=1     and s.prod_id = p.prod_id     and p.prod_type = #prod_type     and p.prod_name = #prod_name | Total   quantity of goods exported during the day | #prod_type,   #prod_name | I   want to calculate the total number of model AAA(#prod_name)   phones(#prod_type) shipped during the day
100 | … | … | … | … | …



</body>

</html>



### Expected behavior
I expect to output SQLtext when variables are fully supplied and execute sql.