sPaQL TooLs is a Stochastic Package Query Interface for Scalable Constrained Optimization. The system extends traditional query engines to support package generation - finding collections of items that satisfy constraints defined over the entire collection, not just individual items. For example, given uncertain predictions for future stock prices, sPaQL TooLs finds a set of trades that maximizes expected future gain while ensuring losses only happen with a certain probability.

This project won Best Demonstration Award at VLDB’20, one of the top conferences in database systems, recognizing both the technical innovation in scalable constrained optimization and the practical applicability of the system to real-world problems.

Use Cases

The system solves real-world constrained optimization problems:

Investment Portfolio: A broker constructs a portfolio for a client with $50K budget, requiring at least 30% in technology stocks and a balance of short-term and long-term options. Traditional queries evaluate stocks individually; sPaQL TooLs finds stock packages satisfying all constraints collectively.

Meal Planner: An athlete needs three high-protein, gluten-free meals totaling 2000-2500 calories. While gluten-free can be checked per meal, calorie and protein totals require collective verification across the entire meal package.

sPaQL TooLs Interface
sPaQLTooLs GUI and demo outline: (1) application loading, (2,3,4) query specification, (5) sPAQL inspection, (6) simulation modeling, (7) manual solution, (8) automatic solutions, (9) result exploration.

Technical Architecture

Building sPaQL TooLs required developing a complete query engine extension with sophisticated optimization algorithms and an interactive user interface:

The system architecture handles the challenge of scaling constrained optimization to real-world dataset sizes while maintaining interactive query response times.

Publications

VLDB 2020 - Matteo Brucato, Miro Mannino, Azza Abouzied, Peter J. Haas, Alexandra Meliou