Saute onions and then garlic until fragrant using a bit of water to lift any brown bits from pot
Meanwhile, in a bowl, add 2 cups flour, 1 tsp salt and 1 tbs sugar and mix to combine. Gradually add water and knead to form a firm dough and set aside covering with a cloth.
Release pressure manually and mash or immersion blend to desired consistency.
Release pressure manually and add cooked chicken, the can of corn with liquid. Set Instant Pot to saute mode