just 1 query to exctract data