There isn't one, you simply supply it a database query. You can find SQL documentation below.
dev.mysql.com/doc/refman/5.6/en/index.html
You can also search for several example queries such as the following.
Code:
SELECT `name` FROM `#__users` WHERE `id` = '[user_id]'
Note as shown in the above example substitutions are supported in the query.