Datapump query option is used to export the subset of table data according to the WHERE filter clause. Please find the examples below.
EXPDP with parameter file- parfile
Suppose if you wanted to export 2 tables using where clause. For each table you can specify the where clause.