code: def test_get_logical_form_handles_greater_than(self):
      world = self.wikitables_world
      action_sequence = [
          "@start@ -> c",
          "c -> [<r,c>, r]",
          "<r,c> -> [<<#1,#2>,<#2,#1>>, <c,r>]",
          "<<#1,#2>,<#2,#1>> -> reverse",
          "<c,r> -> fb:row.row.league",
          "r -> [<c,r>, c]",
          "<c,r> -> fb:row.row.year",
          "c -> [<n,c>, n]",
          "<n,c> -> fb:cell.cell.number",
          "n -> [<nd,nd>, n]",
          "<nd,nd> -> >",
          "n -> [<n,n>, n]",
          "<n,n> -> number",
          "n -> 2004",
      ]
      logical_form = world.get_logical_form(action_sequence)
      expected_logical_form = (
          "((reverse fb:row.row.league) (fb:row.row.year "
          "(fb:cell.cell.number (> (number 2004)))))"
      )
      assert logical_form == expected_logical_form
  
imports: from __future__ import with_statement
  from __future__ import division
  from __future__ import absolute_import
  import json
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data.tokenizers import Token
  from allennlp.semparse import ParsingError, World
  from allennlp.semparse.contexts import TableQuestionKnowledgeGraph
  from allennlp.semparse.worlds import NlvrWorld, WikiTablesWorld
  from io import open
label_desc: Use image node_id 7 for calling the TestWorld obj's underlying member method code with example usage: obj.test_get_logical_form_handles_greater_than() without return types