How do print the query which is built using search api
Enable Views query preview in Views Settings (admin/structure/views/settings) by checking the box "Show SQL query".

Then you will be able to see the query created by your view while you constructing it.