{"id":13337,"date":"2025-07-02T09:00:13","date_gmt":"2025-07-02T07:00:13","guid":{"rendered":"https:\/\/www.hiberus.com\/en\/blog\/?p=13337"},"modified":"2025-07-02T09:46:08","modified_gmt":"2025-07-02T07:46:08","slug":"success-story-we-use-ai-to-generate-sql-queries-from-natural-language","status":"publish","type":"post","link":"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/","title":{"rendered":"Success Story: We use AI to generate SQL queries from natural language"},"content":{"rendered":"<p data-start=\"160\" data-end=\"524\">In an increasingly data-driven environment, accessing the right information quickly and accurately is key to decision making. However, many organizations still rely on technical tools such as SQL (Structured Query Language), which represents a barrier for non-technical users and slows down internal processes.<\/p>\n<p>Our client faced this challenge: <strong>to allow non-technical profiles to query data in an autonomous and efficient way.<\/strong> To solve it, we developed a solution capable of <strong>transforming natural language queries into SQL queries<\/strong>, eliminating the dependence on advanced technical knowledge and significantly speeding up access to information.<\/p>\n<p>&nbsp;<\/p>\n<h2>What we did<\/h2>\n<p>We developed an application that allows anyone in the organization to query data in a simple and autonomous way. The process begins with the selection of the table on which a query is to be made.<\/p>\n<p>Next, the person must choose whether to perform the query in SQL or through an internal client tool that operates as a REST API, which uses a specific syntax to build queries and access the data. Then, the language model (LLM) in charge of transforming the natural language query into a structured query is selected. Available options include models such as <strong>GPT-3.5 Turbo, GPT-4o, Gemini Pro or Claude 2.<\/strong><\/p>\n<p data-start=\"527\" data-end=\"1005\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-55109\" src=\"https:\/\/www.hiberus.com\/crecemos-contigo\/wp-content\/uploads\/2025\/06\/AI-SQL-soluciones.png\" alt=\"\" width=\"700\" height=\"404\" \/><\/p>\n<p>Then, the person writes the question in natural language (for example: \u201cWhere does Sof\u00eda Mart\u00ednez Delgado work?\u201d).<\/p>\n<p>Once this configuration is completed, different processes are activated in the backend. First, all contextual information related to the selected table (table and column names and descriptions, data types, etc.) is retrieved from a vectorstore. With this information, and taking into account the selected tool and model, a call to an API (FastAPI) that integrates the available LLMs is launched.<\/p>\n<p>The model receives a complete prompt including:<\/p>\n<ul data-start=\"1613\" data-end=\"1798\">\n<li data-start=\"1613\" data-end=\"1649\">The question in natural language<\/li>\n<li data-start=\"1613\" data-end=\"1649\">The technical information of the table<\/li>\n<li data-start=\"1613\" data-end=\"1649\">The basic documentation of the selected tool<\/li>\n<li data-start=\"1613\" data-end=\"1649\">Instructions on the task to be performed<\/li>\n<\/ul>\n<p>The model returns the query already generated, either in SQL format or in JSON, depending on the tool chosen.<\/p>\n<p>Before executing the query, the person can review and, if desired, modify the generated query. Once validated, the query process is launched to the database through an API request.<\/p>\n<p>Finally, the requested information is displayed on the screen in response to the query.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-55107\" src=\"https:\/\/www.hiberus.com\/crecemos-contigo\/wp-content\/uploads\/2025\/06\/sql-IA-image.png\" alt=\"\" width=\"700\" height=\"404\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Project Challenges<\/h2>\n<p>During the development of the project, one of the main challenges was the low quality of the data and the poor documentation of the tables and views, fundamental elements for the language model (LLM) to correctly build the queries.<\/p>\n<p>We encountered the absence of a clear standard in the data. For example, in some tables, string type column values could appear in uppercase, lowercase, with or without accents, and even with incomplete or inconsistent proper names. This created a major problem: even if the model correctly generated the query structure, if the values used for filtering did not exactly match those in the database, the API did not return any results.<\/p>\n<p>To mitigate this situation, we implemented different strategies.<\/p>\n<h3>Strategy 1: example of values (data profiling)<\/h3>\n<p data-start=\"1262\" data-end=\"1687\">We tried to enrich the model prompt by including, next to the table description, a sample of typical values per column (data profiling). This helped the LLM to better understand how the real data were represented. However, this approach had an important limitation: the considerable increase in the number of tokens, which impacted costs and compatibility with certain models.<\/p>\n<h3 data-start=\"1689\" data-end=\"1747\">Strategy 2: normalization with regular expressions<\/h3>\n<p data-start=\"1749\" data-end=\"1995\">To avoid the token limit problem, we designed a solution based on the generation of more tolerant filters using regular expressions (regexp), which would allow ignoring differences in uppercase, lowercase and accents. For example:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><code class=\"whitespace-pre! language-sql\">fullName REGEXP <span class=\"hljs-string\">'.*[Ss][Oo\u00d3\u00f3][Ff][Ii\u00cd\u00ed][Aa\u00c1\u00e1].*'<\/span><\/code><\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>This expression makes it possible to <strong>retrieve records with spelling or capitalization variations<\/strong> in the value \u201cSof\u00eda\u201d, thus increasing the robustness of the query.<\/p>\n<p>However, this solution also presented challenges: the complexity of the expressions meant that the prompts required very high precision from the model. We had to spend time fine-tuning the instructions and training the prompts well to get the model to consistently generate efficient queries.<\/p>\n<p>Finally, after several iterations, we were able to achieve a satisfactory accuracy rate, where in most cases the model generated valid and effective queries, even in contexts with inconsistent or poorly documented data.<\/p>\n<p>&nbsp;<\/p>\n<h2>Beneficits<\/h2>\n<ul>\n<li><strong>Simplified data access:<\/strong> allows anyone, regardless of technical knowledge, to interact with databases and APIs autonomously.<\/li>\n<li><strong>Time savings:<\/strong> automates the generation of queries and APIs, eliminating the need to write code manually and speeding up access to key information.<\/li>\n<li><strong>Accuracy and reliability:<\/strong> automated generation minimizes human error, ensuring that queries and exposed data are accurate.<\/li>\n<li><strong>Flexibility and customization:<\/strong> the ability to review and adjust the generated instructions ensures that the system adapts to the specific needs of each user.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-55108\" src=\"https:\/\/www.hiberus.com\/crecemos-contigo\/wp-content\/uploads\/2025\/06\/sql-IA-image3.png\" alt=\"\" width=\"700\" height=\"403\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Project results<\/h2>\n<h3>Model performance<\/h3>\n<ul>\n<li>Increased accuracy in automatically generated queries.<\/li>\n<li>Higher success rate in query execution.<\/li>\n<li>Reduction of semantic errors in the results.<\/li>\n<li>Reduction of failures due to data quality problems.<\/li>\n<\/ul>\n<h3>Technical performance<\/h3>\n<ul>\n<li>Improved end-to-end response time.<\/li>\n<li>Optimized use of tokens per prompt.<\/li>\n<li>Controlled cost per query generated.<\/li>\n<li>Reduction of rejections due to excess of tokens.<\/li>\n<\/ul>\n<h3>User experience<\/h3>\n<ul>\n<li>Less need to modify the generated queries.<\/li>\n<li>Increased satisfaction after using the tool.<\/li>\n<li>Sustained growth in adoption and recurrent use of the solution.<\/li>\n<\/ul>\n<h3>Operational performance<\/h3>\n<ul>\n<li>Expansion of the coverage of documented tables.<\/li>\n<li>Reduction of the effort required to document new tables.<\/li>\n<li>Balanced use between SQL and internal API according to context.<\/li>\n<\/ul>\n<h3>Testing and evolution<\/h3>\n<ul>\n<li>High success rate in regression testing for changes.<\/li>\n<li>Reduced time spent on prompts adjustments.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>The ability to convert natural language queries into SQL statements or REST API calls represents a significant change in the way organizations access and manage their data. This solution removes technical barriers, allowing non-technical profiles to interact autonomously with information.<\/p>\n<p>Thanks to this tool, companies can streamline their processes, reduce dependence on specialized teams for repetitive tasks and foster a more collaborative and data-driven environment. In an increasingly competitive business environment, having agile and reliable access to information translates into better decisions and greater operational efficiency.<\/p>\n<p>&nbsp;<\/p>\n<p>Do you want to harness the power of LLMs to address your information democratization challenges? We have a team of experts in <a href=\"https:\/\/www.hiberus.com\/en\/experts-generative-ai-ld\">Generative AI and Data<\/a> who have developed <strong>GenIA Ecosystem<\/strong>, an ecosystem of proprietary AI solutions to meet any challenge. Tell us about your project!<\/p>\n<p><span data-teams=\"true\"><span class=\"ui-provider nt beh bei bej bek bel bem ben beo bep beq ber bes bet beu bev bew bex bey bez bfa bfb bfc bfd bfe bff bfg bfh bfi bfj bfk bfl bfm bfn bfo\" dir=\"ltr\">        <div class=\"row\">\n            <div class=\"block-cta-form\" style=\"background-color: #003664;\">\n                <div class=\"content-cta-form\">\n                    <div class=\"text-cta-form\">\n                        <h3>Want to learn more about our Artificial Intelligence services for SQL queries?<\/h3>\n                        <p>Contact with our Data &amp; AI team<\/p>\n                    <\/div>\n                    <div class=\"form-fields\">\n                        \n<div class=\"wpcf7 no-js\" id=\"wpcf7-f268-o1\" lang=\"en-US\" dir=\"ltr\" data-wpcf7-id=\"268\">\n<div class=\"screen-reader-response\"><p role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"><\/p> <ul><\/ul><\/div>\n<form action=\"\/en\/blog\/wp-json\/wp\/v2\/posts\/13337#wpcf7-f268-o1\" method=\"post\" class=\"wpcf7-form init\" aria-label=\"Contact form\" novalidate=\"novalidate\" data-status=\"init\">\n<fieldset class=\"hidden-fields-container\"><input type=\"hidden\" name=\"_wpcf7\" value=\"268\" \/><input type=\"hidden\" name=\"_wpcf7_version\" value=\"6.1.5\" \/><input type=\"hidden\" name=\"_wpcf7_locale\" value=\"en_US\" \/><input type=\"hidden\" name=\"_wpcf7_unit_tag\" value=\"wpcf7-f268-o1\" \/><input type=\"hidden\" name=\"_wpcf7_container_post\" value=\"0\" \/><input type=\"hidden\" name=\"_wpcf7_posted_data_hash\" value=\"\" \/><input type=\"hidden\" name=\"_wpcf7_recaptcha_response\" value=\"\" \/>\n<\/fieldset>\n<div id=\"responsive-form\" class=\"clearfix\">\n\t<div class=\"form-row\">\n\t\t<div class=\"column-half\">\n\t\t\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"names\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-text wpcf7-validates-as-required\" aria-required=\"true\" aria-invalid=\"false\" placeholder=\"Name *\" value=\"\" type=\"text\" name=\"names\" \/><\/span>\n\t\t\t<\/p>\n\t\t<\/div>\n\t\t<div class=\"column-half\">\n\t\t\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"lastname\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-text wpcf7-validates-as-required\" aria-required=\"true\" aria-invalid=\"false\" placeholder=\"Last name *\" value=\"\" type=\"text\" name=\"lastname\" \/><\/span>\n\t\t\t<\/p>\n\t\t<\/div>\n\t<\/div>\n\t<div class=\"form-row\">\n\t\t<div class=\"column-half\">\n\t\t\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"mail\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-email wpcf7-validates-as-required wpcf7-text wpcf7-validates-as-email\" aria-required=\"true\" aria-invalid=\"false\" placeholder=\"Corporate email *\" value=\"\" type=\"email\" name=\"mail\" \/><\/span>\n\t\t\t<\/p>\n\t\t<\/div>\n\t\t<div class=\"column-half\">\n\t\t\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"phone\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-tel wpcf7-validates-as-required wpcf7-text wpcf7-validates-as-tel\" aria-required=\"true\" aria-invalid=\"false\" placeholder=\"Phone *\" value=\"\" type=\"tel\" name=\"phone\" \/><\/span>\n\t\t\t<\/p>\n\t\t<\/div>\n\t<\/div>\n\t<div class=\"form-row\">\n\t\t<div class=\"column-half\">\n\t\t\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"company\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-text wpcf7-validates-as-required\" aria-required=\"true\" aria-invalid=\"false\" placeholder=\"Company *\" value=\"\" type=\"text\" name=\"company\" \/><\/span>\n\t\t\t<\/p>\n\t\t<\/div>\n\t<\/div>\n\t<div class=\"form-row\">\n\t\t<div class=\"column-full\">\n\t\t\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"message\"><textarea cols=\"40\" rows=\"10\" maxlength=\"2000\" class=\"wpcf7-form-control wpcf7-textarea wpcf7-validates-as-required\" aria-required=\"true\" aria-invalid=\"false\" placeholder=\"Message *\" name=\"message\"><\/textarea><\/span>\n\t\t\t<\/p>\n\t\t<\/div>\n\t<\/div>\n\t<div class=\"form-row\">\n\t\t<div class=\"column-full color-acceptance\">\n\t\t\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"politica\"><span class=\"wpcf7-form-control wpcf7-acceptance\"><span class=\"wpcf7-list-item\"><label><input type=\"checkbox\" name=\"politica\" value=\"1\" aria-invalid=\"false\" \/><span class=\"wpcf7-list-item-label\">I have read and accept the <a href=\"https:\/\/www.hiberus.com\/en\/policy\" target=\"_blank\"><u>Privacy Policy<\/u><\/a><\/span><\/label><\/span><\/span><\/span>\n\t\t\t<\/p>\n\t\t<\/div>\n\t<\/div>\n\t<div class=\"form-row\">\n\t\t<div class=\"column-full color-acceptance\">\n\t\t\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"marketing\"><span class=\"wpcf7-form-control wpcf7-acceptance optional\"><span class=\"wpcf7-list-item\"><label><input type=\"checkbox\" name=\"marketing\" value=\"1\" aria-invalid=\"false\" \/><span class=\"wpcf7-list-item-label\">I would like to receive marketing communications from Hiberus and about its products, services and events.<\/span><\/label><\/span><\/span><\/span>\n\t\t\t<\/p>\n\t\t<\/div>\n\t<\/div>\n\t<div class=\"form-row\">\n\t\t<div class=\"column-half\">\n\t\t\t<p><input class=\"wpcf7-form-control wpcf7-submit has-spinner\" type=\"submit\" value=\"Contact us\" \/>\n\t\t\t<\/p>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n\n<!--end responsive-form--><div class=\"wpcf7-response-output\" aria-hidden=\"true\"><\/div>\n<\/form>\n<\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n        <\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In an increasingly data-driven environment, accessing the right information quickly and accurately is key to decision making. However, many organizations still rely&#8230;<\/p>\n","protected":false},"author":17,"featured_media":14736,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17,14],"tags":[27],"class_list":{"0":"post-13337","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-case-studies","8":"category-generative-ai","9":"tag-ai"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Success Story: We use AI to generate SQL queries from natural language - hiberus blog - Exploring Technology, AI, and Digital Experiences<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Success Story: We use AI to generate SQL queries from natural language - hiberus blog - Exploring Technology, AI, and Digital Experiences\" \/>\n<meta property=\"og:description\" content=\"In an increasingly data-driven environment, accessing the right information quickly and accurately is key to decision making. However, many organizations still rely...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/\" \/>\n<meta property=\"og:site_name\" content=\"hiberus blog - Exploring Technology, AI, and Digital Experiences\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-02T07:00:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-02T07:46:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2025\/07\/Blog_imagen_articulo-77.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Miriam Arroyo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hiberus\" \/>\n<meta name=\"twitter:site\" content=\"@hiberus\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Miriam Arroyo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/\"},\"author\":{\"name\":\"Miriam Arroyo\",\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/#\/schema\/person\/ecaee9e1b3e16ff7ef4edc6e7387fa41\"},\"headline\":\"Success Story: We use AI to generate SQL queries from natural language\",\"datePublished\":\"2025-07-02T07:00:13+00:00\",\"dateModified\":\"2025-07-02T07:46:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/\"},\"wordCount\":1082,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2025\/07\/Blog_imagen_articulo-77.png\",\"keywords\":[\"AI\"],\"articleSection\":[\"Case Studies\",\"Generative AI\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/\",\"url\":\"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/\",\"name\":\"Success Story: We use AI to generate SQL queries from natural language - hiberus blog - Exploring Technology, AI, and Digital Experiences\",\"isPartOf\":{\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2025\/07\/Blog_imagen_articulo-77.png\",\"datePublished\":\"2025-07-02T07:00:13+00:00\",\"dateModified\":\"2025-07-02T07:46:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/#primaryimage\",\"url\":\"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2025\/07\/Blog_imagen_articulo-77.png\",\"contentUrl\":\"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2025\/07\/Blog_imagen_articulo-77.png\",\"width\":1200,\"height\":600},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/www.hiberus.com\/en\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Success Story: We use AI to generate SQL queries from natural language\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/#website\",\"url\":\"https:\/\/www.hiberus.com\/en\/blog\/\",\"name\":\"hiberus blog - Exploring Technology, AI, and Digital Experiences\",\"description\":\"Blog for the latest updates, trends, and insights in the world of technology, artificial intelligence, and digital experiences. Stay informed!\",\"publisher\":{\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.hiberus.com\/en\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/#organization\",\"name\":\"hiberus\",\"url\":\"https:\/\/www.hiberus.com\/en\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2023\/04\/Hiberus_blog-logo.png\",\"contentUrl\":\"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2023\/04\/Hiberus_blog-logo.png\",\"width\":324,\"height\":70,\"caption\":\"hiberus\"},\"image\":{\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/hiberus\",\"https:\/\/www.linkedin.com\/company\/hiberus\",\"https:\/\/www.instagram.com\/hiberusit\/\",\"https:\/\/www.youtube.com\/user\/hiberusit\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/#\/schema\/person\/ecaee9e1b3e16ff7ef4edc6e7387fa41\",\"name\":\"Miriam Arroyo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2025\/07\/MIRIAM-ARROYO-150x150.jpg\",\"url\":\"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2025\/07\/MIRIAM-ARROYO-150x150.jpg\",\"contentUrl\":\"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2025\/07\/MIRIAM-ARROYO-150x150.jpg\",\"caption\":\"Miriam Arroyo\"},\"description\":\"Data Scientist &amp; AI Engineer\",\"url\":\"https:\/\/www.hiberus.com\/en\/blog\/author\/miriam-arroyo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Success Story: We use AI to generate SQL queries from natural language - hiberus blog - Exploring Technology, AI, and Digital Experiences","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/","og_locale":"en_US","og_type":"article","og_title":"Success Story: We use AI to generate SQL queries from natural language - hiberus blog - Exploring Technology, AI, and Digital Experiences","og_description":"In an increasingly data-driven environment, accessing the right information quickly and accurately is key to decision making. However, many organizations still rely...","og_url":"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/","og_site_name":"hiberus blog - Exploring Technology, AI, and Digital Experiences","article_published_time":"2025-07-02T07:00:13+00:00","article_modified_time":"2025-07-02T07:46:08+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2025\/07\/Blog_imagen_articulo-77.png","type":"image\/png"}],"author":"Miriam Arroyo","twitter_card":"summary_large_image","twitter_creator":"@hiberus","twitter_site":"@hiberus","twitter_misc":{"Written by":"Miriam Arroyo","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/#article","isPartOf":{"@id":"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/"},"author":{"name":"Miriam Arroyo","@id":"https:\/\/www.hiberus.com\/en\/blog\/#\/schema\/person\/ecaee9e1b3e16ff7ef4edc6e7387fa41"},"headline":"Success Story: We use AI to generate SQL queries from natural language","datePublished":"2025-07-02T07:00:13+00:00","dateModified":"2025-07-02T07:46:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/"},"wordCount":1082,"commentCount":0,"publisher":{"@id":"https:\/\/www.hiberus.com\/en\/blog\/#organization"},"image":{"@id":"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/#primaryimage"},"thumbnailUrl":"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2025\/07\/Blog_imagen_articulo-77.png","keywords":["AI"],"articleSection":["Case Studies","Generative AI"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/","url":"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/","name":"Success Story: We use AI to generate SQL queries from natural language - hiberus blog - Exploring Technology, AI, and Digital Experiences","isPartOf":{"@id":"https:\/\/www.hiberus.com\/en\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/#primaryimage"},"image":{"@id":"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/#primaryimage"},"thumbnailUrl":"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2025\/07\/Blog_imagen_articulo-77.png","datePublished":"2025-07-02T07:00:13+00:00","dateModified":"2025-07-02T07:46:08+00:00","breadcrumb":{"@id":"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/#primaryimage","url":"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2025\/07\/Blog_imagen_articulo-77.png","contentUrl":"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2025\/07\/Blog_imagen_articulo-77.png","width":1200,"height":600},{"@type":"BreadcrumbList","@id":"https:\/\/www.hiberus.com\/en\/blog\/success-story-we-use-ai-to-generate-sql-queries-from-natural-language\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/www.hiberus.com\/en\/blog\/"},{"@type":"ListItem","position":2,"name":"Success Story: We use AI to generate SQL queries from natural language"}]},{"@type":"WebSite","@id":"https:\/\/www.hiberus.com\/en\/blog\/#website","url":"https:\/\/www.hiberus.com\/en\/blog\/","name":"hiberus blog - Exploring Technology, AI, and Digital Experiences","description":"Blog for the latest updates, trends, and insights in the world of technology, artificial intelligence, and digital experiences. Stay informed!","publisher":{"@id":"https:\/\/www.hiberus.com\/en\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hiberus.com\/en\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hiberus.com\/en\/blog\/#organization","name":"hiberus","url":"https:\/\/www.hiberus.com\/en\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hiberus.com\/en\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2023\/04\/Hiberus_blog-logo.png","contentUrl":"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2023\/04\/Hiberus_blog-logo.png","width":324,"height":70,"caption":"hiberus"},"image":{"@id":"https:\/\/www.hiberus.com\/en\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/hiberus","https:\/\/www.linkedin.com\/company\/hiberus","https:\/\/www.instagram.com\/hiberusit\/","https:\/\/www.youtube.com\/user\/hiberusit"]},{"@type":"Person","@id":"https:\/\/www.hiberus.com\/en\/blog\/#\/schema\/person\/ecaee9e1b3e16ff7ef4edc6e7387fa41","name":"Miriam Arroyo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2025\/07\/MIRIAM-ARROYO-150x150.jpg","url":"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2025\/07\/MIRIAM-ARROYO-150x150.jpg","contentUrl":"https:\/\/www.hiberus.com\/en\/blog\/wp-content\/uploads\/2025\/07\/MIRIAM-ARROYO-150x150.jpg","caption":"Miriam Arroyo"},"description":"Data Scientist &amp; AI Engineer","url":"https:\/\/www.hiberus.com\/en\/blog\/author\/miriam-arroyo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.hiberus.com\/en\/blog\/wp-json\/wp\/v2\/posts\/13337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hiberus.com\/en\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiberus.com\/en\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiberus.com\/en\/blog\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiberus.com\/en\/blog\/wp-json\/wp\/v2\/comments?post=13337"}],"version-history":[{"count":2,"href":"https:\/\/www.hiberus.com\/en\/blog\/wp-json\/wp\/v2\/posts\/13337\/revisions"}],"predecessor-version":[{"id":14738,"href":"https:\/\/www.hiberus.com\/en\/blog\/wp-json\/wp\/v2\/posts\/13337\/revisions\/14738"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hiberus.com\/en\/blog\/wp-json\/wp\/v2\/media\/14736"}],"wp:attachment":[{"href":"https:\/\/www.hiberus.com\/en\/blog\/wp-json\/wp\/v2\/media?parent=13337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiberus.com\/en\/blog\/wp-json\/wp\/v2\/categories?post=13337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiberus.com\/en\/blog\/wp-json\/wp\/v2\/tags?post=13337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}