A system comprising a server device (10, 40) and a plurality of nodes (11, 31), wherein: a first node is any one of the plurality of nodes, each node including: an execution unit that executes a processing that is set for a query (12, 33) that is arranged at the first node and movable between the plurality of nodes, when data to be processed by the query is distributed from a data source external to the system via a network, received by a server included in the system, transmitted thereby to the first node and matches with a condition that is set in the query; a detection unit that detects a time interval at which the data is distributed to the first node and time relative to reference time at which the data is distributed to the first node; and a transmission unit that transmits the detected time interval and time to the server device as frequency information, and the server device includes a first specification unit (13, 43b) that specifies a cycle in which the data to be processed by the query (12, 33) is distributed to the first node based on the frequency information received from the first node, and specifies a period in which the data to be processed by the query to be moved is not distributed to the first node based on the specified cycle; and an instruction unit (14, 43c) that instructs the first node as a movement source, when the query arranged thereat is to be moved to a second node among the plurality of nodes, to move the query to the second node during the specified period. a first node is any one of the plurality of nodes, each node including: an execution unit that executes a processing that is set for a query (12, 33) that is arranged at the first node and movable between the plurality of nodes, when data to be processed by the query is distributed from a data source external to the system via a network, received by a server included in the system, transmitted thereby to the first node and matches with a condition that is set in the query; a detection unit that detects a time interval at which the data is distributed to the first node and time relative to reference time at which the data is distributed to the first node; and a transmission unit that transmits the detected time interval and time to the server device as frequency information, and the server device includes a first specification unit (13, 43b) that specifies a cycle in which the data to be processed by the query (12, 33) is distributed to the first node based on the frequency information received from the first node, and specifies a period in which the data to be processed by the query to be moved is not distributed to the first node based on the specified cycle; and an instruction unit (14, 43c) that instructs the first node as a movement source, when the query arranged thereat is to be moved to a second node among the plurality of nodes, to move the query to the second node during the specified period. an execution unit that executes a processing that is set for a query (12, 33) that is arranged at the first node and movable between the plurality of nodes, when data to be processed by the query is distributed from a data source external to the system via a network, received by a server included in the system, transmitted thereby to the first node and matches with a condition that is set in the query; a detection unit that detects a time interval at which the data is distributed to the first node and time relative to reference time at which the data is distributed to the first node; and a transmission unit that transmits the detected time interval and time to the server device as frequency information, and the server device includes a first specification unit (13, 43b) that specifies a cycle in which the data to be processed by the query (12, 33) is distributed to the first node based on the frequency information received from the first node, and specifies a period in which the data to be processed by the query to be moved is not distributed to the first node based on the specified cycle; and an instruction unit (14, 43c) that instructs the first node as a movement source, when the query arranged thereat is to be moved to a second node among the plurality of nodes, to move the query to the second node during the specified period.