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_56 (opponent VARCHAR, october INTEGER)
Question: What is the Opponent of the game after October 28?
Here is the SQLite query to answer to the question: What i... | Here is the SQLite query to answer the question about the opponent of the game after October 28:
```
SELECT opponent FROM table_name_56 WHERE october > 28
``` | 13,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_56 (opponent VARCHAR, october INTEGER)\n\n Question: What is the Opponent of the game after October 28?\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_52 (opponent VARCHAR, record VARCHAR, october VARCHAR, game VARCHAR)
Question: What is the Opponent before October 31 with a Record of 2-3-1 after Game 5?
Her... | Here is the SQLite query to answer the question:
```sql
SELECT opponent FROM table_name_52 WHERE october < 31 AND game > 5 AND record = "2-3-1";
``` | 13,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_52 (opponent VARCHAR, record VARCHAR, october VARCHAR, game VARCHAR)\n\n Question: What is the Opponent before October ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (opponent VARCHAR, record VARCHAR)
Question: What opponent had a record of 37-27?
Here is the SQLite query to answer to the question: What opponent had a r... | Here is the SQLite query to answer the question regarding which opponent had a record of 37-27:
```
SELECT opponent FROM table_name_19 WHERE record = '37-27';
``` | 13,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_19 (opponent VARCHAR, record VARCHAR)\n\n Question: What opponent had a record of 37-27?\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_9 (date VARCHAR, location VARCHAR)
Question: What date was the game played at the Delta Center?
Here is the SQLite query to answer to the question: What date ... | Here is the SQLite query to answer the question of what date the game was played at the Delta Center:
```
SELECT date FROM table_name_9 WHERE location = "Delta Center";
``` | 13,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_9 (date VARCHAR, location VARCHAR)\n\n Question: What date was the game played at the Delta Center?\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_56 (game INTEGER, location VARCHAR)
Question: What was the total games played at the Staples Center?
Here is the SQLite query to answer to the question: What ... | The SQLite query to answer the question about the total games played at the Staples Center should aggregate the values of the `game` column for the specific location. Here is the corrected SQL query:
```
SELECT SUM(game) FROM table_name_56 WHERE location = "Staples Center";
```
Make sure to use the correct casing for... | 13,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_56 (game INTEGER, location VARCHAR)\n\n Question: What was the total games played at the Staples Center?\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_52 (score VARCHAR, record VARCHAR)
Question: What's the score if the record was 38-30?
Here is the SQLite query to answer to the question: What's the score if... | Here is the SQLite query to answer the question: What's the score if the record was 38-30?:
```
SELECT score FROM table_name_52 WHERE record = "38-30"
``` | 13,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_52 (score VARCHAR, record VARCHAR)\n\n Question: What's the score if the record was 38-30?\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_56 (long INTEGER, yards VARCHAR, returns VARCHAR)
Question: Can you tell me the lowest Long that has the Yards 293, and the Returns smaller than 16?
Here is t... | Here is the SQLite query to answer the question:
```
SELECT MIN(long) FROM table_name_56 WHERE yards = '293' AND returns < '16'
``` | 13,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_56 (long INTEGER, yards VARCHAR, returns VARCHAR)\n\n Question: Can you tell me the lowest Long that has the Yards 293,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (player VARCHAR, long VARCHAR, yards VARCHAR)
Question: Can you tell me the Player that has the Long larger than 28, and the Yards of 222?
Here is the SQLi... | Here is the SQLite query to answer the question:
```
SELECT player FROM table_name_92 WHERE long > 28 AND yards = 222
``` | 13,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_92 (player VARCHAR, long VARCHAR, yards VARCHAR)\n\n Question: Can you tell me the Player that has the Long larger than... | |
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, opposing_team VARCHAR)
Question: What was the date of the match against western province?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question regarding the date of the match against Western Province:
```
SELECT date FROM table_name_52 WHERE opposing_team = "western province"
``` | 13,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_52 (date VARCHAR, opposing_team VARCHAR)\n\n Question: What was the date of the match against western province?\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_61 (rank INTEGER, total VARCHAR, bronze VARCHAR)
Question: Which Rank has a Total larger than 30, and a Bronze of 14?
Here is the SQLite query to answer to th... | The provided SQL query seems to misunderstand the requirements of the question. The question asks for the rank(s) that meet specific criteria regarding "total" and "bronze". The average of ranks is not required in this case.
Here’s the correct SQLite query to answer the question:
```
SELECT rank FROM table_name_61 WH... | 13,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_61 (rank INTEGER, total VARCHAR, bronze VARCHAR)\n\n Question: Which Rank has a Total larger than 30, and a Bronze of 1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (gold VARCHAR, bronze VARCHAR, silver VARCHAR, total VARCHAR)
Question: How much Gold has a Silver smaller than 3, and a Total of 9, and a Bronze smaller th... | Here is the SQLite query to answer the question based on the provided schema:
```sql
SELECT COUNT(gold) FROM table_name_26 WHERE silver < 3 AND total = 9 AND bronze < 1;
``` | 13,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_26 (gold VARCHAR, bronze VARCHAR, silver VARCHAR, total VARCHAR)\n\n Question: How much Gold has a Silver smaller than ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (gold VARCHAR, bronze VARCHAR, silver VARCHAR, rank VARCHAR)
Question: How much Gold has a Silver smaller than 14, and a Rank larger than 8, and a Bronze of... | Here is the SQLite query to answer the question:
```sql
SELECT COUNT(gold) FROM table_name_80 WHERE silver < 14 AND rank > 8 AND bronze = 3;
``` | 13,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_80 (gold VARCHAR, bronze VARCHAR, silver VARCHAR, rank VARCHAR)\n\n Question: How much Gold has a Silver smaller 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_70 (bronze VARCHAR, rank VARCHAR, silver VARCHAR, nation VARCHAR)
Question: How much Bronze has a Silver larger than 2, and a Nation of mixed team, and a Rank ... | Your SQLite query looks mostly correct, but there are a couple of clarifications needed. In SQL, the condition `silver > 2` assumes that silver is stored as a numeric type, so it should be ensured that it can be compared as such. Also, the `COUNT` function counts the number of rows that match the criteria, but if you n... | 13,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_70 (bronze VARCHAR, rank VARCHAR, silver VARCHAR, nation VARCHAR)\n\n Question: How much Bronze has a Silver larger tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (attendance VARCHAR, date VARCHAR)
Question: What is Attendance, when Date is "26 December 2004"?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question:
```
SELECT attendance FROM table_name_56 WHERE date = "26 December 2004"
``` | 13,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_56 (attendance VARCHAR, date VARCHAR)\n\n Question: What is Attendance, when Date is \"26 December 2004\"?\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_65 (attendance INTEGER, venue VARCHAR, date VARCHAR)
Question: What is the average Attendance, when Venue is "A", and when Date is "5 January 2005"?
Here is t... | Here's the SQLite query you need:
```
SELECT AVG(attendance) FROM table_name_65 WHERE venue = "A" AND date = "5 January 2005";
``` | 13,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_65 (attendance INTEGER, venue VARCHAR, date VARCHAR)\n\n Question: What is the average Attendance, when Venue is \"A\",... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (venue VARCHAR, result VARCHAR)
Question: What is Venue, when Result is "0-0"?
Here is the SQLite query to answer to the question: What is Venue, when Resu... | Here is the SQLite query to answer the question about what the Venue is when the Result is "0-0":
```
SELECT venue FROM table_name_65 WHERE result = "0-0";
``` | 13,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_65 (venue VARCHAR, result VARCHAR)\n\n Question: What is Venue, when Result is \"0-0\"?\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_62 (attendance VARCHAR, result VARCHAR)
Question: What is Attendance, when Result is "2-4"?
Here is the SQLite query to answer to the question: What is Attend... | Here is the SQLite query to answer the question regarding Attendance when Result is "2-4":
```
SELECT attendance FROM table_name_62 WHERE result = "2-4";
``` | 13,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_62 (attendance VARCHAR, result VARCHAR)\n\n Question: What is Attendance, when Result is \"2-4\"?\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_51 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)
Question: What's the total attendance of games against the New York Giants after week 13?
Here is the ... | Here is the corrected SQLite query to answer the question about the total attendance of games against the New York Giants after week 13:
```sql
SELECT SUM(attendance) FROM table_name_51 WHERE week > 13 AND opponent = "new york giants";
```
Note: I changed `COUNT(attendance)` to `SUM(attendance)` assuming that `attend... | 13,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_51 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)\n\n Question: What's the total attendance of games against the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (innings INTEGER, runs VARCHAR, matches VARCHAR)
Question: What is the largest number of innings with less than 342 runs and more than 4 matches?
Here is t... | Your SQL query is mostly correct, but we need to ensure that the `runs` field is correctly treated as an integer for comparison. Since the `runs` field is defined as `VARCHAR`, we should convert it to an integer for the comparison. Additionally, the `matches` field should also be treated as an integer during the compar... | 13,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_86 (innings INTEGER, runs VARCHAR, matches VARCHAR)\n\n Question: What is the largest number of innings with less than ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (highest_score VARCHAR)
Question: What is the average value in the 100s category when the high score is 196?
Here is the SQLite query to answer to the ques... | It seems there is a misunderstanding in the query you provided. The query you wrote doesn't correctly calculate the average for the 100s category.
To answer the question properly, you can check if the `highest_score` falls within the 100s range (i.e., between 100 and 199) for the given high score of 196 and then calc... | 13,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_86 (highest_score VARCHAR)\n\n Question: What is the average value in the 100s category when the high score is 196?\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_44 (pick__number INTEGER, round VARCHAR, position VARCHAR, college VARCHAR)
Question: A Round larger than 1, a College of Oklahoma state, and a average Pick # ... | Your SQLite query is correctly structured to answer the question. Here it is wrapped in the requested format:
```
SELECT AVG(pick__number) FROM table_name_44 WHERE position = "tight end" AND college = "oklahoma state" AND round > 1
``` | 13,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_44 (pick__number INTEGER, round VARCHAR, position VARCHAR, college VARCHAR)\n\n Question: A Round larger than 1, a Coll... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (college VARCHAR, round VARCHAR, pick__number VARCHAR)
Question: A Pick # larger than 339 and the College that has a Round of 14 is what?
Here is the SQLit... | Here is the SQLite query to answer the question:
```
SELECT college FROM table_name_52 WHERE round = '14' AND pick__number > '339'
``` | 13,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_52 (college VARCHAR, round VARCHAR, pick__number VARCHAR)\n\n Question: A Pick # larger than 339 and the College 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_36 (college VARCHAR, pick__number VARCHAR)
Question: Pick # of 331 went to which college?
Here is the SQLite query to answer to the question: Pick # of 331 we... | Here is the SQLite query to answer the question "Pick # of 331 went to which college?":
```
SELECT college FROM table_name_36 WHERE pick__number = '331'
``` | 13,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_36 (college VARCHAR, pick__number VARCHAR)\n\n Question: Pick # of 331 went to which college?\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_16 (college VARCHAR, pick__number VARCHAR)
Question: Pick # of 203 went to which college?
Here is the SQLite query to answer to the question: Pick # of 203 we... | Here is the SQLite query to answer the question about which college received pick # 203:
```
SELECT college FROM table_name_16 WHERE pick__number = '203'
``` | 13,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_16 (college VARCHAR, pick__number VARCHAR)\n\n Question: Pick # of 203 went to which college?\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_63 (width_feet__m_ VARCHAR, source__year_ VARCHAR)
Question: What is the width feet in meeters for the truss with a source of nbi (2009)?
Here is the SQLite q... | Certainly! Here is the SQLite query wrapped in the requested format:
```
SELECT width_feet__m_ FROM table_name_63 WHERE source__year_ = "nbi (2009)";
``` | 13,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_63 (width_feet__m_ VARCHAR, source__year_ VARCHAR)\n\n Question: What is the width feet in meeters for the truss 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_8 (width_feet__m_ VARCHAR, source__year_ VARCHAR)
Question: What is the width for hte truss with a source of zacher (1994)?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question about the width for the truss with a source of zacher (1994):
```
SELECT width_feet__m_ FROM table_name_8 WHERE source__year_ = "zacher (1994)"
``` | 13,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_8 (width_feet__m_ VARCHAR, source__year_ VARCHAR)\n\n Question: What is the width for hte truss with a source of zacher... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (articulatory_class VARCHAR, aspirated_stop VARCHAR)
Question: Which Articulatory class has and Aspirated stop of ㅍ?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question regarding which articulatory class has an aspirated stop of ㅍ:
```
SELECT articulatory_class FROM table_name_34 WHERE aspirated_stop = "ㅍ"
``` | 13,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_34 (articulatory_class VARCHAR, aspirated_stop VARCHAR)\n\n Question: Which Articulatory class has and Aspirated stop o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (non__stop VARCHAR, aspirated_stop VARCHAR)
Question: Which Non- stop has an Aspirated stop of ㅎ?
Here is the SQLite query to answer to the question: Which... | Your SQLite query to find which Non-stop has an Aspirated stop of ㅎ is correct. Here it is wrapped in the appropriate code block format:
```
SELECT non__stop FROM table_name_60 WHERE aspirated_stop = "ㅎ";
``` | 13,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_60 (non__stop VARCHAR, aspirated_stop VARCHAR)\n\n Question: Which Non- stop has an Aspirated stop of ㅎ?\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_27 (articulatory_class VARCHAR, non__stop VARCHAR)
Question: If the Non- stop is (ㆁ), what is the Articulatory Class?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question:
```
SELECT articulatory_class FROM table_name_27 WHERE non__stop = "ㆁ"
``` | 13,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_27 (articulatory_class VARCHAR, non__stop VARCHAR)\n\n Question: If the Non- stop is (ㆁ), what is the Articulatory Clas... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (non__stop VARCHAR, plain_stop VARCHAR)
Question: If the Plain stop is ㄷ, what is the Non- stop?
Here is the SQLite query to answer to the question: If the... | Here's the SQLite query to answer your question:
```
SELECT non__stop FROM table_name_92 WHERE plain_stop = "ㄷ"
``` | 13,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_92 (non__stop VARCHAR, plain_stop VARCHAR)\n\n Question: If the Plain stop is ㄷ, what is the Non- stop?\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_24 (round INTEGER, player VARCHAR)
Question: What round was Joe Sims picked?
Here is the SQLite query to answer to the question: What round was Joe Sims picke... | The provided SQLite query has a couple of issues. Since you are looking to find out the specific round that Joe Sims was picked, you should use `SELECT` without `AVG()`, as you just want to retrieve the round number.
Here is the corrected query:
```
SELECT round FROM table_name_24 WHERE player = "Joe Sims";
```
Thi... | 13,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_24 (round INTEGER, player VARCHAR)\n\n Question: What round was Joe Sims picked?\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_36 (pick VARCHAR, player VARCHAR)
Question: What was Moe Gardner's pick?
Here is the SQLite query to answer to the question: What was Moe Gardner's pick?:
```... | Here is the SQLite query to answer the question: What was Moe Gardner's pick?:
```
SELECT pick FROM table_name_36 WHERE player = "moe gardner";
``` | 13,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_36 (pick VARCHAR, player VARCHAR)\n\n Question: What was Moe Gardner's pick?\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_18 (round INTEGER, school VARCHAR)
Question: What was the highest round that had northwestern?
Here is the SQLite query to answer to the question: What was th... | Here is the SQLite query to answer the question regarding the highest round that had "northwestern":
```
SELECT MAX(round) FROM table_name_18 WHERE school = 'northwestern'
``` | 13,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_18 (round INTEGER, school VARCHAR)\n\n Question: What was the highest round that had northwestern?\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_11 (total_population__2010_census_ INTEGER, area__km_2__ INTEGER)
Question: Which Total population (2010 census) has an Area (km 2) smaller than 147,307.00?
H... | It looks like there might be a mistake in the query you provided, specifically with the use of `OFFSET` in the `WHERE` clause. The `OFFSET` keyword is used for pagination and should not be applied in this context. Instead, you should be checking for the area directly with a comparison.
Here's the corrected SQL query ... | 13,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_11 (total_population__2010_census_ INTEGER, area__km_2__ INTEGER)\n\n Question: Which Total population (2010 census) ha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (total_population__2005_estimate_ INTEGER, province VARCHAR, area__km_2__ VARCHAR)
Question: Which Total population (2005 estimate) has a Province of west k... | It looks like there are a couple of issues in the provided SQL query. The `AVG` function calculates the average of a set of values, but it seems you want a specific query to retrieve rows that match certain conditions rather than an average. Additionally, the `area__km_2__` field should be compared to a numeric value w... | 13,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_78 (total_population__2005_estimate_ INTEGER, province VARCHAR, area__km_2__ VARCHAR)\n\n Question: Which Total populat... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (opponent VARCHAR, march VARCHAR, game VARCHAR)
Question: who is the opponent after march 21 and the game is 75?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question regarding the opponent after March 21 and the game being 75:
```
SELECT opponent FROM table_name_93 WHERE march > 21 AND game = '75';
```
Please note that if the `game` field is of type VARCHAR in your schema, it should be compared to a string value, hence '75' is used... | 13,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_93 (opponent VARCHAR, march VARCHAR, game VARCHAR)\n\n Question: who is the opponent after march 21 and the game is 75?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (game INTEGER, march VARCHAR)
Question: what is the game when march is 15?
Here is the SQLite query to answer to the question: what is the game when march ... | It looks like you want to retrieve the `game` value when `march` is 15. However, the SQL query you provided uses `SUM(game)`, which may not be necessary if you're looking for a single value. Instead, you might want to just select the `game` directly. Here’s the corrected query:
```sql
SELECT game FROM table_name_12 WH... | 13,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_12 (game INTEGER, march VARCHAR)\n\n Question: what is the game when march is 15?\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_82 (score VARCHAR, game VARCHAR, march VARCHAR)
Question: what is the score when the game is higher than 66 on march 28?
Here is the SQLite query to answer to... | Here is the corrected SQLite query to answer the question regarding the score when the game is higher than 66 on March 28:
```sql
SELECT score FROM table_name_82 WHERE game > '66' AND march = '28';
```
Note that the values are enclosed in quotes since `score` and `game` are defined as `VARCHAR`. Make sure the compar... | 13,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_82 (score VARCHAR, game VARCHAR, march VARCHAR)\n\n Question: what is the score when the game is higher than 66 on marc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (report VARCHAR, away_team VARCHAR, score VARCHAR)
Question: What was the report for an away team of Sydney Spirit and score of 96-87?
Here is the SQLite q... | Here is the SQLite query that answers your question:
```
SELECT report FROM table_name_16 WHERE away_team = "Sydney Spirit" AND score = "96-87";
``` | 13,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_16 (report VARCHAR, away_team VARCHAR, score VARCHAR)\n\n Question: What was the report for an away team of Sydney Spir... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (home_team VARCHAR, score VARCHAR)
Question: Who was the home team with a score of 101-93?
Here is the SQLite query to answer to the question: Who was the ... | Here is the SQLite query to answer the question about the home team with a score of 101-93:
```
SELECT home_team FROM table_name_92 WHERE score = "101-93";
``` | 13,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_92 (home_team VARCHAR, score VARCHAR)\n\n Question: Who was the home team with a score of 101-93?\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_38 (score VARCHAR, away_team VARCHAR)
Question: What was the score for the Perth Wildcats as away team?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question regarding the score for the Perth Wildcats as the away team:
```
SELECT score FROM table_name_38 WHERE away_team = "Perth Wildcats";
``` | 13,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_38 (score VARCHAR, away_team VARCHAR)\n\n Question: What was the score for the Perth Wildcats as away team?\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_83 (date VARCHAR, home_team VARCHAR)
Question: On what date were the Melbourne Tigers the home team?
Here is the SQLite query to answer to the question: On wh... | Your SQLite query to find the date when the Melbourne Tigers were the home team is correctly formulated. Here it is wrapped in code blocks:
```
SELECT date FROM table_name_83 WHERE home_team = "melbourne tigers";
``` | 13,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_83 (date VARCHAR, home_team VARCHAR)\n\n Question: On what date were the Melbourne Tigers the home team?\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_81 (challenge_loser VARCHAR, challenge_winner VARCHAR)
Question: Which challenge loser has a Challenge Winner of roseny?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question about which challenge loser has a Challenge Winner of "roseny":
```
SELECT challenge_loser FROM table_name_81 WHERE challenge_winner = 'roseny';
``` | 13,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_81 (challenge_loser VARCHAR, challenge_winner VARCHAR)\n\n Question: Which challenge loser has a Challenge Winner of ro... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (episode VARCHAR, challenge_winner VARCHAR)
Question: Which episode has a Challenge Winner of berto?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question regarding which episode has a Challenge Winner of berto:
```
SELECT episode FROM table_name_50 WHERE challenge_winner = 'berto';
``` | 13,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_50 (episode VARCHAR, challenge_winner VARCHAR)\n\n Question: Which episode has a Challenge Winner of berto?\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_44 (challenge_winner VARCHAR, challenge_loser VARCHAR)
Question: Which winner has a Challenge Loser of alexcy?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question: Which winner has a Challenge Loser of alexcy?:
```
SELECT challenge_winner FROM table_name_44 WHERE challenge_loser = "alexcy";
``` | 13,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_44 (challenge_winner VARCHAR, challenge_loser VARCHAR)\n\n Question: Which winner has a Challenge Loser of alexcy?\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_19 (challenge_winner VARCHAR, challenge_loser VARCHAR)
Question: Which winner has a Challenge Loser of gisel?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question: Which winner has a Challenge Loser of gisel?:
```
SELECT challenge_winner FROM table_name_19 WHERE challenge_loser = "gisel";
``` | 13,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_19 (challenge_winner VARCHAR, challenge_loser VARCHAR)\n\n Question: Which winner has a Challenge Loser of gisel?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (result VARCHAR, alternate VARCHAR, event VARCHAR)
Question: What was the result for the 2007 WCC when Sun Yue was the alternate?
Here is the SQLite query ... | Your provided query correctly retrieves the result for the specified conditions. Here's how it looks wrapped in a code block:
```
SELECT result FROM table_name_33 WHERE alternate = "sun yue" AND event = "2007 wcc";
```
This query is designed to return the `result` from `table_name_33` where the `alternate` is "sun y... | 13,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_33 (result VARCHAR, alternate VARCHAR, event VARCHAR)\n\n Question: What was the result for the 2007 WCC when Sun Yue w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (event VARCHAR, result VARCHAR)
Question: What event has the result of 7th (5-6)?
Here is the SQLite query to answer to the question: What event has the re... | Here is the SQLite query to answer the question of what event has the result of 7th (5-6):
```
SELECT event FROM table_name_82 WHERE result = "7th (5-6)";
``` | 13,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_82 (event VARCHAR, result VARCHAR)\n\n Question: What event has the result of 7th (5-6)?\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_5 (lead VARCHAR, event VARCHAR)
Question: Who was the lead for the 2008 WCC?
Here is the SQLite query to answer to the question: Who was the lead for the 2008... | Here is the SQLite query to answer the question "Who was the lead for the 2008 WCC?":
```sql
SELECT lead FROM table_name_5 WHERE event = "2008 WCC";
``` | 13,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_5 (lead VARCHAR, event VARCHAR)\n\n Question: Who was the lead for the 2008 WCC?\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_39 (lead VARCHAR, skip VARCHAR, event VARCHAR)
Question: What was the Lead for the 2009 WCC when Wang Bingyu news was the skip?
Here is the SQLite query to an... | Your SQLite query looks correct for the question you provided. Here it is formatted properly:
```
SELECT lead FROM table_name_39 WHERE skip = "wang bingyu" AND event = "2009 wcc"
```
This query will return the lead associated with Wang Bingyu as the skip during the 2009 WCC event. | 13,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_39 (lead VARCHAR, skip VARCHAR, event VARCHAR)\n\n Question: What was the Lead for the 2009 WCC when Wang Bingyu news w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_14 (event VARCHAR, skip VARCHAR)
Question: What event had Wang Bingyu for the skip?
Here is the SQLite query to answer to the question: What event had Wang Bi... | Here is the SQLite query to answer the question regarding the event that had Wang Bingyu as the skip:
```sql
SELECT event FROM table_name_14 WHERE skip = "Wang Bingyu";
``` | 13,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_14 (event VARCHAR, skip VARCHAR)\n\n Question: What event had Wang Bingyu for the skip?\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_75 (event VARCHAR, alternate VARCHAR, skip VARCHAR)
Question: What event was Sun Yue the alternate and wang bingyu(3rd) the skip?
Here is the SQLite query to ... | Here is the SQLite query to answer the question about what event Sun Yue was the alternate for and Wang Bingyu (3rd) was the skip:
```
SELECT event FROM table_name_75 WHERE alternate = "sun yue" AND skip = "wang bingyu(3rd)"
``` | 13,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_75 (event VARCHAR, alternate VARCHAR, skip VARCHAR)\n\n Question: What event was Sun Yue the alternate and wang bingyu(... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (team_2 VARCHAR)
Question: WHAT IS THE SECOND LEG WITH HARO AS TEAM TWO?
Here is the SQLite query to answer to the question: WHAT IS THE SECOND LEG WITH HA... | Here is the corrected SQLite query to answer the question about the second leg with HARO as team two:
```sql
SELECT 2 AS nd_leg FROM table_name_27 WHERE team_2 = "haro";
```
However, if you are looking for more context or iterations (i.e., ensure it captures the specific "second leg" scenario), please provide additio... | 13,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_27 (team_2 VARCHAR)\n\n Question: WHAT IS THE SECOND LEG WITH HARO AS TEAM TWO?\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_79 (team_1 VARCHAR)
Question: WHAT IS THE FIRST LEG OF TUILLA?
Here is the SQLite query to answer to the question: WHAT IS THE FIRST LEG OF TUILLA?:
```
SELEC... | To answer the question "WHAT IS THE FIRST LEG OF TUILLA?" based on the provided schema, the correct SQLite query would be as follows:
```
SELECT 1 AS st_leg FROM table_name_79 WHERE team_1 = "tuilla"
``` | 13,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_79 (team_1 VARCHAR)\n\n Question: WHAT IS THE FIRST LEG OF TUILLA?\n\nHere is the SQLite query to answer to the questio... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (team VARCHAR, game VARCHAR)
Question: Which team has a Game of 49?
Here is the SQLite query to answer to the question: Which team has a Game of 49?:
```
S... | Your query is mostly correct, but since the `game` column is of type `VARCHAR`, you should compare it as a string rather than an integer. Here’s the corrected query:
```
SELECT team FROM table_name_18 WHERE game = '49'
```
This will properly match the value '49' in the `game` column. | 13,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_18 (team VARCHAR, game VARCHAR)\n\n Question: Which team has a Game of 49?\n\nHere is the SQLite query to answer to the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (high_points VARCHAR, team VARCHAR)
Question: What are the High points for Team @ portland?
Here is the SQLite query to answer to the question: What are th... | Here is the SQLite query to answer the question about the high points for Team @ portland:
```
SELECT high_points FROM table_name_75 WHERE team = "@ portland"
``` | 13,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_75 (high_points VARCHAR, team VARCHAR)\n\n Question: What are the High points for Team @ portland?\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_40 (high_assists VARCHAR, team VARCHAR)
Question: What are the High assists for Team houston?
Here is the SQLite query to answer to the question: What are the... | Here is the SQLite query to answer the question about the high assists for Team Houston:
```
SELECT high_assists FROM table_name_40 WHERE team = "houston"
``` | 13,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_40 (high_assists VARCHAR, team VARCHAR)\n\n Question: What are the High assists for Team houston?\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_12 (high_assists VARCHAR, date VARCHAR)
Question: What are the High assists for February 2?
Here is the SQLite query to answer to the question: What are the H... | Here is the SQLite query to answer the question about the High assists for February 2:
```
SELECT high_assists FROM table_name_12 WHERE date = 'February 2';
``` | 13,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_12 (high_assists VARCHAR, date VARCHAR)\n\n Question: What are the High assists for February 2?\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_59 (game VARCHAR, opponents INTEGER)
Question: What game did the Buffalo Bills' opponents earn more than 28 points?
Here is the SQLite query to answer to the ... | Here is the SQLite query you need to answer the question regarding the Buffalo Bills' opponents who earned more than 28 points:
```
SELECT game FROM table_name_59 WHERE opponents > 28 AND game LIKE '%Buffalo Bills%';
``` | 13,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_59 (game VARCHAR, opponents INTEGER)\n\n Question: What game did the Buffalo Bills' opponents earn more than 28 points?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (year_completion_expected VARCHAR, country VARCHAR)
Question: What was the year that China will have a building completed?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question about the year that China will have a building completed:
```
SELECT year_completion_expected FROM table_name_79 WHERE country = "China"
``` | 13,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_79 (year_completion_expected VARCHAR, country VARCHAR)\n\n Question: What was the year that China will have a building ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (name VARCHAR, country VARCHAR)
Question: What is the name of the buildings for China?
Here is the SQLite query to answer to the question: What is the name... | Here is the SQLite query formatted as requested:
```
SELECT name FROM table_name_15 WHERE country = "china";
``` | 13,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_15 (name VARCHAR, country VARCHAR)\n\n Question: What is the name of the buildings for China?\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_65 (name VARCHAR, year_completion_expected INTEGER)
Question: What are the names for projects that will be completed after 2016?
Here is the SQLite query to a... | Here is the SQLite query to answer the question regarding project names that will be completed after 2016:
```
SELECT name FROM table_name_65 WHERE year_completion_expected > 2016;
``` | 13,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_65 (name VARCHAR, year_completion_expected INTEGER)\n\n Question: What are the names for projects that will be complete... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (pinnacle_height_planned VARCHAR, country VARCHAR, name VARCHAR)
Question: How high is the Goldin Finance 117 building currently being build in China?
Here ... | Here is the SQLite query to answer the question about the height of the Goldin Finance 117 building currently being built in China:
```
SELECT pinnacle_height_planned FROM table_name_4 WHERE country = 'china' AND name = 'goldin finance 117';
``` | 13,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_4 (pinnacle_height_planned VARCHAR, country VARCHAR, name VARCHAR)\n\n Question: How high is the Goldin Finance 117 bui... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (city___state VARCHAR, series VARCHAR)
Question: What is the City / State, when Series is ATCC Round 3?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question regarding the City / State when the Series is "ATCC Round 3":
```sql
SELECT city___state FROM table_name_56 WHERE series = "ATCC Round 3";
``` | 13,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_56 (city___state VARCHAR, series VARCHAR)\n\n Question: What is the City / State, when Series is ATCC Round 3?\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_36 (date VARCHAR, series VARCHAR)
Question: What is Date, when Series is Amscar Round 3?
Here is the SQLite query to answer to the question: What is Date, whe... | Here is the correct SQLite query to answer the question about the Date when Series is "Amscar Round 3":
```
SELECT date FROM table_name_36 WHERE series = "Amscar Round 3";
``` | 13,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_36 (date VARCHAR, series VARCHAR)\n\n Question: What is Date, when Series is Amscar Round 3?\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_95 (winner VARCHAR, circuit VARCHAR, series VARCHAR)
Question: What is Winner, when Circuit is Mallala Motor Sport Park, and when Series is ASTC Round 6?
Here... | Here is the SQLite query to answer the question:
```
SELECT winner FROM table_name_95 WHERE circuit = "Mallala Motor Sport Park" AND series = "ASTC Round 6";
``` | 13,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_95 (winner VARCHAR, circuit VARCHAR, series VARCHAR)\n\n Question: What is Winner, when Circuit is Mallala Motor Sport ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (city___state VARCHAR, winner VARCHAR, date VARCHAR)
Question: What is City / State, when Winner is Mal Rose, and when Date is 20 Jul?
Here is the SQLite q... | Here is the SQLite query to answer the question:
```
SELECT city___state FROM table_name_93 WHERE winner = "Mal Rose" AND date = "20 Jul"
``` | 13,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_93 (city___state VARCHAR, winner VARCHAR, date VARCHAR)\n\n Question: What is City / State, when Winner is Mal Rose, an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (city___state VARCHAR, circuit VARCHAR, winner VARCHAR)
Question: What is City / State, when Circuit is Eastern Creek Raceway, and when Winner is Michael Do... | Here is the SQLite query to answer the question:
```
SELECT city___state FROM table_name_83 WHERE circuit = "Eastern Creek Raceway" AND winner = "Michael Donaher";
``` | 13,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_83 (city___state VARCHAR, circuit VARCHAR, winner VARCHAR)\n\n Question: What is City / State, when Circuit is Eastern ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (date VARCHAR, series VARCHAR)
Question: What is Date, when Series is ATCC Round 5?
Here is the SQLite query to answer to the question: What is Date, when S... | Your query looks mostly correct but note that SQL string comparisons are case-sensitive in SQLite. If you want to ensure it matches "ATCC Round 5" regardless of case, you can use the `LOWER` function. Here’s the adjusted query:
```sql
SELECT date FROM table_name_1 WHERE LOWER(series) = "atcc round 5"
```
If you want ... | 13,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_1 (date VARCHAR, series VARCHAR)\n\n Question: What is Date, when Series is ATCC Round 5?\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_35 (wins INTEGER, rank VARCHAR, top_fives VARCHAR)
Question: What is the sum of wins for casey mears when the player ranked 22nd and was in teh top fives 3 tim... | Here is the corrected SQLite query to answer the question based on the provided schema:
```sql
SELECT SUM(wins)
FROM table_name_35
WHERE rank = '22nd' AND top_fives = '3'
AND player_name = 'casey mears';
```
(Note: The condition for the player's name was added for clarity, assuming there is a player identifier in t... | 13,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_35 (wins INTEGER, rank VARCHAR, top_fives VARCHAR)\n\n Question: What is the sum of wins for casey mears when the playe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (top_fives VARCHAR, year VARCHAR, wins VARCHAR)
Question: What is the total number of top fives in 2010 when casey mears had more than 0 wins?
Here is the ... | Your query is almost correct, but it also needs to ensure that the records are related specifically to "Casey Mears". You should add a condition to check that the relevant row corresponds to Casey Mears. Here’s the corrected query:
```sql
SELECT COUNT(top_fives)
FROM table_name_29
WHERE year = "2010" AND wins > 0 AN... | 13,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_29 (top_fives VARCHAR, year VARCHAR, wins VARCHAR)\n\n Question: What is the total number of top fives in 2010 when cas... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (wins VARCHAR, rank VARCHAR, top_fives VARCHAR)
Question: What is the total number of wins when casey mears ranked 36th and had more than 0 top fives?
Here... | The provided SQLite query is almost correct, but it needs a minor adjustment because `wins` is stored as a `VARCHAR`. To correctly sum the `wins`, you might need to cast it to an integer if they are numeric values stored as strings. Also, we should use the `SUM` function instead of `COUNT` if we want the total wins ins... | 13,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_62 (wins VARCHAR, rank VARCHAR, top_fives VARCHAR)\n\n Question: What is the total number of wins when casey mears rank... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (top_fives INTEGER, poles VARCHAR, top_tens VARCHAR)
Question: What is the total number of top fives when casey mears had more than 1 poles and top tens les... | It appears that you want to filter the records based on specific criteria for a driver named Casey Mears. Assuming the `poles` and `top_tens` columns are of type VARCHAR and can be converted to INTEGER for comparison, you will also need to add a condition to specify that the name of the driver is Casey Mears.
Here’s t... | 13,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_54 (top_fives INTEGER, poles VARCHAR, top_tens VARCHAR)\n\n Question: What is the total number of top fives when casey ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (to_par VARCHAR, player VARCHAR)
Question: What's k. j. choi's to par?
Here is the SQLite query to answer to the question: What's k. j. choi's to par?:
```
... | Here is the SQLite query to answer the question regarding k. j. choi's to par:
```
SELECT to_par FROM table_name_2 WHERE player = "k. j. choi"
``` | 13,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_2 (to_par VARCHAR, player VARCHAR)\n\n Question: What's k. j. choi's to par?\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_33 (player VARCHAR, score VARCHAR, place VARCHAR)
Question: Which Player has a Score smaller than 69, and a Place of t1?
Here is the SQLite query to answer to... | Your query has a slight issue, as the `score` column is defined as `VARCHAR`, which means it contains string values. To compare strings numerically in SQLite, you should convert the `score` to an integer (in this case, a numeric value) using the `CAST` function. Here is the corrected query wrapped in code formatting:
... | 13,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_33 (player VARCHAR, score VARCHAR, place VARCHAR)\n\n Question: Which Player has a Score smaller than 69, and a Place o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (to_par VARCHAR, player VARCHAR)
Question: Which To par has a Player of emlyn aubrey?
Here is the SQLite query to answer to the question: Which To par has ... | Here is the SQLite query to answer the question of which To par has a Player of "emlyn aubrey":
```
SELECT to_par FROM table_name_22 WHERE player = 'emlyn aubrey';
``` | 13,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_22 (to_par VARCHAR, player VARCHAR)\n\n Question: Which To par has a Player of emlyn aubrey?\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_30 (score VARCHAR, place VARCHAR, player VARCHAR)
Question: Which Score has a Place of t1, and a Player of scott simpson?
Here is the SQLite query to answer t... | Here is the corrected SQLite query to find the score for a specific place and player:
```sql
SELECT score FROM table_name_30 WHERE place = "t1" AND player = "scott simpson"
```
This query retrieves the score associated with the specified conditions instead of counting the scores. | 13,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_30 (score VARCHAR, place VARCHAR, player VARCHAR)\n\n Question: Which Score has a Place of t1, and a Player of scott si... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (to_par VARCHAR, score INTEGER)
Question: Which To par has a Score larger than 68?
Here is the SQLite query to answer to the question: Which To par has a S... | Here is the SQLite query to answer the question about which "to_par" has a score larger than 68:
```
SELECT to_par FROM table_name_42 WHERE score > 68;
``` | 13,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_42 (to_par VARCHAR, score INTEGER)\n\n Question: Which To par has a Score larger than 68?\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_80 (game INTEGER, date VARCHAR)
Question: How many games were on December 5?
Here is the SQLite query to answer to the question: How many games were on Decemb... | The query you've provided is almost correct, but it needs some adjustments. If you're looking for the count of games on December 5, you should use the COUNT function instead of SUM, and also ensure that the date format matches what is stored in the database. Here’s how you can write the query:
```sql
SELECT COUNT(game... | 13,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_80 (game INTEGER, date VARCHAR)\n\n Question: How many games were on December 5?\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_32 (date VARCHAR, team VARCHAR)
Question: What day did Phoenix play?
Here is the SQLite query to answer to the question: What day did Phoenix play?:
```
SELEC... | Here is the SQLite query to answer the question: What day did Phoenix play?:
```
SELECT date FROM table_name_32 WHERE team = "phoenix";
``` | 13,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_32 (date VARCHAR, team VARCHAR)\n\n Question: What day did Phoenix play?\n\nHere is the SQLite query to answer to the q... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (site VARCHAR, date VARCHAR)
Question: What is Site, when Date is "November 13"?
Here is the SQLite query to answer to the question: What is Site, when Dat... | Here is the SQLite query to answer the question of what Site corresponds to the Date is "November 13":
```sql
SELECT site FROM table_name_15 WHERE date = "November 13";
``` | 13,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_15 (site VARCHAR, date VARCHAR)\n\n Question: What is Site, when Date is \"November 13\"?\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_67 (site VARCHAR, date VARCHAR)
Question: What is SIte, when Date is "September 13"?
Here is the SQLite query to answer to the question: What is SIte, when Da... | Here is the SQLite query to answer the question of what the site is when the date is "September 13":
```sql
SELECT site FROM table_name_67 WHERE date = "September 13";
``` | 13,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_67 (site VARCHAR, date VARCHAR)\n\n Question: What is SIte, when Date is \"September 13\"?\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_79 (attendance VARCHAR, opponent VARCHAR)
Question: What is Attendance, when Opponent is "At Syracuse"?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question: What is Attendance, when Opponent is "At Syracuse"?:
```
SELECT attendance FROM table_name_79 WHERE opponent = "At Syracuse";
``` | 13,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_79 (attendance VARCHAR, opponent VARCHAR)\n\n Question: What is Attendance, when Opponent is \"At Syracuse\"?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (site VARCHAR, opponent VARCHAR)
Question: What is Site, when Opponent is "All times are in eastern."?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question regarding the Site when the Opponent is "All times are in eastern.":
```sql
SELECT site FROM table_name_13 WHERE opponent = "All times are in eastern.";
``` | 13,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_13 (site VARCHAR, opponent VARCHAR)\n\n Question: What is Site, when Opponent is \"All times are in eastern.\"?\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_65 (date VARCHAR, site VARCHAR)
Question: What is Date, when Site is "Louisiana Superdome • New Orleans, LA"?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question:
```
SELECT date FROM table_name_65 WHERE site = "Louisiana Superdome • New Orleans, LA";
``` | 13,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_65 (date VARCHAR, site VARCHAR)\n\n Question: What is Date, when Site is \"Louisiana Superdome • New Orleans, LA\"?\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_94 (january INTEGER, record VARCHAR, game VARCHAR, score VARCHAR)
Question: What is the lowest January, when Game is less than 46, when Score is "5 - 3", and w... | Your SQLite query is correctly structured to find the lowest January that meets the specified conditions. Here it is again, wrapped as requested:
```
SELECT MIN(january) FROM table_name_94 WHERE game < 46 AND score = "5 - 3" AND record = "15-22-8"
``` | 13,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_94 (january INTEGER, record VARCHAR, game VARCHAR, score VARCHAR)\n\n Question: What is the lowest January, when Game i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (game VARCHAR, record VARCHAR)
Question: What is the total number of Game, when Record is "11-17-7"?
Here is the SQLite query to answer to the question: Wh... | Your SQLite query is correctly structured to count the number of games where the record is "11-17-7". Here it is wrapped in code formatting:
```
SELECT COUNT(game) FROM table_name_34 WHERE record = "11-17-7";
``` | 13,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_34 (game VARCHAR, record VARCHAR)\n\n Question: What is the total number of Game, when Record is \"11-17-7\"?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (opponent VARCHAR, january VARCHAR, score VARCHAR)
Question: What is Opponent, when January is greater than 19, and when Score is "7 - 2"?
Here is the SQLi... | Here is the SQLite query to answer the question regarding the opponent when January is greater than 19 and the score is "7 - 2":
```
SELECT opponent FROM table_name_94 WHERE january > 19 AND score = "7 - 2"
``` | 13,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_94 (opponent VARCHAR, january VARCHAR, score VARCHAR)\n\n Question: What is Opponent, when January is greater than 19, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (notes VARCHAR, rank VARCHAR, stadium VARCHAR)
Question: What are the notes with a less than 3 rank at Yuvileiny Stadium (sumy)?
Here is the SQLite query to... | Here is the SQLite query to answer the question regarding the notes with a rank of less than 3 at Yuvileiny Stadium (sumy):
```
SELECT notes FROM table_name_9 WHERE rank < '3' AND stadium = 'Yuvileiny Stadium (sumy)';
``` | 13,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_9 (notes VARCHAR, rank VARCHAR, stadium VARCHAR)\n\n Question: What are the notes with a less than 3 rank at Yuvileiny ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (player VARCHAR, total VARCHAR)
Question: Which player has a total of 160?
Here is the SQLite query to answer to the question: Which player has a total of ... | Here is the SQLite query to answer the question: Which player has a total of 160?:
```
SELECT player FROM table_name_19 WHERE total = '160'
``` | 13,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_19 (player VARCHAR, total VARCHAR)\n\n Question: Which player has a total of 160?\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_21 (country VARCHAR, player VARCHAR)
Question: What country does charles coody play for?
Here is the SQLite query to answer to the question: What country does... | Here is the SQLite query to answer the question of what country Charles Coody plays for:
```
SELECT country FROM table_name_21 WHERE player = "charles coody"
``` | 13,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_21 (country VARCHAR, player VARCHAR)\n\n Question: What country does charles coody play for?\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_87 (division_titles INTEGER, playoff_appearances VARCHAR, conference_titles VARCHAR)
Question: How many division titles does the team with 23 playoff appearanc... | Here is the SQLite query to answer the question regarding how many division titles the team with 23 playoff appearances and more than 1 conference title has:
```sql
SELECT SUM(division_titles)
FROM table_name_87
WHERE playoff_appearances = '23' AND conference_titles > '1';
```
Please note that I have quoted the co... | 13,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_87 (division_titles INTEGER, playoff_appearances VARCHAR, conference_titles VARCHAR)\n\n Question: How many division ti... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (seasons_completed INTEGER, finals_appearances VARCHAR, division_titles VARCHAR, playoff_appearances VARCHAR)
Question: What is the average number of season... | Here is the corrected SQLite query to answer your question:
```sql
SELECT AVG(seasons_completed)
FROM table_name_97
WHERE division_titles < 1 AND
playoff_appearances = '0' AND
finals_appearances > '0'
```
Please note that in SQLite, when comparing values in a VARCHAR column, you should use string repr... | 13,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_97 (seasons_completed INTEGER, finals_appearances VARCHAR, division_titles VARCHAR, playoff_appearances VARCHAR)\n\n Qu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (game INTEGER, points INTEGER)
Question: What hame has points larger than 81?
Here is the SQLite query to answer to the question: What hame has points larg... | It seems there is a small mistake in your question regarding what you're looking for. If you want to find the games that have points larger than 81, you'll need to select the `game` column directly without using `SUM`. Here’s the corrected SQL query:
```sql
SELECT game FROM table_name_44 WHERE points > 81
```
This q... | 13,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_44 (game INTEGER, points INTEGER)\n\n Question: What hame has points larger than 81?\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_91 (round VARCHAR, player VARCHAR)
Question: How many round values are associated with Cleveland McCrae?
Here is the SQLite query to answer to the question: H... | Your SQLite query is almost correct, but it's a good practice to ensure case insensitivity when dealing with string comparisons in SQL, unless you are certain about the case. Here is the refined version of the query:
```sql
SELECT COUNT(round) FROM table_name_91 WHERE LOWER(player) = "cleveland mccrae";
```
This vers... | 13,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_91 (round VARCHAR, player VARCHAR)\n\n Question: How many round values are associated with Cleveland McCrae?\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_87 (team VARCHAR, year VARCHAR, start VARCHAR)
Question: What team is after 1998 with a start of dnq?
Here is the SQLite query to answer to the question: What... | Your SQLite query to find the team that has a year after 1998 with a start of "dnq" is correctly formulated. Here it is, wrapped in code format as you requested:
```
SELECT team FROM table_name_87 WHERE year > 1998 AND start = "dnq";
``` | 13,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_87 (team VARCHAR, year VARCHAR, start VARCHAR)\n\n Question: What team is after 1998 with a start of dnq?\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_63 (start VARCHAR, finish VARCHAR)
Question: What's the start when the finish is 1?
Here is the SQLite query to answer to the question: What's the start when ... | Here's the SQLite query to answer the question "What's the start when the finish is 1?":
```
SELECT start FROM table_name_63 WHERE finish = "1";
``` | 13,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_63 (start VARCHAR, finish VARCHAR)\n\n Question: What's the start when the finish is 1?\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_1 (year INTEGER, finish VARCHAR, start VARCHAR, team VARCHAR)
Question: What's the latest year with a start of 3 and a finish of 40 for the morgan-mcclure team... | Here is the SQLite query to answer the question:
```
SELECT MAX(year) FROM table_name_1 WHERE start = "3" AND finish = "40" AND team = "morgan-mcclure";
``` | 13,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_1 (year INTEGER, finish VARCHAR, start VARCHAR, team VARCHAR)\n\n Question: What's the latest year with a start of 3 an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (goals VARCHAR, matches VARCHAR, average VARCHAR)
Question: How many goals were scored on the goalkeeper with fewer than 37 matches and an average of 1.5?
... | The provided SQLite query has a small issue; it selects the `goals` column but does not sum the goals to find the total number of goals scored against the goalkeeper with the specified conditions. You should use the `SUM()` function to calculate the total. Here’s the corrected query:
```sql
SELECT SUM(goals) AS total_... | 13,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_24 (goals VARCHAR, matches VARCHAR, average VARCHAR)\n\n Question: How many goals were scored on the goalkeeper with fe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (matches INTEGER, goalkeeper VARCHAR, average VARCHAR)
Question: How many matches did Carlos Kameni play in, who had an average larger than 1.27?
Here is t... | Here is the SQLite query you requested, properly formatted:
```
SELECT SUM(matches) FROM table_name_58 WHERE goalkeeper = "carlos kameni" AND average > 1.27;
``` | 13,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_58 (matches INTEGER, goalkeeper VARCHAR, average VARCHAR)\n\n Question: How many matches did Carlos Kameni play in, who... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.