The invention discloses a
database question-answering method and device based on a
thermodynamic system and a medium, and relates to the technical field of intelligent question-answering. The method comprises the steps that a
natural language query question is received, and a target thermodynamic
database is established based on
metadata information of a thermodynamic industry
knowledge base, an enterprise specification
knowledge base and a target thermodynamic
database; performing semantic analysis and intention understanding on the
natural language query problem, generating a standardized
query statement without hidden information, and determining at least one target data table associated with the standardized
query statement; constructing an
executable SQL query statement based on the standardized query statement and the target data table in combination with professional knowledge,
SQL generation criteria and error-prone examples in an
SQL generation rule base; and executing the
executable SQL query statement to obtain an original query result from the target thermodynamic database, fusing the
semantic information and the service context of the
natural language query problem, and converting the original query result into a
structured text reply which conforms to the understanding
habit of the user to be output.