Question answering system based on food knowledge graph can help people understand and analyze the information and potential problems about food safety, This paper crawled the data of food spot-check data in recent years from the Official website, and designed the extraction algorithm of food general entities, food domain entities and relationships between entities for these data. The extracted entity pairs were stored in the gStore database. This paper also built a question answering system which classified the possible problems of users through grammar analysis and designed an explanation for each type of problem. At last, each explanation was defined as a template and mapped to the SPARQL language for querying in knowledge graph, the results were shown as lists and data graphs on the web pages.