demonstrate running queries on same thread