+After each executed query the intermediate results of plagiarism
+were calculated using the multi feature document comparison techniques described in section~\ref{yenya}.
+This process leads to continuing lowering the number of executed queries, for more details see the following passages.
+
+All queries from a given document were firstly preconstructed and they were afterwards sequentially executed
+according to their priority.
+The first all keyword based queries, the second
+intrinsic plagiarism based and the last headers based, whilst we could omit some of the positionable queries during the process,
+which is described further in this section.
+The queries processing is outlined as Algorithm~\ref{alg:queries}, where for simplicity the snippet calculation and a web source download is omitted.
+After executing a query the intermediate results were always
+calculated as follows: For every query result in result page based
+on a snippet to input suspicious document similarities, we decided whether to actually
+download the resulting URL or not. Since the snippet contains portions of Web document to each
+given keyword, we calculated pre-similarity as apportionment of every word match between the snipped and the suspicious document.
+If there were at least 80\% match, we downloaded the web source for thorough investigation.
+For each downloaded web document we calculated similarities with the input suspicious document
+in the same way as described in section~\ref{yenya}. All similarities has been stored in form of intervals from within
+the input suspicious document. In other words for every similar part between the downloaded
+document and the suspicious document we stored the beginning position and the ending position of that part in
+the suspicious document.
+
+As a result of that, we can during processing further queries, which haven't been executed yet, omit those
+of which document position intersects with any of already found similarities intervals. This procedure
+leads us to lowering the total number of executed queries.
+All downloaded documents, which have at least one similarity interval, are declared
+as possible source of the plagiarism.
+
+
+\renewcommand{\algorithmicrequire}{\textbf{Input:}}
+\renewcommand{\algorithmicensure}{\textbf{Output:}}
+
+
+\algsetup{indent=2em}
+\begin{algorithm}[h!]
+\caption{Queries execution}\label{alg:queries}
+\begin{algorithmic}[1]
+\REQUIRE suspicious document $d$, queries $Q_{KW}, Q_{Intrinsic}, Q_{Headers}$
+%keyword, intrinsic and headers based queries $Q_{KW}, Q_{Intrinsic}, Q_{Headers}$,
+
+\ENSURE plagiarism source candidate web documents $W_{plag}$
+\medskip
+
+\STATE $I \leftarrow \emptyset; I \in \mathbb{N}^2$
+\STATE $W \leftarrow \emptyset$
+
+\FORALL{$q \in (Q_{KW} \cup Q_{Intrinsic} \cup Q_{Headers}) $}
+ \IF{$position(q)$ do not intersects with any interval $ \vec{i} \in I$}
+ \STATE $W \leftarrow execute(q)$
+ \FORALL{$w \in W$}
+ \STATE $I_{sub} \leftarrow get\_similarities(w, d)$ %\COMMENT{output is set of intervals similarities $[d_{start},d_{end}]$}
+ \STATE $I \leftarrow I \cup I_{sub}$
+ \IF{$I_{sub} \neq \emptyset$}
+ \STATE $W_{plag} \leftarrow W_{plag} \cup \{w\}$
+ \ENDIF
+ \ENDFOR
+ \ENDIF
+\ENDFOR
+\RETURN $W_{plag}$
+
+\end{algorithmic}
+\end{algorithm}
+
+\subsection{Queries comparison}
+During the test phase there were extracted 133 keywords based queries, 165 intrinsic plagiarism
+based queries and 331 headers based queries in total. Table~\ref{querycount} shows the arithmetic mean
+of the query count per document. We can see that nearly half of the prepared queries were
+omitted due to the fact, that there had been found a similarity including their document position.
+
+\begin{center}
+\begin{table}[h]
+\begin{center}
+\caption{\footnotesize The arithmetic mean of the query count and the omitted query count per document}
+\vspace{0.3 cm}
+\begin{tabular}{|c|c|c|}
+\hline
+\label{querycount}
+{\bf Query type} & {\bf Extracted}& {\bf Omitted} \\ \hline \hline
+KW & 4.16 & N/A \\ \hline
+Intrinsic & 5.16 & 2.35 \\ \hline
+Headers & 10.34 & 4.75 \\ \hline
+\end{tabular}\\
+\end{center}
+\end{table}
+\end{center}
+
+
+\begin{center}
+\begin{table}[h]
+\begin{center}
+\caption{\footnotesize The total portion of similarities found, taking into account number of similarities regardless of interval sizes.}
+\vspace{0.3 cm}
+\begin{tabular}{|c|c|}
+\hline
+\label{querySuccess}
+{\bf Query type} & {\bf Similarities portion } \\ \hline \hline
+KW & 72.5 \% \\ \hline
+Intrinsic & 24.3 \% \\ \hline
+Headers & 10.34 \% \\ \hline
+\end{tabular}\\
+\end{center}
+\end{table}
+\end{center}