基于逻辑子句推理的复杂问题解答系统
1. NL查询与SQL转换示例
在处理自然语言(NL)查询时,会有一系列中间步骤的日志记录,最终转换为SQL表示并得出查询结果。以下是几个具体示例:
| 查询示例 | 查找字段 | 找到的表字段 | 结果 | SQL语句 |
| — | — | — | — | — |
| what is staff first name when her movie return date is after 2005-06-02 01:02:05 | [staff, first, name] 、 [movie, return, date] | staff.first_name 、 rental.return_date | Mike | sql<br>select <br>staff.first_name <br>from <br>staff, <br>rental <br>where <br>rental.return_date > '2005-06-02 01:02:05' and rental.staff_id = <br>staff.staff_id<br> |
| what film title has actor’s first name as Christian and category Documentary </
超级会员免费看
订阅专栏 解锁全文
523

被折叠的 条评论
为什么被折叠?



