A simple program the creates a database, adds data, and then performs 2 queries is available on Github
The project uses Maven to manage the dependencies so it should work easily in any modern IDE
If you have an problems, please comment on the github. Every comment is appreciated