Added query.cpp