Oxen.ai allows you to run models row by row over your datasets. This allows you to label data, or evaluate how well a model is performing. Once the model has run over your dataset, you can save the output to a new file or branch, comparing it to the original dataset.

Translate the following user query to sql, given the schema. Respond with just the sql, and nothing else.
Schema:
{schema}
User query
{query}
Sql:

Translate the following user query to SQL
Schema:
{schema}
Query
{query}
Only reply with the SQL and nothing else
Translate the user query to a sql statement given the table schema. Return only the SQL and nothing else no markdown.
Schema:
{schema}
Query:
{query}
classify the query into "has_date" or "no_date". reply with one word
{query}
Compare the following SQL statements given the database table to see if they are equivalent. If they are not the same, give a reason as to why. Format your response with two xml tags, one for the reasoning, and one a true or false statement indicating whether or not the statements are the same. Do not include any markdown surrounding the xml.
For example:
<reason>
The reason the statements differ.
</reason>
<answer>
true or false
</answer>
Are these two SQL statements equivalent given the schema:
Schema:
{schema}
Statement 1:
{sql}
Statement 2:
{prediction}
Compare the following SQL statements given the database table to see if they are equivalent. If they are not the same, give a reason as to why. Format your response with two xml tags, one for the reasoning, and one a true or false statement indicating whether or not the statements are the same. Do not include any markdown surrounding the xml.
For example:
<reason>
The reason the statements differ.
</reason>
<answer>
true or false
</answer>
Are these two SQL statements equivalent given the schema:
Schema:
{schema}
Statement 1:
{sql}
Statement 2:
{prediction}
Write a SQL statement that is equivalent to the natural language user query below given the schema in the format of a CREATE TABLE SQL statement. Assume the table is called "df". DO NOT give any preamble or extra characters or markdown just the SQL query in plain text. Make sure the SQL query is on one line.
Schema:
{schema}
User Query:
{query}
SQL Query:
Write a SQL statement that is equivalent to the natural language user query below given the schema in the format of a CREATE TABLE SQL statement. Assume the table is called "df". DO NOT give any preamble or extra characters or markdown just the SQL query in plain text. Make sure the SQL query is on one line.
Schema:
{schema}
User Query:
{query}
SQL Query:
Write a SQL statement that is equivalent to the natural language user query below. You are given the schema in the format of a CREATE TABLE SQL statement. Assume the table is called "df". DO NOT give any preamble or extra characters or markdown just the SQL query in plain text. Make sure the SQL query is on one line.
Schema:
{schema}
User Query:
{query}
SQL Query:

Write a SQL statement that is equivalent to the natural language user query. You are given the schema in the format of a CREATE TABLE SQL statement. Assume the table is called "df". DO NOT give any preamble or extra characters or markdown just the SQL query in plain text. Make sure the SQL query is on one line.
Schema:
{schema}
User Query:
{query}
SQL Query:
Compare the following SQL statements given the database table to see if they are equivalent. If they are not the same, give a reason as to why. Format your response with two xml tags, one for the reasoning, and one a true or false statement indicating whether or not the statements are the same. Do not include any markdown surrounding the xml.
For example:
<reason>
The reason the statements differ.
</reason>
<answer>
true or false
</answer>
Are these two SQL statements equivalent given the schema:
Schema:
{schema}
Statement 1:
{sql}
Statement 2:
{prediction}
Compare the following SQL statements given the database table to see if they are equivalent. If they are not the same, give a reason as to why. Format your response with two xml tags, one for the reasoning, and one a true or false statement indicating whether or not the statements are the same. Do not include any markdown surrounding the xml.
For example:
<reason>
The reason the statements differ.
</reason>
<answer>
true or false
</answer>
Are these two SQL statements equivalent given the schema:
Schema:
{schema}
Statement 1:
{sql}
Statement 2:
{prediction}
Write a SQL statement that is equivalent to the natural language user query below given the schema in the format of a CREATE TABLE SQL statement. Assume the table is called "df". DO NOT give any preamble or extra characters or markdown just the SQL query in plain text. Make sure the SQL query is on one line.
Schema:
{schema}
User Query:
{query}
SQL Query:
Compare the following SQL statements given the database table to see if they are equivalent. If they are not the same, give a reason as to why. Format your response with two xml tags, one for the reasoning, and one a true or false statement indicating whether or not the statements are the same. Do not include any markdown surrounding the xml.
For example:
<reason>
The reason the statements differ.
</reason>
<answer>
true or false
</answer>
Are these two SQL statements equivalent given the schema:
Schema:
{schema}
Statement 1:
{sql}
Statement 2:
{prediction}
Compare the following SQL statements given the database table to see if they are equivalent. If they are not the same, give a reason as to why. Format your response with two xml tags, one for the reasoning, and one a true or false statement indicating whether or not the statements are the same. Do not include any markdown surrounding the xml.
For example:
<reason>
The reason the statements differ.
</reason>
<answer>
true or false
</answer>
Are these two SQL statements equivalent given the schema:
Schema:
{schema}
Statement 1:
{sql}
Statement 2:
{prediction}
Write a SQL statement that is equivalent to the natural language user query below given the schema in the format of a CREATE TABLE SQL statement. Assume the table is called "df". DO NOT give any preamble or extra characters or markdown just the SQL query in plain text. Make sure the SQL query is on one line.
Schema:
{schema}
User Query:
{query}
SQL Query:

Compare the following SQL statements given the database table to see if they are equivalent. If they are not the same, give a reason as to why. Format your response with two xml tags, one for the reasoning, and one a true or false statement indicating whether or not the statements are the same. Do not include any markdown surrounding the xml.
For example:
<reason>
The reason the statements differ.
</reason>
<answer>
true or false
</answer>
Are these two SQL statements equivalent given the schema:
Schema:
{schema}
Statement 1:
{sql}
Statement 2:
{prediction}
Compare the following SQL statements given the database table to see if they are equivalent. If they are not the same, give a reason as to why. Format your response with two xml tags, one for the reasoning, and one a true or false statement indicating whether or not the statements are the same. Do not include any markdown surrounding the xml.
For example:
<reason>
The reason the statements differ.
</reason>
<answer>
true or false
</answer>
Are these two SQL statements equivalent given the schema:
Schema:
{schema}
Statement 1:
{sql}
Statement 2:
{prediction}
Compare the following SQL statements given the database table to see if they are equivalent. If they are not the same, give a reason as to why. Format your response with two xml tags, one for the reasoning, and one a true or false statement indicating whether or not the statements are the same. Do not include any markdown surrounding the xml.
For example:
<reason>
The reason the statements differ.
</reason>
<answer>
true or false
</answer>
Are these two SQL statements equivalent given the schema:
Schema:
{schema}
Statement 1:
{sql}
Statement 2:
{prediction}
Write a SQL statement that is equivalent to the natural language user query below given the schema in the format of a CREATE TABLE SQL statement. Assume the table is called "df". DO NOT give any preamble or extra characters or markdown just the SQL query in plain text. Make sure the SQL query is on one line.
Schema:
{schema}
User Query:
{query}
SQL Query:

Compare the following SQL statements given the database table to see if they are equivalent. If they are not the same, give a reason as to why. Format your response with two xml tags, one for the reasoning, and one a true or false statement indicating whether or not the statements are the same.
For example:
<reason>
The reason the statements differ.
</reason>
<answer>
true or false
</answer>
Are these two SQL statements equivalent given the schema:
Schema:
{schema}
Statement 1:
{sql}
Statement 2:
{prediction}
Compare the following SQL statements given the database table to see if they are equivalent. If they are not the same, give a reason as to why. Format your response with two xml tags, one for the reasoning, and one a true or false statement indicating whether or not the statements are the same.
For example:
<reason>
The reason the statements differ.
</reason>
<answer>
true or false
</answer>
Are these two SQL statements equivalent given the schema:
Schema:
{schema}
Statement 1:
{sql}
Statement 2:
{prediction}
Compare the following SQL statements given the database table to see if they are equivalent. If they are not the same, give a reason as to why. Format your response with two xml tags, one for the reasoning, and one a true or false statement indicating whether or not the statements are the same.
For example:
<reason>
The reason the statements differ.
</reason>
<answer>
true or false
</answer>
Are these two SQL statements equivalent given the schema:
Schema:
{schema}
Statement 1:
{sql}
Statement 2:
{prediction}
Compare the following SQL statements given the database table to see if they are equivalent. If they are not the same, give a reason as to why. Format your response with two xml tags, one for the reasoning, and one a true or false statement indicating whether or not the statements are the same.
For example:
<reason>
The reason the statements differ.
</reason>
<answer>
true or false
</answer>
Are these two SQL statements equivalent given the schema:
Schema:
{schema}
Statement 1:
{sql}
Statement 2:
{prediction}
Write a SQL statement that is equivalent to the natural language user query below given the schema in the format column_name:type. Assume the table is called "df". Do not give any preamble or extra characters just the SQL query in plain text. Make sure the SQL query is on one line.
Schema:
{schema}
User Query:
{query}
SQL Query:

Compare the following SQL statements given the database table to see if they are equivalent. If they are not the same, give a reason as to why. Format your response with two xml tags, one for the reasoning, and one a true or false statement indicating whether or not the statements are the same. For example:
<reason>
The reason the statements differ.
</reason>
<answer>
true or false
</answer>
Are these two SQL statements equivalent given the schema:
Schema:
{schema}
Statement 1:
{sql}
Statement 2:
{prediction}

You will be given a user query, a list of CREATE TABLE sql statements, a single table name that the query is interested in, and a corresponding SQL statement. You will do several transformations on the input.
1) Extract the the single CREATE TABLE statement that references the given table.
2) Replace the table name with "df" in both the sql statement and the CREATE TABLE statement
3) Format the response into three sections like below
<query>
The user query goes here
</query>
<schema>
The CREATE TABLE statement goes here on one line
</schema>
<sql>
The SQL statement goes here
</sql>
Make sure both the schema with the CREATE TABLE statement and the sql statement reference "df" instead of the original table name. Only extract one CREATE TABLE STATEMENT and format it onto a single line without any newlines. Think before responding with the proper xml tags.
Here are the original inputs:
<query>
{instruction}
</query>
<schema>
{input}
</schema>
<sql>
{response}
</sql>
Your output goes here:

Determine the number of tables used in the following SQL statement given the CREATE TABLE statements below it. Output the table names in a comma separated list.
The output format should be xml tags containing the number of tables used and the table names.
For example:
<num_tables>2</num_tables>
<tables>table_1,table_2</tables>
{schema}
{output}
Format the following SQL statement properly onto one line. Respond with the formatted SQL statement and nothing else.
{output}
SQL:

Determine the number of tables used in the following SQL statement given the CREATE TABLE statements below it. Output the table names in a comma separated list.
The output format should be xml tags containing the number of tables used and the table names.
For example:
<num_tables>2</num_tables>
<tables>table_1,table_2</tables>
{input}
{response}
Determine the number of tables used in the following SQL statement given the CREATE TABLE statements below it. Output the table names in a comma separated list.
The output format should be xml tags containing the number of tables used and the table names.
For example:
<num_tables>2</num_tables>
<tables>table_1,table_2</tables>
{schema}
{output}