wordpress how to query wp_options table

All of database querying is handled by global $wpdb object. So when you load WP core you have acess to it and all its methods for queries.