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_8 (round INTEGER, player VARCHAR)
Question: What is the average Round number of Player Adrien Clarke?
Here is the SQLite query to answer to the question: What... | Your SQLite query looks mostly correct, but it's worth noting that string comparisons in SQL are case-sensitive based on the collation used. If the player's name may be in a different case in the database (such as "Adrien Clarke"), you may want to handle it accordingly.
Here’s your query, slightly adjusted for case se... | 26,600 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (round INTEGER, player VARCHAR)\n\n Question: What is the average Round number of Player Adrien Clarke?\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_31 (round INTEGER, pick INTEGER)
Question: What is the highest round number of a Pick after 209.
Here is the SQLite query to answer to the question: What is t... | Your query to find the highest round number of a Pick after 209 is mostly correct, but there seems to be a little misunderstanding of the phrasing. You may mean to find the highest round number for picks that are greater than 209, which would require checking the "pick" column.
Assuming you want to get the maximum rou... | 26,601 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (round INTEGER, pick INTEGER)\n\n Question: What is the highest round number of a Pick after 209.\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_56 (score VARCHAR, record VARCHAR)
Question: What was the score when the Blue Jays had a record of 39-20?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question about the score when the Blue Jays had a record of 39-20:
```
SELECT score FROM table_name_56 WHERE record = '39-20';
``` | 26,602 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_56 (score VARCHAR, record VARCHAR)\n\n Question: What was the score when the Blue Jays had a record of 39-20?\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_15 (player VARCHAR, to_par VARCHAR, score VARCHAR)
Question: Which player has a to par of e and a score of 67-73=140?
Here is the SQLite query to answer to th... | The given SQLite query has a syntax issue in the condition related to the score. To compare the score correctly, you should specify the score as a string that matches the format in the database. Here's the corrected query:
```sql
SELECT player FROM table_name_15 WHERE to_par = 'e' AND score = '67-73=140';
```
This q... | 26,603 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_15 (player VARCHAR, to_par VARCHAR, score VARCHAR)\n\n Question: Which player has a to par of e and a score of 67-73=14... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (country VARCHAR, player VARCHAR)
Question: What country is Adam Scott from?
Here is the SQLite query to answer to the question: What country is Adam Scott... | Here is the SQLite query to answer the question: What country is Adam Scott from?:
```
SELECT country FROM table_name_19 WHERE player = "Adam Scott"
``` | 26,604 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_19 (country VARCHAR, player VARCHAR)\n\n Question: What country is Adam Scott from?\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_81 (score VARCHAR, country VARCHAR)
Question: What is Canada's score?
Here is the SQLite query to answer to the question: What is Canada's score?:
```
SELECT ... | Here is the SQLite query to answer the question: What is Canada's score?:
```
SELECT score FROM table_name_81 WHERE country = "Canada"
``` | 26,605 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_81 (score VARCHAR, country VARCHAR)\n\n Question: What is Canada's score?\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_31 (country VARCHAR, score VARCHAR)
Question: Which country has a score of 70-66=136?
Here is the SQLite query to answer to the question: Which country has a ... | The provided SQLite query is incorrect in its logic and syntax. The calculation (`70 - 66 = 136`) is not being executed as intended, and it does not reflect the correct SQL syntax for filtering records based on the score.
If you need to find countries whose score equals 136 after performing the calculation `70 - 66`, ... | 26,606 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (country VARCHAR, score VARCHAR)\n\n Question: Which country has a score of 70-66=136?\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_3 (player VARCHAR, country VARCHAR)
Question: Which player is from Sweden?
Here is the SQLite query to answer to the question: Which player is from Sweden?:
`... | Here is the SQLite query to answer the question: Which player is from Sweden?:
```sql
SELECT player FROM table_name_3 WHERE country = 'Sweden';
``` | 26,607 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_3 (player VARCHAR, country VARCHAR)\n\n Question: Which player is from Sweden?\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_4 (Field VARCHAR, player VARCHAR, goals VARCHAR, tries VARCHAR, points VARCHAR)
Question: What is the total number of field goals of Denan Kemp, who has more t... | Your provided SQLite query has the right idea, but it needs a correction. Specifically, since the "goals" column is of type VARCHAR, the condition `goals = 0` should be compared as a string.
Here's the corrected query wrapped properly:
```
SELECT COUNT(Field) AS goals
FROM table_name_4
WHERE tries > 4 AND points >... | 26,608 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_4 (Field VARCHAR, player VARCHAR, goals VARCHAR, tries VARCHAR, points VARCHAR)\n\n Question: What is the total number ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (goals INTEGER, player VARCHAR, tries VARCHAR)
Question: What is the number of goals Dave Taylor, who has more than 1 tries, has?
Here is the SQLite query ... | Here is the corrected SQLite query to answer the question:
```sql
SELECT SUM(goals) FROM table_name_65 WHERE player = "Dave Taylor" AND CAST(tries AS INTEGER) > 1
```
This query sums the goals for "Dave Taylor" only if the number of tries is greater than 1, taking care to cast `tries` to an integer since it is defin... | 26,609 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_65 (goals INTEGER, player VARCHAR, tries VARCHAR)\n\n Question: What is the number of goals Dave Taylor, who has more t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (goals VARCHAR, points INTEGER)
Question: How many goals did the player with less than 4 points have?
Here is the SQLite query to answer to the question: H... | Here is the SQLite query to answer the question regarding the number of goals scored by players with less than 4 points:
```sql
SELECT COUNT(goals) FROM table_name_74 WHERE points < 4;
``` | 26,610 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (goals VARCHAR, points INTEGER)\n\n Question: How many goals did the player with less than 4 points have?\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_74 (joined VARCHAR, mascot VARCHAR)
Question: When doeas Mascot of blue devils in Gary Froebel School?
Here is the SQLite query to answer to the question: Whe... | Your SQLite query is almost correct, but it seems like it might be missing a condition to specify the school. Here’s how you can modify the query to include the school name (assuming you want to check for "Gary Froebel School"):
```sql
SELECT joined FROM table_name_74 WHERE mascot = "blue devils" AND joined = "Gary Fr... | 26,611 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (joined VARCHAR, mascot VARCHAR)\n\n Question: When doeas Mascot of blue devils in Gary Froebel School?\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_49 (previous_conference VARCHAR, school VARCHAR)
Question: Which conference held at School of whiting?
Here is the SQLite query to answer to the question: Whi... | Here's the SQLite query to answer the question about which conference was held at the School of Whiting:
```
SELECT previous_conference FROM table_name_49 WHERE school = "whiting";
``` | 26,612 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_49 (previous_conference VARCHAR, school VARCHAR)\n\n Question: Which conference held at School of whiting?\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_96 (lifespan VARCHAR, party VARCHAR, state VARCHAR, representative VARCHAR)
Question: What is the lifespan of Joseph Vance, a democratic-republican from Ohio?
... | Here is the SQLite query formatted as requested:
```
SELECT lifespan FROM table_name_96 WHERE state = "ohio" AND representative = "joseph vance" AND party = "democratic-republican"
``` | 26,613 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_96 (lifespan VARCHAR, party VARCHAR, state VARCHAR, representative VARCHAR)\n\n Question: What is the lifespan of Josep... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (loss VARCHAR, date VARCHAR)
Question: Name the loss on may 22
Here is the SQLite query to answer to the question: Name the loss on may 22:
```
SELECT loss... | Here is the SQLite query to answer the question "Name the loss on May 22":
```sql
SELECT loss FROM table_name_29 WHERE date = "may 22";
``` | 26,614 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_29 (loss VARCHAR, date VARCHAR)\n\n Question: Name the loss on may 22\n\nHere is the SQLite query to answer to the ques... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (opponent VARCHAR, record VARCHAR)
Question: Who was the Blue Jays opponent when their record was 84-69?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question regarding the Blue Jays opponent when their record was 84-69:
```
SELECT opponent FROM table_name_18 WHERE record = '84-69';
``` | 26,615 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (opponent VARCHAR, record VARCHAR)\n\n Question: Who was the Blue Jays opponent when their record was 84-69?\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_56 (date VARCHAR, record VARCHAR)
Question: What was the date of the game when their record was 84-69?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to find the date of the game when the record was 84-69:
```
SELECT date FROM table_name_56 WHERE record = '84-69';
``` | 26,616 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_56 (date VARCHAR, record VARCHAR)\n\n Question: What was the date of the game when their record was 84-69?\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_1 (laps VARCHAR, rank VARCHAR)
Question: How many laps does the one ranked 16 have?
Here is the SQLite query to answer to the question: How many laps does the... | Your SQLite query to find out how many laps the person ranked 16 has is correctly written. Here it is, wrapped as requested:
```
SELECT laps FROM table_name_1 WHERE rank = "16";
``` | 26,617 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (laps VARCHAR, rank VARCHAR)\n\n Question: How many laps does the one ranked 16 have?\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_29 (start VARCHAR, laps VARCHAR)
Question: What is the start of the race with 676 laps?
Here is the SQLite query to answer to the question: What is the start ... | Your SQLite query is correct. Here’s the query wrapped in code formatting as requested:
```
SELECT start FROM table_name_29 WHERE laps = "676";
``` | 26,618 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_29 (start VARCHAR, laps VARCHAR)\n\n Question: What is the start of the race with 676 laps?\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_47 (year VARCHAR, rank VARCHAR)
Question: What year was the ranking 1?
Here is the SQLite query to answer to the question: What year was the ranking 1?:
```
S... | Here is the SQLite query to answer the question: What year was the ranking 1?:
```
SELECT year FROM table_name_47 WHERE rank = "1";
``` | 26,619 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_47 (year VARCHAR, rank VARCHAR)\n\n Question: What year was the ranking 1?\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_74 (finish VARCHAR, qual VARCHAR)
Question: What finish qualified at 141.071?
Here is the SQLite query to answer to the question: What finish qualified at 141... | Here is the SQLite query wrapped as requested:
```
SELECT finish FROM table_name_74 WHERE qual = "141.071";
``` | 26,620 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (finish VARCHAR, qual VARCHAR)\n\n Question: What finish qualified at 141.071?\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_72 (rank VARCHAR, start VARCHAR)
Question: What ranking that had a start of 19?
Here is the SQLite query to answer to the question: What ranking that had a st... | ```sql
SELECT rank FROM table_name_72 WHERE start = "19";
``` | 26,621 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (rank VARCHAR, start VARCHAR)\n\n Question: What ranking that had a start of 19?\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_4 (laps VARCHAR, qual VARCHAR)
Question: How many laps was qualifier of 138.212?
Here is the SQLite query to answer to the question: How many laps was qualifi... | Here is the SQLite query to answer the question about how many laps was the qualifier of 138.212:
```
SELECT laps FROM table_name_4 WHERE qual = '138.212';
``` | 26,622 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_4 (laps VARCHAR, qual VARCHAR)\n\n Question: How many laps was qualifier of 138.212?\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_55 (place VARCHAR, player VARCHAR, score VARCHAR)
Question: Name the place for score of 67-70=137 and stuart appleby
Here is the SQLite query to answer to the... | The SQLite query you provided has errors in the condition for the score. The expression `67 - 70 = 137` is incorrect. Instead, you should be checking for a specific score value. If the target score is indeed 137, the query should compare the score column directly to that value. Here's the corrected query:
```sql
SELEC... | 26,623 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_55 (place VARCHAR, player VARCHAR, score VARCHAR)\n\n Question: Name the place for score of 67-70=137 and stuart appleb... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (player VARCHAR, country VARCHAR)
Question: Name the player for fiji
Here is the SQLite query to answer to the question: Name the player for fiji:
```
SELE... | Here is the SQLite query to answer your question:
```
SELECT player FROM table_name_29 WHERE country = "fiji"
``` | 26,624 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_29 (player VARCHAR, country VARCHAR)\n\n Question: Name the player for fiji\n\nHere is the SQLite query to answer to th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (score VARCHAR, country VARCHAR)
Question: Name the score for fiji
Here is the SQLite query to answer to the question: Name the score for fiji:
```
SELECT ... | Here is the SQLite query to answer the question "Name the score for fiji":
```
SELECT score FROM table_name_99 WHERE country = "fiji";
``` | 26,625 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_99 (score VARCHAR, country VARCHAR)\n\n Question: Name the score for fiji\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_8 (score VARCHAR, player VARCHAR)
Question: Name the score for vijay singh
Here is the SQLite query to answer to the question: Name the score for vijay singh:... | Here is the SQLite query to answer the question about the score for vijay singh:
```
SELECT score FROM table_name_8 WHERE player = "vijay singh";
``` | 26,626 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (score VARCHAR, player VARCHAR)\n\n Question: Name the score for vijay singh\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_66 (division VARCHAR, country VARCHAR, season VARCHAR)
Question: What division was Ukraine in 2006/07?
Here is the SQLite query to answer to the question: Wha... | Here's the SQLite query to answer the question of what division Ukraine was in during the 2006/07 season:
```
SELECT division FROM table_name_66 WHERE country = "Ukraine" AND season = "2006/07";
``` | 26,627 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_66 (division VARCHAR, country VARCHAR, season VARCHAR)\n\n Question: What division was Ukraine in 2006/07?\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_88 (airdate VARCHAR, share VARCHAR, rank VARCHAR)
Question: What is the Airdate of the episode that ranked #29 and had a share greater than 10?
Here is the SQ... | It looks like there are a couple of issues with your query. Specifically, the condition for `share` should be checking for values greater than `10`, and the use of quotes around the rank value is not necessary for numeric comparison. Here’s the corrected SQLite query:
```
SELECT airdate FROM table_name_88 WHERE share ... | 26,628 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (airdate VARCHAR, share VARCHAR, rank VARCHAR)\n\n Question: What is the Airdate of the episode that ranked #29 and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (city VARCHAR, airport VARCHAR)
Question: What city is fuhlsbüttel airport in?
Here is the SQLite query to answer to the question: What city is fuhlsbüttel ... | Here is the SQLite query to answer the question, "What city is fuhlsbüttel airport in?":
```
SELECT city FROM table_name_1 WHERE airport = "fuhlsbüttel airport";
``` | 26,629 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (city VARCHAR, airport VARCHAR)\n\n Question: What city is fuhlsbüttel airport in?\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_1 (iata VARCHAR, country VARCHAR, airport VARCHAR)
Question: What is the IATA for Ringway Airport in the United Kingdom?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question about the IATA for Ringway Airport in the United Kingdom:
```
SELECT iata FROM table_name_1 WHERE country = 'united kingdom' AND airport = 'ringway airport';
``` | 26,630 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (iata VARCHAR, country VARCHAR, airport VARCHAR)\n\n Question: What is the IATA for Ringway Airport in the United Kin... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (city VARCHAR, iata VARCHAR)
Question: Which city has the IATA SSG?
Here is the SQLite query to answer to the question: Which city has the IATA SSG?:
```
S... | Here is the SQLite query to answer the question about which city has the IATA SSG:
```
SELECT city FROM table_name_40 WHERE iata = "SSG";
``` | 26,631 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_40 (city VARCHAR, iata VARCHAR)\n\n Question: Which city has the IATA SSG?\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_58 (iata VARCHAR, airport VARCHAR)
Question: What is the IATA of galeão airport?
Here is the SQLite query to answer to the question: What is the IATA of galeã... | Here is the SQLite query to answer the question about the IATA of galeão airport:
```
SELECT iata FROM table_name_58 WHERE airport = "galeão airport";
``` | 26,632 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_58 (iata VARCHAR, airport VARCHAR)\n\n Question: What is the IATA of galeão airport?\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_13 (icao VARCHAR, city VARCHAR)
Question: What is the ICAO of Douala city?
Here is the SQLite query to answer to the question: What is the ICAO of Douala city... | Here is the SQLite query to answer the question "What is the ICAO of Douala city?":
```sql
SELECT icao FROM table_name_13 WHERE city = "Douala";
``` | 26,633 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_13 (icao VARCHAR, city VARCHAR)\n\n Question: What is the ICAO of Douala city?\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_2 (icao VARCHAR, airport VARCHAR)
Question: What is the ICAO of Lohausen airport?
Here is the SQLite query to answer to the question: What is the ICAO of Loha... | Here is the SQLite query to answer the question: What is the ICAO of Lohausen airport?:
```
SELECT icao FROM table_name_2 WHERE airport = "Lohausen airport";
``` | 26,634 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_2 (icao VARCHAR, airport VARCHAR)\n\n Question: What is the ICAO of Lohausen airport?\n\nHere is the SQLite query to an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (score VARCHAR, record VARCHAR)
Question: What was the score of the game when their record was 62-67
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question: What was the score of the game when their record was 62-67:
```
SELECT score FROM table_name_46 WHERE record = '62-67';
``` | 26,635 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_46 (score VARCHAR, record VARCHAR)\n\n Question: What was the score of the game when their record was 62-67\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_29 (hdmi VARCHAR, codename VARCHAR)
Question: Does Trinity (valhalla) have HDMI?
Here is the SQLite query to answer to the question: Does Trinity (valhalla) h... | Here is the SQLite query to answer the question regarding whether Trinity (valhalla) has HDMI:
```
SELECT hdmi FROM table_name_29 WHERE codename = "trinity (valhalla)"
``` | 26,636 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_29 (hdmi VARCHAR, codename VARCHAR)\n\n Question: Does Trinity (valhalla) have HDMI?\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_66 (in_production VARCHAR, codename VARCHAR)
Question: Is Jasper being producted?
Here is the SQLite query to answer to the question: Is Jasper being producte... | Here is the SQLite query to answer the question: Is Jasper being produced?:
```
SELECT in_production FROM table_name_66 WHERE codename = "jasper";
``` | 26,637 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_66 (in_production VARCHAR, codename VARCHAR)\n\n Question: Is Jasper being producted?\n\nHere is the SQLite query to an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (result VARCHAR, home_captain VARCHAR)
Question: What is the result of Courtney Walsh ?
Here is the SQLite query to answer to the question: What is the res... | Here is the SQLite query to answer the question about the result of Courtney Walsh:
```
SELECT result FROM table_name_36 WHERE home_captain = "Courtney Walsh"
``` | 26,638 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_36 (result VARCHAR, home_captain VARCHAR)\n\n Question: What is the result of Courtney Walsh ?\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_40 (date VARCHAR, venue VARCHAR)
Question: When did a Venue of Antigua Recreation Ground happen?
Here is the SQLite query to answer to the question: When did ... | Here is the SQLite query to answer the question about when a venue of Antigua Recreation Ground happened:
```
SELECT date FROM table_name_40 WHERE venue = "Antigua Recreation Ground";
``` | 26,639 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_40 (date VARCHAR, venue VARCHAR)\n\n Question: When did a Venue of Antigua Recreation Ground happen?\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_9 (venue VARCHAR, result VARCHAR)
Question: What is the Venue which has a Wi by 8 wkts?
Here is the SQLite query to answer to the question: What is the Venue ... | Here is the SQLite query to answer the question "What is the Venue which has a Wi by 8 wkts?":
```
SELECT venue FROM table_name_9 WHERE result = "wi by 8 wkts";
``` | 26,640 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_9 (venue VARCHAR, result VARCHAR)\n\n Question: What is the Venue which has a Wi by 8 wkts?\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_6 (home_captain VARCHAR, date VARCHAR)
Question: Which Home captain has Date of 25,26,27,29,30 march 1994?
Here is the SQLite query to answer to the question:... | The provided query needs to be adjusted to check for multiple specific dates, as SQL does not support the use of a comma-separated list for direct comparisons like that. Instead, we should use the `IN` clause to specify the dates we are interested in.
Here is the corrected SQLite query:
```sql
SELECT home_captain
FR... | 26,641 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_6 (home_captain VARCHAR, date VARCHAR)\n\n Question: Which Home captain has Date of 25,26,27,29,30 march 1994?\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_42 (home_captain VARCHAR, venue VARCHAR)
Question: Which Home Captain has Venue of Bourda?
Here is the SQLite query to answer to the question: Which Home Capt... | Here's the SQLite query to answer the question "Which Home Captain has Venue of Bourda?":
```
SELECT home_captain FROM table_name_42 WHERE venue = "Bourda";
``` | 26,642 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_42 (home_captain VARCHAR, venue VARCHAR)\n\n Question: Which Home Captain has Venue of Bourda?\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_28 (home_captain VARCHAR, result VARCHAR)
Question: Which Home Captain has Eng by 208 runs?
Here is the SQLite query to answer to the question: Which Home Cap... | Your SQLite query to find the Home Captain who has "Eng by 208 runs" is correct. Here it is wrapped in proper formatting:
```
SELECT home_captain FROM table_name_28 WHERE result = "eng by 208 runs";
``` | 26,643 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_28 (home_captain VARCHAR, result VARCHAR)\n\n Question: Which Home Captain has Eng by 208 runs?\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_68 (goal_ratio INTEGER, league VARCHAR, fa_cup VARCHAR)
Question: What's the Highest Goal Ratio with a League of 88 and an FA Cup less than 7?
Here is the SQL... | Here is the SQLite query to answer the question regarding the highest goal ratio with a league of 88 and an FA Cup less than 7:
```
SELECT MAX(goal_ratio) FROM table_name_68 WHERE league = 88 AND fa_cup < 7
``` | 26,644 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_68 (goal_ratio INTEGER, league VARCHAR, fa_cup VARCHAR)\n\n Question: What's the Highest Goal Ratio with a League of 88... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (year INTEGER, engine VARCHAR)
Question: What was the lowest year that the engine Ilmor 2175a 3.5 v10 was used?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question about the lowest year that the engine Ilmor 2175a 3.5 v10 was used:
```
SELECT MIN(year) FROM table_name_64 WHERE engine = 'Ilmor 2175a 3.5 v10';
``` | 26,645 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (year INTEGER, engine VARCHAR)\n\n Question: What was the lowest year that the engine Ilmor 2175a 3.5 v10 was used?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (engine VARCHAR, entrant VARCHAR, chassis VARCHAR)
Question: Which engine did dr ing f porsche kg use with the porsche rsk (f2) chassis?
Here is the SQLite... | Here is the SQLite query to answer the question:
```
SELECT engine FROM table_name_77 WHERE entrant = "dr ing f porsche kg" AND chassis = "porsche rsk (f2)"
``` | 26,646 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_77 (engine VARCHAR, entrant VARCHAR, chassis VARCHAR)\n\n Question: Which engine did dr ing f porsche kg use with the p... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (chassis VARCHAR, engine VARCHAR, year VARCHAR)
Question: What chassis did the porsche flat-4 use before 1958?
Here is the SQLite query to answer to the qu... | Your SQLite query is structured correctly to retrieve the desired information. Here it is wrapped as you requested:
```
SELECT chassis FROM table_name_44 WHERE engine = "porsche flat-4" AND year < '1958'
```
Note: In SQLite, the comparison with `year` should either be done with numbers or with strings in a format tha... | 26,647 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_44 (chassis VARCHAR, engine VARCHAR, year VARCHAR)\n\n Question: What chassis did the porsche flat-4 use before 1958?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (engine VARCHAR, chassis VARCHAR)
Question: What engine did the porsche 718 chassis use?
Here is the SQLite query to answer to the question: What engine di... | Your SQLite query is correctly written to find the engine used by the Porsche 718 chassis. Here it is wrapped as requested:
```
SELECT engine FROM table_name_52 WHERE chassis = "porsche 718";
``` | 26,648 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_52 (engine VARCHAR, chassis VARCHAR)\n\n Question: What engine did the porsche 718 chassis use?\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_67 (year VARCHAR, points INTEGER)
Question: Which year had more than 0 points?
Here is the SQLite query to answer to the question: Which year had more than 0 ... | Here is the SQLite query to answer the question "Which year had more than 0 points?":
```sql
SELECT year FROM table_name_67 WHERE points > 0;
``` | 26,649 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_67 (year VARCHAR, points INTEGER)\n\n Question: Which year had more than 0 points?\n\nHere is the SQLite query to answe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (position VARCHAR, year VARCHAR)
Question: What position is 1999?
Here is the SQLite query to answer to the question: What position is 1999?:
```
SELECT po... | Here is the SQLite query wrapped in the appropriate code format:
```
SELECT position FROM table_name_83 WHERE year = '1999';
``` | 26,650 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_83 (position VARCHAR, year VARCHAR)\n\n Question: What position is 1999?\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_79 (venue VARCHAR, competition VARCHAR, year VARCHAR)
Question: Where were the Mediterranean games after 2005?
Here is the SQLite query to answer to the quest... | Here's the SQLite query to answer the question of where the Mediterranean games were held after 2005:
```
SELECT venue FROM table_name_79 WHERE competition = "mediterranean games" AND year > 2005
``` | 26,651 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_79 (venue VARCHAR, competition VARCHAR, year VARCHAR)\n\n Question: Where were the Mediterranean games after 2005?\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_37 (notes VARCHAR, venue VARCHAR)
Question: What are the notes for bydgoszcz, Poland?
Here is the SQLite query to answer to the question: What are the notes f... | Here is the SQLite query to answer the question about the notes for Bydgoszcz, Poland:
```
SELECT notes FROM table_name_37 WHERE venue = "bydgoszcz, poland";
``` | 26,652 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_37 (notes VARCHAR, venue VARCHAR)\n\n Question: What are the notes for bydgoszcz, Poland?\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_31 (lane INTEGER, name VARCHAR, rank VARCHAR)
Question: Name the least lane for kasey giteau and rank less than 18
Here is the SQLite query to answer to the q... | Here's the SQLite query to answer the question about the least lane for Kasey Giteau with a rank less than 18:
```
SELECT MIN(lane) FROM table_name_31 WHERE name = "kasey giteau" AND rank < 18
``` | 26,653 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (lane INTEGER, name VARCHAR, rank VARCHAR)\n\n Question: Name the least lane for kasey giteau and rank less than 18\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (lane VARCHAR, name VARCHAR, rank VARCHAR)
Question: Name the total number of lane for brooke bennett and rank less than 1
Here is the SQLite query to answ... | Here is the SQLite query to answer the question regarding the total number of lanes for Brooke Bennett with a rank less than 1:
```
SELECT COUNT(lane) FROM table_name_15 WHERE name = "brooke bennett" AND rank < 1
``` | 26,654 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_15 (lane VARCHAR, name VARCHAR, rank VARCHAR)\n\n Question: Name the total number of lane for brooke bennett and rank l... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (rank INTEGER, lane VARCHAR, heat VARCHAR)
Question: Name the average rank with larger than 3 and heat more than 5
Here is the SQLite query to answer to th... | It seems there is a slight misunderstanding in the conditions you've described in your question. You want to calculate the average rank for records where the `rank` is greater than 3 and `heat` is more than 5.
Here is the corrected SQLite query:
```sql
SELECT AVG(rank) FROM table_name_24 WHERE rank > 3 AND heat > 5;... | 26,655 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_24 (rank INTEGER, lane VARCHAR, heat VARCHAR)\n\n Question: Name the average rank with larger than 3 and heat more than... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (ole_miss VARCHAR, year VARCHAR, mississippi_st VARCHAR)
Question: Who was the player associated with Ole Miss in years after 2008 with a Mississippi St. na... | Here is the SQLite query to answer the question regarding the player associated with Ole Miss in years after 2008 with a Mississippi St. name of Eric Moulds:
```
SELECT ole_miss FROM table_name_90 WHERE year > 2008 AND mississippi_st = "eric moulds"
``` | 26,656 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_90 (ole_miss VARCHAR, year VARCHAR, mississippi_st VARCHAR)\n\n Question: Who was the player associated with Ole Miss i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (ole_miss VARCHAR, arkansas VARCHAR)
Question: Who was the Ole Miss player associated with Chuck Dicus?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question regarding the Ole Miss player associated with Chuck Dicus:
```
SELECT ole_miss FROM table_name_65 WHERE arkansas = "Chuck Dicus";
``` | 26,657 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_65 (ole_miss VARCHAR, arkansas VARCHAR)\n\n Question: Who was the Ole Miss player associated with Chuck Dicus?\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_76 (alabama VARCHAR, mississippi_st VARCHAR)
Question: Who was the Alabama player associated with Walt Harris?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question: Who was the Alabama player associated with Walt Harris?:
```
SELECT alabama FROM table_name_76 WHERE mississippi_st = "walt harris"
``` | 26,658 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_76 (alabama VARCHAR, mississippi_st VARCHAR)\n\n Question: Who was the Alabama player associated with Walt Harris?\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_55 (mississippi_st VARCHAR, alabama VARCHAR)
Question: Who was the Mississippi State player associated with Cornelius Bennett?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question "Who was the Mississippi State player associated with Cornelius Bennett?":
```
SELECT mississippi_st FROM table_name_55 WHERE alabama = "cornelius bennett";
``` | 26,659 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_55 (mississippi_st VARCHAR, alabama VARCHAR)\n\n Question: Who was the Mississippi State player associated with Corneli... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (arkansas VARCHAR, alabama VARCHAR)
Question: Who is the Arkansas player associated with Ken Stabler?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question about the Arkansas player associated with Ken Stabler:
```
SELECT arkansas FROM table_name_22 WHERE alabama = "ken stabler"
``` | 26,660 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_22 (arkansas VARCHAR, alabama VARCHAR)\n\n Question: Who is the Arkansas player associated with Ken Stabler?\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_69 (roll VARCHAR, name VARCHAR, decile VARCHAR, authority VARCHAR)
Question: What is the roll of Bishop Viard College (An Integrated College), which has a deci... | Here is the SQLite query to answer the question about the roll of Bishop Viard College (An Integrated College) with a decile larger than 1:
```sql
SELECT roll FROM table_name_69 WHERE decile > 1 AND authority = "Integrated" AND name LIKE "Bishop Viard College";
``` | 26,661 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_69 (roll VARCHAR, name VARCHAR, decile VARCHAR, authority VARCHAR)\n\n Question: What is the roll of Bishop Viard Colle... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (decile VARCHAR, roll VARCHAR, area VARCHAR, name VARCHAR)
Question: What was the decile of Samuel Marsden Collegiate School in Whitby, when it had a roll h... | The provided query does not accurately answer the question about retrieving the decile of Samuel Marsden Collegiate School in Whitby, when its roll is higher than 163. Instead, it counts the number of matches.
To correctly retrieve the decile, the query should select the `decile` instead of counting it. Here is the co... | 26,662 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_55 (decile VARCHAR, roll VARCHAR, area VARCHAR, name VARCHAR)\n\n Question: What was the decile of Samuel Marsden Colle... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (name VARCHAR, roll VARCHAR, decile VARCHAR, authority VARCHAR)
Question: What integrated school had a decile of 2 and a roll larger than 55?
Here is the S... | Here is the SQLite query to answer the question regarding the integrated school with a decile of 2 and a roll larger than 55:
```
SELECT name FROM table_name_69 WHERE decile = '2' AND authority = 'integrated' AND roll > 55;
```
Make sure to adjust the data types if necessary, as `roll` may need to be cast to a numer... | 26,663 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_69 (name VARCHAR, roll VARCHAR, decile VARCHAR, authority VARCHAR)\n\n Question: What integrated school had a decile of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (heat INTEGER, lane VARCHAR, nationality VARCHAR)
Question: Who was the 4 lane person from Canada?
Here is the SQLite query to answer to the question: Who w... | Your query has a small issue regarding the way you reference the lane, as it should be treated as a string. In SQLite, when you store a VARCHAR (which is text), "4" should be enclosed in single quotes.
Here is the corrected SQL query that answers the question "Who was the 4 lane person from Canada?":
```
SELECT MIN(... | 26,664 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_9 (heat INTEGER, lane VARCHAR, nationality VARCHAR)\n\n Question: Who was the 4 lane person from Canada?\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_89 (finish VARCHAR, year VARCHAR)
Question: In 1939, what was the finish?
Here is the SQLite query to answer to the question: In 1939, what was the finish?:
`... | Here is the SQLite query to answer the question: In 1939, what was the finish?:
```
SELECT finish FROM table_name_89 WHERE year = "1939"
``` | 26,665 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_89 (finish VARCHAR, year VARCHAR)\n\n Question: In 1939, what was the finish?\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_37 (finish VARCHAR, year VARCHAR)
Question: In 1937, what was the finish?
Here is the SQLite query to answer to the question: In 1937, what was the finish?:
`... | Your SQLite query to find the finish for the year 1937 is correct. Below is the code wrapped as you requested:
```
SELECT finish FROM table_name_37 WHERE year = "1937";
``` | 26,666 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_37 (finish VARCHAR, year VARCHAR)\n\n Question: In 1937, what was the finish?\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_62 (year VARCHAR, qual VARCHAR)
Question: The Qual of 120.006 took place in what year?
Here is the SQLite query to answer to the question: The Qual of 120.006... | Here is the SQLite query to answer the question regarding the year in which the Qual of 120.006 took place:
```
SELECT year FROM table_name_62 WHERE qual = "120.006";
``` | 26,667 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_62 (year VARCHAR, qual VARCHAR)\n\n Question: The Qual of 120.006 took place in what year?\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_41 (finish VARCHAR, rank VARCHAR, start VARCHAR)
Question: With a Rank of 19, and a Start of 14, what was the finish?
Here is the SQLite query to answer to th... | Your SQLite query is correct for retrieving the finish value given the conditions specified. Here it is, wrapped in code formatting:
```
SELECT finish FROM table_name_41 WHERE rank = "19" AND start = "14"
``` | 26,668 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_41 (finish VARCHAR, rank VARCHAR, start VARCHAR)\n\n Question: With a Rank of 19, and a Start of 14, what was the finis... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (chassis VARCHAR, engine VARCHAR, points VARCHAR)
Question: What company made the chassis when Ferrari made the engine and there were 25 points?
Here is th... | Here is the SQLite query to answer the question:
```
SELECT chassis FROM table_name_73 WHERE engine = "Ferrari" AND points = '25';
``` | 26,669 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_73 (chassis VARCHAR, engine VARCHAR, points VARCHAR)\n\n Question: What company made the chassis when Ferrari made the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (points INTEGER, engine VARCHAR, entrant VARCHAR)
Question: What is the most points when Maserati made the engine, and a Entrant of owen racing organisation... | Here is the SQLite query to answer the question regarding the most points when Maserati made the engine, and the entrant is Owen Racing Organisation:
```
SELECT MAX(points) FROM table_name_70 WHERE engine = "maserati" AND entrant = "owen racing organisation"
``` | 26,670 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (points INTEGER, engine VARCHAR, entrant VARCHAR)\n\n Question: What is the most points when Maserati made the engin... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (chassis VARCHAR, points VARCHAR)
Question: What company made the chassis when there were 8 points?
Here is the SQLite query to answer to the question: What... | Your provided query has a small issue because the `points` column is declared as `VARCHAR`, so you should compare it to a string instead of an integer. Here’s the corrected SQLite query:
```
SELECT chassis FROM table_name_8 WHERE points = '8'
```
This query will return the chassis made by the company whenever there ... | 26,671 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (chassis VARCHAR, points VARCHAR)\n\n Question: What company made the chassis when there were 8 points?\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_19 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)
Question: What is the entrant earlier than 1956 with a Vanwall Special chassis?
Here is the SQLite query t... | Here is the SQLite query to find the entrant earlier than 1956 with a Vanwall Special chassis, wrapped as requested:
```
SELECT entrant FROM table_name_19 WHERE year < '1956' AND chassis = 'Vanwall Special';
``` | 26,672 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_19 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)\n\n Question: What is the entrant earlier than 1956 with a Vanwall ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (wins INTEGER, top_10 INTEGER)
Question: what is the number of wins that is in the Top 10 and larger than 13?
Here is the SQLite query to answer to the que... | To answer the question about the number of wins that are in the Top 10 and larger than 13, the SQLite query you provided is correct in structure but slightly misinterprets the requirements. You want to sum the `wins` where the `top_10` value is greater than 0 (indicating they are in the Top 10) and `wins` are larger th... | 26,673 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_73 (wins INTEGER, top_10 INTEGER)\n\n Question: what is the number of wins that is in the Top 10 and larger than 13?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (cuts_made INTEGER, top_25 INTEGER)
Question: What is the average number of cuts made in the Top 25 smaller than 5?
Here is the SQLite query to answer to t... | Here is the SQLite query you can use to find the average number of cuts made in the Top 25 smaller than 5:
```
SELECT AVG(cuts_made) FROM table_name_63 WHERE top_25 < 5
``` | 26,674 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_63 (cuts_made INTEGER, top_25 INTEGER)\n\n Question: What is the average number of cuts made in the Top 25 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_30 (top_5 INTEGER, wins INTEGER)
Question: What is the lowest top 5 winners with less than 0?
Here is the SQLite query to answer to the question: What is the ... | Your SQLite query to find the lowest top 5 winners with less than 0 wins is correctly structured. Here it is wrapped as requested:
```
SELECT MIN(top_5) FROM table_name_30 WHERE wins < 0;
``` | 26,675 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_30 (top_5 INTEGER, wins INTEGER)\n\n Question: What is the lowest top 5 winners with less than 0?\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_90 (points INTEGER, entrant VARCHAR, year VARCHAR)
Question: How many points for the cooper car company after 1959?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question regarding points for the Cooper Car Company after 1959:
```
SELECT SUM(points) FROM table_name_90 WHERE entrant = "cooper car company" AND year > 1959;
``` | 26,676 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_90 (points INTEGER, entrant VARCHAR, year VARCHAR)\n\n Question: How many points for the cooper car company after 1959?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (Id VARCHAR)
Question: What is the average 3620 value that has a 5432 of 1277 and a 15122 less than 1540?
Here is the SQLite query to answer to the questio... | It looks like there are some potential issues with the provided SQLite query, specifically concerning the columns that are being referenced. Based on the schema you provided, there is only one column named `Id` in the `table_name_66` table, which doesn't align with the columns in your question (3620, 5432, 15122).
Ne... | 26,677 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_66 (Id VARCHAR)\n\n Question: What is the average 3620 value that has a 5432 of 1277 and a 15122 less than 1540?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (Id VARCHAR)
Question: What is the average 5432 value with a 11502 larger than 1163, a 15122 less than 15122, and a 3620 less than 624?
Here is the SQLite ... | It appears that there are some issues with the query you've provided. Specifically, it looks like you're trying to select an average from a constant, which won't yield a meaningful result, and the condition constraints (e.g., `15122 < 15122`) will always return false.
Assuming you intended to reference columns in your... | 26,678 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_12 (Id VARCHAR)\n\n Question: What is the average 5432 value with a 11502 larger than 1163, a 15122 less than 15122, an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (Id VARCHAR)
Question: What is the highest 3620 value with a 5432 of 5432 and a 15122 greater than 15122?
Here is the SQLite query to answer to the questio... | Based on the provided schema and the question, it seems like you're trying to retrieve the maximum value of a field named "3620" from the `table_name_34` table with given conditions. However, the schema only defines a single column named "Id." Presumably, you meant to refer to different columns. Additionally, the condi... | 26,679 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_34 (Id VARCHAR)\n\n Question: What is the highest 3620 value with a 5432 of 5432 and a 15122 greater than 15122?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (representative VARCHAR, title VARCHAR, termination_of_mission VARCHAR)
Question: Which representative was the Ambassador Extraordinary and Plenipotentiary ... | Here is the SQLite query to answer the question:
```
SELECT representative FROM table_name_83 WHERE title = "Ambassador Extraordinary and Plenipotentiary" AND termination_of_mission = "September 20, 1996"
``` | 26,680 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_83 (representative VARCHAR, title VARCHAR, termination_of_mission VARCHAR)\n\n Question: Which representative was the A... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (representative VARCHAR, termination_of_mission VARCHAR)
Question: Which representative has a Termination of MIssion date Mar 25, 1976?
Here is the SQLite ... | Here is the SQLite query to answer the question about which representative has a Termination of Mission date of Mar 25, 1976:
```
SELECT representative FROM table_name_59 WHERE termination_of_mission = 'Mar 25, 1976';
``` | 26,681 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (representative VARCHAR, termination_of_mission VARCHAR)\n\n Question: Which representative has a Termination of MIs... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (termination_of_mission VARCHAR, appointed_by VARCHAR)
Question: What was the Termination of Mission date for the ambassador who was appointed by Barack Oba... | Here is the SQLite query to answer the question about the Termination of Mission date for the ambassador who was appointed by Barack Obama:
```
SELECT termination_of_mission FROM table_name_40 WHERE appointed_by = "Barack Obama";
``` | 26,682 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_40 (termination_of_mission VARCHAR, appointed_by VARCHAR)\n\n Question: What was the Termination of Mission date for th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (termination_of_mission VARCHAR, title VARCHAR, representative VARCHAR)
Question: What is the Termination of Mission date for Marsha E. Barnes, the Ambassad... | Here is the SQLite query to answer the question regarding the Termination of Mission date for Marsha E. Barnes, the Ambassador Extraordinary and Plenipotentiary:
```
SELECT termination_of_mission FROM table_name_34 WHERE title = "Ambassador Extraordinary and Plenipotentiary" AND representative = "Marsha E. Barnes"
``` | 26,683 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_34 (termination_of_mission VARCHAR, title VARCHAR, representative VARCHAR)\n\n Question: What is the Termination of Mis... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (appointed_by VARCHAR, presentation_of_credentials VARCHAR)
Question: Who appointed the representative that had a Presentation of Credentials on March 25, 1... | Your SQLite query looks good, but for better readability and to handle any case sensitivity issues, it is often a good practice to use the `DATE` format. However, since it is a simple string match in your case, your original query should work as intended. Here it is formatted properly as per your request:
```
SELECT a... | 26,684 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (appointed_by VARCHAR, presentation_of_credentials VARCHAR)\n\n Question: Who appointed the representative 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_89 (character_s_ VARCHAR, first_appearance VARCHAR)
Question: Which character first appeared in Amazing Fantasy #15?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question regarding which character first appeared in Amazing Fantasy #15:
```
SELECT character_s_ FROM table_name_89 WHERE first_appearance = "Amazing Fantasy #15";
``` | 26,685 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_89 (character_s_ VARCHAR, first_appearance VARCHAR)\n\n Question: Which character first appeared in Amazing Fantasy #15... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (estimated_value VARCHAR, first_appearance VARCHAR)
Question: What is Action Comics #1's estimated value?
Here is the SQLite query to answer to the questio... | Here's the SQLite query to find Action Comics #1's estimated value:
```
SELECT estimated_value FROM table_name_79 WHERE first_appearance = "Action Comics #1";
``` | 26,686 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_79 (estimated_value VARCHAR, first_appearance VARCHAR)\n\n Question: What is Action Comics #1's estimated value?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (publisher VARCHAR, character_s_ VARCHAR)
Question: Who publishes Wolverine?
Here is the SQLite query to answer to the question: Who publishes Wolverine?:
... | Here is the SQLite query to answer the question "Who publishes Wolverine?":
```
SELECT publisher FROM table_name_67 WHERE character_s_ = "wolverine"
``` | 26,687 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_67 (publisher VARCHAR, character_s_ VARCHAR)\n\n Question: Who publishes Wolverine?\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_96 (player VARCHAR, original_nfl_team VARCHAR)
Question: What player's original team are the Oakland Raiders?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question about which player's original team are the Oakland Raiders:
```
SELECT player FROM table_name_96 WHERE original_nfl_team = "oakland raiders";
``` | 26,688 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_96 (player VARCHAR, original_nfl_team VARCHAR)\n\n Question: What player's original team are the Oakland Raiders?\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_31 (player VARCHAR, original_nfl_team VARCHAR)
Question: What player's original team are the Buffalo Bills?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question about which player’s original team was the Buffalo Bills:
```sql
SELECT player FROM table_name_31 WHERE original_nfl_team = "Buffalo Bills";
``` | 26,689 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (player VARCHAR, original_nfl_team VARCHAR)\n\n Question: What player's original team are the Buffalo Bills?\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_10 (to_par VARCHAR, money___$__ VARCHAR)
Question: Which to par has a prize less than $800?
Here is the SQLite query to answer to the question: Which to par h... | It seems there is a small error in your query. To find entries where the prize is less than $800, you will need to use the `<` operator and also ensure that the `money___$__` column is treated as a numeric value, not as a string. Assuming the values in `money___$__` include a dollar sign, you might need to remove this ... | 26,690 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_10 (to_par VARCHAR, money___$__ VARCHAR)\n\n Question: Which to par has a prize less than $800?\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_27 (country VARCHAR, money___$__ VARCHAR, player VARCHAR)
Question: Which country has a prize smaller than $250 and the player Henry Picard?
Here is the SQLit... | Your SQL query has the right idea, but you need to ensure that the `money___$__` column is treated as a numeric value for the comparison. Since it is defined as a `VARCHAR`, you may need to cast it to a numeric type. Here is an updated version of your query:
```
SELECT country
FROM table_name_27
WHERE CAST(money___$... | 26,691 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_27 (country VARCHAR, money___$__ VARCHAR, player VARCHAR)\n\n Question: Which country has a prize smaller than $250 and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (score VARCHAR, money___$__ VARCHAR)
Question: Which score has a prize of $400?
Here is the SQLite query to answer to the question: Which score has a prize... | It seems that there might be a small issue with the query you provided regarding the comparison of the `money___$__` column, as it is defined as `VARCHAR` data type. You should compare it as a string. In SQLite, you should use quotes around string values. Here is the corrected SQL query:
```
SELECT score FROM table_na... | 26,692 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_77 (score VARCHAR, money___$__ VARCHAR)\n\n Question: Which score has a prize of $400?\n\nHere is the SQLite query to a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (loss VARCHAR, date VARCHAR)
Question: On May 29 which team had the loss?
Here is the SQLite query to answer to the question: On May 29 which team had the ... | Here is the SQLite query to answer the question: On May 29 which team had the loss?:
```
SELECT loss FROM table_name_85 WHERE date = "May 29";
``` | 26,693 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_85 (loss VARCHAR, date VARCHAR)\n\n Question: On May 29 which team had the loss?\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_43 (score VARCHAR, date VARCHAR)
Question: What was the score of the game played on May 9?
Here is the SQLite query to answer to the question: What was the sc... | Here is the SQLite query to answer the question about the score of the game played on May 9, wrapped in code format:
```
SELECT score FROM table_name_43 WHERE date = "May 9";
``` | 26,694 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_43 (score VARCHAR, date VARCHAR)\n\n Question: What was the score of the game played on May 9?\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_70 (date VARCHAR, record VARCHAR)
Question: On what date was their record 26-19?
Here is the SQLite query to answer to the question: On what date was their re... | Here is the SQLite query to answer the question "On what date was their record 26-19?":
```
SELECT date FROM table_name_70 WHERE record = "26-19"
``` | 26,695 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (date VARCHAR, record VARCHAR)\n\n Question: On what date was their record 26-19?\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_71 (loss VARCHAR, record VARCHAR)
Question: What team did they lose to when they had a 28-22 record?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question: What team did they lose to when they had a 28-22 record?:
```
SELECT loss FROM table_name_71 WHERE record = "28-22"
``` | 26,696 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_71 (loss VARCHAR, record VARCHAR)\n\n Question: What team did they lose to when they had a 28-22 record?\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_89 (year INTEGER, venue VARCHAR)
Question: What is the year of the tournament played at Melbourne, Australia?
Here is the SQLite query to answer to the questi... | To answer the question about the year of the tournament played at Melbourne, Australia, you should use a query that selects the year directly, rather than calculating the average. Here’s the correct query:
```
SELECT year FROM table_name_89 WHERE venue = "melbourne, australia";
```
This will return the year(s) of th... | 26,697 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_89 (year INTEGER, venue VARCHAR)\n\n Question: What is the year of the tournament played at Melbourne, Australia?\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_8 (year INTEGER, venue VARCHAR, event VARCHAR, result VARCHAR)
Question: What is earliest year that had a 50km event with a 2nd place result played in London, ... | Here is the SQLite query to answer the question about the earliest year that had a 50km event with a 2nd place result played in London, United Kingdom:
```
SELECT MIN(year)
FROM table_name_8
WHERE event = "50km" AND result = "2nd" AND venue = "London, United Kingdom";
``` | 26,698 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (year INTEGER, venue VARCHAR, event VARCHAR, result VARCHAR)\n\n Question: What is earliest year that had a 50km even... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (result VARCHAR, year VARCHAR, tournament VARCHAR)
Question: What is the result of the World Race Walking Cup tournament played before the year 2010?
Here ... | It looks like there is a small error in your query. You should be selecting results for the World Race Walking Cup tournament played before the year 2010. Therefore, the condition for the year should be `year < 2010` instead of `year > 2010`. Here’s the corrected SQLite query:
```
SELECT result FROM table_name_20 WHER... | 26,699 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (result VARCHAR, year VARCHAR, tournament VARCHAR)\n\n Question: What is the result of the World Race Walking Cup to... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.