<%= @table_name %> <%= @return_rows %> <% for column in @columns %> <%= column[:name] %> <% end %> <% unless @expressions.empty? %> <% for expression in @expressions %> ( <% unless expression[:andor].nil? %> <%= expression[:andor] %> <% end %> <%= expression[:column] %> <%= expression[:condition] %> <%= expression[:value] %> ) <% end %> <% end %> <%= @order_by %>