{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,16]],"date-time":"2026-10-16T20:51:29Z","timestamp":1792183889273,"version":"4.4.0"},"reference-count":39,"publisher":"MDPI AG","issue":"7","license":[{"start":{"date-parts":[[2026,7,8]],"date-time":"2026-07-08T00:00:00Z","timestamp":1783468800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"The Science and Technology Program of Hunan Province","award":["2026AQ2031"],"award-info":[{"award-number":["2026AQ2031"]}]},{"name":"Natural Resources Science and Technology Project of Hunan Province","award":["20240131DZ"],"award-info":[{"award-number":["20240131DZ"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["IJGI"],"abstract":"<jats:p>Natural-language access to spatial databases requires relation interpretation, entity grounding, metric normalization, and database-specific execution semantics. Direct generation of Structured Query Language (SQL) by large language models (LLMs) can therefore return executable but spatially wrong SQL, especially for Chinese urban questions with aliases, abbreviated place names, and geometry-dependent predicates. This paper presents GeoIR-Compiler, a spatially specialized framework that maps a Chinese question to a typed geospatial intermediate representation (GeoIR), grounds mentions and attributes to database objects, and deterministically compiles the grounded representation into SQL for PostGIS, a spatial database extension for PostgreSQL. The contribution is the specialization of intermediate representations for Chinese urban spatial question answering through explicit spatial relations, metric constraints, grounding records, and PostGIS execution templates. We construct two controlled executable benchmarks, NJ-GeoIR-700 and WH-GeoIR-700, covering retrieval, topology, distance, nearest-neighbor, aggregation, compositional, and alias\/noisy-mention queries. Across seven locally served backbones, GeoIR-Full reaches mean execution accuracies of 0.7271 on Nanjing and 0.7363 on Wuhan, outperforming Direct-SQL, Data-Augmented In-Context Learning (DAIL)-SQL-style, and Linking-SQL under the fixed evaluation protocol. Ablations are consistent with grounding contributing strongly to the observed gains, while verification mainly trades coverage for answer reliability.<\/jats:p>","DOI":"10.3390\/ijgi15070310","type":"journal-article","created":{"date-parts":[[2026,7,8]],"date-time":"2026-07-08T16:16:18Z","timestamp":1783527378000},"page":"310","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":2,"title":["GeoIR-Compiler: A Geospatial Intermediate Representation and Compilation Framework for Chinese Urban Spatial Question Answering"],"prefix":"10.3390","volume":"15","author":[{"ORCID":"https:\/\/orcid.org\/0009-0000-8750-6263","authenticated-orcid":false,"given":"Chaolin","family":"Zhang","sequence":"first","affiliation":[{"name":"School of Geosciences and Info-Physics, Central South University, Changsha 410083, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-0729-1018","authenticated-orcid":false,"given":"Jiqiu","family":"Deng","sequence":"additional","affiliation":[{"name":"School of Geosciences and Info-Physics, Central South University, Changsha 410083, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Hui","family":"Zhang","sequence":"additional","affiliation":[{"name":"Hunan Center of Natural Resources Affairs, Changsha 410004, China"},{"name":"Observation and Research Station of Lengshuijiang Mining Ecological Environmental Monitoring, Ministry of Natural Resources, Changsha 410004, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Longbo","family":"Li","sequence":"additional","affiliation":[{"name":"Zhaojin Mining Industry Co., Ltd., 118 Wenquan Road, Zhaoyuan 265400, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Liji","family":"Sun","sequence":"additional","affiliation":[{"name":"Hunan Center of Natural Resources Affairs, Changsha 410004, China"},{"name":"Technology Innovation Center for Ecological Conservation and Restoration in Dongting Lake Basin, Ministry of Natural Resources, Changsha 410007, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-8504-6221","authenticated-orcid":false,"given":"Xiao","family":"Ma","sequence":"additional","affiliation":[{"name":"Hunan Center of Natural Resources Affairs, Changsha 410004, China"},{"name":"Technology Innovation Center for Ecological Conservation and Restoration in Dongting Lake Basin, Ministry of Natural Resources, Changsha 410007, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2026,7,8]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"793","DOI":"10.1007\/s00778-019-00567-8","article-title":"A comparative survey of recent natural language interfaces for databases","volume":"28","author":"Affolter","year":"2019","journal-title":"VLDB J."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"905","DOI":"10.1007\/s00778-022-00776-8","article-title":"A survey on deep learning approaches for Text-to-SQL","volume":"32","author":"Koutrika","year":"2023","journal-title":"VLDB J."},{"key":"ref_3","unstructured":"Deng, N., Chen, Y., and Zhang, Y. (2022). Recent advances in Text-to-SQL: A survey of what we have and what we expect. Proceedings of the 29th International Conference on Computational Linguistics (COLING 2022), Gyeongju, Republic of Korea, 12\u201317 October 2022, International Committee on Computational Linguistics. Available online: https:\/\/aclanthology.org\/2022.coling-1.190\/."},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Li, J., Wang, W., Ku, W.-S., Tian, Y., and Wang, H. (2019, January 5\u20138). SpatialNLI: A spatial domain natural language interface to databases using spatial comprehension. Proceedings of the 27th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems, Chicago, IL, USA.","DOI":"10.1145\/3347146.3359069"},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"29","DOI":"10.1007\/s10707-023-00496-3","article-title":"Multilingual spatial domain natural language interface to databases","volume":"28","author":"Wang","year":"2024","journal-title":"GeoInformatica"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"2056","DOI":"10.1109\/TKDE.2025.3525587","article-title":"NALSpatial: A natural language interface for spatial databases","volume":"37","author":"Liu","year":"2025","journal-title":"IEEE Trans. Knowl. Data Eng."},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Zhang, X., Xiao, F., Yan, L., and Zhang, Z. (2024). GS-SQL: Modeling spatial semantics in spatial Text-to-SQL. Proceedings of the International Joint Conference on Neural Networks (IJCNN 2024), Yokohama, Japan, 30 June\u20135 July 2024, IEEE.","DOI":"10.1109\/IJCNN60899.2024.10651125"},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Jiang, Y., and Yang, C. (2024). Is ChatGPT a good geospatial data analyst? Exploring the integration of natural language into Structured Query Language within a spatial database. ISPRS Int. J. Geo-Inf., 13.","DOI":"10.3390\/ijgi13010026"},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Wang, H., Guo, L., Liang, Y., Liu, L., and Huang, J. (2025). GPT-based Text-to-SQL for spatial databases. ISPRS Int. J. Geo-Inf., 14.","DOI":"10.3390\/ijgi14080288"},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"588","DOI":"10.1080\/13658816.2025.2533322","article-title":"Monkuu: A LLM-powered natural language interface for geospatial databases with dynamic schema mapping","volume":"40","author":"Yu","year":"2026","journal-title":"Int. J. Geogr. Inf. Sci."},{"key":"ref_11","unstructured":"Zelle, J.M., and Mooney, R.J. (1996). Learning to parse database queries using inductive logic programming. Proceedings of the Thirteenth National Conference on Artificial Intelligence (AAAI-96), Portland, OR, USA, 4\u20138 August 1996, AAAI Press. Available online: https:\/\/aaai.org\/papers\/156-aaai96-156-learning-to-parse-database-queries-using-inductive-logic-programming\/."},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Giordani, A., and Moschitti, A. (2010). Corpora for automatically learning to map natural language questions into SQL queries. Proceedings of the Seventh International Conference on Language Resources and Evaluation (LREC 2010), Valletta, Malta, 17\u201323 May 2010, European Language Resources Association (ELRA). Available online: https:\/\/aclanthology.org\/L10-1502\/.","DOI":"10.63317\/46irb7ajuest"},{"key":"ref_13","unstructured":"Zhong, V., Xiong, C., and Socher, R. (2017). Seq2SQL: Generating structured queries from natural language using reinforcement learning. arXiv."},{"key":"ref_14","unstructured":"Xu, X., Liu, C., and Song, D. (2017). SQLNet: Generating structured queries from natural language without reinforcement learning. arXiv."},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Yu, T., Zhang, R., Yang, K., Yasunaga, M., Wang, D., Li, Z., Ma, J., Li, I., Yao, Q., and Roman, S. (2018). Spider: A large-scale human-labeled dataset for complex and cross-domain semantic parsing and Text-to-SQL task. Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing (EMNLP 2018), Brussels, Belgium, 31 October\u20134 November 2018, Association for Computational Linguistics.","DOI":"10.18653\/v1\/D18-1425"},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Yu, T., Yasunaga, M., Yang, K., Zhang, R., Wang, D., Li, Z., and Radev, D. (2018). SyntaxSQLNet: Syntax tree networks for complex and cross-domain Text-to-SQL task. Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing (EMNLP 2018), Brussels, Belgium, 31 October\u20134 November 2018, Association for Computational Linguistics.","DOI":"10.18653\/v1\/D18-1193"},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Min, Q., Shi, Y., and Zhang, Y. (2019). A pilot study for Chinese SQL semantic parsing. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP 2019), Hong Kong, China, 3\u20137 November 2019, Association for Computational Linguistics.","DOI":"10.18653\/v1\/D19-1377"},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Wang, L., Zhang, A., Wu, K., Sun, K., Li, Z., Wu, H., Zhang, M., and Wang, H. (2020). DuSQL: A large-scale and pragmatic Chinese Text-to-SQL dataset. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP 2020), Online, 16\u201320 November 2020, Association for Computational Linguistics.","DOI":"10.18653\/v1\/2020.emnlp-main.562"},{"key":"ref_19","unstructured":"Sun, N., Yang, X., and Liu, Y. (2020). TableQA: A large-scale Chinese Text-to-SQL dataset for table-aware SQL generation. arXiv."},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Guo, J., Zhan, Z., Gao, Y., Xiao, Y., Lou, J.-G., Liu, T., and Zhang, D. (2019). Towards complex Text-to-SQL in cross-domain database with intermediate representation. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (ACL 2019), Florence, Italy, 28 July\u20132 August 2019, Association for Computational Linguistics.","DOI":"10.18653\/v1\/P19-1444"},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Lin, X.V., Socher, R., and Xiong, C. (2020). Bridging textual and tabular data for cross-domain Text-to-SQL semantic parsing. Findings of the Association for Computational Linguistics: EMNLP 2020, Online, 16\u201320 November 2020, Association for Computational Linguistics.","DOI":"10.18653\/v1\/2020.findings-emnlp.438"},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Wang, B., Shin, R., Liu, X., Polozov, O., and Richardson, M. (2020). RAT-SQL: Relation-aware schema encoding and linking for Text-to-SQL parsers. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics (ACL 2020), Online, 5\u201310 July 2020, Association for Computational Linguistics.","DOI":"10.18653\/v1\/2020.acl-main.677"},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Rubin, O., and Berant, J. (2021). SmBoP: Semi-autoregressive bottom-up semantic parsing. Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT 2021), Online, 6\u201311 June 2021, Association for Computational Linguistics.","DOI":"10.18653\/v1\/2021.naacl-main.29"},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Scholak, T., Schucher, N., and Bahdanau, D. (2021). PICARD: Parsing incrementally for constrained auto-regressive decoding from language models. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing (EMNLP 2021), Punta Cana, Dominican Republic, 7\u201311 November 2021, Association for Computational Linguistics.","DOI":"10.18653\/v1\/2021.emnlp-main.779"},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"13067","DOI":"10.1609\/aaai.v37i11.26535","article-title":"RESDSQL: Decoupling schema linking and skeleton parsing for Text-to-SQL","volume":"Volume 37","author":"Li","year":"2023","journal-title":"Proceedings of the AAAI Conference on Artificial Intelligence"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Gan, Y., Chen, X., and Purver, M. (2023). Re-appraising the schema linking for Text-to-SQL. Findings of the Association for Computational Linguistics: ACL 2023, Toronto, ON, Canada, 9\u201314 July 2023, Association for Computational Linguistics.","DOI":"10.18653\/v1\/2023.findings-acl.53"},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"1132","DOI":"10.14778\/3641204.3641221","article-title":"Text-to-SQL empowered by large language models: A benchmark evaluation","volume":"17","author":"Gao","year":"2024","journal-title":"Proc. VLDB Endow."},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"42330","DOI":"10.52202\/075280-1835","article-title":"Can LLM already serve as a database interface? A big bench for large-scale database grounded Text-to-SQLs","volume":"36","author":"Li","year":"2023","journal-title":"Adv. Neural Inf. Process. Syst."},{"key":"ref_29","doi-asserted-by":"crossref","unstructured":"Liu, M., Wang, X., and Xu, J. (2023, January 23\u201325). NALSD: A natural language interface for spatial databases. Proceedings of the 18th International Symposium on Spatial and Temporal Data (SSTD 2023), Calgary, AB, Canada.","DOI":"10.1145\/3609956.3609974"},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Liu, M., Wang, X., Xu, J., and Lu, H. (2023, January 13\u201316). NALSpatial: An effective natural language transformation framework for queries over spatial data. Proceedings of the 31st ACM International Conference on Advances in Geographic Information Systems, Hamburg, Germany.","DOI":"10.1145\/3589132.3625600"},{"key":"ref_31","unstructured":"Xiao, F., and Li, J. (2023). An improved abstract syntax tree for spatial Text-to-SQL in geography domain. Proceedings of the 9th International Conference on Next Generation Computing (ICNGC 2023), Da Nang, Vietnam, 20\u201323 December 2023, Korean Institute of Next Generation Computing. Available online: https:\/\/www.earticle.net\/Article\/A448128."},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"562","DOI":"10.1162\/tacl_a_00654","article-title":"Text-to-OverpassQL: A natural language interface for complex geodata querying of OpenStreetMap","volume":"12","author":"Staniek","year":"2024","journal-title":"Trans. Assoc. Comput. Linguist."},{"key":"ref_33","doi-asserted-by":"crossref","unstructured":"Mansourian, A., and Oucheikh, R. (2024). ChatGeoAI: Enabling geospatial analysis for public through natural language, with large language models. ISPRS Int. J. Geo-Inf., 13.","DOI":"10.3390\/ijgi13100348"},{"key":"ref_34","unstructured":"Lawrence, C., and Riezler, S. (2016). NLmaps: A natural language interface to query OpenStreetMap. Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: System Demonstrations, Osaka, Japan, 11\u201316 December 2016, The COLING 2016 Organizing Committee. Available online: https:\/\/aclanthology.org\/C16-2002\/."},{"key":"ref_35","doi-asserted-by":"crossref","unstructured":"Potnis, A.V., Shinde, R.C., and Durbha, S.S. (2021). Towards natural language question answering over earth observation linked data using attention-based neural machine translation. arXiv.","DOI":"10.1109\/IGARSS39084.2020.9323183"},{"key":"ref_36","unstructured":"Nanjing Municipal People\u2019s Government (2026, June 22). City Overview, Available online: https:\/\/www.nanjing.gov.cn\/zgnjsjb\/csgk\/202509\/t20250919_5652865.html."},{"key":"ref_37","unstructured":"Wuhan Municipal People\u2019s Government (2026, June 22). Wuhan City Overview, Available online: https:\/\/www.wuhan.gov.cn\/zjwh\/whgk\/202004\/t20200414_999422.shtml."},{"key":"ref_38","doi-asserted-by":"crossref","first-page":"266","DOI":"10.1007\/978-3-031-47243-5_15","article-title":"Benchmarking geospatial question answering engines using the dataset GeoQuestions1089","volume":"Volume 14266","author":"Kefalidis","year":"2023","journal-title":"The Semantic Web\u2014ISWC 2023; Lecture Notes in Computer Science"},{"key":"ref_39","unstructured":"Piccolo, G. (Earth Observation GeoSQL Query Set for Natural Language to PostGIS Agentic Evaluation, 2026). Earth Observation GeoSQL Query Set for Natural Language to PostGIS Agentic Evaluation, version v1."}],"container-title":["ISPRS International Journal of Geo-Information"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2220-9964\/15\/7\/310\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,7,8]],"date-time":"2026-07-08T16:34:07Z","timestamp":1783528447000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2220-9964\/15\/7\/310"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,7,8]]},"references-count":39,"journal-issue":{"issue":"7","published-online":{"date-parts":[[2026,7]]}},"alternative-id":["ijgi15070310"],"URL":"https:\/\/doi.org\/10.3390\/ijgi15070310","relation":{},"ISSN":["2220-9964"],"issn-type":[{"value":"2220-9964","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,7,8]]}}}