Select statements in Apple Numbers '09
No SQL or database connections plug into a Numbers file, so you would need to export it and get the data into a SQLite database on the filesystem or otherwise get it into something that has SQL query.