SELECT * FROM #__questions WHERE option= *value* ;
I put this query in field configuration. where option is a column in question table. It resulted in sql error.
But when put
SELECT * FROM #__survey_questions WHERE id <= *value* ;
it gives desired results. what is wrong in the previous case.