sql to query
root object is Query