use higher level query() in ex