[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-656117-105":59,"doc-detail-656117-en":130,"doc-similar-656117":161},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","a-comprehensive-tutorial-on-over-100-years-of-diagrammatic-representations-of-logical-statements-and-relational-queries-lecture-style","A Comprehensive Tutorial on over 100 Years of Diagrammatic Representations of Logical Statements and Relational Queries - lecture-style","","Query formulation is increasingly delegated to systems that infer intent, yet users need reliable ways to confirm that an agent returns answers to the right relational query. This lecture-style tutorial revisits diagrammatic metaphors for understanding relational queries, surveying visual representations from both relational databases and earlier diagrammatic reasoning communities. It traces historical developments, current state of the art, and maps visual alphabets to the syntax and semantics of Relational Algebra and Relational Calculus.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/a-comprehensive-tutorial-on-over-100-years-of-diagrammatic-representations-of-logical-statements-and-relational-queries-lecture-style/656117/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/a-comprehensive-tutorial-on-over-100-years-of-diagrammatic-representations-of-logical-statements-and-relational-queries-lecture-style/656117.png","ImageObject",300,407,{"name":92,"@type":93},"Logic","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29","2026-10-25",true,{"@type":102,"interactionType":103,"userInteractionCount":34},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"Why do users need help understanding relational queries when agents generate them?","Question",{"text":112,"@type":113},"Because systems that guess user intent must still be verified for correctness. Reading and refining generated queries is difficult, so visualization is a practical route to support understanding and verification.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What does the tutorial focus on regarding diagrammatic representations?",{"text":117,"@type":113},"It surveys key visual metaphors for logical statements and relational expressions, covering both relational database approaches and older diagrammatic reasoning communities.",{"name":119,"@type":110,"acceptedAnswer":120},"How does the tutorial connect visual systems to relational query theory?",{"text":121,"@type":113},"It organizes the landscape by mapping the visual alphabets of diagrammatic representation systems to the syntax and semantics of Relational Algebra and Relational Calculus.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},656117,1792966476,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":34,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":29,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":19,"preview_urls":144},1099513958762,"https://ap-avatar.wpscdn.com/avatar/1000023916a998db790?x-image-process=image/resize,m_fixed,w_180,h_180&k=1784791008015729253","A Comprehensive Tutorial on over 100 Years of Diagrammatic Representations of Logical Statements and Relational Queries  \nWolfgang Gatterbauer  \nNortheastern University  \nBoston, USA  \n 0000-0002-9614-0504  \narXiv :2404 .00007v1 [ cs .DB] 5 Mar 2024  \nAbstract—Query formulation is increasingly performed by systems that need to guess a user’s intent (e.g. via spoken word interfaces). But how can a user know that the computational agent is returning answers to the “right” query? More generally, given that relational queries can become pretty complicated, how can we help users understand relational queries, whether human-generated or automatically generated? Now seems the right moment to revisit a topic that predates the birth of the relational model: developing visual metaphors that help users understand relational queries.  \nThis lecture-style tutorial surveys the key visual metaphors developed for diagrammatic representations of logical statementsand relational expressions, across both the relational database and the much older diagrammatic reasoning communities. We survey the history and state-of-the-art of relationally-complete diagrammatic representations of relational queries, discuss the key visual metaphors developed in over a century of investigations into diagrammatic languages, and organize the landscape by mapping the visual alphabets of diagrammatic representation systems to the syntax and semantics of Relational Algebra (RA) and Relational Calculus (RC). Tutorial website: [https://northeastern-datalab](https://northeastern-datalab). [github.io/diagrammatic-representation-tutorial/](github.io/diagrammatic-representation-tutorial/)  \nI. INTRODUCTION  \nThe design of relational query languages and the difficulty for users to compose relational queries have received much attention over the last 40 years [10], [12], [30], [35], [40],[52], [53], [64], [65] . A complementary and much-less-studied problem is that of helping users read and understand existing queries. With the proliferation of public data sources and associated queries, users increasingly have to read other people’s queries and scripts. At the same time, Large Language Models (LLMs) have become an effective way to generate “starter code” (including SQL queries [22], [49]) which still has tobe checked for correctness and undergo refinement. Some even predict that “all programs in the future will ultimately be written by AIs, with humans relegated to, at best, a supervisory role” [63] . But while it is easier to modify a“starter query” than to write something from scratch, reading code is hard, and SQL is no exception. Any “human-AIdatabase interaction” relying on starter queries still requires users to understand written queries. For that reason alone, it is an opportune moment to study ways that help users understand queries, and visualization is one obvious route. While visual methods for composing queries have been studied  \nFig. 1: An analyst dictates a query to her voice assistant which then shows the query as understood together with the query answers.  \nFig. 2: The future user interaction with relational databases: a user dictates queries, and the system visualizes the queries back for the user to verify the correct interpretation.  \nextensively in the database literature under the topic of Visual Query Languages (VQLs) [10], the challenges for supporting the reverse functionality of automatically creating a visual representation of an existing query (“Query Visualization”) are different than the problem of composing a new query.  \nThe tutorial uses a few relational queries to survey and summarize the history of diagrammatic (thus visual) representations of first-order logic queries and statements. The goal is to highlight similarities and differences between approaches proposed across communities by contrasting mapping of various visual representations to equivalent expressions in Relational Algebra (RA) and Relational Calculus (RC) .  \nOutline. The l","cbCaioUhloe03Z1l","https://ap.wps.com/l/cbCaioUhloe03Z1l","pdf",666556,"English","# Introduction\n# Tutorial Information\n## Audience and prerequisite\n# Why visualizing queries and why now\n# Principles of query visualization\n# Logical foundations of relational query languages\n# Early diagrammatic representations\n# Modern visual query representations\n# Lessons learned and open challenges","[{\"question\":\"Why do users need help understanding relational queries when agents generate them?\",\"answer\":\"Because systems that guess user intent must still be verified for correctness. Reading and refining generated queries is difficult, so visualization is a practical route to support understanding and verification.\"},{\"question\":\"What does the tutorial focus on regarding diagrammatic representations?\",\"answer\":\"It surveys key visual metaphors for logical statements and relational expressions, covering both relational database approaches and older diagrammatic reasoning communities.\"},{\"question\":\"How does the tutorial connect visual systems to relational query theory?\",\"answer\":\"It organizes the landscape by mapping the visual alphabets of diagrammatic representation systems to the syntax and semantics of Relational Algebra and Relational Calculus.\"}]","A Comprehensive Tutorial on over 100 Years of Diagrammatic Representations of Logical Statements and Relational Queries - lecture-style | PDF",15,[145,149,153,157],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/a260b7af1de87a651186058b613ca2ea.webp",983,1272,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/6ba00c49ab826d931f87b6049e403604.webp",982,1270,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/4ec93d844b8bf5865ea7549fc01c09e3.webp",981,1269,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/79489dae654323b75b05c3192a958664.webp",980,1268,{"list":162,"token":66},[163,170,177,183,189,196,203,210,216,222],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":168,"category_name":40,"create_tm":169},289988,"AI-Assisted Generation of SQL Comprehension Questions - Tool Demonstration","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229903033081/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796238659&Signature=0WT%2FL9airCqvMIGYprsuZSV1qPc%3D","ai-assisted-generation-of-sql-comprehension-questions-tool-demonstration",17,1789639413,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":40,"create_tm":176},268550,"Reasoning with the Core Chase - the Case of SHACL Validation over ELHI Knowledge Bases","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229898633406/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796238659&Signature=auZREnO2FHBn45a151WUj3w0IHs%3D","reasoning-with-the-core-chase-the-case-of-shacl-validation-over-elhi-knowledge-bases",14,1789432221,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":52,"category_name":40,"create_tm":182},655983,"Enhancing ER Diagrams to View Data Transformations - Paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975296339/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796238659&Signature=%2FIbKO8dxi8gv31kqnSLwxrbQ0Xs%3D","enhancing-er-diagrams-to-view-data-transformations-paper",1792965326,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":34,"category_name":40,"create_tm":188},656123,"Visual Schemas and Queries for Knowledge Graph Exploration - interactive method for schema-based visual querying","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974785462/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796238659&Signature=fADEG2zwOEc7Agy2HOUJjG6yldE%3D","visual-schemas-and-queries-for-knowledge-graph-exploration-interactive-method-for-schema-based-visual-querying",1792966531,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":194,"category_name":40,"create_tm":195},84811,"Someone Slept in My Bed! On the Entailment Problem for Conjunctive Queries with Safe Negation over DL-LiteCORE Knowledge Bases","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809207225/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796238659&Signature=HIG0QCX%2BY0d7XF0gjUpu%2BBOQz2M%3D","someone-slept-in-my-bed-on-the-entailment-problem-for-conjunctive-queries-with-safe-negation-over-dl-litecore-knowledge-bases",23,1784198409,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":201,"category_name":40,"create_tm":202},83576,"ExPerT: Personalizing LLM Responses to Users’ Domain Expertise via Query-Wise Semantic and Keystroke Behavioral Cues","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808868986/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796238659&Signature=QrwQmNdB5CMRtsanyvOnpNkxQM0%3D","expert-personalizing-llm-responses-to-users-domain-expertise-via-query-wise-semantic-and-keystroke-behavioral-cues",36,1784188945,{"doc_id":204,"doc_title":205,"file_type":137,"home_preview_img_url":206,"slug":207,"view_count":208,"category_name":40,"create_tm":209},84624,"IntentTune Using User Demand and Personalization to Resolve Unknown Query Intents for E-Commerce Search","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809064623/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796238659&Signature=VOyc8vOD68Stp5SWixe4O%2FKiVVM%3D","intenttune-using-user-demand-and-personalization-to-resolve-unknown-query-intents-for-e-commerce-search",29,1784197232,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":52,"category_name":40,"create_tm":215},657680,"Mathematical Logic with Diagrams - Based on the Existential Graphs of Peirce","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975143423/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796238659&Signature=PCu7jEgQAB6jOjXxbMO73Z4suAw%3D","mathematical-logic-with-diagrams-based-on-the-existential-graphs-of-peirce",1792986199,{"doc_id":217,"doc_title":218,"file_type":137,"home_preview_img_url":219,"slug":220,"view_count":52,"category_name":40,"create_tm":221},665539,"Properties of a Computational Lambda Calculus for Higher-Order Relational Queries","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229983860469/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796238659&Signature=nUj%2BcF%2FNNXm3FecW1yB1bWjZj%2Fg%3D","properties-of-a-computational-lambda-calculus-for-higher-order-relational-queries",1793304824,{"doc_id":223,"doc_title":224,"file_type":137,"home_preview_img_url":225,"slug":226,"view_count":208,"category_name":40,"create_tm":227},83849,"Identifiability of Relational Queries in Multi-View Pretraining","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809107271/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796238659&Signature=%2FdVsnnF1xOgWHP5M%2BGj2L0HpNXA%3D","identifiability-of-relational-queries-in-multi-view-pretraining",1784190969]