updated sql-example endpoint