instruction_seed stringlengths 305 1.28k | response_seed stringclasses 1
value | response stringlengths 7 2.05k | __original_row_idx int64 0 50k | conversations listlengths 2 2 |
|---|---|---|---|---|
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (champion VARCHAR, year VARCHAR, runner_up__average_in_final_ VARCHAR)
Question: who is the champion when the year is earlier than 2012, the runner-up (aver... | Here is the SQLite query to answer the question regarding the champion for years earlier than 2012 where the runner-up (average in final) is Steve Beaton (97.16):
```
SELECT champion FROM table_name_25 WHERE year < '2012' AND runner_up__average_in_final_ = 'steve beaton (97.16)';
``` | 16,800 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_25 (champion VARCHAR, year VARCHAR, runner_up__average_in_final_ VARCHAR)\n\n Question: who is the champion when the ye... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (venue VARCHAR, runner_up VARCHAR, champion__average_in_final_ VARCHAR)
Question: what is the venue when the runner-up is £20,000, the champion (average in ... | Here is the SQLite query to answer the question regarding the venue when the runner-up is £20,000 and the champion (average in final) is Phil Taylor (109.35):
```
SELECT venue FROM table_name_86 WHERE runner_up = '£20,000' AND champion__average_in_final_ = 'phil taylor (109.35)';
``` | 16,801 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_86 (venue VARCHAR, runner_up VARCHAR, champion__average_in_final_ VARCHAR)\n\n Question: what is the venue when the run... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (legs VARCHAR, year INTEGER)
Question: what is the legs when the year is earlier than 2009?
Here is the SQLite query to answer to the question: what is the ... | Here is the SQLite query to answer the question "what is the legs when the year is earlier than 2009?":
```
SELECT legs FROM table_name_8 WHERE year < 2009
``` | 16,802 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (legs VARCHAR, year INTEGER)\n\n Question: what is the legs when the year is earlier than 2009?\n\nHere is the SQLite... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (venue VARCHAR, runner_up__average_in_final_ VARCHAR)
Question: what is the venue when the runner-up (average in final) is wayne jones (94.64)?
Here is the ... | The provided query is close, but it should match only the `runner_up__average_in_final_` value against 'wayne jones' as the name and '94.64' as a numeric value, assuming you want to check for the runner-up's name and average separately. Here’s the corrected SQLite query:
```sql
SELECT venue
FROM table_name_6
WHERE r... | 16,803 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_6 (venue VARCHAR, runner_up__average_in_final_ VARCHAR)\n\n Question: what is the venue when the runner-up (average in ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (legs VARCHAR, venue VARCHAR, runner_up__average_in_final_ VARCHAR)
Question: What is the legs when the venue is rwe-sporthalle, mülheim and the runner-up (... | Here is the SQLite query to find the legs when the venue is "rwe-sporthalle, mülheim" and the runner-up (average in final) is "simon whitlock (99.59)":
```
SELECT legs FROM table_name_81 WHERE venue = "rwe-sporthalle, mülheim" AND runner_up__average_in_final_ = "simon whitlock (99.59)"
``` | 16,804 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_81 (legs VARCHAR, venue VARCHAR, runner_up__average_in_final_ VARCHAR)\n\n Question: What is the legs when the venue is... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (overall_points VARCHAR)
Question: What is the 110m H number when the overall points are 7835 (sb)?
Here is the SQLite query to answer to the question: Wha... | Your SQLite query to find the 110m H number when the overall points are 7835 (sb) looks mostly correct, but we can verify the structure and clarify it a bit. Here's the corrected version of your SQL query:
```sql
SELECT 110 AS _m_h
FROM table_name_85
WHERE overall_points = '7835 (sb)';
```
This query selects the co... | 16,805 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_85 (overall_points VARCHAR)\n\n Question: What is the 110m H number when the overall points are 7835 (sb)?\n\nHere is t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (result VARCHAR, venue VARCHAR, date VARCHAR)
Question: Which Result has a Venue of kinnarps arena, and a Date of thursday, february 19?
Here is the SQLite... | Here is the SQLite query to answer the question:
```
SELECT result FROM table_name_86 WHERE venue = "kinnarps arena" AND date = "thursday, february 19"
``` | 16,806 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_86 (result VARCHAR, venue VARCHAR, date VARCHAR)\n\n Question: Which Result has a Venue of kinnarps arena, and a Date o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (attendance INTEGER, home VARCHAR, round VARCHAR)
Question: Which Attendance has a Home of djurgårdens if, and a Round of 53?
Here is the SQLite query to a... | Here is the SQLite query to answer the question regarding attendance for "djurgårdens if" in round 53:
```
SELECT MAX(attendance) FROM table_name_54 WHERE home = "djurgårdens if" AND round = "53"
``` | 16,807 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_54 (attendance INTEGER, home VARCHAR, round VARCHAR)\n\n Question: Which Attendance has a Home of djurgårdens if, and a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (attendance INTEGER, round VARCHAR, home VARCHAR)
Question: Which Attendance has a Round of 52, and a Home of södertälje sk?
Here is the SQLite query to an... | Here is the SQLite query to answer the question about Attendance, Round, and Home:
```
SELECT MIN(attendance) FROM table_name_67 WHERE round = '52' AND home = 'södertälje sk';
``` | 16,808 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_67 (attendance INTEGER, round VARCHAR, home VARCHAR)\n\n Question: Which Attendance has a Round of 52, and a Home of sö... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (record VARCHAR, attendance VARCHAR)
Question: What is the Record of the game with an Attendance of 70,604?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question about the Record of the game with an Attendance of 70,604:
```
SELECT record FROM table_name_92 WHERE attendance = "70,604";
``` | 16,809 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_92 (record VARCHAR, attendance VARCHAR)\n\n Question: What is the Record of the game with an Attendance of 70,604?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (opponent VARCHAR, record VARCHAR)
Question: Who is the Opponent in the game with a Record of 1–3–0?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question: Who is the Opponent in the game with a Record of 1–3–0?:
```
SELECT opponent FROM table_name_26 WHERE record = "1–3–0";
``` | 16,810 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_26 (opponent VARCHAR, record VARCHAR)\n\n Question: Who is the Opponent in the game with a Record of 1–3–0?\n\nHere is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (record VARCHAR, attendance VARCHAR)
Question: What is the Record of the game with an Attendance of 70,479?
Here is the SQLite query to answer to the quest... | Your SQLite query to find the record of the game with an attendance of 70,479 is correct. Here it is formatted properly:
```
SELECT record FROM table_name_41 WHERE attendance = "70,479";
``` | 16,811 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_41 (record VARCHAR, attendance VARCHAR)\n\n Question: What is the Record of the game with an Attendance of 70,479?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (winning_score VARCHAR, date VARCHAR)
Question: What was the winning score on Aug 21, 1977?
Here is the SQLite query to answer to the question: What was th... | Here is the SQLite query to answer the question about the winning score on Aug 21, 1977:
```
SELECT winning_score FROM table_name_92 WHERE date = "Aug 21, 1977";
``` | 16,812 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_92 (winning_score VARCHAR, date VARCHAR)\n\n Question: What was the winning score on Aug 21, 1977?\n\nHere is the SQLit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (margin_of_victory VARCHAR, tournament VARCHAR)
Question: What's the margin of victory during the Pocono Northeast Classic?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question regarding the margin of victory during the Pocono Northeast Classic:
```
SELECT margin_of_victory FROM table_name_55 WHERE tournament = "Pocono Northeast Classic";
``` | 16,813 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_55 (margin_of_victory VARCHAR, tournament VARCHAR)\n\n Question: What's the margin of victory during the Pocono Northea... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (winning_score VARCHAR, date VARCHAR)
Question: What's the winning score on Feb 12, 1978?
Here is the SQLite query to answer to the question: What's the wi... | Here is the SQLite query to answer the question "What's the winning score on Feb 12, 1978?":
```
SELECT winning_score FROM table_name_49 WHERE date = "Feb 12, 1978";
``` | 16,814 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_49 (winning_score VARCHAR, date VARCHAR)\n\n Question: What's the winning score on Feb 12, 1978?\n\nHere is the SQLite ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (name VARCHAR, year VARCHAR, length VARCHAR)
Question: Which Name has a Year larger than 2001, and a Length of 52 x 20 mins?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question:
```
SELECT name FROM table_name_9 WHERE year > 2001 AND length = "52 x 20 mins"
``` | 16,815 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_9 (name VARCHAR, year VARCHAR, length VARCHAR)\n\n Question: Which Name has a Year larger than 2001, and a Length of 52... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_14 (type VARCHAR, year INTEGER)
Question: What was the type after 2004?
Here is the SQLite query to answer to the question: What was the type after 2004?:
```... | Here is the SQLite query to answer the question "What was the type after 2004?":
```
SELECT type FROM table_name_14 WHERE year > 2004
``` | 16,816 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_14 (type VARCHAR, year INTEGER)\n\n Question: What was the type after 2004?\n\nHere is the SQLite query to answer to th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (relation VARCHAR, year VARCHAR, length VARCHAR)
Question: Which Relation has a Year larger than 2000, and a Length of 8 x 20 mins?
Here is the SQLite quer... | Here is the SQLite query to answer the question about which Relation has a Year larger than 2000, and a Length of 8 x 20 mins:
```
SELECT relation FROM table_name_12 WHERE year > '2000' AND length = '8 x 20 mins';
``` | 16,817 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_12 (relation VARCHAR, year VARCHAR, length VARCHAR)\n\n Question: Which Relation has a Year larger than 2000, and a Len... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (relation VARCHAR, type VARCHAR, name VARCHAR)
Question: Which Relation has a Type of tv, and a Name of ohanami?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question: Which Relation has a Type of tv, and a Name of ohanami?:
```
SELECT relation FROM table_name_71 WHERE type = "tv" AND name = "ohanami"
``` | 16,818 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_71 (relation VARCHAR, type VARCHAR, name VARCHAR)\n\n Question: Which Relation has a Type of tv, and a Name of ohanami?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (majority VARCHAR, clone_independence VARCHAR)
Question: What is the majority when the clone independence is no?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question: What is the majority when the clone independence is no?:
```
SELECT majority FROM table_name_8 WHERE clone_independence = "no";
``` | 16,819 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (majority VARCHAR, clone_independence VARCHAR)\n\n Question: What is the majority when the clone independence is no?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (consistency_ VARCHAR, _participation VARCHAR, pareto_efficiency VARCHAR, condorcet VARCHAR)
Question: what is the consistency & participation when pareto e... | Here's the correct SQLite query to answer your question:
```
SELECT consistency_, _participation FROM table_name_83 WHERE pareto_efficiency = "yes" AND condorcet = "no"
```
In this query, I have used a comma to properly select both `consistency_` and `_participation`. Let me know if you need any further assistance! | 16,820 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_83 (consistency_ VARCHAR, _participation VARCHAR, pareto_efficiency VARCHAR, condorcet VARCHAR)\n\n Question: what is t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (reversal_symmetry VARCHAR, clone_independence VARCHAR, non_dictatorship VARCHAR, consistency_ VARCHAR, _participation VARCHAR)
Question: what is the reversa... | The provided SQLite query has a small syntax issue regarding the condition for both `consistency_` and `_participation`. The correct way to specify that both of those columns should be "no" is to use the `AND` operator for each separately. Here's the corrected query:
```sql
SELECT reversal_symmetry
FROM table_name_1 ... | 16,821 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (reversal_symmetry VARCHAR, clone_independence VARCHAR, non_dictatorship VARCHAR, consistency_ VARCHAR, _participation V... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (monotone VARCHAR, clone_independence VARCHAR, pareto_efficiency VARCHAR, non_dictatorship VARCHAR)
Question: what is the monotone when pareto efficiency is... | Here is the SQLite query to answer the question:
```
SELECT monotone FROM table_name_41 WHERE pareto_efficiency = "yes" AND non_dictatorship = "yes" AND clone_independence = "yes";
``` | 16,822 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_41 (monotone VARCHAR, clone_independence VARCHAR, pareto_efficiency VARCHAR, non_dictatorship VARCHAR)\n\n Question: wh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (draw INTEGER, english_translation VARCHAR)
Question: For the English translation Someone Like You, what is the lowest draw?
Here is the SQLite query to an... | Your SQLite query is almost correct, but you should ensure that the comparison with `english_translation` is case-insensitive to correctly handle any case variations. You can do this by using the `LOWER()` function. Here’s an improved version of your query:
```
SELECT MIN(draw) FROM table_name_76 WHERE LOWER(english_t... | 16,823 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_76 (draw INTEGER, english_translation VARCHAR)\n\n Question: For the English translation Someone Like You, what is the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (points INTEGER, english_translation VARCHAR)
Question: The English translation of Sing has what average points?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about the average points for the English translation "Sing":
```
SELECT AVG(points) FROM table_name_86 WHERE english_translation = "Sing"
``` | 16,824 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_86 (points INTEGER, english_translation VARCHAR)\n\n Question: The English translation of Sing has what average points?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (heat INTEGER, nationality VARCHAR, rank VARCHAR)
Question: What is Germany's lowest heat ranked after 24?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question about Germany's lowest heat ranked after 24:
```
SELECT MIN(heat) FROM table_name_84 WHERE nationality = "germany" AND rank > 24;
``` | 16,825 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_84 (heat INTEGER, nationality VARCHAR, rank VARCHAR)\n\n Question: What is Germany's lowest heat ranked after 24?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (rank VARCHAR, nationality VARCHAR)
Question: What is the rank for Denmark?
Here is the SQLite query to answer to the question: What is the rank for Denmar... | The provided SQL query is not correct for retrieving the rank for Denmark. It counts the rows instead of selecting the rank. Here is the correct query to find the rank for Denmark:
```
SELECT rank FROM table_name_33 WHERE nationality = "Denmark";
```
Please ensure that the casing of "Denmark" matches the entries in ... | 16,826 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_33 (rank VARCHAR, nationality VARCHAR)\n\n Question: What is the rank for Denmark?\n\nHere is the SQLite query to answe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (lane INTEGER, name VARCHAR, rank VARCHAR)
Question: What is the highest lane for Christine Mailliet ranked less than 39?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question regarding the highest lane for Christine Mailliet ranked less than 39:
```
SELECT MAX(lane) FROM table_name_31 WHERE name = "Christine Mailliet" AND rank < 39;
``` | 16,827 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (lane INTEGER, name VARCHAR, rank VARCHAR)\n\n Question: What is the highest lane for Christine Mailliet ranked less... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (title VARCHAR, written_by VARCHAR)
Question: What was the title of the episode written by Robert Haywood?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question about the title of the episode written by Robert Haywood:
```
SELECT title FROM table_name_83 WHERE written_by = "Robert Haywood";
``` | 16,828 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_83 (title VARCHAR, written_by VARCHAR)\n\n Question: What was the title of the episode written by Robert Haywood?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (player VARCHAR, years_at_club VARCHAR, goals VARCHAR, debut_year VARCHAR)
Question: Which Player has Goals larger than 10, and a Debut year smaller than 19... | Here is the SQLite query to answer the question based on the provided database schema:
```
SELECT player
FROM table_name_71
WHERE goals > 10
AND debut_year < 1993
AND years_at_club = '1990–1993';
``` | 16,829 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_71 (player VARCHAR, years_at_club VARCHAR, goals VARCHAR, debut_year VARCHAR)\n\n Question: Which Player has Goals larg... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (goals INTEGER, games VARCHAR, debut_year VARCHAR)
Question: Which Goals have Games of 51, and a Debut year smaller than 1992?
Here is the SQLite query to ... | Here is the SQLite query to answer the question: Which Goals have Games of 51, and a Debut year smaller than 1992?:
```
SELECT MIN(goals) FROM table_name_87 WHERE games = '51' AND debut_year < '1992'
``` | 16,830 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (goals INTEGER, games VARCHAR, debut_year VARCHAR)\n\n Question: Which Goals have Games of 51, and a Debut year smal... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (year_joined INTEGER, enrollment VARCHAR, school VARCHAR)
Question: Which Year Joined has an Enrollment smaller than 726, and a School of tri-west?
Here is... | Here is the SQLite query to answer the question regarding the Year Joined, Enrollment, and School:
```
SELECT year_joined FROM table_name_97 WHERE enrollment < '726' AND school = 'tri-west';
```
Make sure to adjust the data type of the 'enrollment' comparison if needed, as it's defined as VARCHAR in the schema. | 16,831 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_97 (year_joined INTEGER, enrollment VARCHAR, school VARCHAR)\n\n Question: Which Year Joined has an Enrollment smaller ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (enrollment INTEGER, school VARCHAR)
Question: What is lebanon's enrollment?
Here is the SQLite query to answer to the question: What is lebanon's enrollme... | Here is the SQLite query to answer the question about Lebanon's enrollment:
```
SELECT AVG(enrollment) FROM table_name_99 WHERE school = "lebanon"
``` | 16,832 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_99 (enrollment INTEGER, school VARCHAR)\n\n Question: What is lebanon's enrollment?\n\nHere is the SQLite query to answ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (enrollment INTEGER, mascot VARCHAR)
Question: What is the enrollment of the school whose mascot is hot dogs?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question about the enrollment of the school whose mascot is hot dogs:
```sql
SELECT enrollment FROM table_name_53 WHERE mascot = "hot dogs"
``` | 16,833 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_53 (enrollment INTEGER, mascot VARCHAR)\n\n Question: What is the enrollment of the school whose mascot is hot dogs?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (year_joined INTEGER, location VARCHAR)
Question: When did crawfordsville join?
Here is the SQLite query to answer to the question: When did crawfordsville... | Here is the SQLite query to answer the question: When did Crawfordsville join?:
```sql
SELECT MIN(year_joined) FROM table_name_10 WHERE location = "crawfordsville";
```
(Note: I've used `MIN` instead of `MAX` because it seems you are looking for the year that Crawfordsville joined, which is likely the earliest entry... | 16,834 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_10 (year_joined INTEGER, location VARCHAR)\n\n Question: When did crawfordsville join?\n\nHere is the SQLite query to a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (b_score INTEGER, gymnast VARCHAR)
Question: what is the average b score when the gymnast is kōhei uchimura ( jpn )?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question regarding the average b score for the gymnast kōhei uchimura (jpn):
```
SELECT AVG(b_score) FROM table_name_20 WHERE gymnast = "kōhei uchimura ( jpn )"
``` | 16,835 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (b_score INTEGER, gymnast VARCHAR)\n\n Question: what is the average b score when the gymnast is kōhei uchimura ( jp... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (b_score VARCHAR, a_score VARCHAR)
Question: what is the b score when the a score is 6.9?
Here is the SQLite query to answer to the question: what is the b ... | Here is the SQLite query to answer the question about obtaining the b score when the a score is 6.9:
```
SELECT b_score FROM table_name_6 WHERE a_score = '6.9'
```
Note: It's important to wrap the numeric value in quotes because it is stored as a VARCHAR in the database schema. | 16,836 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_6 (b_score VARCHAR, a_score VARCHAR)\n\n Question: what is the b score when the a score is 6.9?\n\nHere is the SQLite q... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (b_score INTEGER, a_score VARCHAR, total VARCHAR)
Question: what is the sum of the b score when the a score is 6.6 and the total is 15.6?
Here is the SQLit... | Here is the SQLite query to answer the question about the sum of the b score when the a score is 6.6 and the total is 15.6:
```
SELECT SUM(b_score) FROM table_name_37 WHERE a_score = '6.6' AND total = '15.6'
``` | 16,837 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_37 (b_score INTEGER, a_score VARCHAR, total VARCHAR)\n\n Question: what is the sum of the b score when the a score is 6... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (first_elected VARCHAR, constiuency VARCHAR, name VARCHAR)
Question: What is Myron Walwyn with a Territorial at-large Constiuency's First Elected Date
Here... | Here is the SQLite query to find Myron Walwyn's first elected date with a Territorial at-large Constituency:
```sql
SELECT first_elected FROM table_name_87 WHERE constiuency = "territorial at-large" AND name = "myron walwyn";
``` | 16,838 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (first_elected VARCHAR, constiuency VARCHAR, name VARCHAR)\n\n Question: What is Myron Walwyn with a Territorial at-... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (party VARCHAR, constiuency VARCHAR)
Question: What is the Party of the council member for the Fifth District?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question about the Party of the council member for the Fifth District:
```
SELECT party FROM table_name_77 WHERE constiuency = "Fifth District";
``` | 16,839 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_77 (party VARCHAR, constiuency VARCHAR)\n\n Question: What is the Party of the council member for the Fifth District?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (total VARCHAR, gold VARCHAR, nation VARCHAR)
Question: What is the medal total when there is 2 gold medals, and Brazil (BRA) is the nation?
Here is the SQL... | It looks like there are a couple of adjustments needed in your SQL query to correctly match the requirements. The value you are comparing to in the `gold` column should be numeric (in most cases), not a string, and you should match the nation precisely using the correct casing. Here's a revised query:
```sql
SELECT to... | 16,840 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_2 (total VARCHAR, gold VARCHAR, nation VARCHAR)\n\n Question: What is the medal total when there is 2 gold medals, and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (nation VARCHAR, silver VARCHAR, bronze VARCHAR)
Question: Which nation has the number of silver medals greater than 1, and bronze medals as 1?
Here is the ... | The SQLite query you provided is almost correct, but since the columns `silver` and `bronze` are defined as `VARCHAR`, you need to convert them to integers for comparison. Here's the corrected query:
```
SELECT nation FROM table_name_7 WHERE CAST(silver AS INTEGER) > 1 AND CAST(bronze AS INTEGER) = 1
```
This will e... | 16,841 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_7 (nation VARCHAR, silver VARCHAR, bronze VARCHAR)\n\n Question: Which nation has the number of silver medals greater t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (total INTEGER, bronze VARCHAR, nation VARCHAR)
Question: What is the least total number of medals when the bronze medals is 1, and Czech Republic (CZE) is ... | Here is the corrected SQLite query to answer the question:
```sql
SELECT MIN(total) FROM table_name_46 WHERE bronze = '1' AND nation = 'Czech Republic (CZE)';
``` | 16,842 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_46 (total INTEGER, bronze VARCHAR, nation VARCHAR)\n\n Question: What is the least total number of medals when the bron... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (nation VARCHAR, gold VARCHAR, bronze VARCHAR)
Question: For what nation is the gold medals 0, and the bronze medals less than 1?
Here is the SQLite query ... | Your SQLite query needs a slight adjustment because the columns `gold` and `bronze` are defined as `VARCHAR`, which means they are stored as strings. Therefore, you should use string comparison instead of numeric comparison. You should also ensure that the condition for "0" is checked as a string. Here's the corrected ... | 16,843 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_28 (nation VARCHAR, gold VARCHAR, bronze VARCHAR)\n\n Question: For what nation is the gold medals 0, and the bronze me... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (gold INTEGER, bronze VARCHAR, silver VARCHAR)
Question: What is the most gold medals when the bronze medals were 0, and the silver medals greater than 1?
... | Your provided SQLite query contains a small mistake. In SQLite, the `silver` column is defined as a `VARCHAR` data type, so comparing it to an integer (1) is not valid. You should treat it as a string.
If you are looking for rows where the `silver` column contains values greater than `1`, you might need to compare it ... | 16,844 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_75 (gold INTEGER, bronze VARCHAR, silver VARCHAR)\n\n Question: What is the most gold medals when the bronze medals wer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (bronze INTEGER, gold VARCHAR, nation VARCHAR, silver VARCHAR, rank VARCHAR)
Question: What is the total bronze medals when the silver medals is 0, and 1 is... | Your SQLite query is almost correct, but it seems there are a couple of adjustments needed regarding the spelling of the nation and the comparison for the `silver` column, since `silver` is a VARCHAR type based on the schema provided. We will need to ensure that the comparison reflects this.
Here is the corrected que... | 16,845 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_28 (bronze INTEGER, gold VARCHAR, nation VARCHAR, silver VARCHAR, rank VARCHAR)\n\n Question: What is the total bronze ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (nation VARCHAR, total VARCHAR, silver VARCHAR, gold VARCHAR)
Question: What Nation has more than 4 silver, more than 3 gold and 18 total medals?
Here is t... | Here is the corrected SQLite query wrapped in code blocks to answer the question about the nation with more than 4 silver, more than 3 gold, and exactly 18 total medals:
```
SELECT nation
FROM table_name_76
WHERE CAST(silver AS INTEGER) > 4
AND CAST(gold AS INTEGER) > 3
AND CAST(total AS INTEGER) = 18;
```
T... | 16,846 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_76 (nation VARCHAR, total VARCHAR, silver VARCHAR, gold VARCHAR)\n\n Question: What Nation has more than 4 silver, more... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (runners_up VARCHAR, winner VARCHAR)
Question: Who is listed as the Runners-up that also has a Winner of Hajduk Split (3)?
Here is the SQLite query to answ... | Your SQLite query is correct for retrieving the Runners-up associated with the Winner "Hajduk Split (3)". Here it is formatted correctly in a code block:
```
SELECT runners_up FROM table_name_63 WHERE winner = "Hajduk Split (3)";
```
Make sure that the capitalization and spacing match exactly with how the data is st... | 16,847 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_63 (runners_up VARCHAR, winner VARCHAR)\n\n Question: Who is listed as the Runners-up that also has a Winner of Hajduk ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (japanese_title VARCHAR, tv_station VARCHAR, romaji_title VARCHAR)
Question: What is the Japanese Title of the Episode on NTV Station with a Romaji Title of... | Here is the SQLite query to answer the question regarding the Japanese Title of the Episode on NTV Station with a Romaji Title of Kuitan 2:
```
SELECT japanese_title FROM table_name_42 WHERE tv_station = "ntv" AND romaji_title = "kuitan 2";
``` | 16,848 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_42 (japanese_title VARCHAR, tv_station VARCHAR, romaji_title VARCHAR)\n\n Question: What is the Japanese Title of the E... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (average_ratings VARCHAR, japanese_title VARCHAR, episodes VARCHAR, tv_station VARCHAR)
Question: What are the Ratings of Japanese Title プロポーズ大作戦 episode 11... | Here is the SQLite query you requested, properly formatted:
```
SELECT average_ratings FROM table_name_32 WHERE episodes = "11" AND tv_station = "Fuji" AND japanese_title = "プロポーズ大作戦";
``` | 16,849 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (average_ratings VARCHAR, japanese_title VARCHAR, episodes VARCHAR, tv_station VARCHAR)\n\n Question: What are the R... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (episodes VARCHAR, average_ratings VARCHAR, tv_station VARCHAR)
Question: What Episode on TV Asahi Station has Rating of 12.0%?
Here is the SQLite query to... | Here is the SQLite query to answer the question "What Episode on TV Asahi Station has Rating of 12.0%?":
```sql
SELECT episodes FROM table_name_17 WHERE average_ratings = '12.0%' AND tv_station = 'tv asahi';
``` | 16,850 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_17 (episodes VARCHAR, average_ratings VARCHAR, tv_station VARCHAR)\n\n Question: What Episode on TV Asahi Station has R... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (tv_station VARCHAR, romaji_title VARCHAR)
Question: What is the TV Station of the episode with a Romaji Title of Tokkyuu Tanaka Sangou?
Here is the SQLite... | Here is the SQLite query to answer the question regarding the TV Station of the episode with the Romaji Title of "Tokkyuu Tanaka Sangou":
```
SELECT tv_station FROM table_name_84 WHERE romaji_title = "Tokkyuu Tanaka Sangou";
``` | 16,851 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_84 (tv_station VARCHAR, romaji_title VARCHAR)\n\n Question: What is the TV Station of the episode with a Romaji Title o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (class VARCHAR, rank VARCHAR)
Question: Which class had a rank of 2nd?
Here is the SQLite query to answer to the question: Which class had a rank of 2nd?:
... | Here is the SQLite query to answer the question: Which class had a rank of 2nd?:
```
SELECT class FROM table_name_52 WHERE rank = "2nd";
``` | 16,852 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_52 (class VARCHAR, rank VARCHAR)\n\n Question: Which class had a rank of 2nd?\n\nHere is the SQLite query to answer to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (wins VARCHAR, class VARCHAR, year VARCHAR)
Question: How many wins did the 500cc class have in 1979?
Here is the SQLite query to answer to the question: H... | Your query is almost correct, but to get the total number of wins for the 500cc class in 1979, you should use an aggregate function like `SUM()` or simply count the records. Here's the corrected SQLite query:
```
SELECT SUM(wins) FROM table_name_20 WHERE class = "500cc" AND year = "1979"
```
If `wins` is stored as a ... | 16,853 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (wins VARCHAR, class VARCHAR, year VARCHAR)\n\n Question: How many wins did the 500cc class have in 1979?\n\nHere is... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (points INTEGER, rank VARCHAR, wins VARCHAR)
Question: What is the total of the points for wins under 6 and a rank of 2nd?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question about the total points for wins under 6 and a rank of 2nd:
```
SELECT SUM(points) FROM table_name_59 WHERE rank = "2nd" AND CAST(wins AS INTEGER) < 6
``` | 16,854 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (points INTEGER, rank VARCHAR, wins VARCHAR)\n\n Question: What is the total of the points for wins under 6 and a ra... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (class VARCHAR, points VARCHAR)
Question: Which class had 110 points?
Here is the SQLite query to answer to the question: Which class had 110 points?:
```
... | Your SQLite query has a small issue because the `points` column is defined as a `VARCHAR`, so the value `110` should be enclosed in quotes. Here’s the corrected query:
```
SELECT class FROM table_name_23 WHERE points = '110';
``` | 16,855 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (class VARCHAR, points VARCHAR)\n\n Question: Which class had 110 points?\n\nHere is the SQLite query to answer to t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (year INTEGER, points VARCHAR)
Question: What is the average year having 142 points?
Here is the SQLite query to answer to the question: What is the averag... | Your SQLite query needs a minor adjustment. Since the `points` column is defined as a `VARCHAR`, the comparison should be made with a string. Here’s the corrected query:
```sql
SELECT AVG(year) FROM table_name_61 WHERE points = '142'
```
This change ensures that the value used for comparison is treated as a string, ... | 16,856 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_61 (year INTEGER, points VARCHAR)\n\n Question: What is the average year having 142 points?\n\nHere is the SQLite query... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (date VARCHAR, nationality VARCHAR, games VARCHAR)
Question: On what date were the 1997 Bridgetown games in which a Martinique girl competed?
Here is the S... | Here is the SQLite query to answer the question about the date of the 1997 Bridgetown games in which a Martinique girl competed:
```
SELECT date FROM table_name_20 WHERE nationality = "martinique" AND games = "1997 bridgetown";
``` | 16,857 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (date VARCHAR, nationality VARCHAR, games VARCHAR)\n\n Question: On what date were the 1997 Bridgetown games in whic... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (date VARCHAR, record VARCHAR)
Question: What is the date of the games that saw a record of 43.66 m?
Here is the SQLite query to answer to the question: Wh... | Sure! Here is the SQLite query to find the date of the games that saw a record of 43.66 m:
```
SELECT date FROM table_name_25 WHERE record = "43.66 m"
``` | 16,858 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_25 (date VARCHAR, record VARCHAR)\n\n Question: What is the date of the games that saw a record of 43.66 m?\n\nHere is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (date VARCHAR, record VARCHAR)
Question: On which date was the record of 43.89 m set?
Here is the SQLite query to answer to the question: On which date was... | Your SQLite query to find the date on which the record of 43.89 m was set is correct. Here it is wrapped in the requested format:
```
SELECT date FROM table_name_35 WHERE record = "43.89 m"
``` | 16,859 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_35 (date VARCHAR, record VARCHAR)\n\n Question: On which date was the record of 43.89 m set?\n\nHere is the SQLite quer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (games VARCHAR, event VARCHAR)
Question: Which games saw a record set in the long jump event?
Here is the SQLite query to answer to the question: Which gam... | Here is the SQLite query to answer the question about which games saw a record set in the long jump event:
```
SELECT games FROM table_name_94 WHERE event = 'long jump';
``` | 16,860 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_94 (games VARCHAR, event VARCHAR)\n\n Question: Which games saw a record set in the long jump event?\n\nHere is the SQL... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (manufacturer VARCHAR, year_made VARCHAR)
Question: Which manufacturer has a year made of 4-6-0 — ooooo — ten-wheeler?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question about which manufacturer has a year made of "4-6-0 — ooooo — ten-wheeler":
```
SELECT manufacturer FROM table_name_22 WHERE year_made = "4-6-0 — ooooo — ten-wheeler"
``` | 16,861 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_22 (manufacturer VARCHAR, year_made VARCHAR)\n\n Question: Which manufacturer has a year made of 4-6-0 — ooooo — ten-wh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (quantity_made VARCHAR, quantity_preserved VARCHAR)
Question: What is the quantity made number for the quantity preserved 4-6-0 — ooooo — ten-wheeler?
Here... | Here is the SQLite query to answer the question:
```
SELECT quantity_made FROM table_name_65 WHERE quantity_preserved = "4-6-0 — ooooo — ten-wheeler";
``` | 16,862 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_65 (quantity_made VARCHAR, quantity_preserved VARCHAR)\n\n Question: What is the quantity made number for the quantity ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (average INTEGER, tally VARCHAR, total VARCHAR)
Question: Which Average has a Tally of 2-12, and a Total larger than 18?
Here is the SQLite query to answer... | The provided SQL query has a couple of issues. First, the `AVG` function is meant to calculate the average of a set of numbers, but it seems you are looking for records that meet two specific criteria (the `tally` and `total`).
Instead, you should select the records where the `tally` is "2-12" and the `total` is grea... | 16,863 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (average INTEGER, tally VARCHAR, total VARCHAR)\n\n Question: Which Average has a Tally of 2-12, and a Total larger ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (ihsaa_class VARCHAR, school VARCHAR)
Question: What is the ISHAA class for the International School?
Here is the SQLite query to answer to the question: W... | Your query is almost correct, but the school name should use the full name "International School" as specified in your question. Here’s the corrected SQLite query wrapped in the appropriate code block:
```
SELECT ihsaa_class FROM table_name_64 WHERE school = "International School";
``` | 16,864 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (ihsaa_class VARCHAR, school VARCHAR)\n\n Question: What is the ISHAA class for the International School?\n\nHere is... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (school VARCHAR, county VARCHAR)
Question: What school is in 41 Johnson county?
Here is the SQLite query to answer to the question: What school is in 41 Jo... | Here is the SQLite query to answer the question "What school is in 41 Johnson county?":
```sql
SELECT school FROM table_name_56 WHERE county = "41 Johnson";
``` | 16,865 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_56 (school VARCHAR, county VARCHAR)\n\n Question: What school is in 41 Johnson county?\n\nHere is the SQLite query to a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (mascot VARCHAR, size VARCHAR, county VARCHAR)
Question: What is the mascot for the team smaller than 154 from 49 Marion?
Here is the SQLite query to answe... | Your SQLite query is almost correct, but it needs to ensure that the size column is treated as a numeric value for correct comparison. In addition, it's important to ensure the casing matches when filtering by county. Here’s the corrected query:
```sql
SELECT mascot FROM table_name_21 WHERE CAST(size AS INTEGER) < 154... | 16,866 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_21 (mascot VARCHAR, size VARCHAR, county VARCHAR)\n\n Question: What is the mascot for the team smaller than 154 from 4... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (size INTEGER, school VARCHAR)
Question: What is the size of the International school?
Here is the SQLite query to answer to the question: What is the size... | Here is the SQLite query to answer the question about the size of the International school:
```
SELECT size FROM table_name_94 WHERE school = "International";
``` | 16,867 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_94 (size INTEGER, school VARCHAR)\n\n Question: What is the size of the International school?\n\nHere is the SQLite que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (score VARCHAR, to_par VARCHAR, player VARCHAR)
Question: What was the score that has a To par of −3, for Branden Grace?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question:
```
SELECT score FROM table_name_94 WHERE to_par = "−3" AND player = "Branden Grace"
``` | 16,868 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_94 (score VARCHAR, to_par VARCHAR, player VARCHAR)\n\n Question: What was the score that has a To par of −3, for Brande... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (player VARCHAR, country VARCHAR, score VARCHAR, place VARCHAR)
Question: What player has a score less than 66, and a Place of t2, in the United States?
He... | Your query looks mostly correct but there may be an issue with how the `score` is handled since it is defined as a `VARCHAR`. If the data in the `score` column is stored as text that represents numbers, you'll need to convert it to a numeric type for the comparison. Here's the revised query:
```
SELECT player FROM tab... | 16,869 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (player VARCHAR, country VARCHAR, score VARCHAR, place VARCHAR)\n\n Question: What player has a score less than 66, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (score INTEGER, player VARCHAR, to_par VARCHAR, country VARCHAR)
Question: What is the score when To par was −3, in South Africa, for Richard Sterne?
Here ... | Here is the SQLite query to answer the question about the score when To par was −3, in South Africa, for Richard Sterne:
```
SELECT score FROM table_name_74 WHERE to_par = "−3" AND country = "south africa" AND player = "richard sterne"
``` | 16,870 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (score INTEGER, player VARCHAR, to_par VARCHAR, country VARCHAR)\n\n Question: What is the score when To par was −3,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (goals_for INTEGER, games_played INTEGER)
Question: What is the average number of goals for games played that total more than 8?
Here is the SQLite query t... | To calculate the average number of goals for the games played that total more than 8, the query you provided is almost correct but needs a slight modification to compute the average goals per game instead of just averaging the total goals. Here’s the corrected SQLite query:
```sql
SELECT AVG(goals_for * 1.0 / games_pl... | 16,871 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_75 (goals_for INTEGER, games_played INTEGER)\n\n Question: What is the average number of goals for games played that to... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (wins INTEGER, losses VARCHAR, goals_against VARCHAR)
Question: What is the sum of wins and the sum of losses less than 4 for teams larger than 20?
Here is... | The given SQLite query is almost correct, but it doesn't account for summing the losses separately and properly checks the conditions based on the schema. Here’s the corrected version of the query that will sum the wins and the losses separately under the specified conditions:
```sql
SELECT SUM(wins) AS total_wins, SU... | 16,872 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_55 (wins INTEGER, losses VARCHAR, goals_against VARCHAR)\n\n Question: What is the sum of wins and the sum of losses le... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (japan VARCHAR, total VARCHAR)
Question: What are the sales in Japan for the release totaling 1.82 million?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question about the sales in Japan for the release totaling 1.82 million:
```
SELECT japan FROM table_name_88 WHERE total = "1.82 million"
``` | 16,873 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (japan VARCHAR, total VARCHAR)\n\n Question: What are the sales in Japan for the release totaling 1.82 million?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (date VARCHAR, japan VARCHAR)
Question: Which date had Japanese sales of 0.61 million?
Here is the SQLite query to answer to the question: Which date had J... | ```sql
SELECT date FROM table_name_93 WHERE japan = '0.61 million';
``` | 16,874 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_93 (date VARCHAR, japan VARCHAR)\n\n Question: Which date had Japanese sales of 0.61 million?\n\nHere is the SQLite que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (date VARCHAR, japan VARCHAR)
Question: Which date had Japanese sales of 0.57 million?
Here is the SQLite query to answer to the question: Which date had J... | Your SQLite query looks good for retrieving the date with Japanese sales of 0.57 million. Here’s the query wrapped in the code block as requested:
```
SELECT date FROM table_name_60 WHERE japan = "0.57 million"
``` | 16,875 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_60 (date VARCHAR, japan VARCHAR)\n\n Question: Which date had Japanese sales of 0.57 million?\n\nHere is the SQLite que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (date VARCHAR, japan VARCHAR)
Question: Which date had Japanese sales of 0.59 million?
Here is the SQLite query to answer to the question: Which date had J... | Your SQLite query is almost correct. However, it's important to ensure that the sales value is compared correctly. If the values in the `japan` column are stored as strings, your query will work as is. But if the actual values are stored as numeric types without the "million" text, the query would need to be adjusted. ... | 16,876 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (date VARCHAR, japan VARCHAR)\n\n Question: Which date had Japanese sales of 0.59 million?\n\nHere is the SQLite que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (attendance INTEGER, week VARCHAR)
Question: what is the highest attendance for week 6?
Here is the SQLite query to answer to the question: what is the hig... | Here is the SQL query to find the highest attendance for week 6:
```sql
SELECT MAX(attendance) FROM table_name_82 WHERE week = '6';
``` | 16,877 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_82 (attendance INTEGER, week VARCHAR)\n\n Question: what is the highest attendance for week 6?\n\nHere is the SQLite qu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (week INTEGER, date VARCHAR, attendance VARCHAR)
Question: what is the highest week when the date is october 6, 1975 and attendance is higher than 79,384?
... | It looks like there is a small error in your SQL query regarding the condition that checks for the attendance value. The correct SQL syntax should use the numeric value without `OFFSET`. Here's the corrected version of your SQLite query:
```sql
SELECT MAX(week)
FROM table_name_80
WHERE date = "october 6, 1975" AND a... | 16,878 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_80 (week INTEGER, date VARCHAR, attendance VARCHAR)\n\n Question: what is the highest week when the date is october 6, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (geo_id INTEGER, water__sqmi_ VARCHAR, township VARCHAR, land___sqmi__ VARCHAR, latitude VARCHAR)
Question: what is the geo id when the land (sqmi) is less ... | Your query contains a small mistake in terms of what you intend to retrieve. The question asks for the `geo_id`, but the query uses `SUM(geo_id)`, which would return the sum of all `geo_id`s matching the criteria instead of individual `geo_id`s. If you want to retrieve all matching `geo_id`s, you should use `SELECT geo... | 16,879 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_21 (geo_id INTEGER, water__sqmi_ VARCHAR, township VARCHAR, land___sqmi__ VARCHAR, latitude VARCHAR)\n\n Question: what... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (township VARCHAR, latitude VARCHAR, land___sqmi__ VARCHAR, geo_id VARCHAR)
Question: what is the township when the land (sqmi) is more than 36.112, the geo... | Here is the SQLite query to answer the question:
```
SELECT township FROM table_name_20 WHERE land___sqmi__ > 36.112 AND geo_id > 3801985060 AND latitude = 46.062384
``` | 16,880 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (township VARCHAR, latitude VARCHAR, land___sqmi__ VARCHAR, geo_id VARCHAR)\n\n Question: what is the township when ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (longitude INTEGER, water__sqmi_ VARCHAR, ansi_code VARCHAR)
Question: what is the longitude when the water (sqmi) is 0.317 and the ansi code is higher than... | Your provided query contains a few issues; primarily, it averages the longitude values instead of selecting the specific longitude that meets the criteria. If you want to retrieve the longitude values directly, you should use a simple selection instead of an aggregate function like AVG. Here is the corrected query:
``... | 16,881 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_75 (longitude INTEGER, water__sqmi_ VARCHAR, ansi_code VARCHAR)\n\n Question: what is the longitude when the water (sqm... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (county VARCHAR, geo_id VARCHAR, latitude VARCHAR, ansi_code VARCHAR)
Question: what is the county when the latitude is more than 48.581299, ansi code is mo... | Here is the SQLite query to answer the question:
```
SELECT county FROM table_name_74 WHERE latitude > 48.581299 AND ansi_code > 1037103 AND geo_id = '3801985060'
``` | 16,882 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (county VARCHAR, geo_id VARCHAR, latitude VARCHAR, ansi_code VARCHAR)\n\n Question: what is the county when the lati... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (longitude INTEGER, county VARCHAR, water__sqmi_ VARCHAR)
Question: what is the highest longitude for county mountrail and the water (sqmi) is less than 0.0... | Here is the SQLite query to find the highest longitude for county Mountrail where the water (sqmi) is less than 0.075:
```
SELECT MAX(longitude) FROM table_name_38 WHERE county = "mountrail" AND water__sqmi_ < 0.075
``` | 16,883 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (longitude INTEGER, county VARCHAR, water__sqmi_ VARCHAR)\n\n Question: what is the highest longitude for county mou... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (nation VARCHAR, rank VARCHAR, gold VARCHAR, bronze VARCHAR)
Question: What is the nation when gold is 0, bronze is more than 0 and rank is 16?
Here is the... | Here is the SQLite query to answer the question based on the provided schema:
```
SELECT nation FROM table_name_98 WHERE gold = '0' AND bronze > '0' AND rank = '16';
``` | 16,884 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_98 (nation VARCHAR, rank VARCHAR, gold VARCHAR, bronze VARCHAR)\n\n Question: What is the nation when gold is 0, bronze... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (silver INTEGER, nation VARCHAR, gold VARCHAR)
Question: what is the silver when the nation is syria (syr) and gold is more than 0?
Here is the SQLite quer... | Sure! Below is the corrected SQLite query to answer the question regarding the `silver` values for the nation "syria (syr)" with `gold` greater than 0:
```sql
SELECT SUM(silver) FROM table_name_38 WHERE nation = "syria (syr)" AND gold > '0'
```
Note: Ensure that the column type for `gold` is appropriate for the cond... | 16,885 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (silver INTEGER, nation VARCHAR, gold VARCHAR)\n\n Question: what is the silver when the nation is syria (syr) and g... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (gold INTEGER, rank VARCHAR, silver VARCHAR)
Question: what is the average gold when rank is total and silver is more than 20?
Here is the SQLite query to ... | Your SQLite query is almost correct, but since the column `silver` is defined as a `VARCHAR`, you'll need to cast it to an integer before performing the comparison. Here’s the corrected query:
```
SELECT AVG(gold) FROM table_name_32 WHERE rank = "total" AND CAST(silver AS INTEGER) > 20
``` | 16,886 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (gold INTEGER, rank VARCHAR, silver VARCHAR)\n\n Question: what is the average gold when rank is total and silver is... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (silver INTEGER, nation VARCHAR, gold VARCHAR, bronze VARCHAR, total VARCHAR)
Question: what is the most silver when bronze is more than 0, total is more th... | Here is the SQLite query to answer the question regarding the most silver when specific conditions are met:
```
SELECT MAX(silver)
FROM table_name_62
WHERE bronze > 0 AND total > 1 AND gold > 0 AND nation = "china (chn)";
``` | 16,887 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_62 (silver INTEGER, nation VARCHAR, gold VARCHAR, bronze VARCHAR, total VARCHAR)\n\n Question: what is the most silver ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (venue VARCHAR, event VARCHAR, competition VARCHAR)
Question: Where was the London Marathon held?
Here is the SQLite query to answer to the question: Where... | Here is the SQLite query to answer the question: Where was the London Marathon held?:
```sql
SELECT venue FROM table_name_19 WHERE event = "marathon" AND competition = "london marathon";
``` | 16,888 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_19 (venue VARCHAR, event VARCHAR, competition VARCHAR)\n\n Question: Where was the London Marathon held?\n\nHere is the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (year VARCHAR, venue VARCHAR)
Question: In what years did Salina Kosgei compete in Singapore?
Here is the SQLite query to answer to the question: In what y... | The provided query will count the number of years Salina Kosgei competed in Singapore, but it does not directly answer the question about which specific years she competed there. To retrieve the years specifically, you should select the distinct years instead. Here’s the correct SQLite query:
```sql
SELECT DISTINCT ye... | 16,889 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (year VARCHAR, venue VARCHAR)\n\n Question: In what years did Salina Kosgei compete in Singapore?\n\nHere is the SQL... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (position VARCHAR, competition VARCHAR)
Question: In what position did Salina Kosgei finish in the Tokyo Marathon?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about Salina Kosgei's finishing position in the Tokyo Marathon:
```sql
SELECT position FROM table_name_23 WHERE competition = "tokyo marathon" AND position LIKE "%Salina Kosgei%";
```
(Note: If you need to filter by the athlete's name specifically, you may need to adju... | 16,890 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (position VARCHAR, competition VARCHAR)\n\n Question: In what position did Salina Kosgei finish in the Tokyo Maratho... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (heat INTEGER, rank VARCHAR, time VARCHAR)
Question: What is the Heat of the 34 Rank swimmer with a Time of 49.49 or less?
Here is the SQLite query to answ... | The provided SQL query is almost correctly structured to find the average heat of the rank 34 swimmer with a time of 49.49 or less. However, if you are looking for the specific heat rather than the average, you should just select the heat directly without using the AVG function. Here’s the adjusted query:
```sql
SELEC... | 16,891 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_97 (heat INTEGER, rank VARCHAR, time VARCHAR)\n\n Question: What is the Heat of the 34 Rank swimmer with a Time of 49.4... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (time VARCHAR, name VARCHAR, heat VARCHAR)
Question: What is Dominik Meichtry's Time in Heat 7 or lower?
Here is the SQLite query to answer to the question... | To find Dominik Meichtry's time in Heat 7 or lower, you need to select the `time` field from the table where the `name` matches "Dominik Meichtry" and the `heat` is less than or equal to 7. Your initial query counts the occurrences instead of retrieving the `time`. Here's the correct SQL query:
```
SELECT time FROM ta... | 16,892 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_24 (time VARCHAR, name VARCHAR, heat VARCHAR)\n\n Question: What is Dominik Meichtry's Time in Heat 7 or lower?\n\nHere... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (comp VARCHAR, games INTEGER)
Question: What is the comp for games less than 2?
Here is the SQLite query to answer to the question: What is the comp for ga... | Here is the SQLite query to answer the question: What is the comp for games less than 2?:
```
SELECT comp FROM table_name_63 WHERE games < 2
``` | 16,893 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_63 (comp VARCHAR, games INTEGER)\n\n Question: What is the comp for games less than 2?\n\nHere is the SQLite query to a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (comp INTEGER, rating VARCHAR, yards VARCHAR)
Question: What is the highest comp for ratings less than 52.8 and yards less than 0?
Here is the SQLite query... | Your SQLite query is almost correct, but it seems there might be a type mismatch, as `yards` is defined as a `VARCHAR`. To make sure you're comparing the `yards` correctly as a number, you need to cast or convert it to a numeric type. Here's the corrected version of the query:
```sql
SELECT MAX(comp) FROM table_name_9... | 16,894 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_97 (comp INTEGER, rating VARCHAR, yards VARCHAR)\n\n Question: What is the highest comp for ratings less than 52.8 and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (yards INTEGER, rating VARCHAR)
Question: What is the sum of yards for a 118.7 rating?
Here is the SQLite query to answer to the question: What is the sum ... | Your SQLite query is almost correct, but since `rating` is defined as a `VARCHAR`, the value `118.7` should be wrapped in quotes. Here is the corrected query:
```
SELECT SUM(yards) FROM table_name_43 WHERE rating = '118.7'
``` | 16,895 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_43 (yards INTEGER, rating VARCHAR)\n\n Question: What is the sum of yards for a 118.7 rating?\n\nHere is the SQLite que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (yards INTEGER, rating VARCHAR, games VARCHAR)
Question: What is the highest yards for a rating larger than 52.8 and more than 13 games?
Here is the SQLite... | The SQLite query to find the highest yards for a rating larger than 52.8 and for cases where the number of games is more than 13 is as follows:
```
SELECT MAX(yards) FROM table_name_47 WHERE rating > 52.8 AND games > 13
``` | 16,896 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_47 (yards INTEGER, rating VARCHAR, games VARCHAR)\n\n Question: What is the highest yards for a rating larger than 52.8... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (release_date VARCHAR, release_price___usd__ VARCHAR, turbo VARCHAR)
Question: What is the release date when the release price (usd) is $346 and the turbo i... | Here is the SQLite query to answer the question about the release date when the release price (USD) is $346 and the turbo is 9/11:
```
SELECT release_date FROM table_name_23 WHERE release_price___usd__ = "$346" AND turbo = "9/11"
``` | 16,897 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (release_date VARCHAR, release_price___usd__ VARCHAR, turbo VARCHAR)\n\n Question: What is the release date when the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (i_o_bus VARCHAR, sspec_number VARCHAR)
Question: what is the i/o bus when the sspec numebr is sr0n5(l1)?
Here is the SQLite query to answer to the questio... | Your provided SQLite query appears correct for the given question. Here it is wrapped as requested:
```
SELECT i_o_bus FROM table_name_28 WHERE sspec_number = "sr0n5(l1)"
``` | 16,898 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_28 (i_o_bus VARCHAR, sspec_number VARCHAR)\n\n Question: what is the i/o bus when the sspec numebr is sr0n5(l1)?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (l3_cache VARCHAR, sspec_number VARCHAR)
Question: What is the l3 cache when the sspec number is sr0r2(l1)sr0t6(l1)?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question regarding the L3 cache for the provided SSPEC number:
```
SELECT l3_cache FROM table_name_88 WHERE sspec_number = "sr0r2(l1)sr0t6(l1)"
``` | 16,899 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (l3_cache VARCHAR, sspec_number VARCHAR)\n\n Question: What is the l3 cache when the sspec number is sr0r2(l1)sr0t6(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.