How many times did the Liao dynasty have violent conflict between 1000 and 1010?
return the  Liao dynasty ;return violent conflicts of #1 ;return when  was  #2 ;return #2 where #3 is between 1000 and  1010 ;return number of  #4
['select', 'project', 'project', 'comparative', 'aggregate']