带复杂计算的金融领域自然语言查询的SQL生成
何佳壕,刘喜平,舒晴,万常选,刘德喜,廖国琼

SQL generation from natural language queries with complex calculations on financial data
Jia-hao HE,Xi-ping LIU,Qing SHU,Chang-xuan WAN,De-xi LIU,Guo-qiong LIAO
表 6 问题类型与组合规则
Tab.6 Question types and combination rules
行计算问题类型 规则
变化问题 select a.col1 − b.col2 from sql1 a, sql2 b
变化率问题 select (a.col1 − b.col2) / b.col2 from sql1 a, sql2 b
比率问题 select a.col1 / b.col2 from sql1 a, sql2 b
求和问题 select a.col1+b.col2 from sql1 a, sql2 b
乘积问题 select a.col1 * b.col2 from sql1 a, sql2 b