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_66 (results VARCHAR, awards_show VARCHAR)
Question: What was the results of the 71st Academy Awards show?
Here is the SQLite query to answer to the question: ... | Your query looks correct. Here's the provided SQLite query wrapped in code formatting:
```
SELECT results FROM table_name_66 WHERE awards_show = "71st academy awards";
```
This query will retrieve the results of the 71st Academy Awards show from the specified table. | 25,700 | [
{
"from": "human",
"value": " 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 (results VARCHAR, awards_show VARCHAR)\n\n Question: What was the results of the 71st Academy Awards show?\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_89 (city VARCHAR, year_opened VARCHAR, state VARCHAR)
Question: What is the city in Alabama that opened in 1996?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question about the city in Alabama that opened in 1996:
```
SELECT city FROM table_name_89 WHERE year_opened = "1996" AND state = "Alabama";
``` | 25,701 | [
{
"from": "human",
"value": " 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 (city VARCHAR, year_opened VARCHAR, state VARCHAR)\n\n Question: What is the city in Alabama that opened in 1996?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (capacity INTEGER, year_opened VARCHAR)
Question: What is the lowest capacity for 1903?
Here is the SQLite query to answer to the question: What is the low... | The SQLite query you provided is correct for retrieving the lowest capacity for the year 1903. Here it is, wrapped in the requested format:
```
SELECT MIN(capacity) FROM table_name_75 WHERE year_opened = "1903";
``` | 25,702 | [
{
"from": "human",
"value": " 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 (capacity INTEGER, year_opened VARCHAR)\n\n Question: What is the lowest capacity for 1903?\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_50 (year_opened VARCHAR, state VARCHAR, capacity VARCHAR)
Question: What was the year opened for North Carolina with a smaller than 21,500 capacity?
Here is t... | It looks like there are a couple of issues in the query you've provided:
1. The `capacity` column is of type `VARCHAR`, so we need to convert it to a numeric type to perform a comparison.
2. The `OFFSET 500` is likely not appropriate for this query unless you're intending to skip a certain number of rows, which doesn’... | 25,703 | [
{
"from": "human",
"value": " 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 (year_opened VARCHAR, state VARCHAR, capacity VARCHAR)\n\n Question: What was the year opened for North Carolina wit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (rank VARCHAR, year_opened VARCHAR, state VARCHAR)
Question: What is the rank for the year opened in 1959 in Pennsylvania?
Here is the SQLite query to answ... | Your SQLite query looks good! Here it is wrapped in code formatting as requested:
```
SELECT rank FROM table_name_83 WHERE year_opened = "1959" AND state = "pennsylvania";
``` | 25,704 | [
{
"from": "human",
"value": " 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 (rank VARCHAR, year_opened VARCHAR, state VARCHAR)\n\n Question: What is the rank for the year opened in 1959 in Pen... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (year VARCHAR, weight_class VARCHAR, date VARCHAR)
Question: How many years were lightweight class on february 28, 2009?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question about how many years the lightweight class was on February 28, 2009:
```
SELECT COUNT(year) FROM table_name_87 WHERE weight_class = "lightweight" AND date = "february 28, 2009"
``` | 25,705 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (year VARCHAR, weight_class VARCHAR, date VARCHAR)\n\n Question: How many years were lightweight class on february 2... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (week VARCHAR, result VARCHAR)
Question: How many weeks have a Result of t 10-10?
Here is the SQLite query to answer to the question: How many weeks have a... | Your SQLite query looks correct for counting the number of weeks with a result of "t 10-10". Here it is wrapped in code format:
```
SELECT COUNT(week) FROM table_name_78 WHERE result = 't 10-10';
```
Please note that I changed the double quotes to single quotes around the string `t 10-10`, which is a common practice... | 25,706 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_78 (week VARCHAR, result VARCHAR)\n\n Question: How many weeks have a Result of t 10-10?\n\nHere is the SQLite query to... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (date VARCHAR, week VARCHAR, opponent VARCHAR)
Question: Which Date has a Week smaller than 8, and an Opponent of atlanta falcons?
Here is the SQLite query... | Here is the SQLite query to answer the question regarding which date has a week smaller than 8 and an opponent of "atlanta falcons":
```
SELECT date FROM table_name_31 WHERE week < 8 AND opponent = "atlanta falcons";
``` | 25,707 | [
{
"from": "human",
"value": " 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 (date VARCHAR, week VARCHAR, opponent VARCHAR)\n\n Question: Which Date has a Week smaller than 8, and an Opponent o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (result VARCHAR, opponent VARCHAR)
Question: Which Result has an Opponent of minnesota vikings?
Here is the SQLite query to answer to the question: Which R... | Here is the SQLite query to answer the question "Which Result has an Opponent of minnesota vikings?":
```
SELECT result FROM table_name_85 WHERE opponent = "minnesota vikings";
``` | 25,708 | [
{
"from": "human",
"value": " 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 (result VARCHAR, opponent VARCHAR)\n\n Question: Which Result has an Opponent of minnesota vikings?\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_35 (rank INTEGER, time VARCHAR, lane VARCHAR)
Question: What is the Rank of the Athlete with a Time of 1:47.65 and in Lane 3 or larger?
Here is the SQLite que... | Here is the SQLite query to answer the question regarding the rank of the athlete with a specific time and lane condition:
```
SELECT MAX(rank) FROM table_name_35 WHERE time = "1:47.65" AND lane >= "3"
```
In this query, we are selecting the maximum rank from `table_name_35` where the athlete's time is exactly "1:47.... | 25,709 | [
{
"from": "human",
"value": " 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 (rank INTEGER, time VARCHAR, lane VARCHAR)\n\n Question: What is the Rank of the Athlete with a Time of 1:47.65 and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (place VARCHAR, event VARCHAR)
Question: What is the Place of the half marathon Event?
Here is the SQLite query to answer to the question: What is the Plac... | Here is the SQLite query to answer the question about the place of the half marathon event:
```
SELECT place FROM table_name_88 WHERE event = "half marathon"
``` | 25,710 | [
{
"from": "human",
"value": " 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 (place VARCHAR, event VARCHAR)\n\n Question: What is the Place of the half marathon Event?\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_18 (place VARCHAR, date VARCHAR)
Question: What is the Place of the Event on August 25, 2007?
Here is the SQLite query to answer to the question: What is the ... | Here is the SQLite query to answer the question about the Place of the Event on August 25, 2007:
```
SELECT place FROM table_name_18 WHERE date = "August 25, 2007";
``` | 25,711 | [
{
"from": "human",
"value": " 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 (place VARCHAR, date VARCHAR)\n\n Question: What is the Place of the Event on August 25, 2007?\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_97 (country VARCHAR, event VARCHAR)
Question: What is the Country of the Half Marathon Event?
Here is the SQLite query to answer to the question: What is the ... | Here is the SQLite query to answer the question: What is the Country of the Half Marathon Event?:
```sql
SELECT country FROM table_name_97 WHERE event = "half marathon";
``` | 25,712 | [
{
"from": "human",
"value": " 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 (country VARCHAR, event VARCHAR)\n\n Question: What is the Country of the Half Marathon Event?\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_39 (country VARCHAR, event VARCHAR)
Question: What is the Country of the 10,000m Event?
Here is the SQLite query to answer to the question: What is the Countr... | Here is the SQLite query to answer the question: What is the Country of the 10,000m Event?:
```
SELECT country FROM table_name_39 WHERE event = "10,000m"
``` | 25,713 | [
{
"from": "human",
"value": " 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 (country VARCHAR, event VARCHAR)\n\n Question: What is the Country of the 10,000m Event?\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_69 (event VARCHAR, country VARCHAR)
Question: What is the Event labeled Country of (local competition)?
Here is the SQLite query to answer to the question: Wh... | Your SQLite query seems to be almost correct, but it is important to pay attention to string comparison. If the string in the country column is stored without parentheses, the query should reflect that. Assuming that the country is indeed "(local competition)", here is your query wrapped properly:
```sql
SELECT event ... | 25,714 | [
{
"from": "human",
"value": " 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 (event VARCHAR, country VARCHAR)\n\n Question: What is the Event labeled Country of (local competition)?\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_23 (date VARCHAR, time VARCHAR)
Question: What is the Date of the Event with a Time of 2:23:47?
Here is the SQLite query to answer to the question: What is th... | Here is the SQLite query to answer the question: What is the Date of the Event with a Time of 2:23:47?:
```
SELECT date FROM table_name_23 WHERE time = "2:23:47"
``` | 25,715 | [
{
"from": "human",
"value": " 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 (date VARCHAR, time VARCHAR)\n\n Question: What is the Date of the Event with a Time of 2:23:47?\n\nHere is the SQLi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (rank VARCHAR, time VARCHAR)
Question: What is the rank of the time of 6:30.53?
Here is the SQLite query to answer to the question: What is the rank of the... | To find the rank of the time "6:30.53" in the specified table, the query you provided only counts the number of rows with that specific time but does not return the rank directly. You should select the rank associated with that time instead. Here’s the corrected query:
```
SELECT rank FROM table_name_89 WHERE time = "... | 25,716 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_89 (rank VARCHAR, time VARCHAR)\n\n Question: What is the rank of the time of 6:30.53?\n\nHere is the SQLite query to a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (rowers VARCHAR, time VARCHAR)
Question: What is the names of the rowers that the time was 6:24.61?
Here is the SQLite query to answer to the question: Wha... | Your SQLite query is correctly structured to retrieve the names of the rowers with the specified time. Here it is formatted as requested:
```
SELECT rowers FROM table_name_70 WHERE time = "6:24.61";
``` | 25,717 | [
{
"from": "human",
"value": " 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 (rowers VARCHAR, time VARCHAR)\n\n Question: What is the names of the rowers that the time was 6:24.61?\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_45 (country VARCHAR, time VARCHAR, rank VARCHAR, notes VARCHAR)
Question: What country has a rank smaller than 6, a time of 6:32.32 and notes of FB?
Here is t... | Here is the corrected SQLite query to answer the question:
```
SELECT country FROM table_name_45 WHERE rank < '6' AND notes = 'FB' AND time = '6:32.32'
```
Note that I have used single quotes for the string values, which is the standard practice in SQL. Additionally, since `rank` is defined as a VARCHAR, it is impor... | 25,718 | [
{
"from": "human",
"value": " 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 (country VARCHAR, time VARCHAR, rank VARCHAR, notes VARCHAR)\n\n Question: What country has a rank smaller than 6, a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (actor VARCHAR, duration VARCHAR, soap_opera VARCHAR)
Question: Which actor played on Home and Away for 20 years?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question: Which actor played on Home and Away for 20 years?:
```
SELECT actor FROM table_name_21 WHERE duration = "20 years" AND soap_opera = "Home and Away"
``` | 25,719 | [
{
"from": "human",
"value": " 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 (actor VARCHAR, duration VARCHAR, soap_opera VARCHAR)\n\n Question: Which actor played on Home and Away for 20 years... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (character VARCHAR, duration VARCHAR, soap_opera VARCHAR)
Question: What character was portrayed by the same actor for 12 years on Neighbours?
Here is the ... | Your SQLite query is correctly set to find the character portrayed by the same actor for 12 years on "Neighbours." Here is the query wrapped as you requested:
```
SELECT character FROM table_name_64 WHERE duration = "12 years" AND soap_opera = "neighbours"
```
This query selects the `character` from `table_name_64` ... | 25,720 | [
{
"from": "human",
"value": " 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 (character VARCHAR, duration VARCHAR, soap_opera VARCHAR)\n\n Question: What character was portrayed by the same act... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (duration VARCHAR, actor VARCHAR)
Question: How long did Joyce Jacobs portray her character on her show?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question about how long Joyce Jacobs portrayed her character on her show:
```
SELECT duration FROM table_name_83 WHERE actor = "Joyce Jacobs";
``` | 25,721 | [
{
"from": "human",
"value": " 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 (duration VARCHAR, actor VARCHAR)\n\n Question: How long did Joyce Jacobs portray her character on her show?\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_85 (actor VARCHAR, duration VARCHAR, character VARCHAR)
Question: Which actor played Harold Bishop for 17 years?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question about which actor played Harold Bishop for 17 years:
```
SELECT actor FROM table_name_85 WHERE duration = "17 years" AND character = "Harold Bishop"
``` | 25,722 | [
{
"from": "human",
"value": " 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 (actor VARCHAR, duration VARCHAR, character VARCHAR)\n\n Question: Which actor played Harold Bishop for 17 years?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (years VARCHAR, actor VARCHAR)
Question: Which years did Martin Sacks work on a soap opera?
Here is the SQLite query to answer to the question: Which years... | Here is the SQLite query to answer the question about the years Martin Sacks worked on a soap opera:
```
SELECT years FROM table_name_98 WHERE actor = "Martin Sacks";
``` | 25,723 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_98 (years VARCHAR, actor VARCHAR)\n\n Question: Which years did Martin Sacks work on a soap opera?\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_84 (arena VARCHAR, points VARCHAR)
Question: What is the Arena when there were 65 points?
Here is the SQLite query to answer to the question: What is the Aren... | Here's the SQLite query to find the Arena when there were 65 points:
```
SELECT arena FROM table_name_84 WHERE points = "65";
``` | 25,724 | [
{
"from": "human",
"value": " 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 (arena VARCHAR, points VARCHAR)\n\n Question: What is the Arena when there were 65 points?\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_45 (record VARCHAR, score VARCHAR)
Question: What is the record when the score was 2–0?
Here is the SQLite query to answer to the question: What is the record... | Here is the SQLite query to answer the question "What is the record when the score was 2–0?":
```
SELECT record FROM table_name_45 WHERE score = "2–0"
``` | 25,725 | [
{
"from": "human",
"value": " 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 (record VARCHAR, score VARCHAR)\n\n Question: What is the record when the score was 2–0?\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_15 (points VARCHAR, date VARCHAR)
Question: What were the points on February 10?
Here is the SQLite query to answer to the question: What were the points on F... | Here is the SQLite query to answer the question regarding the points on February 10:
```
SELECT points FROM table_name_15 WHERE date = "February 10";
``` | 25,726 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_15 (points VARCHAR, date VARCHAR)\n\n Question: What were the points on February 10?\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_78 (record VARCHAR, arena VARCHAR)
Question: What is the record at Palasport Olimpico?
Here is the SQLite query to answer to the question: What is the record ... | Here is the SQLite query to answer the question: What is the record at Palasport Olimpico?:
```
SELECT record FROM table_name_78 WHERE arena = "Palasport Olimpico"
``` | 25,727 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_78 (record VARCHAR, arena VARCHAR)\n\n Question: What is the record at Palasport Olimpico?\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_52 (points VARCHAR, score VARCHAR, record VARCHAR)
Question: What is the points when the score was 3–1, and record was 25–19–11?
Here is the SQLite query to a... | Here is the SQLite query you can use to answer the question:
```
SELECT points FROM table_name_52 WHERE score = "3–1" AND record = "25–19–11"
``` | 25,728 | [
{
"from": "human",
"value": " 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 (points VARCHAR, score VARCHAR, record VARCHAR)\n\n Question: What is the points when the score was 3–1, and record ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (record VARCHAR, arena VARCHAR, loss VARCHAR)
Question: What is the record at Arrowhead Pond of Anaheim, when the loss was Bryzgalov (10–11–1)?
Here is the... | Here is the SQLite query to answer the question you provided:
```
SELECT record FROM table_name_53 WHERE arena = "Arrowhead Pond of Anaheim" AND loss = "Bryzgalov (10–11–1)";
``` | 25,729 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_53 (record VARCHAR, arena VARCHAR, loss VARCHAR)\n\n Question: What is the record at Arrowhead Pond of Anaheim, when th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (fin_time VARCHAR, finish VARCHAR, track VARCHAR)
Question: What is the finishing time with a 2/1q finish on the Meadowlands track?
Here is the SQLite quer... | Your query looks good. However, it is important to ensure the track name is correctly cased if the SQLite database is case-sensitive. Here’s your coded query wrapped in the required format:
```
SELECT fin_time FROM table_name_10 WHERE finish = "2/1q" AND track = "Meadowlands";
``` | 25,730 | [
{
"from": "human",
"value": " 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 (fin_time VARCHAR, finish VARCHAR, track VARCHAR)\n\n Question: What is the finishing time with a 2/1q finish on the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (last_1_4 VARCHAR, race VARCHAR, fin_time VARCHAR)
Question: What is the last 1/4 for the QUA race with a finishing time of 2:03.1?
Here is the SQLite quer... | Your provided SQLite query is mostly correct, but the case sensitivity of the string "QUA" may vary depending on how the data is stored. In SQLite, string comparisons are usually case-sensitive unless the collation is set to be case-insensitive. To ensure that the query works regardless of the case, you might want to u... | 25,731 | [
{
"from": "human",
"value": " 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 (last_1_4 VARCHAR, race VARCHAR, fin_time VARCHAR)\n\n Question: What is the last 1/4 for the QUA race with a finish... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (rank VARCHAR, time VARCHAR, rider VARCHAR)
Question: How many ranks have 1:01.14.62 as the time, with michael russell as the rider?
Here is the SQLite que... | The SQLite query you provided is correct to count the number of ranks for the specified time and rider. Here it is wrapped as requested:
```
SELECT COUNT(rank) FROM table_name_98 WHERE time = "1:01.14.62" AND rider = "michael russell";
``` | 25,732 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_98 (rank VARCHAR, time VARCHAR, rider VARCHAR)\n\n Question: How many ranks have 1:01.14.62 as the time, with michael r... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (time VARCHAR, rider VARCHAR)
Question: What time has phil mcgurk as the rider?
Here is the SQLite query to answer to the question: What time has phil mcgu... | Here is the SQLite query to answer the question about what time has Phil McGurk as the rider:
```
SELECT time FROM table_name_34 WHERE rider = "phil mcgurk";
``` | 25,733 | [
{
"from": "human",
"value": " 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 (time VARCHAR, rider VARCHAR)\n\n Question: What time has phil mcgurk as the rider?\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_71 (rank INTEGER, rider VARCHAR)
Question: How many ranks have michael russell as the rider?
Here is the SQLite query to answer to the question: How many rank... | To count how many ranks have "michael russell" as the rider, you should use the `COUNT` function instead of `SUM`, since you're looking for the number of entries (ranks) associated with that rider. Here is the corrected SQLite query:
```
SELECT COUNT(rank) FROM table_name_71 WHERE rider = "michael russell"
``` | 25,734 | [
{
"from": "human",
"value": " 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 (rank INTEGER, rider VARCHAR)\n\n Question: How many ranks have michael russell as the rider?\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_81 (goals_conceded INTEGER, played VARCHAR, draw VARCHAR, points VARCHAR)
Question: How many goals were conceded by the team with more than 21 points more than... | Your query has some minor issues with the logical conditions. To accurately reflect the constraints that you provided, the logic should check that "points" are greater than 21, "draw" is greater than 5, and "played" is less than 18. However, there are also some data type considerations; since `points`, `draw`, and `pla... | 25,735 | [
{
"from": "human",
"value": " 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 (goals_conceded INTEGER, played VARCHAR, draw VARCHAR, points VARCHAR)\n\n Question: How many goals were conceded by... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (goals_conceded VARCHAR, goals_scored VARCHAR, points VARCHAR, lost VARCHAR)
Question: How many goals were conceded by teams with 32 points, more than 2 los... | Here is the correct SQLite query to answer the given question:
```
SELECT SUM(goals_conceded) FROM table_name_75 WHERE points = '32' AND lost > '2' AND goals_scored > '22'
```
Note that I've used `SUM` instead of `COUNT` to get the total number of goals conceded, and I've wrapped the numerical values in quotes since ... | 25,736 | [
{
"from": "human",
"value": " 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 (goals_conceded VARCHAR, goals_scored VARCHAR, points VARCHAR, lost VARCHAR)\n\n Question: How many goals were conce... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (points VARCHAR, goals_conceded VARCHAR, place VARCHAR)
Question: How many points did the team have that conceded 41 goals and finish in a place larger than... | Your provided SQLite query has a slight issue. You want to get the number of points for a specific team rather than counting the total number of rows that meet the criteria. Additionally, since `points` is likely a string (VARCHAR), COUNT may not be the appropriate function to retrieve the points directly. Instead, you... | 25,737 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_25 (points VARCHAR, goals_conceded VARCHAR, place VARCHAR)\n\n Question: How many points did the team have that concede... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (opponent VARCHAR, week VARCHAR)
Question: Who was the opponent in week 13?
Here is the SQLite query to answer to the question: Who was the opponent in wee... | Here is the SQLite query to answer the question: Who was the opponent in week 13?:
```
SELECT opponent FROM table_name_25 WHERE week = '13'
``` | 25,738 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_25 (opponent VARCHAR, week VARCHAR)\n\n Question: Who was the opponent in week 13?\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_48 (location VARCHAR, mascot VARCHAR)
Question: What location has kingsmen as the mascot?
Here is the SQLite query to answer to the question: What location ha... | Here is the SQLite query to answer the question of which location has "kingsmen" as the mascot:
```
SELECT location FROM table_name_48 WHERE mascot = "kingsmen";
``` | 25,739 | [
{
"from": "human",
"value": " 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 (location VARCHAR, mascot VARCHAR)\n\n Question: What location has kingsmen as the mascot?\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_39 (ihsaa_football_class VARCHAR, county VARCHAR)
Question: What IHSAA Football Class has 20 elkhart as the county?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about what IHSAA Football Class corresponds to the county "20 elkhart":
```
SELECT ihsaa_football_class FROM table_name_39 WHERE county = "20 elkhart"
``` | 25,740 | [
{
"from": "human",
"value": " 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 (ihsaa_football_class VARCHAR, county VARCHAR)\n\n Question: What IHSAA Football Class has 20 elkhart as the county?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (school VARCHAR, location VARCHAR, mascot VARCHAR)
Question: What school has south bend as the location, with indians as the mascot?
Here is the SQLite que... | Here is the SQLite query to answer the question:
```
SELECT school FROM table_name_32 WHERE location = "south bend" AND mascot = "indians"
``` | 25,741 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (school VARCHAR, location VARCHAR, mascot VARCHAR)\n\n Question: What school has south bend as the location, with in... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (total INTEGER, position INTEGER)
Question: What's the total that the position is less than 1?
Here is the SQLite query to answer to the question: What's t... | It looks like you're trying to retrieve a total based on a condition, but the query you've provided is using `MIN(total)` which will give you the minimum total for records where the position is less than 1. If you want to sum the totals where the position is less than 1, you should use the `SUM` function instead.
Here... | 25,742 | [
{
"from": "human",
"value": " 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 (total INTEGER, position INTEGER)\n\n Question: What's the total that the position is less than 1?\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_10 (b_score INTEGER, position VARCHAR, total VARCHAR)
Question: What the B Score when the total is 16.125 and the position is less than 7?
Here is the SQLite ... | Here is the SQLite query to answer the question:
```
SELECT SUM(b_score) FROM table_name_10 WHERE position < 7 AND total = '16.125'
```
Note that I have adjusted the condition for the `total` column to match the data type, treating it as a string, since it is defined as `VARCHAR`. | 25,743 | [
{
"from": "human",
"value": " 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 (b_score INTEGER, position VARCHAR, total VARCHAR)\n\n Question: What the B Score when the total is 16.125 and 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_87 (total INTEGER, a_score VARCHAR, b_score VARCHAR)
Question: What was the total rating that had a score higher than 7 and a b score smaller than 8.65?
Here ... | Here is the SQLite query that answers the question based on the provided schema:
```
SELECT SUM(total) FROM table_name_87 WHERE a_score > 7 AND b_score < 8.65;
``` | 25,744 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (total INTEGER, a_score VARCHAR, b_score VARCHAR)\n\n Question: What was the total rating that had a score higher th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (gymnast VARCHAR, b_score VARCHAR, a_score VARCHAR)
Question: Which gymnast had a b score of 8.95 and an a score less than 6.9
Here is the SQLite query to ... | Your query is almost correct, but since the data types for `b_score` and `a_score` are defined as `VARCHAR`, you should include single quotes around the numbers to treat them as strings in the SQL query. Here's the corrected version:
```sql
SELECT gymnast FROM table_name_94 WHERE b_score = '8.95' AND a_score < '6.9'
`... | 25,745 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_94 (gymnast VARCHAR, b_score VARCHAR, a_score VARCHAR)\n\n Question: Which gymnast had a b score of 8.95 and an a score... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (winners VARCHAR, year VARCHAR)
Question: Who were the winners in 1998?
Here is the SQLite query to answer to the question: Who were the winners in 1998?:
... | The SQLite query to answer the question "Who were the winners in 1998?" is as follows:
```
SELECT winners FROM table_name_11 WHERE year = '1998'
``` | 25,746 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_11 (winners VARCHAR, year VARCHAR)\n\n Question: Who were the winners in 1998?\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_5 (year INTEGER, best_goalkeeper VARCHAR, runner_up VARCHAR, third_place VARCHAR)
Question: What year was the runner-up Portugal with Italy in third place, and... | The query provided contains an unnecessary use of the AVG function since you are looking for a specific year that matches the criteria. You should use a simple SELECT statement to retrieve the year directly. Here’s the corrected version of the SQLite query to answer the question:
```
SELECT year FROM table_name_5 WHER... | 25,747 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_5 (year INTEGER, best_goalkeeper VARCHAR, runner_up VARCHAR, third_place VARCHAR)\n\n Question: What year was the runne... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (college VARCHAR, pick VARCHAR)
Question: What is the college pick for 213?
Here is the SQLite query to answer to the question: What is the college pick fo... | The provided query has a small mistake. Since the `pick` column is of type `VARCHAR`, the value `213` should be treated as a string. Therefore, you should enclose `213` in quotes. Here is the corrected SQLite query:
```sql
SELECT college FROM table_name_23 WHERE pick = '213';
``` | 25,748 | [
{
"from": "human",
"value": " 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 (college VARCHAR, pick VARCHAR)\n\n Question: What is the college pick for 213?\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_54 (round VARCHAR, date VARCHAR)
Question: what is the round on 21 february 2009?
Here is the SQLite query to answer to the question: what is the round on 21 ... | Your SQLite query to retrieve the round on 21 February 2009 is correct. Here it is wrapped in code format as per your request:
```
SELECT round FROM table_name_54 WHERE date = "21 february 2009"
``` | 25,749 | [
{
"from": "human",
"value": " 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 (round VARCHAR, date VARCHAR)\n\n Question: what is the round on 21 february 2009?\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_66 (enrollment INTEGER, school VARCHAR)
Question: What is the highest enrollment for rochester community school?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question about the highest enrollment for Rochester Community School:
```sql
SELECT MAX(enrollment) FROM table_name_66 WHERE school = "rochester community school";
``` | 25,750 | [
{
"from": "human",
"value": " 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 (enrollment INTEGER, school VARCHAR)\n\n Question: What is the highest enrollment for rochester community school?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (enrollment INTEGER, mascot VARCHAR, year_joined VARCHAR)
Question: What is the average enrollment that has hot dogs as the mascot, with a year joined later... | Here is the SQLite query to answer the question regarding the average enrollment with "hot dogs" as the mascot and a year joined later than 1926:
```sql
SELECT AVG(enrollment) FROM table_name_38 WHERE mascot = "hot dogs" AND year_joined > 1926
``` | 25,751 | [
{
"from": "human",
"value": " 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 (enrollment INTEGER, mascot VARCHAR, year_joined VARCHAR)\n\n Question: What is the average enrollment that has hot ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (enrollment INTEGER, location VARCHAR)
Question: What is the lowest enrollment that has Lafayette as the location?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about the lowest enrollment for Lafayette as the location:
```
SELECT MIN(enrollment) FROM table_name_46 WHERE location = 'Lafayette';
``` | 25,752 | [
{
"from": "human",
"value": " 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 (enrollment INTEGER, location VARCHAR)\n\n Question: What is the lowest enrollment that has Lafayette as the locatio... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (runner_up VARCHAR, name VARCHAR, year VARCHAR)
Question: Who was runner-up in the 2006 Pacific Life Open?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question:
```sql
SELECT runner_up FROM table_name_62 WHERE name = "Pacific Life Open" AND year = "2006";
``` | 25,753 | [
{
"from": "human",
"value": " 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 (runner_up VARCHAR, name VARCHAR, year VARCHAR)\n\n Question: Who was runner-up in the 2006 Pacific Life Open?\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_66 (class VARCHAR, quantity_made VARCHAR)
Question: Which Class has a Quantity made of 29?
Here is the SQLite query to answer to the question: Which Class has... | Here is the SQLite query to answer the question regarding which class has a quantity made of 29:
```
SELECT class FROM table_name_66 WHERE quantity_made = "29"
``` | 25,754 | [
{
"from": "human",
"value": " 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 (class VARCHAR, quantity_made VARCHAR)\n\n Question: Which Class has a Quantity made of 29?\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_64 (theme_song_s_ VARCHAR, romaji_title VARCHAR)
Question: What is the Theme Song of the Yukan Club?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question: What is the Theme Song of the Yukan Club?:
```
SELECT theme_song_s_ FROM table_name_64 WHERE romaji_title = "yukan club";
``` | 25,755 | [
{
"from": "human",
"value": " 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 (theme_song_s_ VARCHAR, romaji_title VARCHAR)\n\n Question: What is the Theme Song of the Yukan Club?\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_5 (theme_song_s_ VARCHAR, japanese_title VARCHAR)
Question: What is the Theme Song of 働きマン?
Here is the SQLite query to answer to the question: What is the Th... | Here is the SQLite query to answer the question: What is the Theme Song of 働きマン?:
```
SELECT theme_song_s_ FROM table_name_5 WHERE japanese_title = "働きマン"
``` | 25,756 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_5 (theme_song_s_ VARCHAR, japanese_title VARCHAR)\n\n Question: What is the Theme Song of 働きマン?\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_87 (theme_song_s_ VARCHAR, tv_station VARCHAR, average_ratings VARCHAR)
Question: What is the Theme Song of the show on Fuji TV Station with Average Ratings of... | Here is the SQLite query to answer the question:
```
SELECT theme_song_s_ FROM table_name_87 WHERE tv_station = "Fuji TV" AND average_ratings = "16.65%"
``` | 25,757 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (theme_song_s_ VARCHAR, tv_station VARCHAR, average_ratings VARCHAR)\n\n Question: What is the Theme Song of the sho... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (theme_song_s_ VARCHAR, romaji_title VARCHAR)
Question: What is the Theme Song of Iryu -Team Medical Dragon-2?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question about the Theme Song of "Iryu -Team Medical Dragon-2":
```
SELECT theme_song_s_ FROM table_name_23 WHERE romaji_title = "iryu -team medical dragon-2"
``` | 25,758 | [
{
"from": "human",
"value": " 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 (theme_song_s_ VARCHAR, romaji_title VARCHAR)\n\n Question: What is the Theme Song of Iryu -Team Medical Dragon-2?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (road_numbers VARCHAR, build_year VARCHAR, railroad__quantity_ VARCHAR)
Question: what is the road numbers when the build year is 1943, the railroad (quanti... | Here is the SQLite query formatted as you requested:
```
SELECT road_numbers FROM table_name_33 WHERE build_year = "1943" AND railroad__quantity_ = "clinchfield railroad (12 new, 6 secondhand)"
``` | 25,759 | [
{
"from": "human",
"value": " 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 (road_numbers VARCHAR, build_year VARCHAR, railroad__quantity_ VARCHAR)\n\n Question: what is the road numbers when ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (road_numbers VARCHAR, class VARCHAR, builder VARCHAR, railroad__quantity_ VARCHAR)
Question: what is the road numbers when the builder is alco, the railroad... | Here is the SQLite query to answer the question regarding the road numbers when the builder is "alco", the railroad (quantity) is "union pacific railroad (105)", and the class is "csa-2":
```
SELECT road_numbers FROM table_name_8 WHERE builder = "alco" AND railroad__quantity_ = "union pacific railroad (105)" AND class... | 25,760 | [
{
"from": "human",
"value": " 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 (road_numbers VARCHAR, class VARCHAR, builder VARCHAR, railroad__quantity_ VARCHAR)\n\n Question: what is the road nu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (road_numbers VARCHAR, class VARCHAR)
Question: what is the road numbers when the class is z-7?
Here is the SQLite query to answer to the question: what is... | Here is the SQLite query to answer the question about the road numbers when the class is z-7:
```
SELECT road_numbers FROM table_name_66 WHERE class = "z-7";
``` | 25,761 | [
{
"from": "human",
"value": " 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 (road_numbers VARCHAR, class VARCHAR)\n\n Question: what is the road numbers when the class is z-7?\n\nHere is the S... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (peak_date VARCHAR, main_artist VARCHAR)
Question: What was the peak date of Kelis's song?
Here is the SQLite query to answer to the question: What was the ... | Here is the SQLite query to answer the question regarding the peak date of Kelis's song:
```
SELECT peak_date FROM table_name_1 WHERE main_artist = "Kelis"
``` | 25,762 | [
{
"from": "human",
"value": " 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 (peak_date VARCHAR, main_artist VARCHAR)\n\n Question: What was the peak date of Kelis's song?\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_37 (nationality VARCHAR, lane VARCHAR, rank VARCHAR)
Question: What is the Nationality of the Swimmer in Lane 4 or larger with a Rank of 5 or more?
Here is th... | The provided query looks good in terms of structure, but there's a minor issue with the comparison of `lane` and `rank` since they are stored as VARCHAR. You should ensure that the comparisons are done with numeric values. SQLite will handle this gracefully in most cases, but it's best to explicitly cast them to intege... | 25,763 | [
{
"from": "human",
"value": " 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 (nationality VARCHAR, lane VARCHAR, rank VARCHAR)\n\n Question: What is the Nationality of the Swimmer in Lane 4 or ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (opponent VARCHAR, week VARCHAR)
Question: Who was the opponent the falcons played against on week 3?
Here is the SQLite query to answer to the question: W... | Here's the corrected SQLite query to find out who the Falcons played against in week 3:
```
SELECT opponent FROM table_name_87 WHERE week = '3' AND opponent = 'falcons';
```
Please note that I assumed the `opponent` field contains the name of the team, and you might need to adjust the query based on the exact values ... | 25,764 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (opponent VARCHAR, week VARCHAR)\n\n Question: Who was the opponent the falcons played against on week 3?\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_60 (podiums INTEGER, stage_wins VARCHAR, points VARCHAR)
Question: what is the highest podiums when the stage wins is 91 and the points is less than 140?
Here... | Here is the SQLite query to answer the question about the highest podiums when the stage wins is 91 and the points is less than 140:
```sql
SELECT MAX(podiums) FROM table_name_60 WHERE stage_wins = '91' AND points < '140'
``` | 25,765 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_60 (podiums INTEGER, stage_wins VARCHAR, points VARCHAR)\n\n Question: what is the highest podiums when the stage wins ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (wins INTEGER, starts VARCHAR, podiums VARCHAR, points VARCHAR)
Question: what is the average wins when the podiums is more than 1, points is 80 and starts ... | Here is the SQLite query to answer the question regarding the average wins when the podiums are more than 1, points are 80, and starts are less than 28:
```sql
SELECT AVG(wins) FROM table_name_49 WHERE podiums > 1 AND points = '80' AND starts < '28';
```
Note that I enclosed the `points` and `starts` values in singl... | 25,766 | [
{
"from": "human",
"value": " 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 (wins INTEGER, starts VARCHAR, podiums VARCHAR, points VARCHAR)\n\n Question: what is the average wins when the podi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (points VARCHAR, constructor VARCHAR, wins VARCHAR)
Question: what is the total number of points when the constructor is citroën total world rally team and ... | The provided SQLite query has a few issues, particularly with the aggregation method used to calculate the total points. Since points are given as a string (VARCHAR), you should convert them to an integer or real type before summing them.
Here’s the corrected SQL query:
```sql
SELECT SUM(CAST(points AS INTEGER))
FRO... | 25,767 | [
{
"from": "human",
"value": " 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 (points VARCHAR, constructor VARCHAR, wins VARCHAR)\n\n Question: what is the total number of points when the constr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (points INTEGER, chassis VARCHAR, stage_wins VARCHAR)
Question: what is the highest points when the chassis is focus rs wrc 08 and 09 and the stage wins is ... | The given query has a slight mistake in the condition for the `chassis`. It should check for the individual chassis types separately, i.e., "focus rs wrc 08" and "focus rs wrc 09". You can use the `IN` clause or multiple `OR` conditions for checking both chassis types.
Here’s the corrected SQLite query:
```
SELECT MA... | 25,768 | [
{
"from": "human",
"value": " 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 (points INTEGER, chassis VARCHAR, stage_wins VARCHAR)\n\n Question: what is the highest points when the chassis is f... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (driver VARCHAR, total_time VARCHAR)
Question: What driver had a total time of 16:58?
Here is the SQLite query to answer to the question: What driver had a... | Here is the SQLite query to answer the question about which driver had a total time of 16:58:
```sql
SELECT driver FROM table_name_66 WHERE total_time = "16:58";
``` | 25,769 | [
{
"from": "human",
"value": " 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 (driver VARCHAR, total_time VARCHAR)\n\n Question: What driver had a total time of 16:58?\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_77 (capacity INTEGER, margin VARCHAR)
Question: What's the lowest capacity when the margin is 03:30?
Here is the SQLite query to answer to the question: What'... | Here is the SQLite query to answer the question: What's the lowest capacity when the margin is 03:30?:
```
SELECT MIN(capacity) FROM table_name_77 WHERE margin = '03:30';
``` | 25,770 | [
{
"from": "human",
"value": " 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 (capacity INTEGER, margin VARCHAR)\n\n Question: What's the lowest capacity when the margin is 03:30?\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_20 (vehicle VARCHAR, class VARCHAR)
Question: Which vehicle has a class 6c3g?
Here is the SQLite query to answer to the question: Which vehicle has a class 6c... | Here is the SQLite query to answer the question: Which vehicle has a class 6c3g?:
```
SELECT vehicle FROM table_name_20 WHERE class = "6c3g";
``` | 25,771 | [
{
"from": "human",
"value": " 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 (vehicle VARCHAR, class VARCHAR)\n\n Question: Which vehicle has a class 6c3g?\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_89 (capacity INTEGER, vehicle VARCHAR)
Question: What is the lowest capacity for the 1975 toyota celica 1600gt?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question about the lowest capacity for the 1975 toyota celica 1600gt:
```
SELECT MIN(capacity) FROM table_name_89 WHERE vehicle = "1975 toyota celica 1600gt"
``` | 25,772 | [
{
"from": "human",
"value": " 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 (capacity INTEGER, vehicle VARCHAR)\n\n Question: What is the lowest capacity for the 1975 toyota celica 1600gt?\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_46 (athlete VARCHAR, react VARCHAR)
Question: who is the athlete when react is 0.164?
Here is the SQLite query to answer to the question: who is the athlete w... | Sure! Here is the SQLite query to answer the question "who is the athlete when react is 0.164?":
```
SELECT athlete FROM table_name_46 WHERE react = '0.164';
```
Please note that I wrapped the react value in single quotes because it is a string in the given schema. If the column type for "react" is a numeric type, y... | 25,773 | [
{
"from": "human",
"value": " 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 (athlete VARCHAR, react VARCHAR)\n\n Question: who is the athlete when react is 0.164?\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_64 (lane INTEGER, react VARCHAR, nationality VARCHAR)
Question: what is the lowest lane when react is more than 0.164 and the nationality is guinea?
Here is t... | Here is the SQLite query to answer the question about the lowest lane when the react value is more than 0.164 and the nationality is Guinea:
```
SELECT MIN(lane) FROM table_name_64 WHERE react > 0.164 AND nationality = "guinea"
``` | 25,774 | [
{
"from": "human",
"value": " 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 (lane INTEGER, react VARCHAR, nationality VARCHAR)\n\n Question: what is the lowest lane when react is more than 0.1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (year_s__retired VARCHAR, quantity_made VARCHAR)
Question: What is the year retired of the locomotive which had the quantity made of 25?
Here is the SQLite ... | Here is the SQLite query to answer the question about the year retired of the locomotive that had the quantity made of 25:
```
SELECT year_s__retired FROM table_name_5 WHERE quantity_made = "25"
``` | 25,775 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_5 (year_s__retired VARCHAR, quantity_made VARCHAR)\n\n Question: What is the year retired of the locomotive which had t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (class VARCHAR, quantity_made VARCHAR)
Question: Which class had a quantity made of 20?
Here is the SQLite query to answer to the question: Which class had... | Here is the SQLite query to answer the question about which class had a quantity made of 20:
```sql
SELECT class FROM table_name_19 WHERE quantity_made = '20';
``` | 25,776 | [
{
"from": "human",
"value": " 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 (class VARCHAR, quantity_made VARCHAR)\n\n Question: Which class had a quantity made of 20?\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_48 (class VARCHAR, wheel_arrangement VARCHAR, quantity_made VARCHAR)
Question: What is the locomotive class that has a wheel arrangement of 2-8-2 and a quantit... | Here is the SQLite query to answer the question:
```
SELECT class FROM table_name_48 WHERE wheel_arrangement = "2-8-2" AND quantity_made = "25"
``` | 25,777 | [
{
"from": "human",
"value": " 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 (class VARCHAR, wheel_arrangement VARCHAR, quantity_made VARCHAR)\n\n Question: What is the locomotive class that ha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (quantity_preserved VARCHAR, quantity_made VARCHAR)
Question: What is the quantity preserved to the locomotive with a quantity made of 6?
Here is the SQLit... | Here is the SQLite query to answer the question about the quantity preserved for the locomotive with a quantity made of 6:
```
SELECT quantity_preserved FROM table_name_11 WHERE quantity_made = '6';
``` | 25,778 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_11 (quantity_preserved VARCHAR, quantity_made VARCHAR)\n\n Question: What is the quantity preserved to the locomotive w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (number_of_electorates__2009_ INTEGER, name VARCHAR)
Question: What is Beohari's highest number of electorates?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question regarding Beohari's highest number of electorates:
```
SELECT MAX(number_of_electorates__2009_) FROM table_name_81 WHERE name = "beohari";
``` | 25,779 | [
{
"from": "human",
"value": " 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 (number_of_electorates__2009_ INTEGER, name VARCHAR)\n\n Question: What is Beohari's highest number of electorates?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (district VARCHAR, constituency_number VARCHAR)
Question: What is the district with 79 constituency number?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question about the district with constituency number 79:
```
SELECT district FROM table_name_13 WHERE constituency_number = '79';
``` | 25,780 | [
{
"from": "human",
"value": " 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 (district VARCHAR, constituency_number VARCHAR)\n\n Question: What is the district with 79 constituency number?\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_31 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
Question: What is Beohari's reserved for (SC/ST/None)?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question regarding Beohari's reserved status:
```
SELECT reserved_for___sc___st__none_ FROM table_name_31 WHERE name = "Beohari"
``` | 25,781 | [
{
"from": "human",
"value": " 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 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR)\n\n Question: What is Beohari's reserved for (SC/ST/None)?\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_88 (prominence__m_ INTEGER, peak VARCHAR)
Question: What is the sum of the prominence in m of moussa ali terara peak?
Here is the SQLite query to answer to th... | The SQLite query you provided is almost correct, but it looks like there's a small mismatch in the peak name compared to the question you've asked. Assuming the peak name is exactly "moussa ali terara peak" (including the word "peak"), the corrected query would be:
```sql
SELECT SUM(prominence__m_) FROM table_name_88 ... | 25,782 | [
{
"from": "human",
"value": " 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 (prominence__m_ INTEGER, peak VARCHAR)\n\n Question: What is the sum of the prominence in m of moussa ali terara pea... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (prominence__m_ VARCHAR, elevation__m_ VARCHAR, country VARCHAR, col__m_ VARCHAR)
Question: What is the total prominence number in m of ethiopia, which has ... | The query you provided contains some errors, particularly with the usage of `COUNT` and the `OFFSET` clause, which is not appropriate for this aggregate function. Instead, you likely want to use the `SUM` function to calculate the total prominence. Additionally, the elevation and col values should be compared as number... | 25,783 | [
{
"from": "human",
"value": " 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 (prominence__m_ VARCHAR, elevation__m_ VARCHAR, country VARCHAR, col__m_ VARCHAR)\n\n Question: What is the total pr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (team VARCHAR, start VARCHAR, year VARCHAR)
Question: Which team had a start of 8 in years under 2008?
Here is the SQLite query to answer to the question: ... | Your SQLite query looks mostly correct, but since `start` and `year` are defined as `VARCHAR`, you should ensure that you're treating the `start` value as a string. However, since you're looking for numeric comparison with `start`, it’s often preferable to cast it to an integer if you expect it to represent numeric dat... | 25,784 | [
{
"from": "human",
"value": " 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 (team VARCHAR, start VARCHAR, year VARCHAR)\n\n Question: Which team had a start of 8 in years under 2008?\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_35 (finish INTEGER, year VARCHAR)
Question: What was Jeff's finish in 2011?
Here is the SQLite query to answer to the question: What was Jeff's finish in 2011... | The provided query seems to be looking for the sum of finishes for the year 2011, but the question specifically asks for Jeff's finish in that year. To correctly answer the question, you'll need to specify that you're only interested in the finish for Jeff in 2011. However, since the schema does not mention Jeff's name... | 25,785 | [
{
"from": "human",
"value": " 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 (finish INTEGER, year VARCHAR)\n\n Question: What was Jeff's finish in 2011?\n\nHere is the SQLite query to answer t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (finish VARCHAR, start VARCHAR)
Question: What is the number of finishes having a start of 15?
Here is the SQLite query to answer to the question: What is ... | Your SQLite query is mostly correct, but you need to ensure that the value '15' is treated properly, especially since the columns are defined as VARCHAR. In SQL, if the values in the `start` column are stored as strings, you should include the value in quotes.
Here's the corrected query:
```
SELECT COUNT(finish) FROM... | 25,786 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_78 (finish VARCHAR, start VARCHAR)\n\n Question: What is the number of finishes having a start of 15?\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_9 (Id VARCHAR)
Question: How many 2011 1H values have a 2006 of 27.4 and 2007 over 27.7?
Here is the SQLite query to answer to the question: How many 2011 1H ... | Based on your question, it seems like you are trying to count the number of entries that meet specific criteria across different columns related to the years 2006, 2007, and 2011. However, the `CREATE TABLE` statement provided indicates that the table only has one column (`Id`).
Because of this, you will need to clar... | 25,787 | [
{
"from": "human",
"value": " 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 (Id VARCHAR)\n\n Question: How many 2011 1H values have a 2006 of 27.4 and 2007 over 27.7?\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_35 (Id VARCHAR)
Question: What is the highest 2011 1H value for a 2005 over 28?
Here is the SQLite query to answer to the question: What is the highest 2011 1... | The provided SQLite query contains some syntax errors and logical issues based on the given schema and question. The table schema only defines a column called `Id`, and there are no columns for values from specific years or any numerical values to evaluate against the conditions specified.
To correctly formulate a que... | 25,788 | [
{
"from": "human",
"value": " 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 (Id VARCHAR)\n\n Question: What is the highest 2011 1H value for a 2005 over 28?\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_6 (Id VARCHAR)
Question: What is the average 2007 value for a 2006 of 2.8 and 2009 under 20?
Here is the SQLite query to answer to the question: What is the a... | Your provided SQLite query seems to be syntactically correct, but it’s important to note that you should reference the column names accurately as per the schema provided. Since the schema only includes `Id` and does not have columns for `2006`, `2007`, or `2009`, it's likely assumed that you are referring to the `Id` c... | 25,789 | [
{
"from": "human",
"value": " 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 (Id VARCHAR)\n\n Question: What is the average 2007 value for a 2006 of 2.8 and 2009 under 20?\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_85 (round VARCHAR, venue VARCHAR)
Question: What was the round for Villa Park?
Here is the SQLite query to answer to the question: What was the round for Vill... | Here is the SQLite query to answer the question regarding the round for Villa Park:
```
SELECT round FROM table_name_85 WHERE venue = "Villa Park";
``` | 25,790 | [
{
"from": "human",
"value": " 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 (round VARCHAR, venue VARCHAR)\n\n Question: What was the round for Villa Park?\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_24 (latitude INTEGER, pop__2010_ VARCHAR, water__sqmi_ VARCHAR)
Question: What is latitude when 2010 population is 24 and water is more than 0.319?
Here is th... | Your SQLite query is almost correct, but there is a small correction needed regarding the data type of `water__sqmi_`. Since it is defined as `VARCHAR`, you should convert it to a numeric type using `CAST` or `REAL` to ensure the comparison works properly. Here is the revised query:
```sql
SELECT MAX(latitude) FROM ta... | 25,791 | [
{
"from": "human",
"value": " 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 (latitude INTEGER, pop__2010_ VARCHAR, water__sqmi_ VARCHAR)\n\n Question: What is latitude when 2010 population is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (mhra_approved VARCHAR, generic_name VARCHAR)
Question: Is Blonanserin MHRA approved?
Here is the SQLite query to answer to the question: Is Blonanserin MH... | Your SQLite query to determine if Blonanserin is MHRA approved is correct. Here it is wrapped as you requested:
```
SELECT mhra_approved FROM table_name_24 WHERE generic_name = "blonanserin";
``` | 25,792 | [
{
"from": "human",
"value": " 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 (mhra_approved VARCHAR, generic_name VARCHAR)\n\n Question: Is Blonanserin MHRA approved?\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_41 (home_team VARCHAR, away_team VARCHAR)
Question: What is the home team when kwong wah was the away team?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question about the home team when "kwong wah" was the away team:
```
SELECT home_team FROM table_name_41 WHERE away_team = "kwong wah"
``` | 25,793 | [
{
"from": "human",
"value": " 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 (home_team VARCHAR, away_team VARCHAR)\n\n Question: What is the home team when kwong wah was the away team?\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_93 (score VARCHAR, time VARCHAR, venue VARCHAR)
Question: What is the score of the match at happy valley recreation ground pitch #2 with a 14:30 time?
Here is... | Here is the SQLite query to answer the question regarding the score of the match at happy valley recreation ground pitch #2 with a 14:30 time:
```
SELECT score FROM table_name_93 WHERE time = "14:30" AND venue = "happy valley recreation ground pitch #2";
``` | 25,794 | [
{
"from": "human",
"value": " 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 (score VARCHAR, time VARCHAR, venue VARCHAR)\n\n Question: What is the score of the match at happy valley recreation... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (venue VARCHAR, time VARCHAR, away_team VARCHAR)
Question: What is the venue of the match with a 14:30 time and sun source as the away team?
Here is the SQ... | Here is the SQLite query to answer the question regarding the venue of the match with a time of 14:30 and "sun source" as the away team:
```
SELECT venue FROM table_name_67 WHERE time = "14:30" AND away_team = "sun source"
``` | 25,795 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, time VARCHAR, away_team VARCHAR)\n\n Question: What is the venue of the match with a 14:30 time and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (away_team VARCHAR, home_team VARCHAR)
Question: What is the away team when solon was the home team?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question about the away team when "solon" was the home team:
```
SELECT away_team FROM table_name_63 WHERE home_team = "solon";
``` | 25,796 | [
{
"from": "human",
"value": " 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 (away_team VARCHAR, home_team VARCHAR)\n\n Question: What is the away team when solon was the home team?\n\nHere is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (lane INTEGER, name VARCHAR)
Question: What is Elizabeth Simmonds' average lane number?
Here is the SQLite query to answer to the question: What is Elizabe... | ```sql
SELECT AVG(lane) FROM table_name_21 WHERE name = "Elizabeth Simmonds";
``` | 25,797 | [
{
"from": "human",
"value": " 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 (lane INTEGER, name VARCHAR)\n\n Question: What is Elizabeth Simmonds' average lane number?\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_32 (rank INTEGER, name VARCHAR)
Question: What is Laure Manaudou's highest rank?
Here is the SQLite query to answer to the question: What is Laure Manaudou's ... | Here is the SQLite query wrapped in the requested format:
```
SELECT MAX(rank) FROM table_name_32 WHERE name = "Laure Manaudou";
``` | 25,798 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (rank INTEGER, name VARCHAR)\n\n Question: What is Laure Manaudou's highest rank?\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_4 (internet_explorer VARCHAR, opera VARCHAR, period VARCHAR)
Question: What internet explorer has 1.67% as the opera, with 2012 q1 as the period?
Here is the ... | Your SQLite query looks correct. Here's the query wrapped in the requested format:
```
SELECT internet_explorer FROM table_name_4 WHERE opera = "1.67%" AND period = "2012 q1"
``` | 25,799 | [
{
"from": "human",
"value": " 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 (internet_explorer VARCHAR, opera VARCHAR, period VARCHAR)\n\n Question: What internet explorer has 1.67% as the oper... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.