Adding query2 for int