The Lasair database has information about objects and candidates. Each candidate is a detection made by the telescope, and the collection of detections of a given star is an object.
Queries are written with the SQL language, that is built in three pieces through the Lasair web interface:
WHAT you are selecting
WHICH tables you are selecting from, and
CONDITIONS on what you are selecting.