get segment account query