# Simple example using SelectionQuerySource()?

**URL:** https://discourse.paraview.org/t/simple-example-using-selectionquerysource/16235
**Category:** ParaView Support
**Tags:** python
**Created:** [February 25, 2025, 12:44pm UTC](https://discourse.paraview.org/t/simple-example-using-selectionquerysource/16235 "2025-02-25T12:44:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![alwaysonemorebug](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/65b543/32.png) [@alwaysonemorebug](https://discourse.paraview.org/u/alwaysonemorebug)
#### Post date: [February 25, 2025, 12:44pm UTC](https://discourse.paraview.org/t/simple-example-using-selectionquerysource/16235/1 "2025-02-25T12:44:57Z")

</div>

Is there a simple example of pvpython code that shows the correct use `SelectionQuerySource()`?

`SelectionQuerySource()` was recommended as a solution that allows to include selections in the saved state. However, I’ve tried to use `SelectionQuerySource()` in multiple ways but I’m not able to get it to work.

A very simple example would be best, e. g. a pipeline consisting of one of the internal data sources of ParaView (e. g. `Wavelet()`) and a subsequent selection based on this data source (e. g. points with RTData\>100).
