ipython notebook with a simple example on how to run a query