Add  query.sql explanation and example to README