human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Poll Source, Sample Size, Margin of Error, Date, Democrat, Republican
###Question: Which Democrat was selected in the poll with a sample size smaller than 516 where the Republican chosen was Ron Paul?
gpt
SELECT Democrat FROM table WHERE Sample Size < 516 AND Republican = ron paul