Initial Query Implemetation