added query2i and fetch syntax