Connect data of demo data

How to connect demo data in the sql and from the topic of ordering and filtering ?