Scollr summary
What this paper is about
This work presents a novel approach for synthesizing graph queries from computation demonstrations, where users specify the desired output through expressions over properties of input graphs, and addresses the challenge of inferring meaningful graph patterns for matching and efficiently constructing the remaining components of the query.
Full abstract
Read the full abstract
Writing graph queries is challenging for non-experts due to the complexity of graph data models and the need to identify proper graph patterns. While recent research has advanced query synthesis for relational and document databases, the problem of synthesizing graph queries remains under-explored. We present a novel approach for synthesizing graph queries from computation demonstrations, where users specify the desired output through expressions over properties of input graphs. Our method addresses the challenge of inferring meaningful graph patterns for matching and efficiently constructing the remaining components of the query. Specifically, we combine graph mining, which identifies candidate patterns across input graphs, with deduction-based pruning, which guides an efficient synthesis of the filtering predicate and return clause. We have implemented our approach in a tool called DMiner and evaluated it on 90 benchmarks. Experimental results show that DMiner successfully synthesizes desired queries for 87 benchmarks, with an average synthesis time of 0.6 seconds per query. This outperforms both enumerative search and LLM baselines. We also conducted a user study, which shows that users can provide demonstrations with modest effort and 87.5% of the provided demonstrations are sufficient for DMiner to synthesize the desired query.
Direct answer
What can I do from this paper page?
Use this page to scan "Synthesizing Graph Queries from Demonstrations" quickly: start with the summary and abstract, then check the authors, source, topics, and related papers. From here, open Scollr to follow Graph Theory and Algorithms research, save the paper, or map adjacent work.
Research areas
Follow related topics
Citation
BibTeX
@article{Liu2026Synthesizing,
title = {Synthesizing Graph Queries from Demonstrations},
author = {Xiaoyu Liu and Qikang Liu and Evan Dyce and Keval Vora and Yuepeng Wang},
journal = {Proceedings of the ACM on Programming Languages},
year = {2026},
doi = {10.1145/3839524},
url = {https://doi.org/10.1145/3839524}
}
FAQ
Using this paper in a discovery workflow
How do I find related work for this paper?
Use the related papers and topic links on this page as starting points. In Scollr, you can also open the paper and build a literature map around its references, citing papers, and related work.
How can I keep up with new Graph Theory and Algorithms research papers?
Follow Graph Theory and Algorithms research in Scollr. New papers from the topic flow into a personalized feed, and you can save useful studies to revisit later.
Can I cite this paper from this page?
This page includes a static BibTeX block for Synthesizing Graph Queries from Demonstrations. Always verify the DOI, source, and publication details against the publisher record before submitting a manuscript.
Follow this research in Scollr
Follow the topics and authors behind this paper, save useful studies, and build a literature map when you are ready to go deeper.
Get the app