The syntax of draw queries is almost the same as a SQL Query. If you are familiar if SQL, it is going to be very easy for you to learn writing draw queries.
A draw query consists of two parts:
A very simple draw query example would be:
draw pie-chart using value, year(revenue.time) as label from revenue