RienSQL
TASK #192 · Medium · Kolesa Group

Search-to-View Conversion: Filtered vs Not

Your brief
The searches table stores search queries on Kolesa: search_id is the query, used_filters tells whether filters were applied (1 — yes, 0 — no). The listing_views table stores listing openings from a search (search_id is the originating query).

Product hypothesis: queries with filters lead to a listing view more often. Check it — compute the search-to-view conversion separately for queries with and without filters.

For each used_filters value output used_filters, searches_count (number of queries) and conversion_rate (the share of queries that led to at least one listing view, as a percentage rounded to two decimals). Sort by used_filters ascending.
Expected columnsused_filters searches_count conversion_rateKolesa — listings funnel
SQL editor
SQLite
Ctrl / ⌘ + ↵
Result

Write a query and run it to see the results.

Schema
listingslisting_id, category, city, price
searchessearch_id, user_id, used_filters, search_date
listing_viewsview_id, search_id, listing_id, user_id
contactscontact_id, view_id, user_id