Created basic query of state table.