update query API (pattern arg positions), update example code in index.org