Explore more topics
Published model evaluations

Models generating SQL for financial questions, April 2025

Published 2025-04-15: 60 financial questions per the article text, 11 models. Average, median and standard deviation of query score. Success rate. Average execution time. List input and output price. See the results, how they were measured and where the findings stop.

As of 2025-04-15

Jump to a section

TL;DR

Published 2025-04-15. GPT-4.1 has the highest published average score (0.884) and success rate (93.3%) in this 11-model table, with Gemini 2.5 Pro at 0.880 and 92.5%. GPT-4.1 Nano has the lowest average score (0.382).

Published
2025-04-15
Published model rows
11
Evidence
Historical task evaluation

Follow this evaluation

Table comparing 11 models on SQL query generation: average score, median, standard deviation, success rate, execution time and token prices
April 2025 SQL query generation comparison of the GPT-4.1 series against Claude 3.7 Sonnet, Gemini 2.5 Pro, Gemini 2.0 Flash, Llama 4 Maverick, DeepSeek V3, Grok-3 and o3-mini.
Step 1 of 3

Published results

Models generating SQL for financial questions, April 2025: source evidence dated 2025-04-15.

Exact model version
GPT-4.1
Average score
0.884
Median score
1.000
Std dev
0.279
Success rate
93.3%
Avg execution
1,711 ms
Input cost
$2.00/M
Output cost
$8.00/M
What you should see

The displayed values belong to the identified model versions and this published task, with their original metric units.

Step 2 of 3

What did this task require the model to return?

Read the tested version, task and rubric together. Check failures alongside successful answers; compare costs only within the reported unit.

2025-04-15: Models generating SQL for financial questions, April 2025
What you should see

Keep the study date and exact model ID beside the result. Do not average different tasks into one winner.

Step 3 of 3

Test a strategy with Aurora

Keep the study date and exact model ID beside the result. Do not average different tasks into one winner.

Test a strategy with Aurora
What you should see

Keep reporting dates and units beside the answer, and inspect its original citations.

Published results

Scale: 0 to 0.884 · zero baseline

Average score

  • GPT-4.10.884
  • GPT-4.1 Mini0.787
  • GPT-4.1 Nano0.382
  • Claude 3.7 Sonnet0.660
  • Gemini 2.5 Pro0.880
  • Gemini 2.0 Flash0.717
  • Llama 4 Maverick0.565
  • DeepSeek V30.617
  • Grok-3-Beta0.747
  • Grok-3-Mini-Beta0.645
  • OpenAI O3-Mini0.635

Scale: 0 to 1 · zero baseline

Median score

  • GPT-4.11.000
  • GPT-4.1 Mini1.000
  • GPT-4.1 Nano0.050
  • Claude 3.7 Sonnet1.000
  • Gemini 2.5 Pro1.000
  • Gemini 2.0 Flash1.000
  • Llama 4 Maverick1.000
  • DeepSeek V31.000
  • Grok-3-Beta1.000
  • Grok-3-Mini-Beta1.000
  • OpenAI O3-Mini1.000

Scale: 0 to 93.3 % · zero baseline

Success rate

  • GPT-4.193.3%
  • GPT-4.1 Mini83.3%
  • GPT-4.1 Nano53.3%
  • Claude 3.7 Sonnet75.0%
  • Gemini 2.5 Pro92.5%
  • Gemini 2.0 Flash92.5%
  • Llama 4 Maverick62.5%
  • DeepSeek V375.0%
  • Grok-3-Beta90.0%
  • Grok-3-Mini-Beta72.5%
  • OpenAI O3-Mini72.5%

60 financial questions per the article text, 11 models. Published 2025-04-15. Values retain their original units and grading scale.

See the complete published results

Scroll sideways to compare all columns. Select a heading to sort.

GPT-4.10.8841.0000.27993.3%1,711 ms$2.00/M$8.00/M
GPT-4.1 Mini0.7871.0000.38283.3%1,526 ms$0.40/M$1.60/M
GPT-4.1 Nano0.3820.0500.45453.3%38,614 ms$0.10/M$0.40/M
Claude 3.7 Sonnet0.6601.0000.45575.0%2,003 ms$3.00/M$15.00/M
Gemini 2.5 Pro0.8801.0000.30092.5%2,478 ms$1.25/M$10.00/M
Gemini 2.0 Flash0.7171.0000.39292.5%1,296 ms$0.10/M$0.40/M
Llama 4 Maverick0.5651.0000.48862.5%1,986 ms$0.19/M$0.85/M
DeepSeek V30.6171.0000.46075.0%26,892 ms$0.27/M$1.10/M
Grok-3-Beta0.7471.0000.40590.0%1,707 ms$3.00/M$15.00/M
Grok-3-Mini-Beta0.6451.0000.45972.5%1,593 ms$0.30/M$0.50/M
OpenAI O3-Mini0.6351.0000.46472.5%8,854 ms$1.10/M$4.40/M

60 financial questions per the article text, 11 models. Published 2025-04-15. Values retain their original units and grading scale.

Task and tested input

Generate SQL queries that correctly answer financial analysis questions.

  1. Instruction in brief (task summary)

    Each model received financial questions and returned a SQL query to answer each one. The article's worked example is "Find companies with increasing profit margins over the last 3 years", shown as a NexusTrade usage example rather than an identified scored question.

How the runs worked

60 financial questions per the article text, 11 models

The author's one-shot SQL query generation test for financial analysis, with methodology deferred to an earlier linked article

  1. Step 1

    Ask each of 11 models the same 60 financial questions.

  2. Step 2

    Collect one generated SQL query per question (one-shot).

  3. Step 3

    Report average score, median score, standard deviation, success rate and average execution time per model.

How to read the measurements

  1. Grading and valid output

    The article reports scores and success rates but refers readers to an earlier article for the methodology. The grader is not described in this article.

  2. Cost

    List prices per million tokens, from $0.10/M input for GPT-4.1 Nano and Gemini 2.0 Flash to $3.00/M input and $15.00/M output for Claude 3.7 Sonnet and Grok-3-Beta. No measured run spend is published.

  3. Time

    Average execution time in milliseconds, from 1,296 ms (Gemini 2.0 Flash) to 38,614 ms (GPT-4.1 Nano).

Why this model was selected

The article called OpenAI the winner in pure performance by a very narrow margin (GPT-4.1) and Google the winner in cost effectiveness, and called GPT-4.1 Nano virtually unusable for this task.

See the published results

Table comparing 11 models on SQL query generation: average score, median, standard deviation, success rate, execution time and token prices
April 2025 SQL query generation comparison of the GPT-4.1 series against Claude 3.7 Sonnet, Gemini 2.5 Pro, Gemini 2.0 Flash, Llama 4 Maverick, DeepSeek V3, Grok-3 and o3-mini.

This image was published with the 2025-04-15 article. Read the source for the full test procedure and every result it reports.

Sample and scope

This April 2025 run reflects the model versions and prices of that week. Several models in the table (Grok-3-Beta, Gemini 2.5 Pro preview builds, o3-mini) have since been replaced.

The article defers the grading procedure to an earlier linked article and does not describe how scores and success were assigned in this run. Several success rates (92.5%, 62.5%, 72.5%) are not whole-number fractions of 60 questions, so the effective denominator is not stated.

The table comes from a single published run on one financial SQL task. The body text quotes GPT-4.1 at an "88.5% average score" while the table shows 0.884. The table value is used here.

The seven rows shared with the April 10, 2025 Grok 3 article carry identical values, so both articles publish the same run. This article adds the three GPT-4.1 versions and Gemini 2.5 Pro.

Read the original evidence

Continue exploring

Discussion

Sign in or create a free account to join the discussion.

No comments yet.

Aurora · AI research assistant

Try this in Aurora

Edit the request, then open it in Aurora. You choose when to send it.