SELECT statement syntax:
SELECT [ALL | DISTINCT] select_expr, ... [FROM components [WHERE where_condition] [GROUP BY groupby_expr [ASC | DESC], ... ] [HAVING where_condition] [ORDER BY orderby_expr [ASC | DESC], ...] [LIMIT row_count OFFSET offset}]
SELECT a.name, a.amount FROM Account a
SELECT a.* FROM Account a
SELECT a.* FROM Account a SELECT u.*, p.*, g.* FROM User u LEFT JOIN u.Phonenumber p LEFT JOIN u.Group g
SELECT a.* FROM Account a WHERE a.amount > 2000
SELECT u.* FROM User u LEFT JOIN u.Phonenumber p HAVING COUNT(p.id) > 3
SELECT u.* FROM User u ORDER BY u.name
SELECT u.* FROM User u LIMIT 20