How to run database Query in WordPress?

$wpdb->query("select * from $wpdb->posts   where ID>10 ");