Sqlite select query not returning data

Do you think there is a way how to trigger to send the first statement separately before queriing second statement?