What is the total for Danny Pinheiro Rodrigues ( fra ), in a Position smaller than 7?
CREATE TABLE table_name_37 (total INTEGER, gymnast VARCHAR, position VARCHAR)
SELECT AVG(total) FROM table_name_37 WHERE gymnast = "danny pinheiro rodrigues ( fra )" AND position < 7
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (total INTEGER, gymnast VARCHAR, position VARCHAR) Question: What is the total for Danny Pinheiro Rodrigues ( fra ), in a Position smaller than 7? [/INST] SELECT AVG(total) FROM table_name_37 WHERE gymnast = "danny pinheiro rodrigues ( fra )" AND position < 7 </s>