Closes #51: I decided I didn't like queries.md so I just rewrote the
whole thing...