Endava interview question

How to query SQL database?