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_91 (city VARCHAR, score VARCHAR, result VARCHAR, competition VARCHAR)
Question: Which City has a Result of w, and a Competition of international friendly (unof... | Here is the SQLite query to answer the question:
```
SELECT city FROM table_name_91 WHERE result = 'w' AND competition = 'international friendly (unofficial match)' AND score = '1-0';
``` | 46,600 | [
{
"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_91 (city VARCHAR, score VARCHAR, result VARCHAR, competition VARCHAR)\n\n Question: Which City has a Result of w, 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_94 (date VARCHAR, result VARCHAR, score VARCHAR)
Question: Which Date has a Result of w, and a Score of 3-0?
Here is the SQLite query to answer to the questio... | Here is the SQLite query you provided, wrapped in code formatting:
```
SELECT date FROM table_name_94 WHERE result = "w" AND score = "3-0"
``` | 46,601 | [
{
"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 (date VARCHAR, result VARCHAR, score VARCHAR)\n\n Question: Which Date has a Result of w, and a Score of 3-0?\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_39 (city VARCHAR, date VARCHAR)
Question: Which City has a Date of june 9, 1976?
Here is the SQLite query to answer to the question: Which City has a Date of ... | Here is the SQLite query to answer the question: Which City has a Date of June 9, 1976?:
```
SELECT city FROM table_name_39 WHERE date = "june 9, 1976"
``` | 46,602 | [
{
"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_39 (city VARCHAR, date VARCHAR)\n\n Question: Which City has a Date of june 9, 1976?\n\nHere is the SQLite query to ans... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (city VARCHAR, date VARCHAR)
Question: Which City has a Date of may 19, 1976?
Here is the SQLite query to answer to the question: Which City has a Date of ... | Here is the SQLite query to answer the question: Which City has a Date of may 19, 1976?:
```
SELECT city FROM table_name_23 WHERE date = "may 19, 1976";
``` | 46,603 | [
{
"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 (city VARCHAR, date VARCHAR)\n\n Question: Which City has a Date of may 19, 1976?\n\nHere is the SQLite query to ans... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (laps VARCHAR, driver VARCHAR)
Question: What are the total number of laps for Tom Bridger?
Here is the SQLite query to answer to the question: What are th... | Here is the SQLite query to calculate the total number of laps for Tom Bridger:
```
SELECT SUM(CAST(laps AS INTEGER)) FROM table_name_63 WHERE driver = "Tom Bridger"
```
This query assumes that the `laps` column contains numeric values stored as strings and sums them up, filtering for the driver "Tom Bridger". | 46,604 | [
{
"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 (laps VARCHAR, driver VARCHAR)\n\n Question: What are the total number of laps for Tom Bridger?\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_68 (laps INTEGER, driver VARCHAR)
Question: What are the lowest laps of Graham Hill?
Here is the SQLite query to answer to the question: What are the lowest l... | ```sql
SELECT MIN(laps) FROM table_name_68 WHERE driver = "Graham Hill";
``` | 46,605 | [
{
"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_68 (laps INTEGER, driver VARCHAR)\n\n Question: What are the lowest laps of Graham Hill?\n\nHere is the SQLite query to... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (laps INTEGER, grid VARCHAR)
Question: What are the lowest laps of grid 17?
Here is the SQLite query to answer to the question: What are the lowest laps of... | Here is the SQLite query to answer the question about the lowest laps of grid 17:
```
SELECT MIN(laps) FROM table_name_69 WHERE grid = '17'
``` | 46,606 | [
{
"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_69 (laps INTEGER, grid VARCHAR)\n\n Question: What are the lowest laps of grid 17?\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_91 (avg_g INTEGER, loss VARCHAR, gain VARCHAR, name VARCHAR)
Question: Which Avg/G has a Gain of 16, and a Name of barnes, freddie, and a Loss smaller than 2?
... | Your query has a few issues regarding the condition for the `name` field and the way you're comparing the `gain`. Here's the corrected version:
1. If you're checking for `name` being `barnes` or `freddie`, you should use the `IN` clause.
2. Make sure to compare `gain` with `16` correctly based on the data type (it's a... | 46,607 | [
{
"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_91 (avg_g INTEGER, loss VARCHAR, gain VARCHAR, name VARCHAR)\n\n Question: Which Avg/G has a Gain of 16, and a Name of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (long INTEGER, gain VARCHAR, loss VARCHAR)
Question: Which average Long has a Gain smaller than 16, and a Loss smaller than 6?
Here is the SQLite query to ... | Here is the SQLite query wrapped in code blocks:
```
SELECT AVG(long) FROM table_name_51 WHERE gain < '16' AND loss < '6';
```
Please note that since `gain` and `loss` are defined as `VARCHAR`, it is treated as a string comparison. If you want to perform numerical comparisons, you may need to cast them to integers. ... | 46,608 | [
{
"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_51 (long INTEGER, gain VARCHAR, loss VARCHAR)\n\n Question: Which average Long has a Gain smaller than 16, and a Loss s... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (gain INTEGER, long VARCHAR, name VARCHAR, loss VARCHAR, avg_g VARCHAR)
Question: Which Gain is the lowest one that has a Loss larger than 2, and an Avg/G l... | Here is the SQLite query wrapped in the specified format:
```
SELECT MIN(gain)
FROM table_name_84
WHERE loss > 2
AND avg_g > -6
AND name = "sheehan, tyler"
AND long > 11;
``` | 46,609 | [
{
"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 (gain INTEGER, long VARCHAR, name VARCHAR, loss VARCHAR, avg_g VARCHAR)\n\n Question: Which Gain is the lowest one t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (avg_g INTEGER, name VARCHAR, gain VARCHAR, long VARCHAR, loss VARCHAR)
Question: Which Avg/G is the lowest one that has a Long larger than 8, and a Loss sm... | Here is the SQLite query to answer the question:
```
SELECT MIN(avg_g) FROM table_name_52 WHERE long > 8 AND loss < 34 AND gain > 16 AND name = "bullock, chris";
``` | 46,610 | [
{
"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 (avg_g INTEGER, name VARCHAR, gain VARCHAR, long VARCHAR, loss VARCHAR)\n\n Question: Which Avg/G is the lowest one ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (loss INTEGER, name VARCHAR, long VARCHAR)
Question: Which Loss has a Name of bullock, chris, and a Long smaller than 36?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question regarding the losses for a name of "bullock, chris" and a long smaller than 36:
```sql
SELECT SUM(loss) FROM table_name_72 WHERE name = "bullock, chris" AND long < 36;
``` | 46,611 | [
{
"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 (loss INTEGER, name VARCHAR, long VARCHAR)\n\n Question: Which Loss has a Name of bullock, chris, and a Long smaller... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (long INTEGER, avg_g VARCHAR, loss VARCHAR, gain VARCHAR)
Question: How much Long has a Loss larger than 2, and a Gain of 157, and an Avg/G smaller than 129... | Here is the SQLite query to answer the question regarding the specified conditions:
```
SELECT SUM(long) FROM table_name_58 WHERE loss > 2 AND gain = 157 AND avg_g < 129
``` | 46,612 | [
{
"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_58 (long INTEGER, avg_g VARCHAR, loss VARCHAR, gain VARCHAR)\n\n Question: How much Long has a Loss larger than 2, and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (places INTEGER, nation VARCHAR, points VARCHAR)
Question: What is the fewest number of places for a skater from Norway with fewer than 1524.9 points?
Here... | Here is the SQLite query to answer the question about the fewest number of places for a skater from Norway with fewer than 1524.9 points:
```
SELECT MIN(places) FROM table_name_11 WHERE nation = "norway" AND points < '1524.9'
```
Note: In SQLite, since the `points` column is of type `VARCHAR`, it is important to enc... | 46,613 | [
{
"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_11 (places INTEGER, nation VARCHAR, points VARCHAR)\n\n Question: What is the fewest number of places for a skater from... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (home VARCHAR, visitor VARCHAR, date VARCHAR)
Question: What home has Philadelphia as the visitor, and december 4 as the date?
Here is the SQLite query to a... | Here is the SQLite query to find the home that has Philadelphia as the visitor on December 4:
```
SELECT home FROM table_name_1 WHERE visitor = "Philadelphia" AND date = "December 4";
``` | 46,614 | [
{
"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 (home VARCHAR, visitor VARCHAR, date VARCHAR)\n\n Question: What home has Philadelphia as the visitor, and december 4... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (record VARCHAR, date VARCHAR, decision VARCHAR, home VARCHAR)
Question: What record has a decision of parent, Philadelphia as the home, with december 12 as... | Here is the SQLite query to answer the question:
```
SELECT record FROM table_name_81 WHERE decision = "parent" AND home = "philadelphia" AND date = "december 12"
``` | 46,615 | [
{
"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 (record VARCHAR, date VARCHAR, decision VARCHAR, home VARCHAR)\n\n Question: What record has a decision of parent, P... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (tournament VARCHAR, score VARCHAR)
Question: Which Tournament has a Score of 6–4, 6–2?
Here is the SQLite query to answer to the question: Which Tournamen... | Here is the SQLite query to answer the question which tournament has a score of 6–4, 6–2:
```
SELECT tournament FROM table_name_62 WHERE score = "6–4, 6–2";
``` | 46,616 | [
{
"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 (tournament VARCHAR, score VARCHAR)\n\n Question: Which Tournament has a Score of 6–4, 6–2?\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_96 (score VARCHAR, opponent_in_the_final VARCHAR)
Question: Which Score has an Opponent in the final of mehdi tahiri?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about which score has an opponent in the final of "mehdi tahiri":
```
SELECT score FROM table_name_96 WHERE opponent_in_the_final = "mehdi tahiri";
``` | 46,617 | [
{
"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_96 (score VARCHAR, opponent_in_the_final VARCHAR)\n\n Question: Which Score has an Opponent in the final of mehdi tahir... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (date INTEGER, score VARCHAR)
Question: Which Date has a Score of 6–3, 7–6?
Here is the SQLite query to answer to the question: Which Date has a Score of 6–... | The SQL query you provided aims to sum the `date` for entries where the `score` matches "6–3, 7–6". However, to more accurately address the question of which date has the specified score rather than summing the dates, we should focus on selecting the dates directly.
Here’s the corrected query to retrieve the dates ass... | 46,618 | [
{
"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_3 (date INTEGER, score VARCHAR)\n\n Question: Which Date has a Score of 6–3, 7–6?\n\nHere is the SQLite query to answer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (date INTEGER, score VARCHAR)
Question: Which Date has a Score of 7–6(3), 4–6, 6–2?
Here is the SQLite query to answer to the question: Which Date has a Sc... | The SQLite query you provided seems to aim to sum the dates where the score matches "7–6(3), 4–6, 6–2". However, based on the question, you may actually want to retrieve the specific date(s) that have that score instead of summing them. Here’s an appropriate query to achieve that:
```
SELECT date FROM table_name_68 WH... | 46,619 | [
{
"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_68 (date INTEGER, score VARCHAR)\n\n Question: Which Date has a Score of 7–6(3), 4–6, 6–2?\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_62 (surface VARCHAR, tournament VARCHAR)
Question: Which Surface has a Tournament of olbia?
Here is the SQLite query to answer to the question: Which Surface ... | Here is the SQLite query to answer the question: Which Surface has a Tournament of olbia?:
```
SELECT surface FROM table_name_62 WHERE tournament = "olbia";
``` | 46,620 | [
{
"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 (surface VARCHAR, tournament VARCHAR)\n\n Question: Which Surface has a Tournament of olbia?\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_43 (attendance VARCHAR, week VARCHAR)
Question: What was the attendance at the week 7 game?
Here is the SQLite query to answer to the question: What was the a... | Here is the SQLite query to answer the question: What was the attendance at the week 7 game?:
```
SELECT attendance FROM table_name_43 WHERE week = '7'
``` | 46,621 | [
{
"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 (attendance VARCHAR, week VARCHAR)\n\n Question: What was the attendance at the week 7 game?\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_94 (result VARCHAR, week VARCHAR, opponent VARCHAR)
Question: What was the result of the game after week 3 against the New York Giants?
Here is the SQLite que... | Here is the SQLite query to answer the question about the result of the game after week 3 against the New York Giants:
```
SELECT result FROM table_name_94 WHERE week > 3 AND opponent = "new york giants";
``` | 46,622 | [
{
"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 (result VARCHAR, week VARCHAR, opponent VARCHAR)\n\n Question: What was the result of the game after week 3 against ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (opponent VARCHAR, week VARCHAR)
Question: Who was the opponent at the week 6 game?
Here is the SQLite query to answer to the question: Who was the opponen... | It looks like you've made a small mistake in your query. In your database schema, `week` is defined as a `VARCHAR`, so when querying for week 6, you should wrap the number in quotes to match the data type. Here’s the corrected query:
```
SELECT opponent FROM table_name_52 WHERE week = '6'
``` | 46,623 | [
{
"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 (opponent VARCHAR, week VARCHAR)\n\n Question: Who was the opponent at the week 6 game?\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_80 (loss INTEGER, name VARCHAR, gain VARCHAR)
Question: What is the lowest loss that Jarius Wright has had where he also has had a gain bigger than 1.
Here is... | Here is the corrected SQLite query based on your question:
```sql
SELECT MIN(loss)
FROM table_name_80
WHERE name = 'Jarius Wright'
AND CAST(gain AS INTEGER) > 1;
```
This query selects the minimum loss for "Jarius Wright" where the gain is greater than 1, ensuring that the gain is properly treated as an integer f... | 46,624 | [
{
"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 (loss INTEGER, name VARCHAR, gain VARCHAR)\n\n Question: What is the lowest loss that Jarius Wright has had where he... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (location VARCHAR, tournament VARCHAR)
Question: How much was the first place prize for the American golf classic located in Ohio?
Here is the SQLite query... | It looks like there is a misunderstanding in your query. The given table schema does not contain any information about prize amounts—only location and tournament names are stored. If there is a prize column or another table that stores prize information, we need to refer to that.
Assuming there is an additional table ... | 46,625 | [
{
"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 (location VARCHAR, tournament VARCHAR)\n\n Question: How much was the first place prize for the American golf classi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (date VARCHAR, location VARCHAR, tournament VARCHAR)
Question: What date was the Monsanto open located in Florida?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question regarding the date of the Monsanto Open located in Florida:
```
SELECT date FROM table_name_58 WHERE location = "Florida" AND tournament = "Monsanto Open";
``` | 46,626 | [
{
"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_58 (date VARCHAR, location VARCHAR, tournament VARCHAR)\n\n Question: What date was the Monsanto open located in Florid... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (score VARCHAR, winner VARCHAR)
Question: What was the score of Johnny Miller (7)?
Here is the SQLite query to answer to the question: What was the score o... | Sure! The SQLite query you provided is almost correct, but it would be advisable to ensure that the name is properly formatted and matches the case sensitivity. Here’s the wrapped code snippet for the query to find the score of Johnny Miller:
```
SELECT score FROM table_name_80 WHERE winner = "Johnny Miller (7)";
``` ... | 46,627 | [
{
"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 (score VARCHAR, winner VARCHAR)\n\n Question: What was the score of Johnny Miller (7)?\n\nHere is the SQLite query t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (year VARCHAR, division INTEGER)
Question: What is the total number of years that have divisions greater than 4?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about the total number of years that have divisions greater than 4:
```
SELECT COUNT(year) FROM table_name_62 WHERE division > 4
``` | 46,628 | [
{
"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 (year VARCHAR, division INTEGER)\n\n Question: What is the total number of years that have divisions greater than 4?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (division INTEGER, year INTEGER)
Question: What is the highest division for years earlier than 2011?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question about the highest division for years earlier than 2011:
```
SELECT MAX(division) FROM table_name_27 WHERE year < 2011
``` | 46,629 | [
{
"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_27 (division INTEGER, year INTEGER)\n\n Question: What is the highest division for years earlier than 2011?\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_64 (week VARCHAR, date VARCHAR, attendance VARCHAR)
Question: What is the Week number on November 30, 1958 with more than 33,240 in Attendance?
Here is the SQ... | Your SQLite query contains some syntax issues and does not accurately address the question. The requirement is to retrieve the week number corresponding to the date "November 30, 1958" with an attendance greater than 33,240. Here is the corrected query:
```sql
SELECT week
FROM table_name_64
WHERE date = "November 30... | 46,630 | [
{
"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 (week VARCHAR, date VARCHAR, attendance VARCHAR)\n\n Question: What is the Week number on November 30, 1958 with mor... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (result VARCHAR, date VARCHAR)
Question: What was the Result on November 9, 1958?
Here is the SQLite query to answer to the question: What was the Result o... | Here is the SQLite query to answer the question about the Result on November 9, 1958:
```
SELECT result FROM table_name_77 WHERE date = "November 9, 1958";
``` | 46,631 | [
{
"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 (result VARCHAR, date VARCHAR)\n\n Question: What was the Result on November 9, 1958?\n\nHere is the SQLite query to... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (attendance INTEGER, week VARCHAR)
Question: What was the Attendance on Week 8?
Here is the SQLite query to answer to the question: What was the Attendance... | It looks like you're trying to find the attendance for Week 8 from the database. However, the query you provided calculates the average attendance instead of retrieving the attendance for that specific week. If you want to simply select the attendance for Week 8, the query should look for equality rather than averaging... | 46,632 | [
{
"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 (attendance INTEGER, week VARCHAR)\n\n Question: What was the Attendance on Week 8?\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_70 (season VARCHAR, against VARCHAR)
Question: Which season did not qualify for UEFA competitions?
Here is the SQLite query to answer to the question: Which s... | The SQLite query you provided is not correct because it doesn't specify conditions clearly based on the expected data in your table. Assuming that the `against` column records whether a season qualified for UEFA competitions or not with suitable text, the query might need to be phrased differently depending on how the ... | 46,633 | [
{
"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 (season VARCHAR, against VARCHAR)\n\n Question: Which season did not qualify for UEFA competitions?\n\nHere is the S... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (lost VARCHAR, goals_against VARCHAR)
Question: How many games were lost that had goals against of 5?
Here is the SQLite query to answer to the question: H... | To count the number of games that were lost with goals against of 5, you should use the `COUNT` function. Here is the corrected SQLite query:
```
SELECT COUNT(*) AS lost_games_count FROM table_name_15 WHERE goals_against = "5"
``` | 46,634 | [
{
"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_15 (lost VARCHAR, goals_against VARCHAR)\n\n Question: How many games were lost that had goals against of 5?\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 (drew VARCHAR, goals_against VARCHAR)
Question: How many draws were there with goals against that did not qualify for UEFA competitions?
Here is the SQLite... | To answer the question about how many draws there were with goals against that did not qualify for UEFA competitions, your query needs to appropriately count the number of records that meet this criterion. The correct SQL query should use the `COUNT` function and a `WHERE` clause to filter the results.
Here’s the revi... | 46,635 | [
{
"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 (drew VARCHAR, goals_against VARCHAR)\n\n Question: How many draws were there with goals against that did not qualif... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (competition VARCHAR, lost VARCHAR, season VARCHAR)
Question: Which competition did not qualify for UEFA competitions in the 1970-71 season?
Here is the SQ... | Your SQLite query is correctly structured to find competitions that did not qualify for UEFA competitions in the 1970-71 season. Here’s your query wrapped in code formatting:
```
SELECT competition FROM table_name_67 WHERE lost = "did not qualify for uefa competitions" AND season = "1970-71"
```
This query selects t... | 46,636 | [
{
"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 (competition VARCHAR, lost VARCHAR, season VARCHAR)\n\n Question: Which competition did not qualify for UEFA competi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (attendance INTEGER, venue VARCHAR)
Question: What is the attendance in texas stadium?
Here is the SQLite query to answer to the question: What is the atte... | Your SQLite query looks good for retrieving the attendance at "texas stadium." Here is the code wrapped in triple backticks:
```
SELECT SUM(attendance) FROM table_name_86 WHERE venue = "texas stadium";
``` | 46,637 | [
{
"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 (attendance INTEGER, venue VARCHAR)\n\n Question: What is the attendance in texas stadium?\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_98 (home_team VARCHAR, ground VARCHAR)
Question: What is the home team score for the team that has a home field of the Telstra Dome?
Here is the SQLite query ... | Your SQL query is almost correct, but based on the provided schema, the `table_name_98` only includes `home_team` and `ground`. It seems you are trying to get the score, but the schema does not contain a score column. You might want to just retrieve the home team associated with the Telstra Dome instead.
Here is the c... | 46,638 | [
{
"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 (home_team VARCHAR, ground VARCHAR)\n\n Question: What is the home team score for the team that has a home field of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (home_team VARCHAR, away_team VARCHAR)
Question: Which home team had an away team of the Brisbane Lions?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question about which home team had an away team of the Brisbane Lions:
```sql
SELECT home_team FROM table_name_36 WHERE away_team = "Brisbane Lions";
``` | 46,639 | [
{
"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_36 (home_team VARCHAR, away_team VARCHAR)\n\n Question: Which home team had an away team of the Brisbane Lions?\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_53 (sensor VARCHAR, sensor_resolution VARCHAR, camera VARCHAR)
Question: What was the sensor with a resolution of 355x288 for a Naturalpoint Trackir 3?
Here i... | Here's the SQLite query you provided, wrapped appropriately:
```
SELECT sensor FROM table_name_53 WHERE sensor_resolution = "355x288" AND camera = "naturalpoint trackir 3"
``` | 46,640 | [
{
"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 (sensor VARCHAR, sensor_resolution VARCHAR, camera VARCHAR)\n\n Question: What was the sensor with a resolution of 3... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (sensor_resolution VARCHAR, cpu_usage VARCHAR, camera VARCHAR)
Question: What was the sensor resolution with a minimal CPU usage for a naturalpoint trackir ... | Your SQLite query looks mostly accurate, but if you're specifically searching for the minimal CPU usage, you may want to ensure that you are selecting properly if there are various representations of "minimal".
Here is a refined version of your query to ensure it is clear and functional:
```
SELECT sensor_resolution... | 46,641 | [
{
"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_39 (sensor_resolution VARCHAR, cpu_usage VARCHAR, camera VARCHAR)\n\n Question: What was the sensor resolution with a m... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (output VARCHAR, ir_leds VARCHAR)
Question: What was the output with no IR LEDs?
Here is the SQLite query to answer to the question: What was the output wi... | Here is the SQLite query to answer the question about what the output is with no IR LEDs:
```
SELECT output FROM table_name_90 WHERE ir_leds = 'no';
``` | 46,642 | [
{
"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_90 (output VARCHAR, ir_leds VARCHAR)\n\n Question: What was the output with no IR LEDs?\n\nHere is the SQLite query to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (sensor VARCHAR, camera VARCHAR, output VARCHAR, sensor_resolution VARCHAR, cpu_usage VARCHAR)
Question: What sensor has a resolution of 640x480 with small ... | Here is the SQLite query to answer the question about the sensor with a resolution of 640x480, small CPU usage, jpeg compressed output, and a camera of Sony Playstation Eyeto:
```
SELECT sensor FROM table_name_21 WHERE sensor_resolution = "640x480" AND cpu_usage = "small" AND output = "jpeg compressed" AND camera = "s... | 46,643 | [
{
"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 (sensor VARCHAR, camera VARCHAR, output VARCHAR, sensor_resolution VARCHAR, cpu_usage VARCHAR)\n\n Question: What se... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (max_speed__km_h_ INTEGER, quantity_built VARCHAR, year_built VARCHAR)
Question: What is the max speed of the unit with an 8+4 quantity built before 1971?
... | Here is the SQLite query to answer the question about the max speed of the unit with an 8+4 quantity built before 1971:
```
SELECT max_speed__km_h_ FROM table_name_22 WHERE quantity_built = "8+4" AND year_built < '1971';
```
Note: The comparison for the year should be done with single quotes around the year as it is... | 46,644 | [
{
"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 (max_speed__km_h_ INTEGER, quantity_built VARCHAR, year_built VARCHAR)\n\n Question: What is the max speed of the un... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (numbers VARCHAR, power__horsepower_ VARCHAR, type VARCHAR)
Question: What is the numbers of the thn unit with a power greater than 220?
Here is the SQLite... | Here is the SQLite query to answer the question:
```
SELECT numbers FROM table_name_49 WHERE power__horsepower_ > 220 AND type = 'thn';
``` | 46,645 | [
{
"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 (numbers VARCHAR, power__horsepower_ VARCHAR, type VARCHAR)\n\n Question: What is the numbers of the thn unit with a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (power__horsepower_ INTEGER, year_built INTEGER)
Question: What is the power of the unit built after 1995?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question regarding the power of the unit built after 1995:
```
SELECT SUM(power__horsepower_) FROM table_name_71 WHERE year_built > 1995
``` | 46,646 | [
{
"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 (power__horsepower_ INTEGER, year_built INTEGER)\n\n Question: What is the power of the unit built after 1995?\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_5 (result VARCHAR, week VARCHAR, date VARCHAR)
Question: Week larger than 6, and a Date of november 22, 1959 had what result?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question about the result for records where the week is larger than 6 and the date is November 22, 1959:
```
SELECT result FROM table_name_5 WHERE week > 6 AND date = "november 22, 1959"
``` | 46,647 | [
{
"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_5 (result VARCHAR, week VARCHAR, date VARCHAR)\n\n Question: Week larger than 6, and a Date of november 22, 1959 had wh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (week INTEGER, result VARCHAR)
Question: Result of w 21–7 had what average week?
Here is the SQLite query to answer to the question: Result of w 21–7 had w... | Here is the SQLite query wrapped in the requested format:
```
SELECT AVG(week) FROM table_name_96 WHERE result = "w 21–7";
``` | 46,648 | [
{
"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_96 (week INTEGER, result VARCHAR)\n\n Question: Result of w 21–7 had what average week?\n\nHere is the SQLite query to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (attendance INTEGER, date VARCHAR)
Question: Date of november 29, 1959 had what lowest attendance?
Here is the SQLite query to answer to the question: Date ... | Your SQLite query is correctly formulated to find the lowest attendance on the specified date. Here it is wrapped in code format:
```
SELECT MIN(attendance) FROM table_name_7 WHERE date = "november 29, 1959";
```
This query selects the minimum attendance from the `table_name_7` table for records where the date is "n... | 46,649 | [
{
"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 (attendance INTEGER, date VARCHAR)\n\n Question: Date of november 29, 1959 had what lowest attendance?\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_4 (week VARCHAR, date VARCHAR)
Question: Week that has a Date of december 5, 1959 had what week?
Here is the SQLite query to answer to the question: Week that... | Here is the SQLite query to answer the question regarding the week that has a date of December 5, 1959:
```
SELECT week FROM table_name_4 WHERE date = "december 5, 1959";
``` | 46,650 | [
{
"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_4 (week VARCHAR, date VARCHAR)\n\n Question: Week that has a Date of december 5, 1959 had what week?\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_94 (game INTEGER, opponent VARCHAR)
Question: Which Game has an Opponent of @ carolina hurricanes?
Here is the SQLite query to answer to the question: Which G... | The query you wrote is summing up the `game` values instead of just selecting the game(s) that have the specified opponent. If you want to find which game has an opponent of "@ carolina hurricanes", you should select the `game`. Here’s the corrected query:
```
SELECT game FROM table_name_94 WHERE opponent = "@ carolin... | 46,651 | [
{
"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 (game INTEGER, opponent VARCHAR)\n\n Question: Which Game has an Opponent of @ carolina hurricanes?\n\nHere is the S... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (game VARCHAR, november VARCHAR)
Question: How many games have a November of 10?
Here is the SQLite query to answer to the question: How many games have a ... | Your SQLite query is almost correct, but since the `november` column is defined as a `VARCHAR`, the value you're searching for should be enclosed in quotes. Here's the corrected version of the query:
```
SELECT COUNT(game) FROM table_name_10 WHERE november = '10'
```
This query will correctly count the number of gam... | 46,652 | [
{
"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 (game VARCHAR, november VARCHAR)\n\n Question: How many games have a November of 10?\n\nHere is the SQLite query to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (game INTEGER, november VARCHAR)
Question: Which Game has a November of 22?
Here is the SQLite query to answer to the question: Which Game has a November o... | The provided SQL query contains a mistake; it attempts to sum the `game` integer values instead of selecting the game(s) that match the given November value. Since the question asks for which games correspond to a November of "22", we should use a `SELECT` statement without `SUM`. Here's the correct query:
```
SELECT ... | 46,653 | [
{
"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 (game INTEGER, november VARCHAR)\n\n Question: Which Game has a November of 22?\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_6 (year_of_marriage INTEGER, her_age VARCHAR, his_age VARCHAR)
Question: What is the mean year of marriage when her age was more than 19 and his age was 30?
H... | Here is the SQLite query to answer the question regarding the mean year of marriage when her age was more than 19 and his age was 30:
```
SELECT AVG(year_of_marriage) FROM table_name_6 WHERE her_age > 19 AND his_age = '30'
```
Note: Since `his_age` is defined as a VARCHAR in the schema, make sure to compare it with ... | 46,654 | [
{
"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 (year_of_marriage INTEGER, her_age VARCHAR, his_age VARCHAR)\n\n Question: What is the mean year of marriage when her... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (her_age INTEGER, name VARCHAR, year_of_marriage VARCHAR, _number_of_children VARCHAR)
Question: What is the lowest figure for her age when the year of marr... | Here is the SQLite query that answers the question you specified:
```sql
SELECT MIN(her_age)
FROM table_name_60
WHERE year_of_marriage < '1853'
AND _number_of_children < '8'
AND LOWER(name) = 'eliza maria partridge';
```
This query selects the minimum age from the specified table, ensuring that all conditions re... | 46,655 | [
{
"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 (her_age INTEGER, name VARCHAR, year_of_marriage VARCHAR, _number_of_children VARCHAR)\n\n Question: What is the low... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (her_age INTEGER, _number_of_children VARCHAR, his_age VARCHAR, name VARCHAR)
Question: What is the total number of her age figures where his age is less th... | Your provided SQLite query has a couple of issues that need addressing:
1. The `_number_of_children` column is defined as `VARCHAR`, which means it will contain string values. To compare it as a number, you need to convert it to an integer using `CAST`.
2. The condition for `_number_of_children` should be formatted c... | 46,656 | [
{
"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 (her_age INTEGER, _number_of_children VARCHAR, his_age VARCHAR, name VARCHAR)\n\n Question: What is the total number... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (lost INTEGER, against VARCHAR, drawn VARCHAR)
Question: How much Lost has an Against larger than 19, and a Drawn smaller than 1?
Here is the SQLite query ... | Here is the SQLite query to answer the question about the `lost` values given the conditions on `against` and `drawn`:
```
SELECT SUM(lost) FROM table_name_67 WHERE against > 19 AND drawn < 1
``` | 46,657 | [
{
"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 (lost INTEGER, against VARCHAR, drawn VARCHAR)\n\n Question: How much Lost has an Against larger than 19, and a Draw... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (played INTEGER, lost VARCHAR, against VARCHAR)
Question: Which Played has a Lost of 3, and an Against of 23?
Here is the SQLite query to answer to the que... | The SQLite query you've provided has an incorrect approach for the question asked. The question is looking for the specific value of "Played" where "Lost" equals 3 and "Against" equals 23. Instead of calculating the average, you should select the "Played" values that meet the criteria.
Here's the corrected SQL query:
... | 46,658 | [
{
"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 (played INTEGER, lost VARCHAR, against VARCHAR)\n\n Question: Which Played has a Lost of 3, and an Against of 23?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (played INTEGER, against VARCHAR, points VARCHAR)
Question: Which Played is the highest one that has an Against smaller than 18, and Points smaller than 10?... | Your query is correctly formulated to find the highest `played` value under the specified conditions. Here it is wrapped in the code block as requested:
```
SELECT MAX(played) FROM table_name_92 WHERE against < 18 AND points < 10;
``` | 46,659 | [
{
"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 (played INTEGER, against VARCHAR, points VARCHAR)\n\n Question: Which Played is the highest one that has an Against ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (against INTEGER, played VARCHAR, drawn VARCHAR, team VARCHAR)
Question: Which Against is the highest one that has a Drawn larger than 1, and a Team of cori... | Here is the SQLite query to answer the question:
```
SELECT MAX(against) FROM table_name_31 WHERE drawn > 1 AND team = "corinthians" AND played < 7
``` | 46,660 | [
{
"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 (against INTEGER, played VARCHAR, drawn VARCHAR, team VARCHAR)\n\n Question: Which Against is the highest one that h... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (opponent VARCHAR, october VARCHAR, points VARCHAR)
Question: What opponent has october less than 20, and 8 for points?
Here is the SQLite query to answer ... | Your SQLite query has the right idea but needs one small correction. The `october` and `points` columns are defined as VARCHAR in the schema, so you should make sure to handle the conditions accordingly. You need to convert them to numbers for comparison. Here’s the updated query:
```sql
SELECT opponent FROM table_nam... | 46,661 | [
{
"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_13 (opponent VARCHAR, october VARCHAR, points VARCHAR)\n\n Question: What opponent has october less than 20, and 8 for ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (position VARCHAR, player VARCHAR)
Question: What position does Drew Callander play?
Here is the SQLite query to answer to the question: What position does ... | Your SQLite query appears to be correct for retrieving the position of the player named Drew Callander. However, it's good practice to ensure consistent casing when searching for player names unless you are certain of the casing in your database.
Here is the wrapped query:
```
SELECT position FROM table_name_1 WHERE ... | 46,662 | [
{
"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 (position VARCHAR, player VARCHAR)\n\n Question: What position does Drew Callander play?\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_2 (round VARCHAR, player VARCHAR)
Question: What round did Ray Kurpis play?
Here is the SQLite query to answer to the question: What round did Ray Kurpis play... | Here is the SQLite query to answer the question about what round Ray Kurpis played:
```
SELECT round FROM table_name_2 WHERE player = "Ray Kurpis";
``` | 46,663 | [
{
"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 (round VARCHAR, player VARCHAR)\n\n Question: What round did Ray Kurpis play?\n\nHere is the SQLite query to answer t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (built_by VARCHAR, name VARCHAR)
Question: Which Built by has a Name of northern jaeger?
Here is the SQLite query to answer to the question: Which Built by... | Here is the SQLite query to answer the question regarding which "Built by" has a "Name" of "northern jaeger":
```sql
SELECT built_by FROM table_name_44 WHERE name = "northern jaeger";
``` | 46,664 | [
{
"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_44 (built_by VARCHAR, name VARCHAR)\n\n Question: Which Built by has a Name of northern jaeger?\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_51 (horsepowers INTEGER, year VARCHAR, tonnage VARCHAR)
Question: How many Horsepowers have a Year smaller than 1974, and a Tonnage of 4437?
Here is the SQLit... | Here is the SQLite query to answer the question:
```
SELECT SUM(horsepowers) FROM table_name_51 WHERE year < '1974' AND tonnage = '4437'
```
Note that I placed the year and tonnage values in quotes to treat them as strings, which is necessary since the `year` and `tonnage` fields are defined as `VARCHAR`. | 46,665 | [
{
"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_51 (horsepowers INTEGER, year VARCHAR, tonnage VARCHAR)\n\n Question: How many Horsepowers have a Year smaller than 197... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (date VARCHAR, competition VARCHAR)
Question: When was the 2014 fifa world cup qualification?
Here is the SQLite query to answer to the question: When was ... | Your SQL query is correctly structured to retrieve the dates associated with the "2014 fifa world cup qualification" from the specified table. Here it is wrapped as requested:
```
SELECT date FROM table_name_96 WHERE competition = "2014 fifa world cup qualification";
``` | 46,666 | [
{
"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_96 (date VARCHAR, competition VARCHAR)\n\n Question: When was the 2014 fifa world cup qualification?\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_86 (date VARCHAR, venue VARCHAR)
Question: When was the date of an event at Tokyo venue?
Here is the SQLite query to answer to the question: When was the date... | Here is the SQLite query to answer the question about the date of an event at the Tokyo venue:
```
SELECT date FROM table_name_86 WHERE venue = "Tokyo";
``` | 46,667 | [
{
"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 (date VARCHAR, venue VARCHAR)\n\n Question: When was the date of an event at Tokyo venue?\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_58 (city VARCHAR, opponent VARCHAR)
Question: What city did Yugoslavia play against Poland in?
Here is the SQLite query to answer to the question: What city d... | Here is the SQLite query to answer the question: What city did Yugoslavia play against Poland in?:
```
SELECT city FROM table_name_58 WHERE opponent = "Poland" AND city IN (SELECT city FROM table_name_58 WHERE opponent = "Yugoslavia");
```
This query checks for the city where Yugoslavia played against Poland specifi... | 46,668 | [
{
"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_58 (city VARCHAR, opponent VARCHAR)\n\n Question: What city did Yugoslavia play against Poland in?\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_56 (date VARCHAR, opponent VARCHAR)
Question: What day did Yugoslavia play Luxembourg?
Here is the SQLite query to answer to the question: What day did Yugosl... | To find out what day Yugoslavia played against Luxembourg, you need to include a condition to check for both Yugoslavia and Luxembourg in the query. Here’s the corrected SQLite query:
```
SELECT date FROM table_name_56 WHERE opponent = "Luxembourg" AND opponent = "Yugoslavia";
```
However, since a single opponent can... | 46,669 | [
{
"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 (date VARCHAR, opponent VARCHAR)\n\n Question: What day did Yugoslavia play Luxembourg?\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_97 (type_of_game VARCHAR, city VARCHAR)
Question: What type of game was played in Ljubljana?
Here is the SQLite query to answer to the question: What type of ... | Here is the SQLite query to answer the question: What type of game was played in Ljubljana?:
```
SELECT type_of_game FROM table_name_97 WHERE city = "Ljubljana";
``` | 46,670 | [
{
"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 (type_of_game VARCHAR, city VARCHAR)\n\n Question: What type of game was played in Ljubljana?\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_70 (results¹ VARCHAR, city VARCHAR)
Question: What's the result of the game played in Belgrade?
Here is the SQLite query to answer to the question: What's the... | Here's the SQLite query to answer the question about the result of the game played in Belgrade:
```sql
SELECT results¹ FROM table_name_70 WHERE city = "Belgrade"
``` | 46,671 | [
{
"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 (results¹ VARCHAR, city VARCHAR)\n\n Question: What's the result of the game played in Belgrade?\n\nHere is the SQLi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR)
Question: What was the score on March 23?
Here is the SQLite query to answer to the question: What was the score on March 23?:... | Here's the SQLite query to answer the question about the score on March 23, wrapped as you requested:
```
SELECT score FROM table_name_2 WHERE date = "March 23";
``` | 46,672 | [
{
"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 (score VARCHAR, date VARCHAR)\n\n Question: What was the score on March 23?\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_6 (record VARCHAR, score VARCHAR, visitor VARCHAR)
Question: When the Vancouver Canucks were visiting, what was the record when the score was 4-2?
Here is the... | Here is the SQLite query to answer the question you provided:
```
SELECT record FROM table_name_6 WHERE score = "4-2" AND visitor = "vancouver canucks"
``` | 46,673 | [
{
"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 (record VARCHAR, score VARCHAR, visitor VARCHAR)\n\n Question: When the Vancouver Canucks were visiting, what was the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (partner VARCHAR, score VARCHAR)
Question: Which Partner has a Score of 6–7, 7–6, 6–7?
Here is the SQLite query to answer to the question: Which Partner ha... | It looks like there is a misunderstanding regarding the way to query the scores in SQLite. To find partners with scores of "6–7", "7–6", or "6–7", you should use the `IN` clause, as the scores are separate values and not a single string.
Here's the correct SQLite query:
```
SELECT partner FROM table_name_79 WHERE sco... | 46,674 | [
{
"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_79 (partner VARCHAR, score VARCHAR)\n\n Question: Which Partner has a Score of 6–7, 7–6, 6–7?\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_50 (score VARCHAR, date VARCHAR)
Question: Which Score has a Date of 13 april 1997?
Here is the SQLite query to answer to the question: Which Score has a Date... | Certainly! Here is the SQLite query wrapped in the appropriate code format:
```
SELECT score FROM table_name_50 WHERE date = "13 april 1997";
``` | 46,675 | [
{
"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_50 (score VARCHAR, date VARCHAR)\n\n Question: Which Score has a Date of 13 april 1997?\n\nHere is the SQLite query to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (partner VARCHAR, score VARCHAR)
Question: Which Partner has a Score of 7–6, 6–3?
Here is the SQLite query to answer to the question: Which Partner has a S... | Here is the correct SQLite query to find which partner has a score of "7–6, 6–3":
```
SELECT partner FROM table_name_38 WHERE score = '7–6, 6–3';
``` | 46,676 | [
{
"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 (partner VARCHAR, score VARCHAR)\n\n Question: Which Partner has a Score of 7–6, 6–3?\n\nHere is the SQLite query to... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (date VARCHAR, tournament VARCHAR)
Question: Which Date has a Tournament of bmw open?
Here is the SQLite query to answer to the question: Which Date has a ... | Sure! Here is the SQLite query wrapped as requested:
```
SELECT date FROM table_name_63 WHERE tournament = "bmw open";
``` | 46,677 | [
{
"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 (date VARCHAR, tournament VARCHAR)\n\n Question: Which Date has a Tournament of bmw open?\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_13 (partner VARCHAR, tournament VARCHAR)
Question: Which Partner has a Tournament of catella swedish open?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question: Which Partner has a Tournament of catella swedish open?:
```
SELECT partner FROM table_name_13 WHERE tournament = "catella swedish open";
``` | 46,678 | [
{
"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_13 (partner VARCHAR, tournament VARCHAR)\n\n Question: Which Partner has a Tournament of catella swedish open?\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_89 (date VARCHAR, surface VARCHAR, score VARCHAR)
Question: Which Date has a Surface of clay, and a Score of 6–3, 5–7, 2–6?
Here is the SQLite query to answer... | Here's the SQLite query to find which date has a surface of clay and a score of 6–3, 5–7, and 2–6:
```
SELECT date FROM table_name_89 WHERE surface = 'clay' AND score = '6–3, 5–7, 2–6';
``` | 46,679 | [
{
"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_89 (date VARCHAR, surface VARCHAR, score VARCHAR)\n\n Question: Which Date has a Surface of clay, and a Score of 6–3, 5... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (winner VARCHAR, race_name VARCHAR)
Question: Who was the winner of the tre valli varesine race?
Here is the SQLite query to answer to the question: Who wa... | Here is the SQLite query to answer the question: Who was the winner of the tre valli varesine race?:
```
SELECT winner FROM table_name_60 WHERE race_name = "tre valli varesine"
``` | 46,680 | [
{
"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 (winner VARCHAR, race_name VARCHAR)\n\n Question: Who was the winner of the tre valli varesine race?\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_22 (date VARCHAR, uci_rating VARCHAR, race_name VARCHAR)
Question: What is the date of the omloop van de vlaamse scheldeboorden race with a UCI rating of 1.1?
... | Here is the SQLite query to answer the question regarding the date of the "omloop van de vlaamse scheldeboorden" race with a UCI rating of 1.1:
```
SELECT date FROM table_name_22 WHERE uci_rating = "1.1" AND race_name = "omloop van de vlaamse scheldeboorden";
``` | 46,681 | [
{
"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 (date VARCHAR, uci_rating VARCHAR, race_name VARCHAR)\n\n Question: What is the date of the omloop van de vlaamse sc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (date VARCHAR, race_name VARCHAR)
Question: What is the date of the gp città di camaiore race?
Here is the SQLite query to answer to the question: What is ... | Here is the SQLite query to answer the question about the date of the "gp città di camaiore" race:
```
SELECT date FROM table_name_54 WHERE race_name = "gp città di camaiore";
``` | 46,682 | [
{
"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 (date VARCHAR, race_name VARCHAR)\n\n Question: What is the date of the gp città di camaiore race?\n\nHere is the SQ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (uci_rating VARCHAR, location VARCHAR, team VARCHAR)
Question: What is the UCI rating of the race in Italy with the progetto ciclismo alplast team?
Here is... | Here is the SQLite query to answer the question:
```
SELECT uci_rating FROM table_name_81 WHERE location = "italy" AND team = "progetto ciclismo alplast"
``` | 46,683 | [
{
"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 (uci_rating VARCHAR, location VARCHAR, team VARCHAR)\n\n Question: What is the UCI rating of the race in Italy with ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (date VARCHAR, game_site VARCHAR)
Question: What is the date of the game being played at Schaeffer Stadium?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question regarding the date of the game being played at Schaeffer Stadium:
```
SELECT date FROM table_name_52 WHERE game_site = "Schaeffer Stadium";
``` | 46,684 | [
{
"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 (date VARCHAR, game_site VARCHAR)\n\n Question: What is the date of the game being played at Schaeffer Stadium?\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_78 (points INTEGER, year VARCHAR, wins VARCHAR)
Question: Which Points have a Year larger than 1966, and Wins larger than 1?
Here is the SQLite query to answe... | The SQLite query you've provided is calculating the average points for records where the year is greater than 1966 and the wins are greater than 1. However, based on your question, if you want just the points that meet those criteria, you may want to select the points directly.
Here’s how you would write the query to ... | 46,685 | [
{
"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_78 (points INTEGER, year VARCHAR, wins VARCHAR)\n\n Question: Which Points have a Year larger than 1966, and Wins large... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (year INTEGER, wins INTEGER)
Question: Which Year is the lowest one that has Wins smaller than 0?
Here is the SQLite query to answer to the question: Which... | Here is the SQLite query to answer the question "Which Year is the lowest one that has Wins smaller than 0?":
```
SELECT MIN(year) FROM table_name_47 WHERE wins < 0;
``` | 46,686 | [
{
"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 (year INTEGER, wins INTEGER)\n\n Question: Which Year is the lowest one that has Wins smaller than 0?\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_15 (points INTEGER, wins INTEGER)
Question: Which Points have Wins larger than 1?
Here is the SQLite query to answer to the question: Which Points have Wins l... | Your query retrieves the average points for entries where wins are larger than 1. If you're looking for the distinct points that satisfy the condition of having wins greater than 1, you should use the following SQL query:
```
SELECT DISTINCT points FROM table_name_15 WHERE wins > 1
```
This query will give you the un... | 46,687 | [
{
"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_15 (points INTEGER, wins INTEGER)\n\n Question: Which Points have Wins larger than 1?\n\nHere is the SQLite query to an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (wins INTEGER, year VARCHAR, class VARCHAR)
Question: Which Wins have a Year of 1963, and a Class of 50cc?
Here is the SQLite query to answer to the questi... | The provided query is calculating the average number of wins for the year 1963 and class 50cc. However, the question is asking for which wins (the actual win values) correspond to those criteria.
To retrieve the actual `wins` values instead of the average, you should select the `wins` column directly. Here's the corr... | 46,688 | [
{
"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 (wins INTEGER, year VARCHAR, class VARCHAR)\n\n Question: Which Wins have a Year of 1963, and a Class of 50cc?\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_63 (rank VARCHAR, wins VARCHAR, country VARCHAR)
Question: What is the player from Australia's rank with more than 16 wins?
Here is the SQLite query to answer... | The query you have written counts the number of players from Australia with more than 16 wins but does not explicitly return their ranks. If you want to retrieve the rank of the player(s) from Australia with more than 16 wins, you would use a different query. Here’s how you can do it:
```sql
SELECT rank FROM table_nam... | 46,689 | [
{
"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 (rank VARCHAR, wins VARCHAR, country VARCHAR)\n\n Question: What is the player from Australia's rank with more than ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (earnings___ INTEGER, wins INTEGER)
Question: What is the highest earnings of a player with more than 19 wins?
Here is the SQLite query to answer to the qu... | Your provided SQLite query is correct for retrieving the highest earnings of a player with more than 19 wins. Here it is wrapped in code formatting:
```
SELECT MAX(earnings___) AS highest_earnings FROM table_name_16 WHERE wins > 19
``` | 46,690 | [
{
"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_16 (earnings___ INTEGER, wins INTEGER)\n\n Question: What is the highest earnings of a player with more than 19 wins?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (opened INTEGER, manufacturer VARCHAR)
Question: Which average Opened has a Manufacturer of vekoma?
Here is the SQLite query to answer to the question: Whi... | Your provided SQLite query is correct for calculating the average `opened` value for records with a manufacturer of "vekoma". Here is the query wrapped as requested:
```
SELECT AVG(opened) FROM table_name_19 WHERE manufacturer = 'vekoma';
``` | 46,691 | [
{
"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 (opened INTEGER, manufacturer VARCHAR)\n\n Question: Which average Opened has a Manufacturer of vekoma?\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_76 (opened INTEGER, themed_area VARCHAR, manufacturer VARCHAR)
Question: Which Opened is the highest one that has a Themed Area of aerial park, and a Manufactu... | Here is the SQLite query to answer the specified question:
```
SELECT MAX(opened) FROM table_name_76 WHERE themed_area = "aerial park" AND manufacturer = "zamperla"
``` | 46,692 | [
{
"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 (opened INTEGER, themed_area VARCHAR, manufacturer VARCHAR)\n\n Question: Which Opened is the highest one that has a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (themed_area VARCHAR, name VARCHAR)
Question: Which Themed Area has a Name of troublesome trucks runaway coaster?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question about which Themed Area has a Name of "troublesome trucks runaway coaster":
```
SELECT themed_area FROM table_name_12 WHERE name = "troublesome trucks runaway coaster";
``` | 46,693 | [
{
"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 (themed_area VARCHAR, name VARCHAR)\n\n Question: Which Themed Area has a Name of troublesome trucks runaway coaster... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (manufacturer VARCHAR, style VARCHAR, opened VARCHAR)
Question: Which Manufacturer has a Style of steel sit down, and an Opened larger than 2008?
Here is t... | Here is the SQLite query to answer your question:
```
SELECT manufacturer FROM table_name_31 WHERE style = "steel sit down" AND opened > '2008';
```
Note: Make sure that the `opened` column is stored in a format that allows for correct comparison with the string '2008'. If it's stored as an integer, then just `> 200... | 46,694 | [
{
"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 (manufacturer VARCHAR, style VARCHAR, opened VARCHAR)\n\n Question: Which Manufacturer has a Style of steel sit down... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (position VARCHAR, pick VARCHAR, school VARCHAR)
Question: What position has a pick less than 25 for the university of california?
Here is the SQLite query... | Here is the SQLite query to answer the question about the position that has a pick less than 25 for the university of california:
```
SELECT position FROM table_name_44 WHERE pick < 25 AND school = "university of california";
``` | 46,695 | [
{
"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_44 (position VARCHAR, pick VARCHAR, school VARCHAR)\n\n Question: What position has a pick less than 25 for the univers... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (pick INTEGER, school VARCHAR)
Question: What is the pick number for tulane university?
Here is the SQLite query to answer to the question: What is the pic... | The query you've provided uses `SUM(pick)`, which would be appropriate if you intended to sum multiple picks, but since you are looking for the pick number for Tulane University, you typically want to select the pick directly. Therefore, the correct query to retrieve the specific pick number would be:
```
SELECT pick ... | 46,696 | [
{
"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 (pick INTEGER, school VARCHAR)\n\n Question: What is the pick number for tulane university?\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_12 (pick INTEGER, team VARCHAR)
Question: What is the pick number for the kansas city royals?
Here is the SQLite query to answer to the question: What is the ... | Your query seems to be using `SUM(pick)` which would return the total of all pick numbers for the Kansas City Royals, rather than a single pick number. If you want to find the pick number specifically for the Kansas City Royals, you might want to use `SELECT pick` instead. Here’s the corrected SQL query:
```
SELECT pi... | 46,697 | [
{
"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 (pick INTEGER, team VARCHAR)\n\n Question: What is the pick number for the kansas city royals?\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_87 (pick INTEGER, school VARCHAR)
Question: What is the average Pick for the Pasco, Wa school?
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 average Pick for the Pasco, Wa school?":
```sql
SELECT AVG(pick) FROM table_name_87 WHERE school = "Pasco, Wa";
``` | 46,698 | [
{
"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 (pick INTEGER, school VARCHAR)\n\n Question: What is the average Pick for the Pasco, Wa school?\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_5 (label VARCHAR, format VARCHAR, date VARCHAR)
Question: What Label released a CD single in 1993?
Here is the SQLite query to answer to the question: What La... | Here is the SQLite query to answer the question about which label released a CD single in 1993:
```
SELECT label FROM table_name_5 WHERE format = "cd single" AND date = "1993"
``` | 46,699 | [
{
"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_5 (label VARCHAR, format VARCHAR, date VARCHAR)\n\n Question: What Label released a CD single in 1993?\n\nHere is the S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.