Although the WP Query is great and provides a lot of flexibility, you can actually take your development efforts a step further with more advanced querying of the WordPress database….
Source: https://code.tutsplus.com/articles/advanced-wordpress-queries-part-1–wp-21017