A simple-but-powerful tuple query engine