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_93 (roll INTEGER, authority VARCHAR, decile VARCHAR)
Question: What is the average roll of a school with state authority and a decile of 9?
Here is the SQLite... | Your SQLite query to find the average roll of a school with state authority and a decile of 9 is correctly formulated. Here it is wrapped in the requested code block format:
```
SELECT AVG(roll) FROM table_name_93 WHERE authority = "state" AND decile = 9;
``` | 18,000 | [
{
"from": "human",
"value": " 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 (roll INTEGER, authority VARCHAR, decile VARCHAR)\n\n Question: What is the average roll of a school with state auth... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (area VARCHAR, authority VARCHAR, roll VARCHAR)
Question: Which area has state authority and a roll fewer than 18?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question regarding areas with state authority and a roll fewer than 18:
```
SELECT area FROM table_name_78 WHERE authority = 'state' AND roll < 18;
``` | 18,001 | [
{
"from": "human",
"value": " 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 (area VARCHAR, authority VARCHAR, roll VARCHAR)\n\n Question: Which area has state authority and a roll fewer than 1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (roll VARCHAR, authority VARCHAR, decile VARCHAR)
Question: What is the roll for the school with state authority and a decile of 9?
Here is the SQLite quer... | Here is the SQLite query to answer the question about the roll for the school with state authority and a decile of 9:
```
SELECT roll FROM table_name_42 WHERE authority = 'state' AND decile = '9';
``` | 18,002 | [
{
"from": "human",
"value": " 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 (roll VARCHAR, authority VARCHAR, decile VARCHAR)\n\n Question: What is the roll for the school with state authority... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (decile INTEGER, name VARCHAR)
Question: What is the average decile of Westport South School?
Here is the SQLite query to answer to the question: What is th... | Here is the SQLite query to answer the question regarding the average decile of Westport South School:
```
SELECT AVG(decile) FROM table_name_5 WHERE name = "Westport South School";
``` | 18,003 | [
{
"from": "human",
"value": " 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 (decile INTEGER, name VARCHAR)\n\n Question: What is the average decile of Westport South School?\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_25 (rank INTEGER, time VARCHAR)
Question: What is the top rank with a time of 2:19.86?
Here is the SQLite query to answer to the question: What is the top ran... | Here is the SQLite query to answer the question of what is the top rank with a time of 2:19.86:
```
SELECT MAX(rank) FROM table_name_25 WHERE time = '2:19.86';
``` | 18,004 | [
{
"from": "human",
"value": " 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 (rank INTEGER, time VARCHAR)\n\n Question: What is the top rank with a time of 2:19.86?\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_32 (name VARCHAR, lane VARCHAR, time VARCHAR)
Question: Who had a lane number smaller than 7 and a time of 2:19.86?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question:
```
SELECT name FROM table_name_32 WHERE lane < '7' AND time = '2:19.86'
``` | 18,005 | [
{
"from": "human",
"value": " 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 (name VARCHAR, lane VARCHAR, time VARCHAR)\n\n Question: Who had a lane number smaller than 7 and a time of 2:19.86?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (time VARCHAR, heat VARCHAR, name VARCHAR)
Question: What was Liu Limin's time in heat 4?
Here is the SQLite query to answer to the question: What was Liu ... | Here is the SQLite query to answer the question about Liu Limin's time in heat 4:
```
SELECT time FROM table_name_32 WHERE heat = '4' AND name = 'liu limin';
``` | 18,006 | [
{
"from": "human",
"value": " 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 (time VARCHAR, heat VARCHAR, name VARCHAR)\n\n Question: What was Liu Limin's time in heat 4?\n\nHere is the SQLite ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (result VARCHAR, competition VARCHAR)
Question: What was the result of the friendly competition?
Here is the SQLite query to answer to the question: What w... | Here is the SQLite query to answer the question regarding the result of the friendly competition:
```
SELECT result FROM table_name_69 WHERE competition = "friendly"
``` | 18,007 | [
{
"from": "human",
"value": " 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 (result VARCHAR, competition VARCHAR)\n\n Question: What was the result of the friendly competition?\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_72 (start_source VARCHAR, ended VARCHAR)
Question: What was the start source that ended on 4 May?
Here is the SQLite query to answer to the question: What was... | Here is the SQLite query to answer the question regarding the start source that ended on 4 May:
```
SELECT start_source FROM table_name_72 WHERE ended = '4 May';
``` | 18,008 | [
{
"from": "human",
"value": " 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 (start_source VARCHAR, ended VARCHAR)\n\n Question: What was the start source that ended on 4 May?\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_57 (loan_club VARCHAR, country VARCHAR, ended VARCHAR)
Question: What is the Loan Club from Eng that ended on 22 February?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question:
```
SELECT loan_club FROM table_name_57 WHERE country = "eng" AND ended = "22 February";
``` | 18,009 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_57 (loan_club VARCHAR, country VARCHAR, ended VARCHAR)\n\n Question: What is the Loan Club from Eng that ended on 22 Fe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (end_source VARCHAR, loan_club VARCHAR)
Question: What is the End Source from the Hartlepool United Loan Club?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question regarding the End Source from the Hartlepool United Loan Club:
```
SELECT end_source FROM table_name_51 WHERE loan_club = "Hartlepool United";
``` | 18,010 | [
{
"from": "human",
"value": " 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 (end_source VARCHAR, loan_club VARCHAR)\n\n Question: What is the End Source from the Hartlepool United Loan Club?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (started VARCHAR, ended VARCHAR)
Question: When did the loan that Ended on 15 January Start?
Here is the SQLite query to answer to the question: When did t... | Here is the SQLite query to answer the question: When did the loan that ended on 15 January start?:
```sql
SELECT started FROM table_name_60 WHERE ended = "15 January";
``` | 18,011 | [
{
"from": "human",
"value": " 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 (started VARCHAR, ended VARCHAR)\n\n Question: When did the loan that Ended on 15 January Start?\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_34 (total INTEGER, gold VARCHAR, silver VARCHAR)
Question: What nation had more than 97 Gold Medals and fewer than 332 Silver Medals?
Here is the SQLite query... | It looks like you would like to retrieve the names of nations that meet the criteria of having more than 97 gold medals and fewer than 332 silver medals. However, your original query uses `SUM(total)` which does not align with the question's requirement to identify nations. Instead, you should select the `gold` and `si... | 18,012 | [
{
"from": "human",
"value": " 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 (total INTEGER, gold VARCHAR, silver VARCHAR)\n\n Question: What nation had more than 97 Gold Medals and fewer than ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (bronze VARCHAR, total VARCHAR)
Question: What nation had 135 Bronze medals?
Here is the SQLite query to answer to the question: What nation had 135 Bronze... | The provided query has a slight mistake. To find the nation that had 135 Bronze medals, you should be selecting rows where the bronze medals equal 135, not counting them. Here’s the corrected SQL query:
```
SELECT bronze FROM table_name_89 WHERE bronze = '135';
```
This query selects the nation(s) that have exactly 1... | 18,013 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_89 (bronze VARCHAR, total VARCHAR)\n\n Question: What nation had 135 Bronze medals?\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_53 (land_area__km_2__ INTEGER, capital VARCHAR, villages VARCHAR)
Question: What is the area of Ulim with less than 30 villages?
Here is the SQLite query to a... | It looks like there is a small mistake in your SQL query. The column `villages` is defined as a VARCHAR type according to the schema, so we need to convert it to an integer to perform a comparison. Here's the corrected SQLite query wrapped in the proper format:
```
SELECT AVG(land_area__km_2__)
FROM table_name_53
WH... | 18,014 | [
{
"from": "human",
"value": " 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 (land_area__km_2__ INTEGER, capital VARCHAR, villages VARCHAR)\n\n Question: What is the area of Ulim with less than... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (name VARCHAR, location VARCHAR, current_status VARCHAR, line VARCHAR)
Question: What is the name of the station that is currently demolished with the Sheppa... | Here is the SQLite query to answer the question regarding the station that is currently demolished with the Shepparton line in Tabilk:
```
SELECT name FROM table_name_6 WHERE current_status = "demolished" AND line = "shepparton line" AND location = "tabilk";
``` | 18,015 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_6 (name VARCHAR, location VARCHAR, current_status VARCHAR, line VARCHAR)\n\n Question: What is the name of the station ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (line VARCHAR, name VARCHAR)
Question: What is the line of Mangalore station?
Here is the SQLite query to answer to the question: What is the line of Manga... | Here is the SQLite query to answer the question "What is the line of Mangalore station?":
```
SELECT line FROM table_name_54 WHERE name = "mangalore";
``` | 18,016 | [
{
"from": "human",
"value": " 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 (line VARCHAR, name VARCHAR)\n\n Question: What is the line of Mangalore station?\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_81 (line VARCHAR, location VARCHAR, current_status VARCHAR, closed VARCHAR)
Question: What is the line of the station in Toolamba that is currently demolished ... | Here is the SQLite query wrapped in code formatting:
```
SELECT line FROM table_name_81 WHERE current_status = "demolished" AND closed = "late 1970s" AND location = "toolamba";
``` | 18,017 | [
{
"from": "human",
"value": " 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 (line VARCHAR, location VARCHAR, current_status VARCHAR, closed VARCHAR)\n\n Question: What is the line of the stati... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (name VARCHAR, current_status VARCHAR, location VARCHAR)
Question: What is the name of the station in Toolamba that is currently demolished?
Here is the SQ... | ```sql
SELECT name FROM table_name_26 WHERE current_status = "demolished" AND location = "toolamba";
``` | 18,018 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_26 (name VARCHAR, current_status VARCHAR, location VARCHAR)\n\n Question: What is the name of the station in Toolamba t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (current_club VARCHAR, year_born VARCHAR)
Question: What club began in 1976?
Here is the SQLite query to answer to the question: What club began in 1976?:
... | Here is the SQLite query to answer the question: What club began in 1976?:
```
SELECT current_club FROM table_name_21 WHERE year_born = '1976'
``` | 18,019 | [
{
"from": "human",
"value": " 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 (current_club VARCHAR, year_born VARCHAR)\n\n Question: What club began in 1976?\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_42 (player VARCHAR, height VARCHAR, year_born VARCHAR)
Question: What player was born in 1976 and is smaller than 2.03?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question:
```
SELECT player FROM table_name_42 WHERE height < '2.03' AND year_born = '1976'
``` | 18,020 | [
{
"from": "human",
"value": " 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 (player VARCHAR, height VARCHAR, year_born VARCHAR)\n\n Question: What player was born in 1976 and is smaller than 2... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (current_club VARCHAR, height VARCHAR, year_born VARCHAR)
Question: What player was born in 1978 and smaller than 1.92?
Here is the SQLite query to answer ... | It looks like there was a small mistake in your SQL query related to the condition for the year of birth. You should be checking for players born in 1978, not greater than 1978. Additionally, the height comparison needs to ensure that the height is in a numeric format.
Here’s the corrected SQL query:
```sql
SELECT cu... | 18,021 | [
{
"from": "human",
"value": " 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 (current_club VARCHAR, height VARCHAR, year_born VARCHAR)\n\n Question: What player was born in 1978 and 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_17 (year INTEGER, film VARCHAR)
Question: Which year did The Adventures of Tintin come out?
Here is the SQLite query to answer to the question: Which year did... | The provided query is incorrect for the question you're trying to answer. The `SUM` function is not appropriate here since we want to retrieve the specific year, not a sum.
Here is the correct SQLite query to find the year that "The Adventures of Tintin" came out:
```sql
SELECT year FROM table_name_17 WHERE film = "T... | 18,022 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_17 (year INTEGER, film VARCHAR)\n\n Question: Which year did The Adventures of Tintin come out?\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_3 (year INTEGER, film VARCHAR)
Question: What year did the movie Rango come out?
Here is the SQLite query to answer to the question: What year did the movie R... | The query you provided calculates the average year for the film "Rango," but it's not necessary for finding the specific release year. Instead, you can use a simple SELECT statement to retrieve the year for the film directly. Here's the corrected query:
```
SELECT year FROM table_name_3 WHERE film = "Rango";
``` | 18,023 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_3 (year INTEGER, film VARCHAR)\n\n Question: What year did the movie Rango come out?\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_76 (rank VARCHAR, height_feet___m VARCHAR)
Question: What is the rank associated with a Height feet / m of 427 / 130?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about the rank associated with a Height feet / m of 427 / 130:
```
SELECT rank FROM table_name_76 WHERE height_feet___m = '427 / 130';
``` | 18,024 | [
{
"from": "human",
"value": " 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 (rank VARCHAR, height_feet___m VARCHAR)\n\n Question: What is the rank associated with a Height feet / m of 427 / 13... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (address VARCHAR, year VARCHAR)
Question: What was the address in 1974?
Here is the SQLite query to answer to the question: What was the address in 1974?:
... | Here is the SQLite query to answer the question about the address in 1974:
```
SELECT address FROM table_name_42 WHERE year = "1974"
``` | 18,025 | [
{
"from": "human",
"value": " 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 (address VARCHAR, year VARCHAR)\n\n Question: What was the address in 1974?\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_36 (year INTEGER, points VARCHAR, chassis VARCHAR)
Question: What was the earliest year for a car with 3 points and Cooper t20 chassis?
Here is the SQLite que... | Here is the SQLite query to answer the question:
```
SELECT MIN(year) FROM table_name_36 WHERE points = '3' AND chassis = 'Cooper t20';
``` | 18,026 | [
{
"from": "human",
"value": " 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 (year INTEGER, points VARCHAR, chassis VARCHAR)\n\n Question: What was the earliest year for a car with 3 points and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (attendance VARCHAR, game VARCHAR)
Question: Game 2 has how much attendance?
Here is the SQLite query to answer to the question: Game 2 has how much attenda... | Here is the SQLite query to answer the question: Game 2 has how much attendance?:
```sql
SELECT attendance FROM table_name_1 WHERE game = '2';
```
Note: The game identifier is treated as a string ('2') here, based on your column type definition. If the `game` values are stored as integers, then the query should use ... | 18,027 | [
{
"from": "human",
"value": " 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 (attendance VARCHAR, game VARCHAR)\n\n Question: Game 2 has how much attendance?\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_40 (attendance INTEGER, date VARCHAR)
Question: What was the average attendance on October 12?
Here is the SQLite query to answer to the question: What was th... | Here is the corrected SQLite query to answer the question about the average attendance on October 12:
```sql
SELECT AVG(attendance) FROM table_name_40 WHERE date = "October 12";
``` | 18,028 | [
{
"from": "human",
"value": " 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: What was the average attendance on October 12?\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_7 (home_captain VARCHAR, date VARCHAR)
Question: What is the name of the Home Captain for 23,24,25,26 july 1992?
Here is the SQLite query to answer to the que... | The provided SQLite query does not correctly target the specified dates because it uses a single string to match the entire date field. Instead, you would need to query each date individually. Here's how you can do this correctly:
```sql
SELECT home_captain FROM table_name_7 WHERE date IN ("23 july 1992", "24 july 199... | 18,029 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_7 (home_captain VARCHAR, date VARCHAR)\n\n Question: What is the name of the Home Captain for 23,24,25,26 july 1992?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (away_captain VARCHAR, venue VARCHAR)
Question: Who is the Away Captain at headingley?
Here is the SQLite query to answer to the question: Who is the Away ... | Here is the SQLite query to answer the question: Who is the Away Captain at headingley?:
```sql
SELECT away_captain FROM table_name_66 WHERE venue = "headingley";
``` | 18,030 | [
{
"from": "human",
"value": " 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 (away_captain VARCHAR, venue VARCHAR)\n\n Question: Who is the Away Captain at headingley?\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_13 (venue VARCHAR, date VARCHAR)
Question: Where was a game played on 23,24,25,26 july 1992?
Here is the SQLite query to answer to the question: Where was a g... | The provided SQLite query needs adjustment to correctly filter dates. Since the dates are separate and in the format provided, you may want to use the `IN` clause to check for multiple dates. Here’s the corrected query:
```sql
SELECT venue FROM table_name_13 WHERE date IN ("23 july 1992", "24 july 1992", "25 july 1992... | 18,031 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, date VARCHAR)\n\n Question: Where was a game played on 23,24,25,26 july 1992?\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_86 (away_captain VARCHAR, venue VARCHAR)
Question: Who was the Away Captain at The Oval?
Here is the SQLite query to answer to the question: Who was the Away ... | Here is the SQLite query to answer the question: Who was the Away Captain at The Oval?:
```
SELECT away_captain FROM table_name_86 WHERE venue = "The Oval";
``` | 18,032 | [
{
"from": "human",
"value": " 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 (away_captain VARCHAR, venue VARCHAR)\n\n Question: Who was the Away Captain at The Oval?\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_89 (home_captain VARCHAR, date VARCHAR)
Question: Who is the Home Captain for 23,24,25,26 july 1992?
Here is the SQLite query to answer to the question: Who i... | The provided SQL query is incorrect because it tries to match a single date string that contains multiple dates. Instead, you should query for each individual date using the `IN` clause. Here's the corrected query:
```sql
SELECT home_captain FROM table_name_89 WHERE date IN ("23 july 1992", "24 july 1992", "25 july 19... | 18,033 | [
{
"from": "human",
"value": " 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 (home_captain VARCHAR, date VARCHAR)\n\n Question: Who is the Home Captain for 23,24,25,26 july 1992?\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_58 (result VARCHAR, date VARCHAR)
Question: What is the result for 23,24,25,26 july 1992?
Here is the SQLite query to answer to the question: What is the resu... | To fetch results for the specific dates of July 23, 24, 25, and 26, 1992 from the table, you need to use the `IN` clause or multiple `OR` conditions, since the dates are listed separately. Below is the corrected SQLite query that retrieves results for each of those dates:
```sql
SELECT result FROM table_name_58
WHERE... | 18,034 | [
{
"from": "human",
"value": " 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 (result VARCHAR, date VARCHAR)\n\n Question: What is the result for 23,24,25,26 july 1992?\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_40 (lost INTEGER, season VARCHAR, avg_attend VARCHAR)
Question: What is the maximum number of losses that the Minnesota Kicks had after 1979 with an average at... | It looks like there's a slight error in your SQL query regarding the condition for average attendance. The query should include the full average attendance figure as a string rather than using `OFFSET`. Here’s the corrected SQL query:
```
SELECT MAX(lost)
FROM table_name_40
WHERE season > '1979' AND avg_attend = '16... | 18,035 | [
{
"from": "human",
"value": " 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 (lost INTEGER, season VARCHAR, avg_attend VARCHAR)\n\n Question: What is the maximum number of losses that the Minne... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (season VARCHAR, lost VARCHAR, points VARCHAR)
Question: Which season did the Minnesota Kicks lose 13 games and scored 156 points?
Here is the SQLite query... | To find out which season the Minnesota Kicks lost 13 games and scored 156 points, you'll want to select the season column from your table where the conditions meet those specific values. Here’s the correct query:
```sql
SELECT season FROM table_name_34 WHERE lost = '13' AND points = '156';
```
This query will return... | 18,036 | [
{
"from": "human",
"value": " 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 (season VARCHAR, lost VARCHAR, points VARCHAR)\n\n Question: Which season did the Minnesota Kicks lose 13 games and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (losses INTEGER, club VARCHAR, draws VARCHAR, goals_against VARCHAR, goal_difference VARCHAR)
Question: What losses did racing de santander, that scored les... | Your SQLite query looks almost correct, but there are a couple of small adjustments needed for it to run properly. Specifically, the `goals_against`, `goal_difference`, and `draws` fields should be treated as numeric values instead of strings.
Here's the corrected query:
```
SELECT losses
FROM table_name_25
WHERE ... | 18,037 | [
{
"from": "human",
"value": " 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 (losses INTEGER, club VARCHAR, draws VARCHAR, goals_against VARCHAR, goal_difference VARCHAR)\n\n Question: What los... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (goal_difference INTEGER, points VARCHAR, wins VARCHAR)
Question: What is the highest goal difference that the club with 33-5 points and less than 12 wins?
... | Here is the SQLite query to answer the question regarding the highest goal difference for the club with 33-5 points and less than 12 wins:
```
SELECT MAX(goal_difference) FROM table_name_52 WHERE points = "33-5" AND wins < "12"
``` | 18,038 | [
{
"from": "human",
"value": " 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 (goal_difference INTEGER, points VARCHAR, wins VARCHAR)\n\n Question: What is the highest goal difference that the c... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (reactor_type VARCHAR, commercial_operation VARCHAR, unit VARCHAR)
Question: What reactor type that has a commercial operation of —, and a tianwan-7 unit?
... | Here is the SQLite query to answer the question regarding the reactor type with a commercial operation of "—" and a tianwan-7 unit:
```
SELECT reactor_type FROM table_name_25 WHERE commercial_operation = "—" AND unit = "tianwan-7"
``` | 18,039 | [
{
"from": "human",
"value": " 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 (reactor_type VARCHAR, commercial_operation VARCHAR, unit VARCHAR)\n\n Question: What reactor type that has a commer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (net_capacity VARCHAR, gross_capacity VARCHAR, unit VARCHAR)
Question: What was the net capacity with a gross capacity of 1,126 mw, and a Unit of tianwan-4?... | Here is the SQLite query to answer the question about the net capacity with a gross capacity of 1,126 mw and a Unit of tianwan-4:
```
SELECT net_capacity FROM table_name_74 WHERE gross_capacity = "1,126 mw" AND unit = "tianwan-4";
``` | 18,040 | [
{
"from": "human",
"value": " 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 (net_capacity VARCHAR, gross_capacity VARCHAR, unit VARCHAR)\n\n Question: What was the net capacity with a gross ca... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (commercial_operation VARCHAR, gross_capacity VARCHAR, unit VARCHAR)
Question: What commercial operation that has a gross capacity of 1,126 mw, and a unit o... | Here is the SQLite query that answers the specified question:
```
SELECT commercial_operation FROM table_name_95 WHERE gross_capacity = "1,126 mw" AND unit = "tianwan-4"
``` | 18,041 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_95 (commercial_operation VARCHAR, gross_capacity VARCHAR, unit VARCHAR)\n\n Question: What commercial operation 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_49 (score VARCHAR, result VARCHAR, date VARCHAR)
Question: What score has won as the result on the date of December 14, 2004?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question regarding what score has won as the result on the date of December 14, 2004:
```sql
SELECT score FROM table_name_49 WHERE result = "won" AND date = "December 14, 2004";
``` | 18,042 | [
{
"from": "human",
"value": " 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 (score VARCHAR, result VARCHAR, date VARCHAR)\n\n Question: What score has won as the result on the date of December... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (date VARCHAR, competition VARCHAR, result VARCHAR, score VARCHAR)
Question: What date has won as the result and 2-1 as the score with a competition of 2004... | Here is the SQLite query to answer the question you provided:
```
SELECT date FROM table_name_93 WHERE result = "won" AND score = "2-1" AND competition = "2004 tiger cup third place match"
``` | 18,043 | [
{
"from": "human",
"value": " 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 (date VARCHAR, competition VARCHAR, result VARCHAR, score VARCHAR)\n\n Question: What date has won as the result and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR)
Question: What score has january 15, 2005 as the date?
Here is the SQLite query to answer to the question: What score has janu... | Here is the SQLite query to answer the question regarding the score for January 15, 2005:
```
SELECT score FROM table_name_8 WHERE date = "january 15, 2005";
``` | 18,044 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR)\n\n Question: What score has january 15, 2005 as the date?\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_86 (date VARCHAR, score VARCHAR, result VARCHAR, competition VARCHAR)
Question: What date has lost as the result and a competition of friendly with 1-2 as the ... | Here is the SQLite query formatted as requested:
```
SELECT date FROM table_name_86 WHERE result = "lost" AND competition = "friendly" AND score = "1-2";
``` | 18,045 | [
{
"from": "human",
"value": " 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 (date VARCHAR, score VARCHAR, result VARCHAR, competition VARCHAR)\n\n Question: What date has lost as the result an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR)
Question: What score has january 3, 2005 as the date?
Here is the SQLite query to answer to the question: What score has janu... | Here is the SQLite query to answer the question about the score for January 3, 2005:
```
SELECT score FROM table_name_98 WHERE date = "january 3, 2005"
``` | 18,046 | [
{
"from": "human",
"value": " 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 (score VARCHAR, date VARCHAR)\n\n Question: What score has january 3, 2005 as the date?\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_25 (competition VARCHAR, date VARCHAR)
Question: What competition has may 5, 2001 as the date?
Here is the SQLite query to answer to the question: What compet... | Here is the SQLite query to answer the question about which competition has May 5, 2001, as the date:
```
SELECT competition FROM table_name_25 WHERE date = "may 5, 2001";
``` | 18,047 | [
{
"from": "human",
"value": " 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 (competition VARCHAR, date VARCHAR)\n\n Question: What competition has may 5, 2001 as the date?\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_52 (loss VARCHAR, date VARCHAR)
Question: Who did the team lose to on September 8?
Here is the SQLite query to answer to the question: Who did the team lose t... | Here is the SQLite query to answer the question "Who did the team lose to on September 8?":
```sql
SELECT loss FROM table_name_52 WHERE date = "September 8";
``` | 18,048 | [
{
"from": "human",
"value": " 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 (loss VARCHAR, date VARCHAR)\n\n Question: Who did the team lose to on September 8?\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_91 (order VARCHAR, red_list VARCHAR, family VARCHAR)
Question: What is the order for a red list of 7 in the didelphidae family?
Here is the SQLite query to an... | Here's the SQLite query to answer your question:
```
SELECT order FROM table_name_91 WHERE red_list = '7' AND family = 'didelphidae';
``` | 18,049 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_91 (order VARCHAR, red_list VARCHAR, family VARCHAR)\n\n Question: What is the order for a red list of 7 in the didelph... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (name VARCHAR, red_list INTEGER)
Question: What is the name with a red lest less than 7?
Here is the SQLite query to answer to the question: What is the na... | Here is the SQLite query to answer the question "What is the name with a red list less than 7?":
```
SELECT name FROM table_name_51 WHERE red_list < 7;
``` | 18,050 | [
{
"from": "human",
"value": " 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 (name VARCHAR, red_list INTEGER)\n\n Question: What is the name with a red lest less than 7?\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_57 (family VARCHAR, name VARCHAR)
Question: What family has the name of eastern cottontail?
Here is the SQLite query to answer to the question: What family ha... | Your SQLite query is correct for retrieving the family that has the name "eastern cottontail". Here it is wrapped in code formatting:
```
SELECT family FROM table_name_57 WHERE name = "eastern cottontail";
``` | 18,051 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_57 (family VARCHAR, name VARCHAR)\n\n Question: What family has the name of eastern cottontail?\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_22 (red_list VARCHAR, species_authority VARCHAR, order VARCHAR, family VARCHAR)
Question: What red list is in the artiodactyla order and the cervidae family wi... | Here is the SQLite query to answer the question:
```
SELECT red_list FROM table_name_22 WHERE order = "artiodactyla" AND family = "cervidae" AND species_authority = "odocoileus virginianus zimmermann, 1780"
``` | 18,052 | [
{
"from": "human",
"value": " 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 (red_list VARCHAR, species_authority VARCHAR, order VARCHAR, family VARCHAR)\n\n Question: What red list is in the a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (name VARCHAR, species_authority VARCHAR, red_list VARCHAR, order VARCHAR)
Question: What is the name for the red list of 7, the artiodactyla order, and Spec... | Here is the SQLite query formatted as you requested:
```
SELECT name FROM table_name_4 WHERE red_list = 7 AND "order" = "artiodactyla" AND species_authority = "cervus elaphus linnaeus, 1758";
``` | 18,053 | [
{
"from": "human",
"value": " 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 (name VARCHAR, species_authority VARCHAR, red_list VARCHAR, order VARCHAR)\n\n Question: What is the name for the red... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (original_name VARCHAR, film_title_used_in_nomination VARCHAR)
Question: What is the original name of the film that used the title Olympics 40 in nomination... | Here is the SQLite query to answer the question about the original name of the film that used the title "Olympics 40" in nomination:
```
SELECT original_name FROM table_name_91 WHERE film_title_used_in_nomination = "Olympics 40";
``` | 18,054 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_91 (original_name VARCHAR, film_title_used_in_nomination VARCHAR)\n\n Question: What is the original name of the film t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (film_title_used_in_nomination VARCHAR, country VARCHAR)
Question: What title did the film from Colombia use in its nomination?
Here is the SQLite query to... | Here is the SQLite query to answer the question about what title the film from Colombia used in its nomination:
```
SELECT film_title_used_in_nomination FROM table_name_33 WHERE country = "Colombia";
``` | 18,055 | [
{
"from": "human",
"value": " 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 (film_title_used_in_nomination VARCHAR, country VARCHAR)\n\n Question: What title did the film from Colombia use in ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (director VARCHAR, language VARCHAR, original_name VARCHAR)
Question: Who directed the film originally named Bye Bye Brazil in Portuguese?
Here is the SQLit... | Here is the SQLite query to answer the question about who directed the film originally named Bye Bye Brazil in Portuguese:
```
SELECT director FROM table_name_4 WHERE language = "portuguese" AND original_name = "bye bye brazil";
``` | 18,056 | [
{
"from": "human",
"value": " 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 (director VARCHAR, language VARCHAR, original_name VARCHAR)\n\n Question: Who directed the film originally named Bye ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (country VARCHAR, language VARCHAR, director VARCHAR)
Question: What country is the film directed by Jean-Luc Godard in French from?
Here is the SQLite que... | Here is the SQLite query to answer the question about the country of the film directed by Jean-Luc Godard in French:
```
SELECT country FROM table_name_19 WHERE language = "french" AND director = "jean-luc godard"
``` | 18,057 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_19 (country VARCHAR, language VARCHAR, director VARCHAR)\n\n Question: What country is the film directed by Jean-Luc Go... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (director VARCHAR, language VARCHAR)
Question: Who is the director of the film in Italian?
Here is the SQLite query to answer to the question: Who is the d... | Here is the SQLite query to answer the question: Who is the director of the film in Italian?:
```
SELECT director FROM table_name_92 WHERE language = "italian";
``` | 18,058 | [
{
"from": "human",
"value": " 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 (director VARCHAR, language VARCHAR)\n\n Question: Who is the director of the film in Italian?\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_48 (status VARCHAR, hometown VARCHAR, name VARCHAR)
Question: What is the status of Aden Theobald from the hometown of London?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question about the status of Aden Theobald from the hometown of London:
```
SELECT status FROM table_name_48 WHERE hometown = "London" AND name = "Aden Theobald";
``` | 18,059 | [
{
"from": "human",
"value": " 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 (status VARCHAR, hometown VARCHAR, name VARCHAR)\n\n Question: What is the status of Aden Theobald from the hometown... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (hometown VARCHAR, name VARCHAR)
Question: What is Hasan Shah's hometown?
Here is the SQLite query to answer to the question: What is Hasan Shah's hometown... | Here is the SQLite query to find Hasan Shah's hometown:
```
SELECT hometown FROM table_name_40 WHERE name = "Hasan Shah";
``` | 18,060 | [
{
"from": "human",
"value": " 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 (hometown VARCHAR, name VARCHAR)\n\n Question: What is Hasan Shah's hometown?\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_20 (series VARCHAR, name VARCHAR)
Question: What series was Sam Evans on?
Here is the SQLite query to answer to the question: What series was Sam Evans on?:
`... | Here is the SQLite query to answer the question: What series was Sam Evans on?:
```
SELECT series FROM table_name_20 WHERE name = "Sam Evans";
``` | 18,061 | [
{
"from": "human",
"value": " 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 (series VARCHAR, name VARCHAR)\n\n Question: What series was Sam Evans on?\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_69 (name VARCHAR, series VARCHAR, hometown VARCHAR)
Question: What is the name of the person from series bb1 with a hometown of Bolton?
Here is the SQLite que... | Here is the SQLite query to answer the question about the person from series bb1 with a hometown of Bolton:
```
SELECT name FROM table_name_69 WHERE series = "bb1" AND hometown = "Bolton";
``` | 18,062 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_69 (name VARCHAR, series VARCHAR, hometown VARCHAR)\n\n Question: What is the name of the person from series bb1 with a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (occupation VARCHAR, hometown VARCHAR)
Question: What is the occupation of the person with a hometown of Hampshire?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question regarding the occupation of the person with a hometown of Hampshire:
```sql
SELECT occupation FROM table_name_17 WHERE hometown = "Hampshire";
``` | 18,063 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_17 (occupation VARCHAR, hometown VARCHAR)\n\n Question: What is the occupation of the person with a hometown of Hampshi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (election VARCHAR)
Question: Which 1st Party has an Election of 1849 by-election?
Here is the SQLite query to answer to the question: Which 1st Party has a... | ```sql
SELECT 1 AS st_party FROM table_name_42 WHERE election = "1849 by-election"
``` | 18,064 | [
{
"from": "human",
"value": " 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 (election VARCHAR)\n\n Question: Which 1st Party has an Election of 1849 by-election?\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_96 (election VARCHAR)
Question: Which 2nd Party has an Election of 1837?
Here is the SQLite query to answer to the question: Which 2nd Party has an Election o... | To answer the question "Which 2nd Party has an Election of 1837?" based on the provided schema, your query should maintain the correct structure and logic. However, it seems like you are attempting to select a constant value (2) as `nd_party` which does not align with standard practices for retrieving data from a table... | 18,065 | [
{
"from": "human",
"value": " 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 (election VARCHAR)\n\n Question: Which 2nd Party has an Election of 1837?\n\nHere is the SQLite query to answer to t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (type VARCHAR, fleet_numbers VARCHAR)
Question: Which Type has a Fleet numbers of 2–8, 91–92, 97–100?
Here is the SQLite query to answer to the question: W... | The provided query is incorrect because it attempts to match the entire string of fleet numbers, which is not how the criteria (2–8, 91–92, 97–100) are typically represented in a database. Instead, you need to check if the `fleet_numbers` falls within the ranges specified.
A corrected version of the SQL query would u... | 18,066 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_90 (type VARCHAR, fleet_numbers VARCHAR)\n\n Question: Which Type has a Fleet numbers of 2–8, 91–92, 97–100?\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_46 (date_made VARCHAR, notes VARCHAR)
Question: When has a Note of 45/48 renumbered 15/16; two sold to sl&ncr?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question:
```
SELECT date_made FROM table_name_46 WHERE notes = "45/48 renumbered 15/16; two sold to sl&ncr"
``` | 18,067 | [
{
"from": "human",
"value": " 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 (date_made VARCHAR, notes VARCHAR)\n\n Question: When has a Note of 45/48 renumbered 15/16; two sold to sl&ncr?\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_71 (willingshain VARCHAR, kirchheim VARCHAR)
Question: What Willingshain is Kirchheim 1,126?
Here is the SQLite query to answer to the question: What Willings... | Here is the SQLite query to answer the question: What Willingshain is Kirchheim 1,126?:
```sql
SELECT willingshain FROM table_name_71 WHERE kirchheim = "1,126"
``` | 18,068 | [
{
"from": "human",
"value": " 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 (willingshain VARCHAR, kirchheim VARCHAR)\n\n Question: What Willingshain is Kirchheim 1,126?\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_31 (rotterterode VARCHAR, reimboldsh VARCHAR)
Question: What Rotterterrode has a Reimboldsh 80?
Here is the SQLite query to answer to the question: What Rotte... | Here is the SQLite query to answer the question: What Rotterterrode has a Reimboldsh 80?:
```
SELECT rotterterode FROM table_name_31 WHERE reimboldsh = "80";
``` | 18,069 | [
{
"from": "human",
"value": " 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 (rotterterode VARCHAR, reimboldsh VARCHAR)\n\n Question: What Rotterterrode has a Reimboldsh 80?\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_24 (reimboldsh VARCHAR, willingshain VARCHAR, gersdorf VARCHAR)
Question: What Reimboldsh has Willingshain of 268 and Gersdorf 194?
Here is the SQLite query t... | Here is the SQLite query to answer the question regarding the Reimboldsh that has a Willingshain of 268 and a Gersdorf of 194:
```
SELECT reimboldsh FROM table_name_24 WHERE willingshain = '268' AND gersdorf = '194';
``` | 18,070 | [
{
"from": "human",
"value": " 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 (reimboldsh VARCHAR, willingshain VARCHAR, gersdorf VARCHAR)\n\n Question: What Reimboldsh has Willingshain of 268 a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (kemmerode VARCHAR, gersdorf VARCHAR)
Question: What Kemmerode has a Gersforf of 39?
Here is the SQLite query to answer to the question: What Kemmerode has... | Here is the SQLite query to answer the question you provided:
```
SELECT kemmerode FROM table_name_68 WHERE gersdorf = "39"
``` | 18,071 | [
{
"from": "human",
"value": " 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 (kemmerode VARCHAR, gersdorf VARCHAR)\n\n Question: What Kemmerode has a Gersforf of 39?\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_46 (gershausen VARCHAR, willingshain VARCHAR, reckerode_ VARCHAR)
Question: What Gershausen has a Willingshain of 243 and Reckerode of 224?
Here is the SQLite... | It looks like you're on the right track with the SQLite query, but there's a small mistake in the syntax for the "reckerode" column. The correct query should simply use the column name without extra characters. Here's the corrected query:
```
SELECT gershausen FROM table_name_46 WHERE willingshain = "243" AND reckerod... | 18,072 | [
{
"from": "human",
"value": " 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 (gershausen VARCHAR, willingshain VARCHAR, reckerode_ VARCHAR)\n\n Question: What Gershausen has a Willingshain of 2... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (willingshain VARCHAR, reimboldsh VARCHAR)
Question: What Willinghshain has Reimboldsh of 101?
Here is the SQLite query to answer to the question: What Wil... | You provided a correct SQLite query to find the `willingshain` where the `reimboldsh` is 101. Here's the code wrapped as requested:
```
SELECT willingshain FROM table_name_27 WHERE reimboldsh = '101';
```
Note: In SQL, it is common to use single quotes for string literals. Make sure to consistently use them in your ... | 18,073 | [
{
"from": "human",
"value": " 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 (willingshain VARCHAR, reimboldsh VARCHAR)\n\n Question: What Willinghshain has Reimboldsh of 101?\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_6 (pts VARCHAR, year VARCHAR, event VARCHAR)
Question: What is the pts for 2004, and the ro event?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question about pts for the year 2004 and the "ro" event:
```
SELECT pts FROM table_name_6 WHERE year = "2004" AND event = "ro";
``` | 18,074 | [
{
"from": "human",
"value": " 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 (pts VARCHAR, year VARCHAR, event VARCHAR)\n\n Question: What is the pts for 2004, and the ro event?\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_64 (pos VARCHAR, year VARCHAR, event VARCHAR)
Question: What is the pos from 2003, and the f event?
Here is the SQLite query to answer to the question: What i... | Your SQLite query is correctly formulated to retrieve the `pos` from the `table_name_64` table where the `year` is "2003" and the `event` is "f". Here it is wrapped properly:
```
SELECT pos FROM table_name_64 WHERE year = "2003" AND event = "f";
``` | 18,075 | [
{
"from": "human",
"value": " 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 (pos VARCHAR, year VARCHAR, event VARCHAR)\n\n Question: What is the pos from 2003, and the f event?\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_59 (catalog VARCHAR, region VARCHAR)
Question: What is the Catalog Number is for the Japan region?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question regarding the Catalog Number for the Japan region:
```
SELECT catalog FROM table_name_59 WHERE region = 'Japan';
``` | 18,076 | [
{
"from": "human",
"value": " 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 (catalog VARCHAR, region VARCHAR)\n\n Question: What is the Catalog Number is for the Japan region?\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_9 (date VARCHAR, catalog VARCHAR)
Question: What is the date on Catalog 540,934-2?
Here is the SQLite query to answer to the question: What is the date on Cat... | Here is the SQLite query to answer the question about the date on Catalog 540,934-2:
```
SELECT date FROM table_name_9 WHERE catalog = "540,934-2";
``` | 18,077 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_9 (date VARCHAR, catalog VARCHAR)\n\n Question: What is the date on Catalog 540,934-2?\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_49 (region VARCHAR, format VARCHAR, catalog VARCHAR)
Question: What is the region for Catalog amlh 66078 in stereo lp format?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question about the region for Catalog amlh 66078 in stereo lp format:
```
SELECT region FROM table_name_49 WHERE format = "stereo lp" AND catalog = "amlh 66078";
``` | 18,078 | [
{
"from": "human",
"value": " 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 (region VARCHAR, format VARCHAR, catalog VARCHAR)\n\n Question: What is the region for Catalog amlh 66078 in stereo ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (region VARCHAR, format VARCHAR, catalog VARCHAR)
Question: What is the region for Catalog amlh 66078 in stereo lp format?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question regarding the region for Catalog "amlh 66078" in "stereo lp" format:
```
SELECT region FROM table_name_68 WHERE format = "stereo lp" AND catalog = "amlh 66078";
``` | 18,079 | [
{
"from": "human",
"value": " 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 (region VARCHAR, format VARCHAR, catalog VARCHAR)\n\n Question: What is the region for Catalog amlh 66078 in stereo ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (catalog VARCHAR, region VARCHAR)
Question: What is the Catalog number for the region of Japan?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to find the Catalog number for the region of Japan:
```sql
SELECT catalog FROM table_name_91 WHERE region = "Japan";
``` | 18,080 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_91 (catalog VARCHAR, region VARCHAR)\n\n Question: What is the Catalog number for the region of Japan?\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_49 (region VARCHAR, format VARCHAR, label VARCHAR)
Question: What is the region of the Catalog that is in cd format and has a label a&m/canyon?
Here is the SQ... | Here is the SQLite query to answer the question about the region of the Catalog that is in cd format and has a label a&m/canyon:
```
SELECT region FROM table_name_49 WHERE format = "cd" AND label = "a&m/canyon"
``` | 18,081 | [
{
"from": "human",
"value": " 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 (region VARCHAR, format VARCHAR, label VARCHAR)\n\n Question: What is the region of the Catalog that is in cd format... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (original_team VARCHAR, result VARCHAR)
Question: What is the original team that was Hired by Trump (5-19-2005)?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about the original team that was hired by Trump on May 19, 2005:
```
SELECT original_team FROM table_name_84 WHERE result = "hired by trump (5-19-2005)"
``` | 18,082 | [
{
"from": "human",
"value": " 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 (original_team VARCHAR, result VARCHAR)\n\n Question: What is the original team that was Hired by Trump (5-19-2005)?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (candidate VARCHAR, result VARCHAR)
Question: Who is the candidate that had 10 fired in week 2 (1-27-2005)?
Here is the SQLite query to answer to the quest... | Your query seems to be looking for a specific phrase that includes the date and result in a single column. However, if you're asking for candidates who had "10 fired" in a specific week, you might want to search for a number of entries for that week based on the given result.
Here’s an improved version of the query, a... | 18,083 | [
{
"from": "human",
"value": " 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 (candidate VARCHAR, result VARCHAR)\n\n Question: Who is the candidate that had 10 fired in week 2 (1-27-2005)?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (hometown VARCHAR, result VARCHAR)
Question: What is the hometown of the candidate that had a result of 10 fired in week 6 (2-24-2005)?
Here is the SQLite ... | The SQLite query you provided has a small mistake in the condition of the `WHERE` clause. If the `result` column only contains the term "10 fired", you should use `LIKE` instead or specify the string accurately.
Here is a revised version of your SQLite query that aims to find the correct hometown:
```sql
SELECT home... | 18,084 | [
{
"from": "human",
"value": " 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 (hometown VARCHAR, result VARCHAR)\n\n Question: What is the hometown of the candidate that had a result of 10 fired... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (wins INTEGER, tournament VARCHAR, top_25 VARCHAR)
Question: Which totals tournament has the lowest wins and top-25 less than 4?
Here is the SQLite query t... | It looks like you're trying to find the totals tournament with the lowest wins while ensuring that the top-25 is less than 4. However, to get the details of the tournament with the lowest wins based on the condition, you might want to retrieve the entire row instead of just the minimum wins. Here's a refined query that... | 18,085 | [
{
"from": "human",
"value": " 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 (wins INTEGER, tournament VARCHAR, top_25 VARCHAR)\n\n Question: Which totals tournament has the lowest wins and top... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (events INTEGER, top_5 VARCHAR, top_10 VARCHAR, tournament VARCHAR)
Question: What is the average number of events of PGA Championship tournaments with a to... | Your query is mostly correct, but it should check for the `top_5` condition instead of `top_10`. Here's the corrected SQL query:
```sql
SELECT AVG(events) FROM table_name_27 WHERE tournament = "pga championship" AND top_5 < 0;
```
This will correctly calculate the average number of events for PGA Championship tourna... | 18,086 | [
{
"from": "human",
"value": " 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 (events INTEGER, top_5 VARCHAR, top_10 VARCHAR, tournament VARCHAR)\n\n Question: What is the average number of even... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (competition VARCHAR, assist_pass VARCHAR, date VARCHAR)
Question: Name the competition for stephanie cox on 2011-07-02
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about the competition for stephanie cox on 2011-07-02:
```
SELECT competition FROM table_name_64 WHERE assist_pass = "stephanie cox" AND date = "2011-07-02";
``` | 18,087 | [
{
"from": "human",
"value": " 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 (competition VARCHAR, assist_pass VARCHAR, date VARCHAR)\n\n Question: Name the competition for stephanie cox on 201... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (lineup VARCHAR, location VARCHAR)
Question: Name the lineup for washington dc
Here is the SQLite query to answer to the question: Name the lineup for wash... | Here is the SQLite query to answer the question: Name the lineup for washington dc:
```sql
SELECT lineup FROM table_name_21 WHERE location = "washington dc"
``` | 18,088 | [
{
"from": "human",
"value": " 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 (lineup VARCHAR, location VARCHAR)\n\n Question: Name the lineup for washington dc\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_33 (date VARCHAR, location VARCHAR)
Question: Name the date for faro
Here is the SQLite query to answer to the question: Name the date for faro:
```
SELECT da... | Here is the SQLite query to answer the question: Name the date for faro:
```
SELECT date FROM table_name_33 WHERE location = "faro";
``` | 18,089 | [
{
"from": "human",
"value": " 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 (date VARCHAR, location VARCHAR)\n\n Question: Name the date for faro\n\nHere is the SQLite query to answer to the q... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (rank INTEGER, name VARCHAR, source VARCHAR, out_of VARCHAR)
Question: What is the highest rank that has fao as a source and an out greater than 50, with di... | Here is the SQLite query that answers your question:
```
SELECT MAX(rank) FROM table_name_98 WHERE source = "fao" AND out_of > 50 AND name = "dietary calorie intake"
``` | 18,090 | [
{
"from": "human",
"value": " 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 INTEGER, name VARCHAR, source VARCHAR, out_of VARCHAR)\n\n Question: What is the highest rank that has fao as ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (rank INTEGER, source VARCHAR, year VARCHAR)
Question: What is the average rank that has cia world factbook as the source and a year prior to 2005?
Here is... | Here is the SQLite query to answer the question regarding the average rank with the specified conditions:
```
SELECT AVG(rank) FROM table_name_29 WHERE source = "cia world factbook" AND year < '2005'
``` | 18,091 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_29 (rank INTEGER, source VARCHAR, year VARCHAR)\n\n Question: What is the average rank that has cia world factbook as t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (points INTEGER, chassis VARCHAR)
Question: What were the least points with a Coloni FC88 chassis?
Here is the SQLite query to answer to the question: What... | Your provided SQLite query is almost correct, but it's important to ensure that the casing of the string matches the data in the database, as SQLite string comparisons are case-sensitive by default. If "Coloni FC88" might be stored in a different case (e.g., "coloni fc88"), it’s a good practice to either:
1. Use the l... | 18,092 | [
{
"from": "human",
"value": " 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 (points INTEGER, chassis VARCHAR)\n\n Question: What were the least points with a Coloni FC88 chassis?\n\nHere is th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (year VARCHAR, chassis VARCHAR)
Question: How many years was the chassis a Coloni C3?
Here is the SQLite query to answer to the question: How many years wa... | Here is the SQLite query to answer the question: How many years was the chassis a Coloni C3?:
```
SELECT COUNT(year) FROM table_name_51 WHERE chassis = "Coloni C3";
``` | 18,093 | [
{
"from": "human",
"value": " 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 (year VARCHAR, chassis VARCHAR)\n\n Question: How many years was the chassis a Coloni C3?\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_78 (points INTEGER, entrant VARCHAR)
Question: What was the most points for Coloni Spa?
Here is the SQLite query to answer to the question: What was the most ... | Here is the SQLite query to answer the question regarding the most points for Coloni Spa:
```
SELECT MAX(points) FROM table_name_78 WHERE entrant = "coloni spa";
``` | 18,094 | [
{
"from": "human",
"value": " 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 (points INTEGER, entrant VARCHAR)\n\n Question: What was the most points for Coloni Spa?\n\nHere is the SQLite query... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (team_1 VARCHAR, team_2 VARCHAR)
Question: Which team 1 had a team 2 of Asante Kotoko?
Here is the SQLite query to answer to the question: Which team 1 had... | Here is the SQLite query to answer the question: Which team 1 had a team 2 of Asante Kotoko?:
```
SELECT team_1 FROM table_name_79 WHERE team_2 = "Asante Kotoko";
``` | 18,095 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_79 (team_1 VARCHAR, team_2 VARCHAR)\n\n Question: Which team 1 had a team 2 of Asante Kotoko?\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_87 (team_1 VARCHAR, team_2 VARCHAR)
Question: Which team 1 had a team 2 of Hafia FC?
Here is the SQLite query to answer to the question: Which team 1 had a te... | Here is the SQLite query to answer the question: Which team 1 had a team 2 of Hafia FC?:
```
SELECT team_1 FROM table_name_87 WHERE team_2 = "Hafia FC";
``` | 18,096 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (team_1 VARCHAR, team_2 VARCHAR)\n\n Question: Which team 1 had a team 2 of Hafia FC?\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_98 (agg VARCHAR, team_2 VARCHAR)
Question: What was the aggregate for the match with a team 2 of Hafia FC?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about the aggregate for the match with a team 2 of Hafia FC:
```
SELECT agg FROM table_name_98 WHERE team_2 = "Hafia FC"
``` | 18,097 | [
{
"from": "human",
"value": " 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 (agg VARCHAR, team_2 VARCHAR)\n\n Question: What was the aggregate for the match with a team 2 of Hafia FC?\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_26 (last_performance VARCHAR, name VARCHAR)
Question: When was J.P. Viernes' last performance?
Here is the SQLite query to answer to the question: When was J.... | Here is the SQLite query to answer the question regarding J.P. Viernes' last performance:
```
SELECT last_performance FROM table_name_26 WHERE name = "J.P. Viernes";
``` | 18,098 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_26 (last_performance VARCHAR, name VARCHAR)\n\n Question: When was J.P. Viernes' last performance?\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_85 (chinese_name VARCHAR, station_name VARCHAR)
Question: What's the Chinese name of the wudaokou station?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about the Chinese name of the wudaokou station:
```
SELECT chinese_name FROM table_name_85 WHERE station_name = "wudaokou";
``` | 18,099 | [
{
"from": "human",
"value": " 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 (chinese_name VARCHAR, station_name VARCHAR)\n\n Question: What's the Chinese name of the wudaokou station?\n\nHere ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.