Here is the code
I deployed it with the following command:
cleos set contract . demo.wast demo.abi -p demo
and query it with:
cleos get table demo demo demos
typedef multi_index<N(demos), d> demo_table
the first parameter is table name, please keep same with your abi description