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_95 (country VARCHAR, television_service VARCHAR)
Question: What is the name of the country when the television service is italia 1?
Here is the SQLite query t... | Here's the SQLite query that answers the question:
```
SELECT country FROM table_name_95 WHERE television_service = "italia 1"
``` | 11,100 | [
{
"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_95 (country VARCHAR, television_service VARCHAR)\n\n Question: What is the name of the country when the television serv... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (hdtv VARCHAR, content VARCHAR)
Question: What is the HDTV when the content is general television?
Here is the SQLite query to answer to the question: What... | Your SQLite query is correctly structured to retrieve the HDTV when the content is "general television." Here it is wrapped in markdown:
```
SELECT hdtv FROM table_name_50 WHERE content = "general television";
``` | 11,101 | [
{
"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 (hdtv VARCHAR, content VARCHAR)\n\n Question: What is the HDTV when the content is general television?\n\nHere is th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (country VARCHAR, content VARCHAR, television_service VARCHAR)
Question: What is the Country when the Content was general television, and a Television servi... | Here is the SQLite query to answer the question regarding the country when the content was general television and the television service was rai 1:
```
SELECT country FROM table_name_87 WHERE content = "general television" AND television_service = "rai 1"
``` | 11,102 | [
{
"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 (country VARCHAR, content VARCHAR, television_service VARCHAR)\n\n Question: What is the Country when the Content wa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (language VARCHAR, television_service VARCHAR)
Question: What is the Language that has sky tg 24 active as the Television service?
Here is the SQLite query... | Your SQLite query looks good for answering the question based on the provided schema. However, in the context of typical language and television service data, it's common to check for various variations in the names. Here is your query wrapped in the appropriate format:
```
SELECT language FROM table_name_83 WHERE tel... | 11,103 | [
{
"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 (language VARCHAR, television_service VARCHAR)\n\n Question: What is the Language that has sky tg 24 active as the T... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (location VARCHAR, record VARCHAR)
Question: What was the location of the fight when Sara McMann's record was 1-0?
Here is the SQLite query to answer to th... | Your SQL query to find the location of the fight when Sara McMann's record was 1-0 is almost correct, but additionally, you need to specify that the record must belong to Sara McMann. Here is the corrected version of your query:
```sql
SELECT location FROM table_name_42 WHERE record = "1-0" AND location = "Sara McMann... | 11,104 | [
{
"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 (location VARCHAR, record VARCHAR)\n\n Question: What was the location of the fight when Sara McMann's record was 1-... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (record VARCHAR, time VARCHAR)
Question: What was the record when there was a fight that lasted 5:00?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question regarding the record when there was a fight that lasted 5:00:
```
SELECT record FROM table_name_96 WHERE time = "5:00";
``` | 11,105 | [
{
"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 (record VARCHAR, time VARCHAR)\n\n Question: What was the record when there was a fight that lasted 5:00?\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_57 (method VARCHAR, time VARCHAR, record VARCHAR)
Question: What is the method of resolution for the fight that had a time of 5:00 and a record of 5-0?
Here i... | Here is the SQLite query to answer the question regarding the method of resolution for the fight that had a time of 5:00 and a record of 5-0:
```
SELECT method FROM table_name_57 WHERE time = "5:00" AND record = "5-0"
``` | 11,106 | [
{
"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_57 (method VARCHAR, time VARCHAR, record VARCHAR)\n\n Question: What is the method of resolution for the fight that had... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (week INTEGER, result VARCHAR)
Question: What's the average Week with the Result l 23–3?
Here is the SQLite query to answer to the question: What's the ave... | Here is the SQLite query to answer your question regarding the average week with the result "l 23–3":
```
SELECT AVG(week) FROM table_name_49 WHERE result = "l 23–3";
``` | 11,107 | [
{
"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 (week INTEGER, result VARCHAR)\n\n Question: What's the average Week with the Result l 23–3?\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_12 (attendance INTEGER, week VARCHAR, date VARCHAR)
Question: With the date of October 28, 1962, and the week greater than 4, what was the lowest attendance?
... | Here is the SQLite query to answer the question about the lowest attendance with the specified conditions:
```
SELECT MIN(attendance) FROM table_name_12 WHERE week > 4 AND date = "October 28, 1962"
``` | 11,108 | [
{
"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 (attendance INTEGER, week VARCHAR, date VARCHAR)\n\n Question: With the date of October 28, 1962, and the week great... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (belarusian__bgn_pcgn_ VARCHAR, population__2010_ VARCHAR, status VARCHAR, foundation VARCHAR)
Question: What Belarusian has a status of Raion a foundation ... | Here is the SQLite query to answer the question regarding the specified conditions in the database:
```
SELECT belarusian__bgn_pcgn_ FROM table_name_73 WHERE status = "Raion" AND foundation = "1514" AND population__2010_ = "8100"
``` | 11,109 | [
{
"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_73 (belarusian__bgn_pcgn_ VARCHAR, population__2010_ VARCHAR, status VARCHAR, foundation VARCHAR)\n\n Question: What Be... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (model_number VARCHAR, order_part_number VARCHAR)
Question: Which model number has an order part number of TMSMT37BQX5LD?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question regarding which model number has an order part number of TMSMT37BQX5LD:
```sql
SELECT model_number FROM table_name_57 WHERE order_part_number = "TMSMT37BQX5LD";
``` | 11,110 | [
{
"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_57 (model_number VARCHAR, order_part_number VARCHAR)\n\n Question: Which model number has an order part number of TMSMT... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (model_number VARCHAR, order_part_number VARCHAR)
Question: Which model number has an order part number of TMDML44BKX5LD?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question: Which model number has an order part number of TMDML44BKX5LD?:
```
SELECT model_number FROM table_name_32 WHERE order_part_number = "TMDML44BKX5LD";
``` | 11,111 | [
{
"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 (model_number VARCHAR, order_part_number VARCHAR)\n\n Question: Which model number has an order part number of TMDML... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (socket VARCHAR, voltage VARCHAR, frequency VARCHAR, release_date VARCHAR)
Question: What is the socket related to the processor released on June 22, 2005, h... | The SQLite query you've provided is almost correct, but it needs to ensure that the voltage is compared as a numeric value rather than as a string. The voltage values in the database should be converted to numbers for accurate comparison. Here's the updated query:
```sql
SELECT socket FROM table_name_7 WHERE frequency... | 11,112 | [
{
"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 (socket VARCHAR, voltage VARCHAR, frequency VARCHAR, release_date VARCHAR)\n\n Question: What is the socket related t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (rank INTEGER, team VARCHAR)
Question: What is the highest rank for PSV - FC Barcelona?
Here is the SQLite query to answer to the question: What is the hig... | Here is the SQLite query to answer the question regarding the highest rank for PSV - FC Barcelona:
```
SELECT MAX(rank) FROM table_name_64 WHERE team = "psv - fc barcelona";
``` | 11,113 | [
{
"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 (rank INTEGER, team VARCHAR)\n\n Question: What is the highest rank for PSV - FC Barcelona?\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_89 (rank INTEGER, name VARCHAR)
Question: What rank was Peter Schmeichel?
Here is the SQLite query to answer to the question: What rank was Peter Schmeichel?:... | It seems there might be a misunderstanding in the provided query. The question asks for Peter Schmeichel's rank, which means we should select the rank directly rather than summing it. Here's the corrected SQLite query:
```sql
SELECT rank FROM table_name_89 WHERE name = "Peter Schmeichel";
``` | 11,114 | [
{
"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 (rank INTEGER, name VARCHAR)\n\n Question: What rank was Peter Schmeichel?\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 (super_g INTEGER, downhill VARCHAR, overall VARCHAR)
Question: What is the highest Super G that had an 11 Downhill and an overall less than 16?
Here is the ... | Here is the SQLite query to answer the question regarding the highest Super G that had an 11 Downhill and an overall less than 16:
```
SELECT MAX(super_g) FROM table_name_6 WHERE downhill = "11" AND overall < "16"
``` | 11,115 | [
{
"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 (super_g INTEGER, downhill VARCHAR, overall VARCHAR)\n\n Question: What is the highest Super G that had an 11 Downhil... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (combined VARCHAR, overall INTEGER)
Question: What is the combined of the overalls less than 34?
Here is the SQLite query to answer to the question: What i... | Here is the SQLite query to answer the question: What is the combined of the overalls less than 34?:
```
SELECT combined FROM table_name_82 WHERE overall < 34
``` | 11,116 | [
{
"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 (combined VARCHAR, overall INTEGER)\n\n Question: What is the combined of the overalls less than 34?\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_60 (combined VARCHAR, super_g VARCHAR)
Question: What is the combined of the 14 Super G?
Here is the SQLite query to answer to the question: What is the combi... | The SQLite query you provided is almost correct, but to ensure clarity and correctness, you should check that the `super_g` column has the appropriate datatype for the comparison. If `super_g` is an integer, then your query is fine. However, if it is a string, you should use quotes around the value. Assuming `super_g` ... | 11,117 | [
{
"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 (combined VARCHAR, super_g VARCHAR)\n\n Question: What is the combined of the 14 Super G?\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_21 (album VARCHAR, label VARCHAR, year VARCHAR)
Question: What album had the reunion label in 2006?
Here is the SQLite query to answer to the question: What a... | Here is the SQLite query to answer the question about what album had the reunion label in 2006:
```
SELECT album FROM table_name_21 WHERE label = 'reunion' AND year = '2006';
``` | 11,118 | [
{
"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 (album VARCHAR, label VARCHAR, year VARCHAR)\n\n Question: What album had the reunion label in 2006?\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_67 (artist VARCHAR, album VARCHAR, label VARCHAR, credit VARCHAR)
Question: Who was the artist for the album, Christmas under the reunion label with the guitar... | Here is the SQLite query to answer the question about the artist for the album "Christmas" under the "reunion" label with the credit "guitar":
```
SELECT artist FROM table_name_67 WHERE label = "reunion" AND credit = "guitar" AND album = "Christmas"
``` | 11,119 | [
{
"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 (artist VARCHAR, album VARCHAR, label VARCHAR, credit VARCHAR)\n\n Question: Who was the artist for the album, Chris... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (year INTEGER, credit VARCHAR)
Question: What is the most recent year for an album listed with a piano credited?
Here is the SQLite query to answer to the q... | Your provided SQLite query is correct for retrieving the most recent year of an album where "piano" is listed as a credit. Here it is wrapped again for clarity:
```
SELECT MAX(year) FROM table_name_4 WHERE credit = "piano";
``` | 11,120 | [
{
"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 (year INTEGER, credit VARCHAR)\n\n Question: What is the most recent year for an album listed with a piano credited?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (volume VARCHAR, artist VARCHAR, weeks_on_top VARCHAR)
Question: What is Volume:Issue, when Artist is Elton John, and when Weeks on Top is 4?
Here is the S... | Here is the corrected SQLite query to answer the question:
```sql
SELECT volume || ':Issue' AS Volume_Issue
FROM table_name_86
WHERE artist = 'Elton John' AND weeks_on_top = '4';
```
This query concatenates the `volume` with ":Issue" to form the required string format and filters the results based on the specified a... | 11,121 | [
{
"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 (volume VARCHAR, artist VARCHAR, weeks_on_top VARCHAR)\n\n Question: What is Volume:Issue, when Artist is Elton John... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (event VARCHAR)
Question: What is the value in 2008-09 for the Autumn Gold event?
Here is the SQLite query to answer to the question: What is the value in 2... | Your query attempts to select the year 2008 as the result for the Autumn Gold event, but it does not properly fetch the value related to the event in the specified year (2008-09). Based on the schema provided, you need to ensure you're actually retrieving the correct data related to the event's timing.
Assuming that t... | 11,122 | [
{
"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 (event VARCHAR)\n\n Question: What is the value in 2008-09 for the Autumn Gold event?\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_89 (bronze VARCHAR, total VARCHAR, silver VARCHAR)
Question: What is the total number of bronze medals of the nation with 4 total medals and 1 silver?
Here is... | Your provided SQL query is almost correct but needs a slight adjustment. Since both "total" and "silver" columns are defined as `VARCHAR`, we should handle the comparison correctly by converting them to integers before performing any arithmetic checks. Here's the corrected query:
```sql
SELECT SUM(CAST(bronze AS INTEG... | 11,123 | [
{
"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 (bronze VARCHAR, total VARCHAR, silver VARCHAR)\n\n Question: What is the total number of bronze medals of the natio... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (silver INTEGER, nation VARCHAR, gold VARCHAR)
Question: What is the sum of silver medals of the nation Cuba, which has less than 0 gold?
Here is the SQLite... | Your query is almost correct, but the `gold` column is of type VARCHAR, which means you should be comparing it to a string rather than an integer. You need to check for a specific string value that indicates "less than 0". Typically, in such cases, there's no numeric comparison possible directly with a string.
If the... | 11,124 | [
{
"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 (silver INTEGER, nation VARCHAR, gold VARCHAR)\n\n Question: What is the sum of silver medals of the nation Cuba, whi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (weight VARCHAR, pos VARCHAR, team VARCHAR)
Question: What is the total weight of players who play the G position for the Los Angeles D-Fenders?
Here is th... | The query you provided uses `COUNT(weight)` which counts the number of players, not their total weight. To calculate the total weight, you should use the `SUM` function. Here's the corrected SQL query:
```
SELECT SUM(weight) FROM table_name_80 WHERE pos = "G" AND team = "Los Angeles D-Fenders"
```
Please make sure t... | 11,125 | [
{
"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 (weight VARCHAR, pos VARCHAR, team VARCHAR)\n\n Question: What is the total weight of players who play the G positio... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (team VARCHAR, player VARCHAR)
Question: What team does Bill Walker play for?
Here is the SQLite query to answer to the question: What team does Bill Walker... | Here is the SQLite query to answer the question: What team does Bill Walker play for?:
```
SELECT team FROM table_name_1 WHERE player = "Bill Walker";
``` | 11,126 | [
{
"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 (team VARCHAR, player VARCHAR)\n\n Question: What team does Bill Walker play for?\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_51 (heat INTEGER, time VARCHAR, name VARCHAR, nationality VARCHAR, rank VARCHAR)
Question: What was the lowest heat for Germany with a rank smaller than 9 for ... | Sure! Here is the SQLite query to answer the question you provided:
```
SELECT MIN(heat) FROM table_name_51 WHERE nationality = "Germany" AND rank < 9 AND name = "Mike Fenner" AND time < "13.52"
``` | 11,127 | [
{
"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 (heat INTEGER, time VARCHAR, name VARCHAR, nationality VARCHAR, rank VARCHAR)\n\n Question: What was the lowest heat... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (fa_cup INTEGER, player VARCHAR, total VARCHAR)
Question: What is the lowest FA cup that has mohd faizal desa as the player, with a total greater than 0?
H... | Here is the SQLite query to find the lowest FA cup that has "mohd faizal desa" as the player, with a total greater than 0:
```
SELECT MIN(fa_cup) FROM table_name_22 WHERE player = "mohd faizal desa" AND total > 0
``` | 11,128 | [
{
"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 (fa_cup INTEGER, player VARCHAR, total VARCHAR)\n\n Question: What is the lowest FA cup that has mohd faizal desa as... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (fa_cup INTEGER, league VARCHAR, malaysia_cup VARCHAR)
Question: What is the lowest FA cup that has a league greater than 0, with a Malaysia cup greater than... | Here is the SQLite query wrapped in code blocks to answer your question:
```
SELECT MIN(fa_cup) FROM table_name_9 WHERE league > 0 AND malaysia_cup > 5
``` | 11,129 | [
{
"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 (fa_cup INTEGER, league VARCHAR, malaysia_cup VARCHAR)\n\n Question: What is the lowest FA cup that has a league grea... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (malaysia_cup VARCHAR, total INTEGER)
Question: How many Malaysia Cups have a total less than 0?
Here is the SQLite query to answer to the question: How man... | Your query is correct. Here is the SQLite query to answer the question about how many Malaysia Cups have a total less than 0:
```
SELECT COUNT(malaysia_cup) FROM table_name_5 WHERE total < 0;
``` | 11,130 | [
{
"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 (malaysia_cup VARCHAR, total INTEGER)\n\n Question: How many Malaysia Cups have a total less than 0?\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_56 (fa_cup INTEGER, malaysia_cup VARCHAR, league VARCHAR, player VARCHAR)
Question: What is the average FA cup that has a league of 0, fahmi hatta as the playe... | Here is the SQLite query to answer the question:
```
SELECT AVG(fa_cup) FROM table_name_56 WHERE league = 0 AND player = "fahmi hatta" AND malaysia_cup < 0
``` | 11,131 | [
{
"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 (fa_cup INTEGER, malaysia_cup VARCHAR, league VARCHAR, player VARCHAR)\n\n Question: What is the average FA cup that... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (malaysia_cup VARCHAR, total VARCHAR, league VARCHAR)
Question: How many Malaysia Cups have 0 for the total with a league greater than 0?
Here is the SQLite... | The query you've provided is almost correct, but there are a couple of points to address:
1. The `total` column is defined as `VARCHAR`, so comparing it directly to numeric zero (0) may lead to unexpected results. You should convert it to an integer for the comparison.
2. The `league` column should also be treated pro... | 11,132 | [
{
"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 (malaysia_cup VARCHAR, total VARCHAR, league VARCHAR)\n\n Question: How many Malaysia Cups have 0 for the total with ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (high_assists VARCHAR, high_points VARCHAR)
Question: What is High Assists, when High Points is Keon Clark (19)?
Here is the SQLite query to answer to the ... | Here is the SQLite query wrapped in code blocks:
```
SELECT high_assists FROM table_name_57 WHERE high_points = "Keon Clark (19)";
``` | 11,133 | [
{
"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_57 (high_assists VARCHAR, high_points VARCHAR)\n\n Question: What is High Assists, when High Points is Keon Clark (19)?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (location_attendance VARCHAR, high_assists VARCHAR)
Question: What is Location Attendance, when High Assists is Alvin Williams (9)?
Here is the SQLite quer... | Here is the SQLite query to answer the question regarding Location Attendance when High Assists is Alvin Williams (9):
```
SELECT location_attendance FROM table_name_29 WHERE high_assists = 'Alvin Williams (9)';
``` | 11,134 | [
{
"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_29 (location_attendance VARCHAR, high_assists VARCHAR)\n\n Question: What is Location Attendance, when High Assists 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 (high_points VARCHAR, location_attendance VARCHAR)
Question: What is High Points, when Location Attendance is Staples Center 18,964?
Here is the SQLite que... | Here is the SQLite query to answer the question regarding High Points when Location Attendance is Staples Center 18,964:
```
SELECT high_points FROM table_name_56 WHERE location_attendance = "Staples Center 18,964";
``` | 11,135 | [
{
"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 (high_points VARCHAR, location_attendance VARCHAR)\n\n Question: What is High Points, when Location Attendance is St... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (high_points VARCHAR, team VARCHAR)
Question: What is High Points, when Team is @ Phoenix?
Here is the SQLite query to answer to the question: What is High... | Here is the SQLite query to answer the question:
```
SELECT high_points FROM table_name_73 WHERE team = "@ Phoenix";
``` | 11,136 | [
{
"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_73 (high_points VARCHAR, team VARCHAR)\n\n Question: What is High Points, when Team is @ Phoenix?\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 (name VARCHAR, street_address VARCHAR)
Question: What name has 100 w. pender st. as the address?
Here is the SQLite query to answer to the question: What na... | Here is the SQLite query to answer the question:
```sql
SELECT name FROM table_name_6 WHERE street_address = "100 w. pender st."
``` | 11,137 | [
{
"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 (name VARCHAR, street_address VARCHAR)\n\n Question: What name has 100 w. pender st. as the address?\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_1 (floors VARCHAR, street_address VARCHAR)
Question: How many floors have 207 w. hastings st. as the address?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question of how many floors have 207 w. hastings st. as the address:
```
SELECT COUNT(floors) FROM table_name_1 WHERE street_address = "207 w. hastings st."
``` | 11,138 | [
{
"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 (floors VARCHAR, street_address VARCHAR)\n\n Question: How many floors have 207 w. hastings st. as the address?\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_64 (height_m___ft VARCHAR, street_address VARCHAR)
Question: What is the height m/ft where 207 w. hastings st. is the address?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question about the height m/ft for the address "207 w. hastings st.":
```
SELECT height_m___ft FROM table_name_64 WHERE street_address = "207 w. hastings st."
``` | 11,139 | [
{
"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 (height_m___ft VARCHAR, street_address VARCHAR)\n\n Question: What is the height m/ft where 207 w. hastings st. 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_58 (completed VARCHAR, list_entry_number INTEGER)
Question: What is the completed list entry number more than 1356460?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question:
```
SELECT completed FROM table_name_58 WHERE list_entry_number > 1356460
``` | 11,140 | [
{
"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 (completed VARCHAR, list_entry_number INTEGER)\n\n Question: What is the completed list entry number more than 13564... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (type VARCHAR, list_entry_number VARCHAR, name VARCHAR)
Question: Which type has a list entry number more than 1356436, named Albion Congregational Church?
... | Your SQLite query looks almost correct, but it should use the proper casing for the name matching if the data is case-sensitive. Here's the adjusted code with the correct casing for the name:
```sql
SELECT type FROM table_name_64 WHERE list_entry_number > 1356436 AND name = "Albion Congregational Church";
```
This q... | 11,141 | [
{
"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 (type VARCHAR, list_entry_number VARCHAR, name VARCHAR)\n\n Question: Which type has a list entry number more than 1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (list_entry_number VARCHAR, name VARCHAR)
Question: What is the entry number on the list for Fairfield Moravian Church?
Here is the SQLite query to answer ... | Your SQLite query is almost correct, but it is important to consider case sensitivity in string matching. SQLite is case-insensitive by default for strings; however, it can be helpful to ensure that the name matches exactly. Here is the revised query with proper casing for the name:
```
SELECT list_entry_number FROM t... | 11,142 | [
{
"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 (list_entry_number VARCHAR, name VARCHAR)\n\n Question: What is the entry number on the list for Fairfield Moravian ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (average_attendance INTEGER, _number_of_home_games VARCHAR)
Question: What was the Average Attendance during the Year in which there were 9 Home Games?
Her... | The SQLite query you provided is almost correct, but there are a couple of points to address. The `_number_of_home_games` column is defined as `VARCHAR`, so we should compare it as a string rather than an integer. Also, based on your question, it seems you want the average attendance for the year with 9 home games, rat... | 11,143 | [
{
"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 (average_attendance INTEGER, _number_of_home_games VARCHAR)\n\n Question: What was the Average Attendance during the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (_number_of_home_games INTEGER, average_attendance VARCHAR, year VARCHAR, canada___usa_rank VARCHAR)
Question: Before 2012, what was the greatest # of Home ... | Here is the SQLite query that answers your question:
```
SELECT MAX(_number_of_home_games)
FROM table_name_41
WHERE year < '2012'
AND canada___usa_rank = '52nd'
AND average_attendance < '992'
```
This query selects the maximum number of home games from the table where the year is less than 2012, the Canada - USA... | 11,144 | [
{
"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 (_number_of_home_games INTEGER, average_attendance VARCHAR, year VARCHAR, canada___usa_rank VARCHAR)\n\n Question: B... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (league VARCHAR, year VARCHAR, canada___usa_rank VARCHAR)
Question: After the year 2011, when the Canada - USA Rank was 46th, what was the League Rank?
Her... | Your SQLite query is almost correct, but it seems you are trying to select the "league" column as the League Rank. If "League Rank" is indeed what you are referring to with the "league" column, then your query is good. Here’s the formatted version of your query:
```
SELECT league AS Rank FROM table_name_54 WHERE year ... | 11,145 | [
{
"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 (league VARCHAR, year VARCHAR, canada___usa_rank VARCHAR)\n\n Question: After the year 2011, when the Canada - USA R... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (package_option VARCHAR, television_service VARCHAR, hdtv VARCHAR, language VARCHAR)
Question: What is Package/Option, when HDTV is no, when Language is Ita... | Here is the SQLite query to answer the question you've specified:
```
SELECT package_option FROM table_name_43 WHERE hdtv = "no" AND language = "italian" AND television_service = "cartello promozionale sky hd"
``` | 11,146 | [
{
"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 (package_option VARCHAR, television_service VARCHAR, hdtv VARCHAR, language VARCHAR)\n\n Question: What is Package/O... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (country VARCHAR, hdtv VARCHAR, content VARCHAR)
Question: What is Country, when HDTV is yes, and when Content is cinema?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question:
```
SELECT country FROM table_name_29 WHERE hdtv = "yes" AND content = "cinema"
``` | 11,147 | [
{
"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_29 (country VARCHAR, hdtv VARCHAR, content VARCHAR)\n\n Question: What is Country, when HDTV is yes, and when Content i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (hdtv VARCHAR, television_service VARCHAR)
Question: What is HDTV, when Television service is cartello promozionale sky hd?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question:
```
SELECT hdtv FROM table_name_95 WHERE television_service = "cartello promozionale sky hd"
``` | 11,148 | [
{
"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_95 (hdtv VARCHAR, television_service VARCHAR)\n\n Question: What is HDTV, when Television service is cartello promozion... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (content VARCHAR, package_option VARCHAR, language VARCHAR)
Question: What is Content, when Package/Option is sky cinema, and when Language is italian origin... | Here is the SQLite query to answer the question regarding the content when the package/option is "sky cinema" and the language is "italian originale":
```
SELECT content FROM table_name_6 WHERE package_option = "sky cinema" AND language = "italian originale"
``` | 11,149 | [
{
"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 (content VARCHAR, package_option VARCHAR, language VARCHAR)\n\n Question: What is Content, when Package/Option is sky... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (venue VARCHAR, attendance INTEGER)
Question: What is the Venue with an Attendance that is larger than 6,938?
Here is the SQLite query to answer to the que... | It looks like there is a small mistake in your provided SQL query. The query should filter attendance values greater than 6,938, but it mistakenly includes `OFFSET 938`, which is not necessary for this requirement. The correct query is as follows:
```sql
SELECT venue FROM table_name_55 WHERE attendance > 6938;
```
T... | 11,150 | [
{
"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 (venue VARCHAR, attendance INTEGER)\n\n Question: What is the Venue with an Attendance that is larger than 6,938?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (date VARCHAR, opponent VARCHAR)
Question: What is the Date with an Opponent that is hearts?
Here is the SQLite query to answer to the question: What is th... | Here is the SQLite query to answer the question regarding the Date with an Opponent that is hearts:
```
SELECT date FROM table_name_51 WHERE opponent = 'hearts';
``` | 11,151 | [
{
"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 (date VARCHAR, opponent VARCHAR)\n\n Question: What is the Date with an Opponent that is hearts?\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_45 (result VARCHAR, venue VARCHAR)
Question: What is the Result with a Venue that is n?
Here is the SQLite query to answer to the question: What is the Result... | Here is the SQLite query to answer the question:
```
SELECT result FROM table_name_45 WHERE venue = 'n';
``` | 11,152 | [
{
"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_45 (result VARCHAR, venue VARCHAR)\n\n Question: What is the Result with a Venue that is n?\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_81 (coat_of_cash_wearing_celebrity VARCHAR, episode_number VARCHAR)
Question: Who was the Coat of Cash Wearing Celebrity in Episode 6?
Here is the SQLite quer... | Here is the corrected SQLite query to answer the question "Who was the Coat of Cash Wearing Celebrity in Episode 6?":
```sql
SELECT coat_of_cash_wearing_celebrity FROM table_name_81 WHERE episode_number = '6'
```
Note that `episode_number` is treated as a VARCHAR, so the value '6' should be enclosed in quotes. | 11,153 | [
{
"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 (coat_of_cash_wearing_celebrity VARCHAR, episode_number VARCHAR)\n\n Question: Who was the Coat of Cash Wearing Cele... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (air_date VARCHAR, episode_number VARCHAR)
Question: What was the air date of episode 5?
Here is the SQLite query to answer to the question: What was the a... | Here is the SQLite query to answer the question about the air date of episode 5:
```
SELECT air_date FROM table_name_33 WHERE episode_number = '5';
``` | 11,154 | [
{
"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 (air_date VARCHAR, episode_number VARCHAR)\n\n Question: What was the air date of episode 5?\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_5 (races INTEGER, wins VARCHAR, podiums VARCHAR, series VARCHAR)
Question: What is the largest number of races when there are less than 6 podiums, the series i... | Here is the SQLite query to answer the question regarding the largest number of races with the specified conditions:
```
SELECT MAX(races)
FROM table_name_5
WHERE podiums < 6
AND series = 'formula renault 2.0 eurocup'
AND wins > '0';
``` | 11,155 | [
{
"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 (races INTEGER, wins VARCHAR, podiums VARCHAR, series VARCHAR)\n\n Question: What is the largest number of races when... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)
Question: Who were the Opponents in the final in the match with a Score in the final of 1–6, 6–... | Here is the SQLite query to answer the question based on the given schema:
```
SELECT opponents_in_the_final FROM table_name_22 WHERE score_in_the_final = '1–6, 6–3, 2–6';
``` | 11,156 | [
{
"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 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)\n\n Question: Who were the Opponents in the final in th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (opponents_in_the_final VARCHAR, date VARCHAR, score_in_the_final VARCHAR)
Question: What Opponents in the final had a match in 1984 with a Score in the fin... | Your provided query is almost correct, but the `date` field should be treated as a string since it is defined as `VARCHAR` in the schema. You should enclose the year 1984 in single quotes. Here’s the corrected query:
```sql
SELECT opponents_in_the_final
FROM table_name_77
WHERE date = '1984' AND score_in_the_final =... | 11,157 | [
{
"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 (opponents_in_the_final VARCHAR, date VARCHAR, score_in_the_final VARCHAR)\n\n Question: What Opponents in the final... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (year VARCHAR, nominee VARCHAR)
Question: How many years were they nominated for outstanding musical?
Here is the SQLite query to answer to the question: H... | Here is the SQLite query to answer the question about how many years they were nominated for outstanding musical:
```sql
SELECT COUNT(DISTINCT year) FROM table_name_93 WHERE nominee = "outstanding musical";
``` | 11,158 | [
{
"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 (year VARCHAR, nominee VARCHAR)\n\n Question: How many years were they nominated for outstanding musical?\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_24 (location VARCHAR, opponent VARCHAR)
Question: Where was the location for Arras Paul Arras?
Here is the SQLite query to answer to the question: Where was t... | Here is the SQLite query to answer the question "Where was the location for Arras Paul Arras?":
```
SELECT location FROM table_name_24 WHERE opponent = "Arras Paul Arras"
``` | 11,159 | [
{
"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 (location VARCHAR, opponent VARCHAR)\n\n Question: Where was the location for Arras Paul Arras?\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_88 (royal_house VARCHAR, name VARCHAR)
Question: Which royal house has the name huai?
Here is the SQLite query to answer to the question: Which royal house ha... | Here is the SQLite query wrapped in code formatting as requested:
```
SELECT royal_house FROM table_name_88 WHERE name = "huai";
``` | 11,160 | [
{
"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 (royal_house VARCHAR, name VARCHAR)\n\n Question: Which royal house has the name huai?\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_52 (name VARCHAR, title VARCHAR)
Question: Who has the title of marquis?
Here is the SQLite query to answer to the question: Who has the title of marquis?:
``... | ```sql
SELECT name FROM table_name_52 WHERE title = "marquis";
``` | 11,161 | [
{
"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 (name VARCHAR, title VARCHAR)\n\n Question: Who has the title of marquis?\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_98 (royal_house VARCHAR, state VARCHAR)
Question: Which royal house is in the state of chu?
Here is the SQLite query to answer to the question: Which royal ho... | Here is the SQLite query to answer the question: Which royal house is in the state of chu?:
```
SELECT royal_house FROM table_name_98 WHERE state = "chu";
``` | 11,162 | [
{
"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 (royal_house VARCHAR, state VARCHAR)\n\n Question: Which royal house is in the state of chu?\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_10 (state VARCHAR, title VARCHAR, name VARCHAR)
Question: Which state has a king named xiang?
Here is the SQLite query to answer to the question: Which state ... | Here is the SQLite query to answer the question: Which state has a king named xiang?:
```
SELECT state FROM table_name_10 WHERE title = "king" AND name = "xiang";
``` | 11,163 | [
{
"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 (state VARCHAR, title VARCHAR, name VARCHAR)\n\n Question: Which state has a king named xiang?\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_99 (week INTEGER, date VARCHAR)
Question: What's the most recent week for the day of November 5, 1978?
Here is the SQLite query to answer to the question: Wha... | Your question looks good, but it seems like there might be a small misunderstanding regarding the retrieval of the week for a specific date. The query you've provided looks for a week corresponding to a specific date if it exists in the table.
Here's the corrected SQL query to get the most recent week for the specific... | 11,164 | [
{
"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 (week INTEGER, date VARCHAR)\n\n Question: What's the most recent week for the day of November 5, 1978?\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_9 (week INTEGER, date VARCHAR)
Question: What's the mean week number for November 12, 1978?
Here is the SQLite query to answer to the question: What's the mea... | Your SQLite query to find the mean week number for November 12, 1978, looks correct. However, here’s an adjusted version to ensure that the date comparison is case-insensitive and to use the appropriate date format:
```sql
SELECT AVG(week) FROM table_name_9 WHERE date = '1978-11-12';
```
Ensure that the date format i... | 11,165 | [
{
"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 (week INTEGER, date VARCHAR)\n\n Question: What's the mean week number for November 12, 1978?\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_88 (week INTEGER, attendance VARCHAR)
Question: What's the mean week number when attendance was 63,263?
Here is the SQLite query to answer to the question: Wh... | It looks like there is a small mistake in the query you provided, particularly with the `OFFSET` clause, which is not the correct usage for filtering the attendance. To calculate the mean week number when attendance is '63,263', you should compare the attendance directly against the string value '63,263'. Here’s the co... | 11,166 | [
{
"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 (week INTEGER, attendance VARCHAR)\n\n Question: What's the mean week number when attendance was 63,263?\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_58 (floors VARCHAR, year VARCHAR, name VARCHAR)
Question: What is the number of floors that have years under 2008 and were named Guinness Tower?
Here is the S... | Your query is almost correct, but there are a couple of minor issues. First, you should ensure that the column `year` is treated as an integer when performing the comparison. Additionally, the name should be case-sensitive depending on how it is stored in the database. Here’s the corrected query:
```sql
SELECT COUNT(f... | 11,167 | [
{
"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 (floors VARCHAR, year VARCHAR, name VARCHAR)\n\n Question: What is the number of floors that have years under 2008 a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (year_opened INTEGER, material VARCHAR, span_feet VARCHAR)
Question: What is the sum of Year opened when steel was the material with a Span feet of 1476?
H... | Here is the SQLite query to answer the question based on the provided schema:
```
SELECT SUM(year_opened) FROM table_name_75 WHERE material = "steel" AND span_feet = "1476"
```
Note that `span_feet` is of type VARCHAR, so its value should be enclosed in quotes. | 11,168 | [
{
"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 (year_opened INTEGER, material VARCHAR, span_feet VARCHAR)\n\n Question: What is the sum of Year opened when steel w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (year_opened INTEGER, span_feet VARCHAR, span_metres VARCHAR)
Question: What is the sum of Year opened when the span feet is more than 1247, and the spam me... | Here is the SQLite query you need to obtain the sum of `year_opened` when `span_feet` is more than 1247 and `span_metres` is 384:
```
SELECT SUM(year_opened) FROM table_name_13 WHERE span_feet > 1247 AND span_metres = '384'
```
Note that I specified `'384'` as a string, assuming `span_metres` is stored as a VARCHAR.... | 11,169 | [
{
"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 (year_opened INTEGER, span_feet VARCHAR, span_metres VARCHAR)\n\n Question: What is the sum of Year opened 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_42 (sio_2 INTEGER, na_2_o VARCHAR, al_2_o_3 VARCHAR)
Question: What is average SiO 2, when Na 2 O is 7.53, and when Al 2 O 3 is less than 2.13?
Here is the SQ... | Here is the SQLite query to answer the question regarding the average SiO2, given the specified conditions for Na2O and Al2O3:
```
SELECT AVG(sio_2) FROM table_name_42 WHERE na_2_o = 7.53 AND al_2_o_3 < 2.13
``` | 11,170 | [
{
"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 (sio_2 INTEGER, na_2_o VARCHAR, al_2_o_3 VARCHAR)\n\n Question: What is average SiO 2, when Na 2 O is 7.53, and when... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (k_2_o INTEGER, al_2_o_3 VARCHAR, objects VARCHAR, na_2_o VARCHAR, fe_2_o_3 VARCHAR)
Question: What is the highest K 2 O, when Na 2 O is greater than 1.87, ... | Here is the SQLite query to answer the specified question:
```sql
SELECT MAX(k_2_o)
FROM table_name_40
WHERE na_2_o > 1.87
AND fe_2_o_3 > 0.07
AND objects = 'Ritual Disk'
AND al_2_o_3 < 0.62;
``` | 11,171 | [
{
"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_40 (k_2_o INTEGER, al_2_o_3 VARCHAR, objects VARCHAR, na_2_o VARCHAR, fe_2_o_3 VARCHAR)\n\n Question: What is the highe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (sio_2 INTEGER, na_2_o VARCHAR, k_2_o VARCHAR, fe_2_o_3 VARCHAR)
Question: What is the highest SiO 2, when K 2 O is greater than 0.16, when Fe 2 O 3 is grea... | Here is the SQLite query formatted as you requested:
```
SELECT MAX(sio_2) FROM table_name_50 WHERE k_2_o > 0.16 AND fe_2_o_3 > 0.16 AND na_2_o < 7.53
``` | 11,172 | [
{
"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 (sio_2 INTEGER, na_2_o VARCHAR, k_2_o VARCHAR, fe_2_o_3 VARCHAR)\n\n Question: What is the highest SiO 2, when K 2 O... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (date_of_vacancy VARCHAR, team VARCHAR)
Question: What is Aberdeen team's date of vacancy?
Here is the SQLite query to answer to the question: What is Aber... | Here is the SQLite query to answer the question about Aberdeen team's date of vacancy:
```
SELECT date_of_vacancy FROM table_name_37 WHERE team = "Aberdeen";
``` | 11,173 | [
{
"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 (date_of_vacancy VARCHAR, team VARCHAR)\n\n Question: What is Aberdeen team's date of vacancy?\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_57 (manner_of_departure VARCHAR, team VARCHAR)
Question: What is Motherwell Team's manner of departure?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question about Motherwell Team's manner of departure:
```
SELECT manner_of_departure FROM table_name_57 WHERE team = "Motherwell";
``` | 11,174 | [
{
"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_57 (manner_of_departure VARCHAR, team VARCHAR)\n\n Question: What is Motherwell Team's manner of departure?\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_2 (date_of_appointment VARCHAR, manner_of_departure VARCHAR, replaced_by VARCHAR)
Question: What is the date of appointment for the team with a resigned manner... | Sure! Here is the SQLite query formatted correctly:
```
SELECT date_of_appointment FROM table_name_2 WHERE manner_of_departure = "resigned" AND replaced_by = "Sandy Clark"
``` | 11,175 | [
{
"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 (date_of_appointment VARCHAR, manner_of_departure VARCHAR, replaced_by VARCHAR)\n\n Question: What is the date of app... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (manner_of_departure VARCHAR, replaced_by VARCHAR)
Question: What manner of departure was Dick Advocaat replaced by?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question about what manner of departure Dick Advocaat was replaced by:
```sql
SELECT manner_of_departure FROM table_name_47 WHERE replaced_by = "Dick Advocaat";
``` | 11,176 | [
{
"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 (manner_of_departure VARCHAR, replaced_by VARCHAR)\n\n Question: What manner of departure was Dick Advocaat replaced... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_30 (lost VARCHAR, against VARCHAR, points VARCHAR)
Question: Which amount of lost had an against of more than 22 and 9 points?
Here is the SQLite query to ans... | Your provided SQLite query is almost correct, but it seems there's some confusion regarding the condition for the `against` column. You are looking for cases where `against` is greater than 22 and where `points` equals 9.
Here is the restructured query in the code block format:
```
SELECT lost FROM table_name_30 WHE... | 11,177 | [
{
"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_30 (lost VARCHAR, against VARCHAR, points VARCHAR)\n\n Question: Which amount of lost had an against of more than 22 an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (points INTEGER, played INTEGER)
Question: What is the total amount of points when the played number was less than 12?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question regarding the total amount of points when the played number was less than 12:
```
SELECT SUM(points) FROM table_name_93 WHERE played < 12;
``` | 11,178 | [
{
"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 (points INTEGER, played INTEGER)\n\n Question: What is the total amount of points when the played number was less th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (points INTEGER, difference VARCHAR)
Question: What is the largest points number where the difference is 12?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question: What is the largest points number where the difference is 12?:
```
SELECT MAX(points) FROM table_name_69 WHERE difference = "12"
``` | 11,179 | [
{
"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 (points INTEGER, difference VARCHAR)\n\n Question: What is the largest points number where the difference is 12?\n\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (points INTEGER, lost VARCHAR, played VARCHAR)
Question: What is the total number of points where there were 3 losses and a played number bigger than 12?
H... | Your SQLite query contains a minor mistake regarding the condition for the "lost" column, as it's of type VARCHAR. You should be checking for the string value '3' instead of the integer 3. Here’s the corrected version of the query:
```sql
SELECT SUM(points) FROM table_name_40 WHERE lost = '3' AND played > '12'
```
M... | 11,180 | [
{
"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_40 (points INTEGER, lost VARCHAR, played VARCHAR)\n\n Question: What is the total number of points where there were 3 l... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (winning_score VARCHAR, runner_s__up VARCHAR)
Question: What was the winning score for the tournament where Garth Mulroy was the runner-up?
Here is the SQL... | Here is the SQLite query to answer the question about the winning score for the tournament where Garth Mulroy was the runner-up:
```sql
SELECT winning_score FROM table_name_94 WHERE runner_s__up = "Garth Mulroy";
``` | 11,181 | [
{
"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 (winning_score VARCHAR, runner_s__up VARCHAR)\n\n Question: What was the winning score for the tournament where Gart... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (tournament VARCHAR, margin_of_victory VARCHAR)
Question: Which tournament had a margin of victory of 6 strokes?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about which tournament had a margin of victory of 6 strokes:
```
SELECT tournament FROM table_name_34 WHERE margin_of_victory = "6 strokes";
``` | 11,182 | [
{
"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_34 (tournament VARCHAR, margin_of_victory VARCHAR)\n\n Question: Which tournament had a margin of victory of 6 strokes?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (winning_score VARCHAR, date VARCHAR)
Question: For the tournament played on 16 Jan 2011, what was the winning score?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question regarding the winning score for the tournament played on 16 Jan 2011:
```
SELECT winning_score FROM table_name_21 WHERE date = "16 jan 2011";
``` | 11,183 | [
{
"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 (winning_score VARCHAR, date VARCHAR)\n\n Question: For the tournament played on 16 Jan 2011, what was the winning s... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (runner_s__up VARCHAR, margin_of_victory VARCHAR)
Question: For the tournament ending with a margin of victory of 2 strokes, who was the runner(s)-up?
Here... | Here is the SQLite query you provided, wrapped as requested:
```
SELECT runner_s__up FROM table_name_58 WHERE margin_of_victory = "2 strokes"
``` | 11,184 | [
{
"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 (runner_s__up VARCHAR, margin_of_victory VARCHAR)\n\n Question: For the tournament ending with a margin of victory o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (winning_score VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)
Question: What was the winning score for the tournament where Garth Mulroy was the ... | Here is the SQLite query to answer the question:
```
SELECT winning_score FROM table_name_98 WHERE margin_of_victory = "1 stroke" AND runner_s__up = "Garth Mulroy";
``` | 11,185 | [
{
"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 (winning_score VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)\n\n Question: What was the winning score fo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (winning_score VARCHAR, margin_of_victory VARCHAR)
Question: For the tournament ending with a margin of victory of 6 strokes, what was the winning score?
H... | Your SQLite query is correct. Here it is wrapped in the appropriate code block:
```
SELECT winning_score FROM table_name_90 WHERE margin_of_victory = "6 strokes";
```
This query will retrieve the winning score from the `table_name_90` where the margin of victory is specified as 6 strokes. | 11,186 | [
{
"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 (winning_score VARCHAR, margin_of_victory VARCHAR)\n\n Question: For the tournament ending with a margin of victory ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (drawn INTEGER, team VARCHAR, points VARCHAR)
Question: How many Drawns have a Team of aa são bento and Points larger than 1?
Here is the SQLite query to a... | The SQLite query you provided has the right idea, but there is an issue with using SUM(drawn) in the context of counting draws. Instead, you should count the number of records that meet the criteria. Here's the corrected version of the query:
```
SELECT COUNT(*) FROM table_name_54 WHERE team = "aa são bento" AND point... | 11,187 | [
{
"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 (drawn INTEGER, team VARCHAR, points VARCHAR)\n\n Question: How many Drawns have a Team of aa são bento and Points l... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (drawn VARCHAR, against VARCHAR, points VARCHAR)
Question: What is the Drawn has an Against smaller than 20 and Points of 15?
Here is the SQLite query to a... | Your SQLite query looks correct for retrieving the `drawn` values where the `against` value is less than 20 and the `points` value is 15. Here is the formatted code:
```
SELECT drawn FROM table_name_46 WHERE against < 20 AND points = 15;
```
Make sure that the data types of `against` and `points` are appropriate for... | 11,188 | [
{
"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 (drawn VARCHAR, against VARCHAR, points VARCHAR)\n\n Question: What is the Drawn has an Against smaller than 20 and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (against INTEGER, drawn VARCHAR, lost VARCHAR)
Question: How many Against has a Drawn smaller than 1, and a Lost smaller than 5?
Here is the SQLite query t... | The query you provided seems to be attempting to find the maximum value of the `against` column, but the question asks for counting the number of rows that meet the criteria. To answer the question "How many Against has a Drawn smaller than 1, and a Lost smaller than 5?", you should use the `COUNT()` function instead. ... | 11,189 | [
{
"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 (against INTEGER, drawn VARCHAR, lost VARCHAR)\n\n Question: How many Against has a Drawn smaller than 1, and a Lost... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (against INTEGER, drawn VARCHAR, played VARCHAR)
Question: what is the average Against has Drawn of 2, and a Played larger than 10?
Here is the SQLite quer... | Your SQL query is almost correct, but there is an issue with how the `drawn` column is treated — it is defined as a VARCHAR type, which typically means its values are stored as text. Assuming that the value "2" in the `drawn` column should be treated as an integer, you might want to adjust the query accordingly to avoi... | 11,190 | [
{
"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 (against INTEGER, drawn VARCHAR, played VARCHAR)\n\n Question: what is the average Against has Drawn of 2, and a Pla... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (goals INTEGER, name VARCHAR, rank VARCHAR)
Question: How many goals were there for Johan Cruyff when the rank's less than 3?
Here is the SQLite query to a... | Here is the corrected SQLite query to answer the question about Johan Cruyff's goals when the rank is less than 3:
```
SELECT SUM(goals) FROM table_name_36 WHERE name = 'Johan Cruyff' AND CAST(rank AS INTEGER) < 3;
```
Note: I've used `CAST(rank AS INTEGER)` to ensure the comparison works correctly since `rank` is a... | 11,191 | [
{
"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 (goals INTEGER, name VARCHAR, rank VARCHAR)\n\n Question: How many goals were there for Johan Cruyff when the rank's... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (against INTEGER, lost VARCHAR, points VARCHAR)
Question: What is the highest against when the lost is 3 with less than 30 points?
Here is the SQLite query... | Here is the SQLite query to answer the question regarding the highest `against` when `lost` is 3 and `points` is less than 30:
```sql
SELECT MAX(against) FROM table_name_73 WHERE lost = '3' AND points < '30';
``` | 11,192 | [
{
"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_73 (against INTEGER, lost VARCHAR, points VARCHAR)\n\n Question: What is the highest against when the lost is 3 with le... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (played INTEGER, against VARCHAR, drawn VARCHAR)
Question: What is the average Played when the against is 51, and the drawn is more than 1?
Here is the SQLi... | Here is the SQLite query correctly formatted to answer the question:
```
SELECT AVG(played) FROM table_name_9 WHERE against = '51' AND drawn > '1';
```
Note: Since the `against` and `drawn` columns are defined as VARCHAR in the schema, we are using quotes around the values for comparison. | 11,193 | [
{
"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 (played INTEGER, against VARCHAR, drawn VARCHAR)\n\n Question: What is the average Played when the against is 51, and... | |
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, opponent VARCHAR)
Question: What is the result against Clemson?
Here is the SQLite query to answer to the question: What is the result aga... | Here is the SQLite query to answer the question about the result against Clemson:
```
SELECT result FROM table_name_86 WHERE opponent = "clemson"
``` | 11,194 | [
{
"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, opponent VARCHAR)\n\n Question: What is the result against Clemson?\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 (games INTEGER, rank VARCHAR)
Question: What is the number of Games for the player in Rank 3?
Here is the SQLite query to answer to the question: What is t... | The provided query has a minor issue because the `rank` column is of type `VARCHAR`, which means that the value '3' should be treated as a string. Here’s the corrected SQLite query to find the number of games for the player in Rank 3:
```sql
SELECT games FROM table_name_21 WHERE rank = '3'
```
This query retrieves th... | 11,195 | [
{
"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 (games INTEGER, rank VARCHAR)\n\n Question: What is the number of Games for the player in Rank 3?\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_59 (rank VARCHAR, name VARCHAR, assists VARCHAR)
Question: With more than 69 Assists, what is Dejuan Collins' Rank?
Here is the SQLite query to answer to the ... | The provided query does not correctly return Dejuan Collins' rank; instead, it counts entries that match the criteria. Here’s the correct SQLite query to retrieve the rank of Dejuan Collins when he has more than 69 assists:
```sql
SELECT rank FROM table_name_59 WHERE name = "Dejuan Collins" AND assists > 69;
```
Thi... | 11,196 | [
{
"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 (rank VARCHAR, name VARCHAR, assists VARCHAR)\n\n Question: With more than 69 Assists, what is Dejuan Collins' Rank?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (assists INTEGER, games VARCHAR, rank VARCHAR)
Question: How many Assists for the Player with 13 Games and a Rank less than 3?
Here is the SQLite query to ... | Here is the corrected SQLite query to answer the question:
```sql
SELECT SUM(assists) FROM table_name_29 WHERE games = '13' AND rank < '3'
```
Note: It's important to ensure that the values you're comparing (such as '13' and '3') are in the correct format, particularly if the columns are of type VARCHAR. This assume... | 11,197 | [
{
"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_29 (assists INTEGER, games VARCHAR, rank VARCHAR)\n\n Question: How many Assists for the Player with 13 Games and a Ran... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (uncommitted INTEGER, total VARCHAR, hillary_clinton VARCHAR)
Question: What is the lowest number of uncommitted superdelegates for a state with more than 1... | Here's the SQLite query to find the lowest number of uncommitted superdelegates for a state with more than 16 total and 2 for Hillary Clinton:
```sql
SELECT MIN(uncommitted)
FROM table_name_16
WHERE total > 16 AND hillary_clinton = '2';
```
Note: Since `hillary_clinton` is defined as a `VARCHAR`, the value '2' sho... | 11,198 | [
{
"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 (uncommitted INTEGER, total VARCHAR, hillary_clinton VARCHAR)\n\n Question: What is the lowest number of uncommitted... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (japanese VARCHAR, prefecture VARCHAR, name VARCHAR)
Question: What Japanese prefecture has Ibaraki, Tsukuba?
Here is the SQLite query to answer to the que... | Here is the corrected SQLite query to answer the question regarding which Japanese prefecture has Ibaraki, Tsukuba:
```sql
SELECT prefecture FROM table_name_15 WHERE japanese = "ibaraki" AND name = "tsukuba";
``` | 11,199 | [
{
"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 (japanese VARCHAR, prefecture VARCHAR, name VARCHAR)\n\n Question: What Japanese prefecture has Ibaraki, Tsukuba?\n\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.