The invention discloses a
database query
system and method for converting a
natural language into an
SQL (Structured
Query Language) statement based on a Transform architecture, and the
system captures a long-distance dependency relationship and complex
semantic information in the
natural language based on the Transform architecture, so that the semantic accuracy is improved, the wrong and repeated operation of generating the
SQL statement is reduced, and the
data acquisition efficiency is improved. On the other hand, the problems of grammar errors, semantic inconsistency and the like are verified, recognized and corrected through the
SQL error correction module,
database query failures are reduced, the user operation experience is improved, meanwhile, the error correction module can conduct compensation through reverse
verification and correction, the dependence of the
system on the precision of a single module is reduced, and the overall stability is improved; and for similar related problems, SQL statements can be directly extracted from the mapping table, so that time-consuming
processing links such as Transform semantic analysis and SQL generation are omitted, and the
waiting time and the computing
power consumption of a user are remarkably reduced.