title: Laravel Query Builder - Convert MySQL quert to Laravel Query Builder
body: <p>I have a query in MySQL:</p>
  
  <pre><code>SELECT student, ((SUM(mark1)+SUM(mark2))/SUM(mark3)) AS avg FROM your_table
  </code></pre>
  
  <p>and</p>
  
  <pre><code>SELECT student, (mark1+mark2-mark3) AS result FROM your_table
  </code></pre>
  
  <p>I like to convert them to Laravel's query builder format query.</p>
  
  <p>But I can't find any way to do that.</p>