Integrating Question Answering and Text-to-SQL in Portuguese

Marcos Menon José, Marcelo Archanjo José, Denis Deratani Mauá, Fábio Gagliardi Cozman

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review


Deep learning transformers have drastically improved systems that automatically answer questions in natural language. However, different questions demand different answering techniques; here we propose, build and validate an architecture that integrates different modules to answer two distinct kinds of queries. Our architecture takes a free-form natural language text and classifies it to send it either to a Neural Question Answering Reasoner or a Natural Language parser to SQL. We implemented a complete system for the Portuguese language, using some of the main tools available for the language and translating training and testing datasets. Experiments show that our system selects the appropriate answering method with high accuracy (over 99%), thus validating a modular question answering strategy.

Original languageEnglish
Title of host publicationComputational Processing of the Portuguese Language - 15th International Conference, PROPOR 2022, Proceedings
EditorsVládia Pinheiro, Pablo Gamallo, Raquel Amaro, Carolina Scarton, Fernando Batista, Diego Silva, Catarina Magro, Hugo Pinto
PublisherSpringer Science and Business Media Deutschland GmbH
Number of pages10
ISBN (Print)9783030983048
StatePublished - 2022
Externally publishedYes
Event15th International Conference on the Computational Processing of Portuguese, PROPOR 2022 - Fortaleza, Brazil
Duration: 21 Mar 202223 Mar 2022

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume13208 LNAI
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349


Conference15th International Conference on the Computational Processing of Portuguese, PROPOR 2022


  • Natural language interfaces to databases
  • Natural language processing in portuguese
  • Question answering
  • Transformers networks


Dive into the research topics of 'Integrating Question Answering and Text-to-SQL in Portuguese'. Together they form a unique fingerprint.

Cite this