================================================================================
Query with namespace-qualified table
================================================================================

query 123 "Test Query"
{
    elements
    {
        dataitem(DimSetEntry; Microsoft.Finance.Dimension."Dimension Set Entry")
        {
            column(dimensionSetID; "Dimension Set ID") { }
        }
    }
}

--------------------------------------------------------------------------------

(source_file
  (query_declaration
    (query_keyword)
    object_id: (integer)
    object_name: (quoted_identifier)
    (elements_section
      (elements_keyword)
      (query_dataitem
        (dataitem_keyword)
        name: (identifier)
        table_name: (identifier)
        table_name: (identifier)
        table_name: (identifier)
        table_name: (quoted_identifier)
        (query_column
          (column_keyword)
          name: (identifier)
          field_name: (quoted_identifier))))))

================================================================================
Query with multiple namespace levels
================================================================================

query 124 "Multi Level Namespace"
{
    elements
    {
        dataitem(Item; Microsoft.Inventory.Item.Item)
        {
            column(No; "No.") { }
        }
    }
}

--------------------------------------------------------------------------------

(source_file
  (query_declaration
    (query_keyword)
    object_id: (integer)
    object_name: (quoted_identifier)
    (elements_section
      (elements_keyword)
      (query_dataitem
        (dataitem_keyword)
        name: (identifier)
        table_name: (identifier)
        table_name: (identifier)
        table_name: (identifier)
        table_name: (identifier)
        (query_column
          (column_keyword)
          name: (identifier)
          field_name: (quoted_identifier))))))

================================================================================
Query with simple table name (backwards compatibility)
================================================================================

query 125 "Simple Table"
{
    elements
    {
        dataitem(Customer; Customer)
        {
            column(No; "No.") { }
        }
    }
}

--------------------------------------------------------------------------------

(source_file
  (query_declaration
    (query_keyword)
    object_id: (integer)
    object_name: (quoted_identifier)
    (elements_section
      (elements_keyword)
      (query_dataitem
        (dataitem_keyword)
        name: (identifier)
        table_name: (identifier)
        (query_column
          (column_keyword)
          name: (identifier)
          field_name: (quoted_identifier))))))

================================================================================
Report with namespace-qualified dataitem
================================================================================

report 126 "Test Report"
{
    dataset
    {
        dataitem(Entry; Microsoft.Finance.Dimension."Dimension Set Entry")
        {
            column(DimensionSetID; "Dimension Set ID") { }
        }
    }
}

--------------------------------------------------------------------------------

(source_file
  (report_declaration
    (report_keyword)
    object_id: (integer)
    object_name: (quoted_identifier)
    (dataset_section
      (dataset_keyword)
      (report_dataitem
        (dataitem_keyword)
        name: (identifier)
        table_name: (identifier)
        table_name: (identifier)
        table_name: (identifier)
        table_name: (quoted_identifier)
        (report_column
          (column_keyword)
          name: (identifier)
          source: (quoted_identifier))))))
