title: SQL query to pull out form entries where each value is a separate row
body: <p>I have a models for a user built form as follows:</p>
  
  <pre><code>Form
    id
    title
  
  FormField
    id
    type
    name
    label
  
  FormEntry
    id
    form_id
    date
  
  FormFieldEntry
    id
    form_entry_id
    form_field_id
    value
  </code></pre>
  
  <p>I am trying to formulate a sql query on Form that will have the FormField labels as column names and the FormFieldEntry's as the values.</p>