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_67 (athlete VARCHAR, run_2 VARCHAR)
Question: Who had a run 2 of 50.67?
Here is the SQLite query to answer to the question: Who had a run 2 of 50.67?:
```
SEL... | Here is the corrected SQLite query to answer the question "Who had a run 2 of 50.67?":
```
SELECT athlete FROM table_name_67 WHERE run_2 = '50.67'
``` | 45,500 | [
{
"from": "human",
"value": " 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 (athlete VARCHAR, run_2 VARCHAR)\n\n Question: Who had a run 2 of 50.67?\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_21 (run_2 INTEGER, run_1 VARCHAR, athlete VARCHAR)
Question: What was john farrow's run 2 associated with a run 1 of greater than 52.25?
Here is the SQLite qu... | Your SQLite query is almost correct, but it seems you want to find the run_2 value specifically associated with John Farrow, where run_1 is greater than 52.25. The use of `MAX(run_2)` may not be necessary unless you're looking for the highest run_2 time. If you simply want the run_2 values that meet the criteria, you c... | 45,501 | [
{
"from": "human",
"value": " 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 (run_2 INTEGER, run_1 VARCHAR, athlete VARCHAR)\n\n Question: What was john farrow's run 2 associated with a run 1 o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (score VARCHAR, opponent VARCHAR)
Question: What was the Score in the game against the Buffalo Sabres?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question regarding the score in the game against the Buffalo Sabres:
```
SELECT score FROM table_name_83 WHERE opponent = "Buffalo Sabres";
``` | 45,502 | [
{
"from": "human",
"value": " 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 (score VARCHAR, opponent VARCHAR)\n\n Question: What was the Score in the game against the Buffalo Sabres?\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_9 (games INTEGER, rank VARCHAR, name VARCHAR)
Question: Rank smaller than 4, and a Name of dalma iványi involved which lowest game?
Here is the SQLite query t... | Here is the SQLite query to answer the question regarding ranks smaller than 4 and the name "dalma iványi" while finding the lowest game:
```
SELECT MIN(games) FROM table_name_9 WHERE rank < 4 AND name = "dalma iványi"
``` | 45,503 | [
{
"from": "human",
"value": " 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 (games INTEGER, rank VARCHAR, name VARCHAR)\n\n Question: Rank smaller than 4, and a Name of dalma iványi involved wh... | |
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 VARCHAR, name VARCHAR)
Question: Name of sue bird that involves what team?
Here is the SQLite query to answer to the question: Name of sue bird that ... | Here is the SQLite query to answer the question:
```
SELECT team FROM table_name_27 WHERE name = "sue bird";
``` | 45,504 | [
{
"from": "human",
"value": " 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 VARCHAR, name VARCHAR)\n\n Question: Name of sue bird that involves what team?\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_16 (episode VARCHAR, production_code VARCHAR, season VARCHAR, directed_by VARCHAR)
Question: Which episode was directed by Bob Anderson with a production code ... | Here is the corrected SQLite query based on the given criteria:
```
SELECT episode
FROM table_name_16
WHERE season < '25'
AND LOWER(directed_by) = 'bob anderson'
AND LOWER(production_code) = 'kabf16';
```
Note that I included the `LOWER()` function to ensure that the comparison is case-insensitive. Additionally,... | 45,505 | [
{
"from": "human",
"value": " 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 (episode VARCHAR, production_code VARCHAR, season VARCHAR, directed_by VARCHAR)\n\n Question: Which episode was dire... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (directed_by VARCHAR, season VARCHAR, episode VARCHAR)
Question: Who was the director of the episode with a season after 8 and an episode of XVI?
Here is t... | Your SQLite query is almost correct, but there is a small issue with how the `season` is represented and how the `episode` comparison is done. If the `season` column contains numeric values as strings, you may need to cast the `season` to an integer for proper comparison. Also, the episode designation "XVI" might need ... | 45,506 | [
{
"from": "human",
"value": " 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 (directed_by VARCHAR, season VARCHAR, episode VARCHAR)\n\n Question: Who was the director of the episode with a seas... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (rank INTEGER, date VARCHAR)
Question: Date of 7 september 1996 includes which highest rank athlete?
Here is the SQLite query to answer to the question: Da... | Your SQLite query is almost correct; it retrieves the highest rank from the specified date. However, if you also want to get the associated athlete(s) with that rank, you might want to adjust the query a bit to retrieve all details for the athlete having the highest rank on that date.
Here's a slightly modified query ... | 45,507 | [
{
"from": "human",
"value": " 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 (rank INTEGER, date VARCHAR)\n\n Question: Date of 7 september 1996 includes which highest rank athlete?\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_84 (location VARCHAR, time VARCHAR)
Question: Time of 10.82 has what location?
Here is the SQLite query to answer to the question: Time of 10.82 has what loca... | Here is the SQLite query to answer the question "Time of 10.82 has what location?":
```
SELECT location FROM table_name_84 WHERE time = '10.82'
``` | 45,508 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_84 (location VARCHAR, time VARCHAR)\n\n Question: Time of 10.82 has what location?\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_92 (athlete VARCHAR, date VARCHAR)
Question: Date of 10 july 2009 includes what athlete?
Here is the SQLite query to answer to the question: Date of 10 july 2... | Here's the SQLite query to answer the question about which athlete participated on the date of 10 July 2009:
```
SELECT athlete FROM table_name_92 WHERE date = "10 july 2009";
``` | 45,509 | [
{
"from": "human",
"value": " 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 (athlete VARCHAR, date VARCHAR)\n\n Question: Date of 10 july 2009 includes what athlete?\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_37 (location VARCHAR, date VARCHAR, rank VARCHAR, time VARCHAR)
Question: Rank smaller than 5, and a Time larger than 10.7, and a Date of 10 july 2009 has what... | Here is the SQLite query to answer the question:
```
SELECT location FROM table_name_37 WHERE rank < 5 AND time > 10.7 AND date = "10 july 2009";
``` | 45,510 | [
{
"from": "human",
"value": " 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 (location VARCHAR, date VARCHAR, rank VARCHAR, time VARCHAR)\n\n Question: Rank smaller than 5, and a Time larger th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (dcsf_number INTEGER, faith VARCHAR, opened VARCHAR)
Question: Faith of rc, and a Opened larger than 1966 which has the highest DCSF number?
Here is the SQ... | Your SQLite query to find the highest DCSF number for the faith "rc" and opened larger than 1966 is almost correct. However, to get the corresponding record with the maximum DCSF number, you may need to adjust the query. Here's a corrected version:
```sql
SELECT dcsf_number, faith, opened
FROM table_name_22
WHERE fa... | 45,511 | [
{
"from": "human",
"value": " 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 (dcsf_number INTEGER, faith VARCHAR, opened VARCHAR)\n\n Question: Faith of rc, and a Opened larger than 1966 which ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (type VARCHAR, faith VARCHAR, name VARCHAR)
Question: Faith of –, and a Name of greenway has what type?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about the faith of "–" and a name of "greenway":
```
SELECT type FROM table_name_79 WHERE faith = "–" AND name = "greenway";
``` | 45,512 | [
{
"from": "human",
"value": " 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 (type VARCHAR, faith VARCHAR, name VARCHAR)\n\n Question: Faith of –, and a Name of greenway has what type?\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_47 (opponent VARCHAR, venue VARCHAR, season VARCHAR)
Question: Who was the opponent that played at Launceston Cricket Club Ground, launceston during the season... | Here is the SQLite query to answer the question about the opponent that played at Launceston Cricket Club Ground during the season of 1853/54:
```
SELECT opponent FROM table_name_47 WHERE venue = "Launceston Cricket Club Ground, Launceston" AND season = "1853/54";
``` | 45,513 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, venue VARCHAR, season VARCHAR)\n\n Question: Who was the opponent that played at Launceston Crick... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (rank VARCHAR, season VARCHAR)
Question: What was the rank of the team during season 2006/07?
Here is the SQLite query to answer to the question: What was ... | Here is the SQLite query to answer the question regarding the rank of the team during the season 2006/07:
```sql
SELECT rank FROM table_name_92 WHERE season = "2006/07";
``` | 45,514 | [
{
"from": "human",
"value": " 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 (rank VARCHAR, season VARCHAR)\n\n Question: What was the rank of the team during season 2006/07?\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_12 (venue VARCHAR, runs VARCHAR)
Question: What was the venue where there were 55 runs?
Here is the SQLite query to answer to the question: What was the venue... | Here is the SQLite query to answer the question about the venue where there were 55 runs:
```
SELECT venue FROM table_name_12 WHERE runs = '55'
``` | 45,515 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, runs VARCHAR)\n\n Question: What was the venue where there were 55 runs?\n\nHere is the SQLite query... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (venue VARCHAR, runs VARCHAR)
Question: What was the venue where there were 62 runs?
Here is the SQLite query to answer to the question: What was the venue... | Your SQLite query to find the venue where there were 62 runs is correct. Here is the query wrapped as you requested:
```
SELECT venue FROM table_name_97 WHERE runs = "62";
``` | 45,516 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, runs VARCHAR)\n\n Question: What was the venue where there were 62 runs?\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_82 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR)
Question: Which driver had an accident and laps smaller than 53?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question: Which driver had an accident and laps smaller than 53?:
```
SELECT driver FROM table_name_82 WHERE laps < 53 AND time_retired = "accident";
``` | 45,517 | [
{
"from": "human",
"value": " 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 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR)\n\n Question: Which driver had an accident and laps smaller tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (language VARCHAR, publication_range VARCHAR)
Question: What language has a publication range from 1955–1999?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question about the language with a publication range from 1955–1999:
```
SELECT language FROM table_name_85 WHERE publication_range = "1955–1999";
``` | 45,518 | [
{
"from": "human",
"value": " 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 (language VARCHAR, publication_range VARCHAR)\n\n Question: What language has a publication range from 1955–1999?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (status VARCHAR, issn VARCHAR)
Question: What is the status for a journal with the ISSN of 0149-1830?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question regarding the status for a journal with the ISSN of 0149-1830:
```
SELECT status FROM table_name_62 WHERE issn = "0149-1830";
``` | 45,519 | [
{
"from": "human",
"value": " 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 (status VARCHAR, issn VARCHAR)\n\n Question: What is the status for a journal with the ISSN of 0149-1830?\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_65 (language VARCHAR, country VARCHAR, publication_range VARCHAR)
Question: What is the language with a France publication range of 1992–2003?
Here is the SQL... | Here is the SQLite query to answer the question about the language with a France publication range of 1992–2003:
```
SELECT language FROM table_name_65 WHERE country = "France" AND publication_range = "1992–2003";
``` | 45,520 | [
{
"from": "human",
"value": " 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 (language VARCHAR, country VARCHAR, publication_range VARCHAR)\n\n Question: What is the language with a France publ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (issn VARCHAR, publication_range VARCHAR)
Question: What is the ISSN number of a publication range of 1984-?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question regarding the ISSN number of a publication range of 1984-:
```
SELECT issn FROM table_name_36 WHERE publication_range = '1984-';
``` | 45,521 | [
{
"from": "human",
"value": " 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 (issn VARCHAR, publication_range VARCHAR)\n\n Question: What is the ISSN number of a publication range of 1984-?\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_43 (language VARCHAR, frequency VARCHAR, issn VARCHAR)
Question: What is the language for a journal that has a frequency of 3 times per year and has an ISSN nu... | Here is the SQLite query to answer the question regarding the language for a journal that has a frequency of 3 times per year and has an ISSN number of 1136-7385:
```
SELECT language FROM table_name_43 WHERE frequency = "3 times per year" AND issn = "1136-7385";
``` | 45,522 | [
{
"from": "human",
"value": " 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 (language VARCHAR, frequency VARCHAR, issn VARCHAR)\n\n Question: What is the language for a journal that has a freq... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (region_4_release VARCHAR, region_2_release VARCHAR)
Question: What is the region 4 release that has july 20, 2009 as the region 2?
Here is the SQLite quer... | Here is the SQLite query to answer the question regarding the region 4 release associated with July 20, 2009, as the region 2 release:
```
SELECT region_4_release FROM table_name_99 WHERE region_2_release = "july 20, 2009";
``` | 45,523 | [
{
"from": "human",
"value": " 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 (region_4_release VARCHAR, region_2_release VARCHAR)\n\n Question: What is the region 4 release that has july 20, 20... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (region_1_release VARCHAR, region_2_release VARCHAR)
Question: What is the region 1 release that has july 20, 2009 as the region 2?
Here is the SQLite quer... | Here is the SQLite query to answer the question regarding the region 1 release that has July 20, 2009, as the region 2 release:
```
SELECT region_1_release FROM table_name_39 WHERE region_2_release = "july 20, 2009"
``` | 45,524 | [
{
"from": "human",
"value": " 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 (region_1_release VARCHAR, region_2_release VARCHAR)\n\n Question: What is the region 1 release that has july 20, 20... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (episodes INTEGER, region_1_release VARCHAR)
Question: What is the average episode that has September 11, 2007 as a region 1?
Here is the SQLite query to a... | Your provided SQLite query is mostly correct, but you should ensure the date format matches how it is stored in the database. It's also good practice to check for case sensitivity in string comparisons, as SQLite is case-sensitive by default for string comparisons. Assuming "September 11, 2007" is indeed how the date i... | 45,525 | [
{
"from": "human",
"value": " 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 (episodes INTEGER, region_1_release VARCHAR)\n\n Question: What is the average episode that has September 11, 2007 a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (scheduled VARCHAR, wind_farm VARCHAR, capacity__mw_ VARCHAR, type VARCHAR)
Question: What is the scheduled value for the farm having a capacity under 32.5M... | Here is the SQLite query to answer the question about the scheduled value for the specified conditions:
```
SELECT scheduled FROM table_name_13 WHERE capacity__mw_ < 32.5 AND type = "nordex n90 2.5mw" AND wind_farm = "glenough extension"
``` | 45,526 | [
{
"from": "human",
"value": " 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 (scheduled VARCHAR, wind_farm VARCHAR, capacity__mw_ VARCHAR, type VARCHAR)\n\n Question: What is the scheduled valu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (type VARCHAR, turbines VARCHAR, location VARCHAR)
Question: What is the type of turbine having fewer than 17 units and located in County Laois?
Here is th... | Here is the SQLite query to answer the question regarding the type of turbine having fewer than 17 units and located in County Laois:
```sql
SELECT type FROM table_name_65 WHERE turbines < 17 AND location = 'County Laois';
``` | 45,527 | [
{
"from": "human",
"value": " 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 (type VARCHAR, turbines VARCHAR, location VARCHAR)\n\n Question: What is the type of turbine having fewer than 17 un... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (scheduled VARCHAR, turbines VARCHAR)
Question: When is the scheduled date for the farm having 17 turbines?
Here is the SQLite query to answer to the quest... | Your provided SQLite query contains a small error in the format of the `turbines` column value. Since `turbines` is a `VARCHAR` type, the value should be enclosed in single quotes. Here is the corrected query:
```sql
SELECT scheduled FROM table_name_96 WHERE turbines = '17'
```
This query will return the scheduled d... | 45,528 | [
{
"from": "human",
"value": " 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 (scheduled VARCHAR, turbines VARCHAR)\n\n Question: When is the scheduled date for the farm having 17 turbines?\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_84 (capacity__mw_ INTEGER, wind_farm VARCHAR, turbines VARCHAR)
Question: What is the average capacity for the farm at Gortahile having more than 8 turbines?
... | Here is the SQLite query to find the average capacity for the farm at Gortahile having more than 8 turbines:
```
SELECT AVG(capacity__mw_) FROM table_name_84 WHERE wind_farm = "gortahile" AND CAST(turbines AS INTEGER) > 8;
```
This ensures that the `turbines` column is treated as an integer for the comparison, which... | 45,529 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_84 (capacity__mw_ INTEGER, wind_farm VARCHAR, turbines VARCHAR)\n\n Question: What is the average capacity for the farm... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (title VARCHAR, left_office VARCHAR, entered_office VARCHAR)
Question: What is the title of the king who left office in 982 and entered office in 949?
Here... | Here is the SQLite query to answer the question about the title of the king who left office in 982 and entered office in 949:
```
SELECT title FROM table_name_64 WHERE left_office = '982' AND entered_office = '949';
``` | 45,530 | [
{
"from": "human",
"value": " 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 (title VARCHAR, left_office VARCHAR, entered_office VARCHAR)\n\n Question: What is the title of the king who left of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (left_office VARCHAR, entered_office VARCHAR)
Question: When did the king who entered office in 1012 leave office?
Here is the SQLite query to answer to th... | To answer the question "When did the king who entered office in 1012 leave office?", you need to retrieve the value of `left_office` for the record that has `entered_office` set to "1012". However, since we want the date when he left office, we need to ensure that the column we are selecting is correct.
Here's the co... | 45,531 | [
{
"from": "human",
"value": " 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 (left_office VARCHAR, entered_office VARCHAR)\n\n Question: When did the king who entered office in 1012 leave offic... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (family_relations VARCHAR, throne_name VARCHAR)
Question: What are the family relations of the king with the throne name 303?
Here is the SQLite query to a... | Here is the SQLite query to answer the question about the family relations of the king with the throne name 303:
```
SELECT family_relations FROM table_name_20 WHERE throne_name = "303";
``` | 45,532 | [
{
"from": "human",
"value": " 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 (family_relations VARCHAR, throne_name VARCHAR)\n\n Question: What are the family relations of the king with the thr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (born_died VARCHAR, left_office VARCHAR, throne_name VARCHAR)
Question: What is teh born-died dates of the king with a throne name 315 and left office in 10... | Here is the SQLite query to answer the question regarding the born-died dates of the king with a throne name 315 who left office in 1021:
```
SELECT born_died FROM table_name_74 WHERE left_office = "1021" AND throne_name = "315";
``` | 45,533 | [
{
"from": "human",
"value": " 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 (born_died VARCHAR, left_office VARCHAR, throne_name VARCHAR)\n\n Question: What is teh born-died dates of the king ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (opponents VARCHAR, partner VARCHAR, surface VARCHAR)
Question: Which Opponents have a Partner of irina-camelia begu, and a Surface of hard?
Here is the SQ... | Here is the SQLite query to answer the question regarding which opponents have a partner of "irina-camelia begu," and a surface of "hard":
```
SELECT opponents FROM table_name_15 WHERE partner = "irina-camelia begu" AND surface = "hard";
``` | 45,534 | [
{
"from": "human",
"value": " 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 (opponents VARCHAR, partner VARCHAR, surface VARCHAR)\n\n Question: Which Opponents have a Partner of irina-camelia ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (surface VARCHAR, partner VARCHAR)
Question: Which Surface has a Partner of galina voskoboeva?
Here is the SQLite query to answer to the question: Which Su... | Sure! Here is the SQLite query wrapped in code formatting:
```
SELECT surface FROM table_name_45 WHERE partner = "galina voskoboeva";
``` | 45,535 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_45 (surface VARCHAR, partner VARCHAR)\n\n Question: Which Surface has a Partner of galina voskoboeva?\n\nHere is the SQ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (opponents VARCHAR, partner VARCHAR, surface VARCHAR, outcome VARCHAR)
Question: Which Opponents have a Surface of hard, and an Outcome of runner-up, and a ... | Here is the SQLite query to answer the question regarding the opponents with the specified criteria:
```
SELECT opponents FROM table_name_80 WHERE surface = "hard" AND outcome = "runner-up" AND partner = "jarmila gajdošová"
``` | 45,536 | [
{
"from": "human",
"value": " 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 (opponents VARCHAR, partner VARCHAR, surface VARCHAR, outcome VARCHAR)\n\n Question: Which Opponents have a Surface ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (partner VARCHAR, date VARCHAR)
Question: Which Partner has a Date of 12 july 2009?
Here is the SQLite query to answer to the question: Which Partner has a... | Here is the SQLite query to answer your question about which Partner has a Date of 12 July 2009:
```
SELECT partner FROM table_name_18 WHERE date = "12 july 2009";
``` | 45,537 | [
{
"from": "human",
"value": " 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 (partner VARCHAR, date VARCHAR)\n\n Question: Which Partner has a Date of 12 july 2009?\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_93 (surface VARCHAR, partner VARCHAR)
Question: Which Surface has a Partner of sorana cîrstea?
Here is the SQLite query to answer to the question: Which Surfa... | Here is the SQLite query to answer the question regarding which Surface has a Partner of "sorana cîrstea":
```
SELECT surface FROM table_name_93 WHERE partner = "sorana cîrstea";
``` | 45,538 | [
{
"from": "human",
"value": " 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 (surface VARCHAR, partner VARCHAR)\n\n Question: Which Surface has a Partner of sorana cîrstea?\n\nHere is the SQLit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (overall INTEGER, pick__number INTEGER)
Question: Name the least overall with pick number more than 27
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question:
```
SELECT MIN(overall) FROM table_name_56 WHERE pick__number > 27
``` | 45,539 | [
{
"from": "human",
"value": " 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 (overall INTEGER, pick__number INTEGER)\n\n Question: Name the least overall with pick number more than 27\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_56 (team__number2 VARCHAR)
Question: what's the first leg with gran canaria as team #2?
Here is the SQLite query to answer to the question: what's the first l... | Here is the SQLite query to answer the question about the first leg with "gran canaria" as team #2:
```sql
SELECT MIN(st_leg) AS first_leg
FROM table_name_56
WHERE team__number2 = "gran canaria";
```
Note: The query assumes that there is a column representing the legs (which should have a numeric type, for example... | 45,540 | [
{
"from": "human",
"value": " 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 (team__number2 VARCHAR)\n\n Question: what's the first leg with gran canaria as team #2?\n\nHere is the SQLite query... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (team__number2 VARCHAR, team__number1 VARCHAR)
Question: with team #1 as lukoil academic what is team #2?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question with team #1 as "lukoil academic" and to find what team #2 is:
```
SELECT team__number2 FROM table_name_67 WHERE team__number1 = "lukoil academic";
``` | 45,541 | [
{
"from": "human",
"value": " 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 (team__number2 VARCHAR, team__number1 VARCHAR)\n\n Question: with team #1 as lukoil academic what is team #2?\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 (team__number1 VARCHAR, team__number2 VARCHAR)
Question: with team #2 as akasvayu girona what is team #1?
Here is the SQLite query to answer to the questio... | Your query looks correct. Here it is formatted as requested:
```
SELECT team__number1 FROM table_name_12 WHERE team__number2 = "akasvayu girona";
``` | 45,542 | [
{
"from": "human",
"value": " 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 (team__number1 VARCHAR, team__number2 VARCHAR)\n\n Question: with team #2 as akasvayu girona what is team #1?\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_13 (virtue VARCHAR, acedia VARCHAR, latin VARCHAR)
Question: Which virtue is acedia(Latin)?
Here is the SQLite query to answer to the question: Which virtue i... | The SQLite query to find out which virtue corresponds to "acedia" in Latin should properly compare the `latin` column with the string "acedia". Here is the corrected query:
```sql
SELECT virtue FROM table_name_13 WHERE latin = 'acedia';
``` | 45,543 | [
{
"from": "human",
"value": " 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 (virtue VARCHAR, acedia VARCHAR, latin VARCHAR)\n\n Question: Which virtue is acedia(Latin)?\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_31 (virtue VARCHAR, _vice_ VARCHAR)
Question: Which Virtue has a (vice) of lust?
Here is the SQLite query to answer to the question: Which Virtue has a (vice)... | Here is the SQLite query to answer the question of which Virtue has a vice of lust:
```
SELECT virtue FROM table_name_31 WHERE _vice_ = 'lust';
``` | 45,544 | [
{
"from": "human",
"value": " 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 (virtue VARCHAR, _vice_ VARCHAR)\n\n Question: Which Virtue has a (vice) of lust?\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_20 (virtue VARCHAR, invidia VARCHAR, latin VARCHAR)
Question: Which virtue is Invidia(Latin)?
Here is the SQLite query to answer to the question: Which virtue... | To answer the question "Which virtue is Invidia (Latin)?" based on the provided schema and information, your query needs to check for rows where the `latin` value is 'Invidia'. Here's the corrected query:
```sql
SELECT virtue FROM table_name_20 WHERE latin = 'Invidia';
```
This query selects the `virtue` from `table... | 45,545 | [
{
"from": "human",
"value": " 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 (virtue VARCHAR, invidia VARCHAR, latin VARCHAR)\n\n Question: Which virtue is Invidia(Latin)?\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_79 (gloss VARCHAR, latin VARCHAR)
Question: What's the gloss with Castitas(Latin)?
Here is the SQLite query to answer to the question: What's the gloss with C... | Here is the SQLite query to answer the question: What's the gloss with Castitas (Latin)?
```
SELECT gloss FROM table_name_79 WHERE latin = "Castitas";
``` | 45,546 | [
{
"from": "human",
"value": " 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 (gloss VARCHAR, latin VARCHAR)\n\n Question: What's the gloss with Castitas(Latin)?\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_22 (gloss VARCHAR, virtue VARCHAR)
Question: What is the Diligence Virtues Gloss?
Here is the SQLite query to answer to the question: What is the Diligence Vi... | Here is the SQLite query to answer the question about the Diligence Virtues Gloss:
```
SELECT gloss FROM table_name_22 WHERE virtue = "diligence";
``` | 45,547 | [
{
"from": "human",
"value": " 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 (gloss VARCHAR, virtue VARCHAR)\n\n Question: What is the Diligence Virtues Gloss?\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_64 (latin VARCHAR, virtue VARCHAR)
Question: What is the Virtue of Temperance in Latin?
Here is the SQLite query to answer to the question: What is the Virtue... | Here is the SQLite query to answer the question about the Virtue of Temperance in Latin:
```
SELECT latin FROM table_name_64 WHERE virtue = "temperance"
``` | 45,548 | [
{
"from": "human",
"value": " 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 (latin VARCHAR, virtue VARCHAR)\n\n Question: What is the Virtue of Temperance in Latin?\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_14 (year VARCHAR, silver VARCHAR)
Question: In what year(s) did South Korea win silver?
Here is the SQLite query to answer to the question: In what year(s) di... | Here is the SQLite query to answer the question about the years South Korea won silver:
```
SELECT year FROM table_name_14 WHERE silver = "south korea";
``` | 45,549 | [
{
"from": "human",
"value": " 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 (year VARCHAR, silver VARCHAR)\n\n Question: In what year(s) did South Korea win silver?\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_51 (silver VARCHAR, location VARCHAR)
Question: Which nation(s) won silver in Doha?
Here is the SQLite query to answer to the question: Which nation(s) won si... | Here is the SQLite query to answer the question "Which nation(s) won silver in Doha?":
```
SELECT silver FROM table_name_51 WHERE location = 'Doha';
``` | 45,550 | [
{
"from": "human",
"value": " 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 (silver VARCHAR, location VARCHAR)\n\n Question: Which nation(s) won silver in Doha?\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_74 (year INTEGER, gold VARCHAR, bronze VARCHAR)
Question: What was the first year that South Korea won gold and Malaysia won bronze?
Here is the SQLite query ... | Here is the SQLite query to answer the question about the first year that South Korea won gold and Malaysia won bronze:
```
SELECT MIN(year) FROM table_name_74 WHERE gold = "south korea" AND bronze = "malaysia";
``` | 45,551 | [
{
"from": "human",
"value": " 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 (year INTEGER, gold VARCHAR, bronze VARCHAR)\n\n Question: What was the first year that South Korea won gold and Mal... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (gold VARCHAR, bronze VARCHAR)
Question: What country won gold in the year(s) that Chinese Taipei won bronze?
Here is the SQLite query to answer to the que... | Your SQLite query is almost correct, but it needs a little adjustment to ensure that the countries that won gold are specifically those that correspond to the years when Chinese Taipei won bronze. Assuming there is a way to relate the gold and bronze medal winners (like a common year or event column), which seems to be... | 45,552 | [
{
"from": "human",
"value": " 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 (gold VARCHAR, bronze VARCHAR)\n\n Question: What country won gold in the year(s) that Chinese Taipei won bronze?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (european_competitions VARCHAR, pos VARCHAR)
Question: Which European competitions have a Pos of 6?
Here is the SQLite query to answer to the question: Whi... | Here is the SQLite query to answer the question about which European competitions have a position of 6:
```
SELECT european_competitions FROM table_name_85 WHERE pos = '6'
``` | 45,553 | [
{
"from": "human",
"value": " 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 (european_competitions VARCHAR, pos VARCHAR)\n\n Question: Which European competitions have a Pos of 6?\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 (pos INTEGER, dutch_cup VARCHAR, tier VARCHAR)
Question: Which Pos has a Dutch Cup of winner, and a Tier larger than 1?
Here is the SQLite query to answer t... | It seems there is a misunderstanding in your query. The question asks for the `Pos` values that meet the criteria, not the average of `Pos`. Here's the correct SQLite query to select the `Pos` values:
```sql
SELECT pos FROM table_name_1 WHERE dutch_cup = "winner" AND tier > 1;
``` | 45,554 | [
{
"from": "human",
"value": " 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 (pos INTEGER, dutch_cup VARCHAR, tier VARCHAR)\n\n Question: Which Pos has a Dutch Cup of winner, and a Tier larger t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (frequency_mhz INTEGER, city_of_license VARCHAR)
Question: What is the average Frequency MHz that is on farwell, texas?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about the average Frequency MHz for Farwell, Texas:
```
SELECT AVG(frequency_mhz) FROM table_name_72 WHERE city_of_license = "farwell, texas"
``` | 45,555 | [
{
"from": "human",
"value": " 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 (frequency_mhz INTEGER, city_of_license VARCHAR)\n\n Question: What is the average Frequency MHz that is on farwell,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (city_of_license VARCHAR, fcc_info VARCHAR, erp_w VARCHAR)
Question: WHich City of license has a FCC info of fcc, and 10,000 horizontal 3,000 vertical ERP W... | Here is the SQLite query to answer the question regarding the city of license with a specific FCC info and ERP W:
```
SELECT city_of_license
FROM table_name_42
WHERE fcc_info = 'fcc'
AND erp_w = '10,000 horizontal 3,000 vertical';
``` | 45,556 | [
{
"from": "human",
"value": " 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 (city_of_license VARCHAR, fcc_info VARCHAR, erp_w VARCHAR)\n\n Question: WHich City of license has a FCC info of fcc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (fcc_info VARCHAR, erp_w VARCHAR)
Question: WHich FCC info has 3,000 ERP W?
Here is the SQLite query to answer to the question: WHich FCC info has 3,000 ER... | Here is the SQLite query to answer the question about which FCC info has 3,000 ERP W:
```sql
SELECT fcc_info FROM table_name_22 WHERE erp_w = "3,000";
``` | 45,557 | [
{
"from": "human",
"value": " 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 (fcc_info VARCHAR, erp_w VARCHAR)\n\n Question: WHich FCC info has 3,000 ERP W?\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_22 (game INTEGER, points VARCHAR, opponent VARCHAR)
Question: What's the average game against the New Jersey Devils with 19 points?
Here is the SQLite query t... | The provided SQLite query needs a small correction to ensure that the `points` column, which is of type VARCHAR, is compared with a string rather than an integer. Here is the corrected query wrapped properly in code formatting:
```
SELECT AVG(game) FROM table_name_22 WHERE points = '19' AND opponent = 'new jersey devi... | 45,558 | [
{
"from": "human",
"value": " 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 (game INTEGER, points VARCHAR, opponent VARCHAR)\n\n Question: What's the average game against the New Jersey Devils... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
Question: Opponent of at boston patriots, and a Week larger than 3 had what average attendance?
Here i... | Here is the SQLite query to answer the question regarding the average attendance for the opponent of "at boston patriots" in a week larger than 3:
```
SELECT AVG(attendance) FROM table_name_54 WHERE opponent = "at boston patriots" AND week > 3;
``` | 45,559 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_54 (attendance INTEGER, opponent VARCHAR, week VARCHAR)\n\n Question: Opponent of at boston patriots, and a Week larger... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (fall_07 INTEGER, fall_06 INTEGER)
Question: Name the average fall 07 for fall 07 more than 219
Here is the SQLite query to answer to the question: Name th... | Your query has the correct intention, but it appears you intended to filter based on `fall_07`, not `fall_06`. Here's the corrected SQLite query to calculate the average of `fall_07` where `fall_07` is greater than 219:
```
SELECT AVG(fall_07) FROM table_name_34 WHERE fall_07 > 219
``` | 45,560 | [
{
"from": "human",
"value": " 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 (fall_07 INTEGER, fall_06 INTEGER)\n\n Question: Name the average fall 07 for fall 07 more than 219\n\nHere is the S... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (player VARCHAR, pick__number VARCHAR, mls_team VARCHAR)
Question: Name the player for fc dallas pick number less than 3
Here is the SQLite query to answer... | Here's the SQLite query to answer the question "Name the player for FC Dallas pick number less than 3":
```
SELECT player FROM table_name_69 WHERE pick__number < '3' AND mls_team = 'fc dallas';
```
Note: The `pick__number` is treated as a string based on your schema (VARCHAR). Therefore, the comparison is using quot... | 45,561 | [
{
"from": "human",
"value": " 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 (player VARCHAR, pick__number VARCHAR, mls_team VARCHAR)\n\n Question: Name the player for fc dallas pick number les... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (pick__number INTEGER, mls_team VARCHAR, affiliation VARCHAR)
Question: Name the most pick number for real salt lake and affiliation of ucla los angeles sto... | Your query to find the most pick number for "real salt lake" and the affiliation "ucla los angeles storm" is almost correct. However, since you want to get both the maximum pick number and the affiliation, you will need to adjust the query slightly to include both pieces of information in the result. Here's how you can... | 45,562 | [
{
"from": "human",
"value": " 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 (pick__number INTEGER, mls_team VARCHAR, affiliation VARCHAR)\n\n Question: Name the most pick number for real salt ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (player VARCHAR, pick__number VARCHAR)
Question: Name the player with pick number of 7
Here is the SQLite query to answer to the question: Name the player ... | Here is the SQLite query to answer the question, "Name the player with pick number of 7":
```sql
SELECT player FROM table_name_63 WHERE pick__number = '7';
``` | 45,563 | [
{
"from": "human",
"value": " 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 (player VARCHAR, pick__number VARCHAR)\n\n Question: Name the player with pick number of 7\n\nHere is the SQLite que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (game INTEGER, march VARCHAR, score VARCHAR)
Question: Which Game has a March smaller than 12, and a Score of 10–1?
Here is the SQLite query to answer to t... | Your provided SQLite query appears to be correct for the question you're asking. It correctly selects the minimum game number where the conditions of March being smaller than 12 and the score being "10–1" are met. Here's the query formatted in a code block:
```sql
SELECT MIN(game) FROM table_name_10 WHERE march < 12 A... | 45,564 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_10 (game INTEGER, march VARCHAR, score VARCHAR)\n\n Question: Which Game has a March smaller than 12, and a Score of 10... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (score VARCHAR, points VARCHAR, record VARCHAR)
Question: Which Score has Points of 88, and a Record of 38–22–12?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question you provided:
```
SELECT score FROM table_name_84 WHERE points = '88' AND record = '38–22–12'
``` | 45,565 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_84 (score VARCHAR, points VARCHAR, record VARCHAR)\n\n Question: Which Score has Points of 88, and a Record of 38–22–12... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (game VARCHAR, opponent VARCHAR, march VARCHAR)
Question: Which Game has an Opponent of detroit red wings, and a March smaller than 12?
Here is the SQLite ... | To retrieve the specific games that meet the criteria of having an opponent of "detroit red wings" and a March value smaller than 12, you would use the following SQLite query:
```sql
SELECT game FROM table_name_13 WHERE opponent = "detroit red wings" AND march < 12;
```
This query will return the names of the games ... | 45,566 | [
{
"from": "human",
"value": " 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 (game VARCHAR, opponent VARCHAR, march VARCHAR)\n\n Question: Which Game has an Opponent of detroit red wings, and a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (points INTEGER, game VARCHAR, score VARCHAR)
Question: Which Points have a Game smaller than 70, and a Score of 4–8?
Here is the SQLite query to answer to... | The SQLite query you provided contains a couple of issues regarding the logic and syntax. Specifically, the comparison for the score range (4–8) should use an appropriate condition and it should be clarified that "4–8" likely refers to scores that are numeric values within that range.
Here is the corrected and properl... | 45,567 | [
{
"from": "human",
"value": " 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 (points INTEGER, game VARCHAR, score VARCHAR)\n\n Question: Which Points have a Game smaller than 70, and a Score of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (segment_a VARCHAR, netflix VARCHAR)
Question: Which segment a's Netflix is S05E22?
Here is the SQLite query to answer to the question: Which segment a's N... | Here is the SQLite query to answer the question regarding which segment_a's Netflix is S05E22:
```
SELECT segment_a FROM table_name_86 WHERE netflix = "S05E22";
``` | 45,568 | [
{
"from": "human",
"value": " 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 (segment_a VARCHAR, netflix VARCHAR)\n\n Question: Which segment a's Netflix is S05E22?\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_59 (series_ep VARCHAR, segment_c VARCHAR)
Question: Which series episode has a segment c that is Electric pole s transformer?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question about which series episode has a segment `c` that is "Electric pole s transformer":
```
SELECT series_ep FROM table_name_59 WHERE segment_c = "Electric pole s transformer"
``` | 45,569 | [
{
"from": "human",
"value": " 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 (series_ep VARCHAR, segment_c VARCHAR)\n\n Question: Which series episode has a segment c that is Electric pole s tr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (episode INTEGER, netflix VARCHAR)
Question: What largest episode number's Netflix is S05E23?
Here is the SQLite query to answer to the question: What larg... | Here is the SQLite query to answer the question about the largest episode number's Netflix being S05E23:
```
SELECT MAX(episode) FROM table_name_23 WHERE netflix = "S05E23";
``` | 45,570 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (episode INTEGER, netflix VARCHAR)\n\n Question: What largest episode number's Netflix is S05E23?\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_58 (segment_c VARCHAR, segment_b VARCHAR)
Question: Which segment c's segment b is refrigerators?
Here is the SQLite query to answer to the question: Which se... | Here is the SQLite query to answer the question regarding which `segment_c` corresponds to `segment_b` being "refrigerators":
```
SELECT segment_c FROM table_name_58 WHERE segment_b = 'refrigerators';
``` | 45,571 | [
{
"from": "human",
"value": " 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 (segment_c VARCHAR, segment_b VARCHAR)\n\n Question: Which segment c's segment b is refrigerators?\n\nHere is the SQ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (races VARCHAR, points VARCHAR)
Question: Which races did they accumulate at least 125 points?
Here is the SQLite query to answer to the question: Which ra... | The provided query checks for exactly 125 points rather than points that are 125 or more. To find races where the accumulated points are at least 125, we need to cast the `points` column to an integer for comparison. Here is the corrected query:
```sql
SELECT races
FROM table_name_38
WHERE CAST(points AS INTEGER) >=... | 45,572 | [
{
"from": "human",
"value": " 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 (races VARCHAR, points VARCHAR)\n\n Question: Which races did they accumulate at least 125 points?\n\nHere is the SQ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (series VARCHAR, score VARCHAR)
Question: Which Series has a Score of 3 – 8?
Here is the SQLite query to answer to the question: Which Series has a Score o... | Here is the SQLite query to answer the question: Which Series has a Score of 3 – 8?:
```
SELECT series FROM table_name_63 WHERE score = "3 – 8";
``` | 45,573 | [
{
"from": "human",
"value": " 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 (series VARCHAR, score VARCHAR)\n\n Question: Which Series has a Score of 3 – 8?\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_48 (date VARCHAR, decision VARCHAR)
Question: Which Date has a Decision of myre?
Here is the SQLite query to answer to the question: Which Date has a Decision... | Here is the SQLite query to answer the question: Which Date has a Decision of myre?:
```
SELECT date FROM table_name_48 WHERE decision = "myre"
``` | 45,574 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_48 (date VARCHAR, decision VARCHAR)\n\n Question: Which Date has a Decision of myre?\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_75 (attendance INTEGER, date VARCHAR)
Question: How many Attendances on may 24?
Here is the SQLite query to answer to the question: How many Attendances on ma... | The query to count the total attendances on May 24 should use the `SUM` function instead of `MIN`, and it should be clear that you want to count the occurrences. Here’s the corrected query:
```
SELECT SUM(attendance) FROM table_name_75 WHERE date = "may 24"
```
This will provide the total attendance for that specifi... | 45,575 | [
{
"from": "human",
"value": " 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 (attendance INTEGER, date VARCHAR)\n\n Question: How many Attendances on may 24?\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_86 (series VARCHAR, date VARCHAR)
Question: Which Series are on may 18?
Here is the SQLite query to answer to the question: Which Series are on may 18?:
```
S... | Here is the SQLite query to answer the question: Which Series are on May 18?:
```sql
SELECT series FROM table_name_86 WHERE date = "may 18";
``` | 45,576 | [
{
"from": "human",
"value": " 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 (series VARCHAR, date VARCHAR)\n\n Question: Which Series are on may 18?\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_48 (attendance INTEGER, visitor VARCHAR, date VARCHAR)
Question: How many Attendances that has a Visitor of philadelphia on may 20?
Here is the SQLite query t... | The query you've provided is intended to calculate the average attendance, but the question asks for the count of attendances. To count the number of attendances with a visitor of "philadelphia" on "may 20", you should use the `COUNT` function instead. Here’s the corrected query:
```
SELECT COUNT(attendance) FROM tabl... | 45,577 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_48 (attendance INTEGER, visitor VARCHAR, date VARCHAR)\n\n Question: How many Attendances that has a Visitor of philade... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (visitor VARCHAR, series VARCHAR)
Question: who is the Visitor that has a Series of series tied 2–2?
Here is the SQLite query to answer to the question: wh... | Your provided SQL query is close but seems to assume a specific string value for the series. If you are looking for visitors where their series is specifically tied 2–2, you'll want to ensure your query correctly captures that condition. Assuming the structure you provided allows for a column 'series' to store differen... | 45,578 | [
{
"from": "human",
"value": " 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 (visitor VARCHAR, series VARCHAR)\n\n Question: who is the Visitor that has a Series of series tied 2–2?\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_88 (attendance INTEGER, score VARCHAR)
Question: How many Attendances have a Score of 4 – 5? Question 4
Here is the SQLite query to answer to the question: Ho... | The query you provided is not correct for counting attendances with a score of 4 – 5. Instead, you need to use the `COUNT` function to count the number of records that match the specified score condition.
Here is the correct SQLite query:
```
SELECT COUNT(attendance) FROM table_name_88 WHERE score = '4 – 5';
```
T... | 45,579 | [
{
"from": "human",
"value": " 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 (attendance INTEGER, score VARCHAR)\n\n Question: How many Attendances have a Score of 4 – 5? Question 4\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_54 (visitor VARCHAR, home VARCHAR, series VARCHAR)
Question: WHo has a Home of philadelphia and a Series of flyers lead 1–0?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question: Who has a Home of Philadelphia and a Series of flyers lead 1–0?:
```
SELECT visitor FROM table_name_54 WHERE home = "philadelphia" AND series = "flyers lead 1–0"
``` | 45,580 | [
{
"from": "human",
"value": " 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 (visitor VARCHAR, home VARCHAR, series VARCHAR)\n\n Question: WHo has a Home of philadelphia and a Series of flyers ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (class VARCHAR, race VARCHAR)
Question: What is the class of the Charlotte Camel gt 500 race?
Here is the SQLite query to answer to the question: What is t... | Your SQLite query looks correct for retrieving the class of the "Charlotte Camel gt 500" race. Here is the query wrapped in code blocks as you requested:
```
SELECT class FROM table_name_76 WHERE race = "charlotte camel gt 500";
``` | 45,581 | [
{
"from": "human",
"value": " 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 (class VARCHAR, race VARCHAR)\n\n Question: What is the class of the Charlotte Camel gt 500 race?\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_20 (race VARCHAR, length VARCHAR)
Question: What is the race 12 hours in length?
Here is the SQLite query to answer to the question: What is the race 12 hours... | Here is the SQLite query wrapped in code formatting to answer the question "What is the race 12 hours in length?":
```
SELECT race FROM table_name_20 WHERE length = "12 hours"
``` | 45,582 | [
{
"from": "human",
"value": " 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 (race VARCHAR, length VARCHAR)\n\n Question: What is the race 12 hours in length?\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_35 (class VARCHAR, race VARCHAR)
Question: What is the class of the Coca-cola classic 12 hours of sebring race?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question regarding the class of the Coca-cola classic 12 hours of Sebring race:
```
SELECT class FROM table_name_35 WHERE race = "coca-cola classic 12 hours of sebring";
``` | 45,583 | [
{
"from": "human",
"value": " 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 (class VARCHAR, race VARCHAR)\n\n Question: What is the class of the Coca-cola classic 12 hours of sebring race?\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_13 (class VARCHAR, race VARCHAR, length VARCHAR)
Question: What is the class of the Budweiser Grand Prix of Miami race with a length of 3 hours?
Here is the S... | Here is the SQLite query to answer the question about the class of the Budweiser Grand Prix of Miami race with a length of 3 hours:
```
SELECT class FROM table_name_13 WHERE race = "Budweiser Grand Prix of Miami" AND length = "3 hours"
``` | 45,584 | [
{
"from": "human",
"value": " 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 (class VARCHAR, race VARCHAR, length VARCHAR)\n\n Question: What is the class of the Budweiser Grand Prix of Miami r... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (date VARCHAR, circuit VARCHAR, race VARCHAR)
Question: What is the date of the Paul Revere 250 race in the Daytona International Speedway circuit?
Here is... | Your SQLite query looks correct for retrieving the desired information. Here it is wrapped in the requested format:
```
SELECT date FROM table_name_66 WHERE circuit = "daytona international speedway" AND race = "paul revere 250";
``` | 45,585 | [
{
"from": "human",
"value": " 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 (date VARCHAR, circuit VARCHAR, race VARCHAR)\n\n Question: What is the date of the Paul Revere 250 race in the Dayt... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (race VARCHAR, length VARCHAR)
Question: What race is 12 hours in length?
Here is the SQLite query to answer to the question: What race is 12 hours in leng... | Here is the SQLite query to answer the question about what race is 12 hours in length:
```
SELECT race FROM table_name_52 WHERE length = "12 hours";
``` | 45,586 | [
{
"from": "human",
"value": " 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 (race VARCHAR, length VARCHAR)\n\n Question: What race is 12 hours in length?\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_55 (round INTEGER, nationality VARCHAR)
Question: What is the highest round for the pick from Finland?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to find the highest round for the pick from Finland:
```
SELECT MAX(round) FROM table_name_55 WHERE nationality = "Finland";
``` | 45,587 | [
{
"from": "human",
"value": " 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 (round INTEGER, nationality VARCHAR)\n\n Question: What is the highest round for the pick from Finland?\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_34 (round VARCHAR, player VARCHAR)
Question: What is the total number of rounds that Joe Barnes was picked?
Here is the SQLite query to answer to the question... | Here's the SQLite query to determine the total number of rounds that Joe Barnes was picked:
```
SELECT COUNT(round) FROM table_name_34 WHERE player = "Joe Barnes";
``` | 45,588 | [
{
"from": "human",
"value": " 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 (round VARCHAR, player VARCHAR)\n\n Question: What is the total number of rounds that Joe Barnes was picked?\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_9 (order VARCHAR, olympic_games VARCHAR)
Question: What was the order of the Tokyo olympic games?
Here is the SQLite query to answer to the question: What was... | Here's the SQLite query wrapped in the requested format:
```
SELECT order FROM table_name_9 WHERE olympic_games = "tokyo";
``` | 45,589 | [
{
"from": "human",
"value": " 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 (order VARCHAR, olympic_games VARCHAR)\n\n Question: What was the order of the Tokyo olympic games?\n\nHere is the SQ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (club VARCHAR, year VARCHAR, order VARCHAR)
Question: What was the 15th club in 2012?
Here is the SQLite query to answer to the question: What was the 15th... | Your query to find the 15th club in 2012 looks close, but in SQL, it's a good practice to ensure that you're using consistent data types, especially with the `year` column, which is defined as `VARCHAR`. Also, since the ordering of clubs may need clarification, we likely want to ensure that the results are sorted in th... | 45,590 | [
{
"from": "human",
"value": " 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 (club VARCHAR, year VARCHAR, order VARCHAR)\n\n Question: What was the 15th club in 2012?\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_48 (medal VARCHAR, weight VARCHAR, boxer VARCHAR)
Question: What medal did Michael Conlon, with a weight of fly, win?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question: What medal did Michael Conlon, with a weight of fly, win?:
```
SELECT medal FROM table_name_48 WHERE weight = "fly" AND boxer = "Michael Conlon"
``` | 45,591 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_48 (medal VARCHAR, weight VARCHAR, boxer VARCHAR)\n\n Question: What medal did Michael Conlon, with a weight of fly, wi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (loss VARCHAR, attendance INTEGER)
Question: How many losses have more than 45,036 attendance?
Here is the SQLite query to answer to the question: How many... | It looks like there is a small error in the query you provided. The OFFSET clause is not appropriate for counting records. Instead, you should use the COUNT function to get the number of losses that meet the criteria. Here is the corrected SQLite query:
```sql
SELECT COUNT(*) FROM table_name_50 WHERE attendance > 4503... | 45,592 | [
{
"from": "human",
"value": " 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 (loss VARCHAR, attendance INTEGER)\n\n Question: How many losses have more than 45,036 attendance?\n\nHere is the SQ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (attendance INTEGER, date VARCHAR)
Question: on april 29, what was the attendance?
Here is the SQLite query to answer to the question: on april 29, what wa... | Your provided SQLite query correctly sums the attendance for the specified date. Here it is wrapped in code formatting:
```
SELECT SUM(attendance) FROM table_name_68 WHERE date = "april 29";
```
This query will return the total attendance for April 29 from the `table_name_68` table. If you're looking for individual ... | 45,593 | [
{
"from": "human",
"value": " 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 (attendance INTEGER, date VARCHAR)\n\n Question: on april 29, what was the attendance?\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_40 (attendance INTEGER, date VARCHAR)
Question: on april 9 what was the attendance?
Here is the SQLite query to answer to the question: on april 9 what was th... | Here is the SQLite query to answer the question about attendance on April 9:
```sql
SELECT attendance FROM table_name_40 WHERE date = "april 9";
``` | 45,594 | [
{
"from": "human",
"value": " 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 (attendance INTEGER, date VARCHAR)\n\n Question: on april 9 what was the attendance?\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_27 (date VARCHAR, score VARCHAR)
Question: What date has postponed (rain) rescheduled for august 7 as the score?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question about which date has the score "postponed (rain) rescheduled for august 7":
```
SELECT date FROM table_name_27 WHERE score = "postponed (rain) rescheduled for august 7"
``` | 45,595 | [
{
"from": "human",
"value": " 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 (date VARCHAR, score VARCHAR)\n\n Question: What date has postponed (rain) rescheduled for august 7 as the score?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (partial_failures INTEGER, failures VARCHAR, successes VARCHAR)
Question: Failures larger than 0, and a Successes of 1 has what lowest partial failures?
He... | Your provided SQLite query is correct for finding the lowest `partial_failures` where `failures` are greater than 0 and `successes` equal to 1. Here it is wrapped in the requested format:
```
SELECT MIN(partial_failures) FROM table_name_64 WHERE failures > 0 AND successes = 1
``` | 45,596 | [
{
"from": "human",
"value": " 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 (partial_failures INTEGER, failures VARCHAR, successes VARCHAR)\n\n Question: Failures larger than 0, and a Successe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (partial_failures INTEGER, failures VARCHAR, successes VARCHAR, launches VARCHAR)
Question: Successes smaller than 6, and Launches larger than 1, and a Fail... | Here is the SQLite query that answers the question based on the provided schema:
```
SELECT SUM(partial_failures) FROM table_name_35 WHERE successes < 6 AND launches > 1 AND failures = '2'
``` | 45,597 | [
{
"from": "human",
"value": " 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 (partial_failures INTEGER, failures VARCHAR, successes VARCHAR, launches VARCHAR)\n\n Question: Successes smaller th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (opponent VARCHAR, location VARCHAR)
Question: Who was the opposing team during a game in the Pontiac Silverdome?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question about the opposing team during a game in the Pontiac Silverdome:
```
SELECT opponent FROM table_name_89 WHERE location = "Pontiac Silverdome";
``` | 45,598 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, location VARCHAR)\n\n Question: Who was the opposing team during a game in the Pontiac Silverdome... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (score VARCHAR, date VARCHAR)
Question: What was the final score for the January 23 game?
Here is the SQLite query to answer to the question: What was the ... | Your SQLite query is almost correct, but you may want to ensure that the date format you're using exactly matches the format in the database. Assuming the date values in the `date` column are indeed stored as "january 23", your query will work. Here's your query wrapped in code formatting:
```
SELECT score FROM table_... | 45,599 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (score VARCHAR, date VARCHAR)\n\n Question: What was the final score for the January 23 game?\n\nHere is the SQLite ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.