Fix printing for p3. Add field selection in query