select 
	b.*
from 
	books b
where
	lower(b.name) like lower(?)
	or lower(b.description) like lower(?) 
	or lower(b.editor) like lower(?)
	or lower(b.year) like lower(?)
union
select
	b2.*
from books b2, json_each(b2.authors) 
where lower(json_each.value) like lower(?)
union
select
	b3.*
from books b3, json_each(b3.keywords) 
where lower(json_each.value) like lower(?)

