select id,
printf("https://ourworldindata.org/grapher/%s", JSON_EXTRACT(config, '$.slug')) as url,
JSON_EXTRACT(config, '$.type') as type,
JSON_EXTRACT(config, '$.title') as title,
JSON_EXTRACT(config, '$.subtitle') as subtitle,
JSON_EXTRACT(config, '$.note') as footnote
from charts
where JSON_EXTRACT(config, '$.subtitle') LIKE ${debouncedLikeText}
OR JSON_EXTRACT(config, '$.title') LIKE ${debouncedLikeText}
OR JSON_EXTRACT(config, '$.note') LIKE ${debouncedLikeText}
order by id desc