Marin Software interview question

How do run sql queries and do joins.