First version with a sketch of the query language