using sqldf to read a subset

Code updated to read the subset using SQL statement