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_62 (attendance VARCHAR, date VARCHAR)
Question: What was the attendance on November 1, 1942?
Here is the SQLite query to answer to the question: What was the ... | Here is the SQLite query to answer to the question: What was the attendance on November 1, 1942?:
```
SELECT attendance FROM table_name_62 WHERE date = "November 1, 1942";
``` | 14,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_62 (attendance VARCHAR, date VARCHAR)\n\n Question: What was the attendance on November 1, 1942?\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_49 (away_team VARCHAR, venue VARCHAR)
Question: What is the away team score at victoria park?
Here is the SQLite query to answer to the question: What is the ... | Here is the SQLite query to answer the question about the away team score at Victoria Park:
```sql
SELECT away_team AS score FROM table_name_49 WHERE venue = "victoria park";
``` | 14,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_49 (away_team VARCHAR, venue VARCHAR)\n\n Question: What is the away team score at victoria park?\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_89 (away_team VARCHAR, home_team VARCHAR)
Question: What is the away team from st kilda?
Here is the SQLite query to answer to the question: What is the away ... | Here is the SQLite query to answer the question about the away team from St Kilda:
```
SELECT away_team FROM table_name_89 WHERE home_team = "st kilda";
``` | 14,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_89 (away_team VARCHAR, home_team VARCHAR)\n\n Question: What is the away team from st kilda?\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 (country_territory VARCHAR, mr_gay_international VARCHAR)
Question: In what Country/Territory did Jason Keatly win Mr. Gay Internatnional?
Here is the SQLi... | Here is the SQLite query to answer the question of in what Country/Territory Jason Keatly won Mr. Gay International:
```
SELECT country_territory FROM table_name_89 WHERE mr_gay_international = "jason keatly";
``` | 14,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_89 (country_territory VARCHAR, mr_gay_international VARCHAR)\n\n Question: In what Country/Territory did Jason Keatly w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (score_1 VARCHAR, away_team VARCHAR)
Question: What was the score of the match in which Portsmouth was the Away team?
Here is the SQLite query to answer to... | Your SQLite query to find the score of the match in which Portsmouth was the Away team is correct. Here it is wrapped in the requested code format:
```
SELECT score_1 FROM table_name_23 WHERE away_team = "portsmouth";
```
This query will return the `score_1` values for rows where the `away_team` is "portsmouth". | 14,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_23 (score_1 VARCHAR, away_team VARCHAR)\n\n Question: What was the score of the match in which Portsmouth was the Away ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR)
Question: Which Away team did West Ham United play against?
Here is the SQLite query to answer to the question: Whic... | Here is the SQLite query to answer the question regarding which away team West Ham United played against:
```sql
SELECT away_team FROM table_name_95 WHERE home_team = "West Ham United";
``` | 14,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_95 (away_team VARCHAR, home_team VARCHAR)\n\n Question: Which Away team did West Ham United play against?\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_99 (score_1 VARCHAR, attendance VARCHAR)
Question: What was the final score of the match that had an attendance of 9,205?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question regarding the final score of the match that had an attendance of 9,205:
```
SELECT score_1 FROM table_name_99 WHERE attendance = "9,205"
``` | 14,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_99 (score_1 VARCHAR, attendance VARCHAR)\n\n Question: What was the final score of the match that had an attendance of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (home_team VARCHAR, venue VARCHAR)
Question: What is the home team score at glenferrie oval?
Here is the SQLite query to answer to the question: What is th... | It seems that the question is about retrieving the home team associated with a specific venue (Glenferrie Oval), rather than a score. The schema provided does not contain information about scores; it only includes home team names and venue names.
Here’s the corrected SQLite query that retrieves the home team at Glenf... | 14,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_65 (home_team VARCHAR, venue VARCHAR)\n\n Question: What is the home team score at glenferrie oval?\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_35 (laps VARCHAR, time_retired VARCHAR)
Question: Tell me the Laps for time/retired of +8 laps
Here is the SQLite query to answer to the question: Tell me the... | Your SQL query is almost correct, but it seems that you're looking for rows where the `time_retired` column has the string value "+8 laps". Here’s the query wrapped in code:
```
SELECT laps FROM table_name_35 WHERE time_retired = '+8 laps';
```
Make sure to use single quotes for string literals in SQL. If the requir... | 14,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_35 (laps VARCHAR, time_retired VARCHAR)\n\n Question: Tell me the Laps for time/retired of +8 laps\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_21 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
Question: Tell me the sum of laps with a time/retired of +13 laps with grid more than 18
Here is the SQL... | Here is the SQLite query wrapped as requested:
```
SELECT SUM(laps) FROM table_name_21 WHERE time_retired = "+13 laps" AND grid > 18
``` | 14,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_21 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)\n\n Question: Tell me the sum of laps with a time/retired of +13 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (laps INTEGER, grid VARCHAR)
Question: I want the lowest laps that have a grid of 12
Here is the SQLite query to answer to the question: I want the lowest ... | Here is the corrected SQLite query to answer the question about the lowest laps that have a grid of 12:
```sql
SELECT MIN(laps) FROM table_name_22 WHERE grid = '12';
```
Note that I used single quotes around '12' since it is of type VARCHAR. | 14,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_22 (laps INTEGER, grid VARCHAR)\n\n Question: I want the lowest laps that have a grid of 12\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 (grid INTEGER, constructor VARCHAR, driver VARCHAR)
Question: Tell me the sum of the grid with alfa romeo and toulo de graffenried
Here is the SQLite query... | Here is the SQLite query to answer the question regarding the sum of the grid for "alfa romeo" and "toulo de graffenried":
```
SELECT SUM(grid) FROM table_name_86 WHERE constructor = "alfa romeo" AND driver = "toulo de graffenried"
``` | 14,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_86 (grid INTEGER, constructor VARCHAR, driver VARCHAR)\n\n Question: Tell me the sum of the grid with alfa romeo and to... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (away_team VARCHAR, venue VARCHAR)
Question: Which away team's Venue is western oval?
Here is the SQLite query to answer to the question: Which away team's ... | Here is the SQLite query to answer the question regarding which away team's venue is "western oval":
```
SELECT away_team FROM table_name_4 WHERE venue = "western oval";
``` | 14,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_4 (away_team VARCHAR, venue VARCHAR)\n\n Question: Which away team's Venue is western oval?\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_2 (decision VARCHAR, home VARCHAR, date VARCHAR)
Question: What was the decision from the Vancouver home game on April 21?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question regarding the decision from the Vancouver home game on April 21:
```
SELECT decision FROM table_name_2 WHERE home = "vancouver" AND date = "april 21";
``` | 14,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_2 (decision VARCHAR, home VARCHAR, date VARCHAR)\n\n Question: What was the decision from the Vancouver home game on Ap... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (home VARCHAR, visitor VARCHAR, date VARCHAR)
Question: What was the home team that played Vancouver on April 29?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question about the home team that played Vancouver on April 29:
```
SELECT home FROM table_name_62 WHERE visitor = "Vancouver" AND date = "April 29";
``` | 14,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_62 (home VARCHAR, visitor VARCHAR, date VARCHAR)\n\n Question: What was the home team that played Vancouver on April 29... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (Id VARCHAR)
Question: Which 2009 had a 2011 of SF?
Here is the SQLite query to answer to the question: Which 2009 had a 2011 of SF?:
```
SELECT 2009 FROM ... | It seems there may be some confusion in the question regarding values and column names. Based on the schema provided, it appears that there is only one column (`Id`) in the table `table_name_71`. However, your question references years (2009, 2011) which suggest that we may be looking for certain values matching those ... | 14,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_71 (Id VARCHAR)\n\n Question: Which 2009 had a 2011 of SF?\n\nHere is the SQLite query to answer to the question: Which... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (tournament VARCHAR)
Question: Which 2010 featured the US Open?
Here is the SQLite query to answer to the question: Which 2010 featured the US Open?:
```
S... | The query you provided is incorrect because it attempts to select a constant (2010) rather than a column from the table. Since the schema only has one column (`tournament`), you'll need to modify the query to return the relevant rows.
Here’s the correct SQLite query:
```
SELECT tournament FROM table_name_56 WHERE tou... | 14,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_56 (tournament VARCHAR)\n\n Question: Which 2010 featured the US Open?\n\nHere is the SQLite query to answer to the que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
Question: What is the highest grid when the race was retired due to the gearbox after 67 laps?
Here is t... | Your SQLite query is well on its way to answering the question, but you might want to clarify the conditions regarding the laps. Since you specifically ask for the race to be retired after 67 laps, the comparison should be `= 67` instead of `> 67`.
Here's the refined query to capture only the cases where the race was... | 14,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_70 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)\n\n Question: What is the highest grid when the race was retired ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
Question: What was the time of the race for Driver Jarno Trulli on a grid smaller than 13?
Here is the... | Your SQLite query looks good, but note that string comparisons in SQLite are case-sensitive by default. If you want to ensure that the query correctly matches the driver's name regardless of case, you might consider using the `LOWER()` function. Additionally, ensure that you're checking for a numeric comparison since `... | 14,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_59 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)\n\n Question: What was the time of the race for Driver Jarno Tr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (laps INTEGER, grid VARCHAR, driver VARCHAR)
Question: How many laps did Nick Heidfeld drive on grids larger than 4?
Here is the SQLite query to answer to ... | Your SQLite query looks good! Here it is wrapped in the requested format:
```
SELECT SUM(laps) FROM table_name_77 WHERE grid > 4 AND driver = "nick heidfeld";
```
Make sure to replace "nick heidfeld" with the correct casing if needed, as SQLite is case-sensitive with string comparisons by default. | 14,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_77 (laps INTEGER, grid VARCHAR, driver VARCHAR)\n\n Question: How many laps did Nick Heidfeld drive on grids larger tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (new_council VARCHAR, previous_council VARCHAR, staying_councillors VARCHAR)
Question: What is the full number of New Council when the previous council was ... | ```sql
SELECT COUNT(new_council) FROM table_name_82 WHERE previous_council = '54' AND staying_councillors > '36'
``` | 14,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_82 (new_council VARCHAR, previous_council VARCHAR, staying_councillors VARCHAR)\n\n Question: What is the full number o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_14 (new_council VARCHAR, previous_council VARCHAR, seats_up_for_election VARCHAR)
Question: Which number of New Councils had a previous council number of 19 an... | It looks like there is a small mistake in your query regarding the condition for `seats_up_for_election`. You want to filter for rows where `seats_up_for_election` is greater than 6, but your condition currently says less than 6. Here is the corrected SQL query:
```
SELECT COUNT(new_council) FROM table_name_14 WHERE p... | 14,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_14 (new_council VARCHAR, previous_council VARCHAR, seats_up_for_election VARCHAR)\n\n Question: Which number of New Cou... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (staying_councillors INTEGER, new_council VARCHAR, election_result VARCHAR, party VARCHAR)
Question: What is the mean amount of staying councilors with an e... | Here's the SQLite query that answers your question:
```
SELECT AVG(staying_councillors)
FROM table_name_76
WHERE election_result < 10
AND party = 'green'
AND new_council > 0;
``` | 14,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_76 (staying_councillors INTEGER, new_council VARCHAR, election_result VARCHAR, party VARCHAR)\n\n Question: What 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_83 (points INTEGER, chassis VARCHAR, year VARCHAR)
Question: What is the number of points for the vehicle with a mp4-17d chassis earlier than 2003?
Here is th... | Here is the SQLite query to answer the question regarding the number of points for the vehicle with a "mp4-17d" chassis earlier than 2003:
```
SELECT SUM(points) FROM table_name_83 WHERE chassis = "mp4-17d" AND year < '2003'
``` | 14,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_83 (points INTEGER, chassis VARCHAR, year VARCHAR)\n\n Question: What is the number of points for the vehicle with a mp... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (year INTEGER, chassis VARCHAR, points VARCHAR)
Question: What is the earliest year with a mp4-17d chassis and less than 142 points.
Here is the SQLite que... | Here is the SQLite query to answer the question regarding the earliest year with a "mp4-17d" chassis and less than 142 points:
```
SELECT MIN(year) FROM table_name_60 WHERE chassis = "mp4-17d" AND points < 142
``` | 14,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_60 (year INTEGER, chassis VARCHAR, points VARCHAR)\n\n Question: What is the earliest year with a mp4-17d chassis and l... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (decile INTEGER, suburb VARCHAR)
Question: What is the sum for every value of Decile in Clendon?
Here is the SQLite query to answer to the question: What i... | Here is the SQLite query to answer the question regarding the sum for every value of Decile in Clendon:
```
SELECT SUM(decile) FROM table_name_88 WHERE suburb = "Clendon";
``` | 14,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_88 (decile INTEGER, suburb VARCHAR)\n\n Question: What is the sum for every value of Decile in Clendon?\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_98 (local_board VARCHAR, name VARCHAR)
Question: Which local board does the Clendon Teen Parent Unit belong to?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question: Which local board does the Clendon Teen Parent Unit belong to?:
```
SELECT local_board FROM table_name_98 WHERE name = "Clendon Teen Parent Unit";
``` | 14,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_98 (local_board VARCHAR, name VARCHAR)\n\n Question: Which local board does the Clendon Teen Parent Unit belong to?\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_17 (name VARCHAR, type VARCHAR)
Question: Which name is the learning/social difficulties type?
Here is the SQLite query to answer to the question: Which name ... | Here is the SQLite query to answer the question about which name is the learning/social difficulties type:
```
SELECT name FROM table_name_17 WHERE type = "learning/social difficulties";
``` | 14,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_17 (name VARCHAR, type VARCHAR)\n\n Question: Which name is the learning/social difficulties type?\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_15 (result VARCHAR, extra VARCHAR, year VARCHAR)
Question: what is the result when extra is 4 x 100 m relay and the year is later than 1971?
Here is the SQLit... | Here is the SQLite query to answer the question:
```
SELECT result FROM table_name_15 WHERE extra = "4 x 100 m relay" AND year > '1971';
``` | 14,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_15 (result VARCHAR, extra VARCHAR, year VARCHAR)\n\n Question: what is the result when extra is 4 x 100 m relay and the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_30 (venue VARCHAR, result VARCHAR, extra VARCHAR)
Question: what is the venue when the result is 2nd and extra is 4 x 100 m relay?
Here is the SQLite query to... | Here is the SQLite query to answer the question regarding the venue when the result is 2nd and extra is 4 x 100 m relay:
```
SELECT venue FROM table_name_30 WHERE result = "2nd" AND extra = "4 x 100 m relay";
``` | 14,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_30 (venue VARCHAR, result VARCHAR, extra VARCHAR)\n\n Question: what is the venue when the result is 2nd and extra is 4... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_30 (date VARCHAR, visitor VARCHAR)
Question: What was the date of the Red Wings home game against Anaheim?
Here is the SQLite query to answer to the question:... | Your SQLite query is almost correct, but it assumes that the visitor team is "anaheim". However, to identify the date of the Red Wings home game specifically against Anaheim, we also need to clarify that the home team must be the Red Wings.
Assuming that home games are denoted by the visitor field (which is not stand... | 14,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_30 (date VARCHAR, visitor VARCHAR)\n\n Question: What was the date of the Red Wings home game against Anaheim?\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_71 (score VARCHAR, home VARCHAR)
Question: What was the score of the Red Wings game when Vancouver was the home team?
Here is the SQLite query to answer to th... | Here is the SQLite query that answers the question about the score of the Red Wings game when Vancouver was the home team:
```sql
SELECT score FROM table_name_71 WHERE home = "vancouver" AND score LIKE "%Red Wings%";
```
This query selects the score from the specified table where Vancouver is the home team, and it f... | 14,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_71 (score VARCHAR, home VARCHAR)\n\n Question: What was the score of the Red Wings game when Vancouver was the home tea... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (away_team VARCHAR, home_team VARCHAR)
Question: What is the name of the away team who played Footscray?
Here is the SQLite query to answer to the question... | Here is the corrected SQLite query to find the name of the away team who played against Footscray:
```sql
SELECT away_team FROM table_name_23 WHERE home_team = "Footscray";
```
This query selects the `away_team` from the table where the `home_team` is Footscray. Make sure that the team name is matching the case if y... | 14,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_23 (away_team VARCHAR, home_team VARCHAR)\n\n Question: What is the name of the away team who played Footscray?\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_62 (date VARCHAR, venue VARCHAR)
Question: What date was the game played at Princes Park?
Here is the SQLite query to answer to the question: What date was th... | Here is the SQLite query to answer the question regarding the date when the game was played at Princes Park:
```
SELECT date FROM table_name_62 WHERE venue = "Princes Park";
``` | 14,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_62 (date VARCHAR, venue VARCHAR)\n\n Question: What date was the game played at Princes Park?\n\nHere is the SQLite que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (report VARCHAR, fastest_lap VARCHAR, grand_prix VARCHAR)
Question: During the Australian Grand Prix and the fastest lap was driven by Jacques Villeneuve, w... | Here is the SQLite query that answers the question about the report recorded during the Australian Grand Prix when the fastest lap was driven by Jacques Villeneuve:
```
SELECT report FROM table_name_65 WHERE fastest_lap = "jacques villeneuve" AND grand_prix = "australian grand prix"
``` | 14,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_65 (report VARCHAR, fastest_lap VARCHAR, grand_prix VARCHAR)\n\n Question: During the Australian Grand Prix and the fas... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (winning_constructor VARCHAR, fastest_lap VARCHAR)
Question: When the fastest lap was driven by damon hill who was the winning constructor?
Here is the SQL... | Your SQL query is almost correct, but it should specify that you're looking for the winning constructor when "damon hill" drove the fastest lap. Here's the corrected version:
```sql
SELECT winning_constructor FROM table_name_16 WHERE fastest_lap = 'damon hill';
```
This query will return the `winning_constructor` fo... | 14,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_16 (winning_constructor VARCHAR, fastest_lap VARCHAR)\n\n Question: When the fastest lap was driven by damon hill who w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (round VARCHAR, grand_prix VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
Question: During the hungarian grand prix where the pole position was michae... | Here is the SQLite query to answer the question regarding the total number of rounds of races during the Hungarian Grand Prix where the pole position was held by Michael Schumacher and the fastest lap was driven by Damon Hill:
```
SELECT COUNT(round)
FROM table_name_17
WHERE fastest_lap = "damon hill"
AND pole_po... | 14,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_17 (round VARCHAR, grand_prix VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)\n\n Question: During the hungarian g... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (fastest_lap VARCHAR, winning_driver VARCHAR)
Question: When the winning driver was jacques villeneuve what was the fastest lap driven?
Here is the SQLite ... | Here is the SQLite query to answer the question: When the winning driver was Jacques Villeneuve, what was the fastest lap driven?:
```
SELECT fastest_lap FROM table_name_31 WHERE winning_driver = "jacques villeneuve"
``` | 14,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_31 (fastest_lap VARCHAR, winning_driver VARCHAR)\n\n Question: When the winning driver was jacques villeneuve what was ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (gold INTEGER, silver VARCHAR, sport VARCHAR, total VARCHAR, bronze VARCHAR)
Question: I want to know the average Gold for total smaller 12 and bronze less t... | Here is the SQLite query to answer your question based on the provided schema:
```sql
SELECT AVG(gold)
FROM table_name_2
WHERE total < 12 AND bronze < 1 AND sport = "wushu" AND silver > 3;
``` | 14,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_2 (gold INTEGER, silver VARCHAR, sport VARCHAR, total VARCHAR, bronze VARCHAR)\n\n Question: I want to know the average... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (gold INTEGER, silver VARCHAR, sport VARCHAR)
Question: I want the lowest Gold for silver being 2 and electronic sports
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question you provided:
```sql
SELECT MIN(gold) FROM table_name_98 WHERE silver = '2' AND sport = 'electronic sports';
``` | 14,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_98 (gold INTEGER, silver VARCHAR, sport VARCHAR)\n\n Question: I want the lowest Gold for silver being 2 and electronic... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (bronze VARCHAR, sport VARCHAR)
Question: Tell me the total number of Bronze for futsal
Here is the SQLite query to answer to the question: Tell me the tot... | Here is the SQLite query to answer the question: Tell me the total number of Bronze for futsal:
```
SELECT COUNT(bronze) FROM table_name_67 WHERE sport = "futsal"
``` | 14,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_67 (bronze VARCHAR, sport VARCHAR)\n\n Question: Tell me the total number of Bronze for futsal\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_16 (total VARCHAR, sport VARCHAR, bronze VARCHAR)
Question: Tell me the total number of total for vovinam and bronze less than 3
Here is the SQLite query to a... | Here is the SQLite query that answers the question about the total number of entries for vovinam where the bronze count is less than 3:
```
SELECT COUNT(total) FROM table_name_16 WHERE sport = "vovinam" AND CAST(bronze AS INTEGER) < 3
``` | 14,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_16 (total VARCHAR, sport VARCHAR, bronze VARCHAR)\n\n Question: Tell me the total number of total for vovinam and bronz... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
Question: Tell me the sum of bronze for gold being 27 and silver more than 30
Here is the SQLite query to an... | Here is the SQLite query to answer the question: Tell me the sum of bronze for gold being 27 and silver more than 30:
```
SELECT SUM(bronze) FROM table_name_35 WHERE gold = 27 AND silver > 30
``` | 14,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_35 (bronze INTEGER, gold VARCHAR, silver VARCHAR)\n\n Question: Tell me the sum of bronze for gold being 27 and silver ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (winner_season VARCHAR, year VARCHAR)
Question: Who won the season of 1998?
Here is the SQLite query to answer to the question: Who won the season of 1998?... | Certainly! Here is the SQLite query wrapped in code formatting:
```
SELECT winner_season FROM table_name_52 WHERE year = '1998';
```
Note that the year should be enclosed in quotes since it is defined as a VARCHAR in the schema. | 14,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_52 (winner_season VARCHAR, year VARCHAR)\n\n Question: Who won the season of 1998?\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_90 (year_s__withdrawn VARCHAR, year_made VARCHAR)
Question: What year was the locomotive withdrawn that was made in 1876?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question about the year the locomotive was withdrawn that was made in 1876:
```
SELECT year_s__withdrawn FROM table_name_90 WHERE year_made = "1876";
``` | 14,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_90 (year_s__withdrawn VARCHAR, year_made VARCHAR)\n\n Question: What year was the locomotive withdrawn that was made in... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (crowd INTEGER, home_team VARCHAR)
Question: What was the lowest attendance when Fitzroy was the home team?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question about the lowest attendance when Fitzroy was the home team:
```
SELECT MIN(crowd) FROM table_name_44 WHERE home_team = "Fitzroy";
``` | 14,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_44 (crowd INTEGER, home_team VARCHAR)\n\n Question: What was the lowest attendance when Fitzroy was the home team?\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_93 (attendance VARCHAR, record VARCHAR)
Question: Which attendance has the 25–17–5 record?
Here is the SQLite query to answer to the question: Which attendanc... | Here is the SQLite query to answer the question: Which attendance has the 25–17–5 record?:
```
SELECT attendance FROM table_name_93 WHERE record = "25–17–5";
``` | 14,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_93 (attendance VARCHAR, record VARCHAR)\n\n Question: Which attendance has the 25–17–5 record?\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_86 (score VARCHAR, visitor VARCHAR)
Question: What was the score when Minnesota visited?
Here is the SQLite query to answer to the question: What was the scor... | Here is the SQLite query to answer the question about the score when Minnesota visited:
```sql
SELECT score FROM table_name_86 WHERE visitor = "Minnesota"
``` | 14,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_86 (score VARCHAR, visitor VARCHAR)\n\n Question: What was the score when Minnesota visited?\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_55 (leading_scorer VARCHAR, visitor VARCHAR)
Question: Who was the leading scorer when the visiting team was the Trail Blazers?
Here is the SQLite query to an... | Here is the SQLite query to answer the question of who was the leading scorer when the visiting team was the Trail Blazers:
```
SELECT leading_scorer FROM table_name_55 WHERE visitor = "Trail Blazers"
``` | 14,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_55 (leading_scorer VARCHAR, visitor VARCHAR)\n\n Question: Who was the leading scorer when the visiting team was the Tr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (visitor VARCHAR, date VARCHAR)
Question: Who was the visiting team on November 26, 2007?
Here is the SQLite query to answer to the question: Who was the v... | Here is the SQLite query to answer the question: Who was the visiting team on November 26, 2007?:
```
SELECT visitor FROM table_name_65 WHERE date = "November 26, 2007";
``` | 14,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_65 (visitor VARCHAR, date VARCHAR)\n\n Question: Who was the visiting team on November 26, 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_52 (constructor VARCHAR, grid VARCHAR, driver VARCHAR)
Question: Who constructed stefan johansson's car with a grid under 14?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question of who constructed Stefan Johansson's car with a grid under 14:
```
SELECT constructor FROM table_name_52 WHERE grid < 14 AND driver = "stefan johansson"
``` | 14,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_52 (constructor VARCHAR, grid VARCHAR, driver VARCHAR)\n\n Question: Who constructed stefan johansson's car with a grid... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (constructor VARCHAR, laps VARCHAR, driver VARCHAR)
Question: Who constructed piercarlo ghinzani's car with under 44 laps?
Here is the SQLite query to answ... | Your provided SQLite query is correct for the given question. Here it is, properly wrapped:
```
SELECT constructor FROM table_name_59 WHERE laps < 44 AND driver = "piercarlo ghinzani";
```
This query will retrieve the constructor of Piercarlo Ghinzani's car where the number of laps is less than 44 from the `table_na... | 14,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_59 (constructor VARCHAR, laps VARCHAR, driver VARCHAR)\n\n Question: Who constructed piercarlo ghinzani's car with unde... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (width__inches_ INTEGER, length__feet_ VARCHAR, numbers VARCHAR)
Question: On buses ranging in numbr 401-484, what is the lowest width that one longer thna ... | It seems there are a couple of issues in your provided query. The primary issue is how to filter the bus numbers correctly, as the condition `numbers = "401-484"` does not account for the range specified (401 to 484). Additionally, the `length__feet_` column should probably be treated as an integer for comparison. Here... | 14,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_36 (width__inches_ INTEGER, length__feet_ VARCHAR, numbers VARCHAR)\n\n Question: On buses ranging in numbr 401-484, wh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (width__inches_ VARCHAR, length__feet_ VARCHAR, engine VARCHAR, retired VARCHAR)
Question: For a vehicle below 25 feet, that was retired in 2005 and had a n... | To answer your question, the query should calculate the total width for vehicles that meet the specified conditions. The `width__inches_` column is in string format, so we need to convert it to a numeric type for the summation. Additionally, we should also convert the `length__feet_` to a numeric type to compare it cor... | 14,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_11 (width__inches_ VARCHAR, length__feet_ VARCHAR, engine VARCHAR, retired VARCHAR)\n\n Question: For a vehicle below 2... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (score VARCHAR, home VARCHAR)
Question: What was the score of the game when the home was Atlanta?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question about the score of the game when the home was Atlanta:
```
SELECT score FROM table_name_99 WHERE home = "Atlanta"
``` | 14,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_99 (score VARCHAR, home VARCHAR)\n\n Question: What was the score of the game when the home was Atlanta?\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_60 (attendance VARCHAR, decision VARCHAR, home VARCHAR)
Question: What is the number of people in attendance when the decision was brodeur and the home was ott... | Your provided query retrieves the `attendance` values but does not count the number of people in attendance. To get the count of people in attendance under the specified conditions, you should use the `COUNT()` function. Here's the corrected query wrapped in code formatting:
```
SELECT COUNT(attendance) AS number_of_a... | 14,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_60 (attendance VARCHAR, decision VARCHAR, home VARCHAR)\n\n Question: What is the number of people in attendance when 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 (partner VARCHAR, score VARCHAR, surface VARCHAR, outcome VARCHAR)
Question: Which Partner with the surface of Clay ended up as a runner-up with a score of ... | Your SQLite query is correctly structured to retrieve the desired information. Here's the query wrapped in the appropriate code format:
```
SELECT partner FROM table_name_45 WHERE surface = "Clay" AND outcome = "runner-up" AND score = "1–6, 6–4, [10–12]";
```
Note that SQL keywords are typically case-insensitive, bu... | 14,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_45 (partner VARCHAR, score VARCHAR, surface VARCHAR, outcome VARCHAR)\n\n Question: Which Partner with the surface of C... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (away_team VARCHAR, home_team VARCHAR)
Question: What was the score of the other team that played Geelong?
Here is the SQLite query to answer to the questi... | It seems like you're looking for a query to find out the score (or the opposing team) that faced Geelong, but the query you've provided actually attempts to retrieve the away team where Geelong is the home team.
If you're trying to find both scenarios — when Geelong is the home team and when Geelong is the away team —... | 14,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_89 (away_team VARCHAR, home_team VARCHAR)\n\n Question: What was the score of the other team that played Geelong?\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_49 (mintage INTEGER, year INTEGER)
Question: What is the lowest mintage in a year earlier than 2005?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to find the lowest mintage in a year earlier than 2005:
```
SELECT MIN(mintage) FROM table_name_49 WHERE year < 2005
``` | 14,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_49 (mintage INTEGER, year INTEGER)\n\n Question: What is the lowest mintage in a year earlier than 2005?\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_61 (mintage INTEGER, artist VARCHAR)
Question: What is the sum of all mintage created by Pierre Leduc?
Here is the SQLite query to answer to the question: Wha... | Here's the SQLite query to calculate the sum of all mintage created by Pierre Leduc:
```
SELECT SUM(mintage) FROM table_name_61 WHERE artist = "Pierre Leduc";
``` | 14,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_61 (mintage INTEGER, artist VARCHAR)\n\n Question: What is the sum of all mintage created by Pierre Leduc?\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_71 (week INTEGER, date VARCHAR)
Question: Which week was the 1995-10-01 game on?
Here is the SQLite query to answer to the question: Which week was the 1995-1... | Here is the SQLite query to answer the question about which week the game on 1995-10-01 was in:
```
SELECT week FROM table_name_71 WHERE date = "1995-10-01";
``` | 14,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_71 (week INTEGER, date VARCHAR)\n\n Question: Which week was the 1995-10-01 game on?\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_23 (result VARCHAR, week VARCHAR, attendance VARCHAR)
Question: What was the result of the game prior to week 9 with an attendance of 49,970?
Here is the SQLi... | Here is the SQLite query to answer the question regarding the result of the game prior to week 9 with an attendance of 49,970:
```sql
SELECT result FROM table_name_23 WHERE week < '9' AND attendance = '49,970';
``` | 14,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_23 (result VARCHAR, week VARCHAR, attendance VARCHAR)\n\n Question: What was the result of the game prior to week 9 wit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_14 (date VARCHAR, game_site VARCHAR)
Question: What was the date of the game at Joe Robbie Stadium?
Here is the SQLite query to answer to the question: What w... | Here is the SQLite query wrapped in code formatting:
```
SELECT date FROM table_name_14 WHERE game_site = "Joe Robbie Stadium";
``` | 14,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_14 (date VARCHAR, game_site VARCHAR)\n\n Question: What was the date of the game at Joe Robbie Stadium?\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_99 (game_site VARCHAR, attendance VARCHAR)
Question: Where was the game with the attendance of 54,436?
Here is the SQLite query to answer to the question: Whe... | Here is the SQLite query to answer the question about the game with the attendance of 54,436:
```
SELECT game_site FROM table_name_99 WHERE attendance = "54,436"
``` | 14,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_99 (game_site VARCHAR, attendance VARCHAR)\n\n Question: Where was the game with the attendance of 54,436?\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_47 (silver INTEGER, total VARCHAR, bronze VARCHAR)
Question: What is the highest silver total for nations with 3 total and over 2 bronze?
Here is the SQLite q... | The SQLite query you provided has a small issue regarding the data type in the condition for the `total` and `bronze` columns. Since `total` and `bronze` are defined as `VARCHAR`, you will need to adjust the comparison for `total` by using a string, and you need to convert `bronze` to an integer to compare it correctly... | 14,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_47 (silver INTEGER, total VARCHAR, bronze VARCHAR)\n\n Question: What is the highest silver total for nations with 3 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 (bronze INTEGER, nation VARCHAR, total VARCHAR)
Question: What is the highest bronze total for east germany with under 3 total medals?
Here is the SQLite qu... | Your SQLite query seems mostly correct, but you need to ensure the `total` column is treated as an integer for the comparison. Since `total` is declared as a `VARCHAR`, you must cast it to an integer to compare it properly. Here’s the revised query:
```sql
SELECT MAX(bronze)
FROM table_name_5
WHERE nation = "east ge... | 14,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_5 (bronze INTEGER, nation VARCHAR, total VARCHAR)\n\n Question: What is the highest bronze total for east germany with ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (production_code VARCHAR, no_in_series VARCHAR)
Question: What production code does episode 174 of Melrose place have?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question about the production code for episode 174 of Melrose Place:
```
SELECT production_code FROM table_name_92 WHERE no_in_series = '174';
``` | 14,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_92 (production_code VARCHAR, no_in_series VARCHAR)\n\n Question: What production code does episode 174 of Melrose place... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (title VARCHAR, no_in_series VARCHAR)
Question: What is the title of Melsrose Place episode number 168?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about the title of the "Melrose Place" episode number 168:
```sql
SELECT title FROM table_name_90 WHERE no_in_series = '168';
``` | 14,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_90 (title VARCHAR, no_in_series VARCHAR)\n\n Question: What is the title of Melsrose Place episode number 168?\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_60 (no_in_series INTEGER, no_in_season VARCHAR)
Question: What episode number is the first episode of season 11 in Melrose Place?
Here is the SQLite query to ... | Your provided SQLite query is almost correct, but it needs a slight adjustment since `no_in_season` is defined as a `VARCHAR`. You should use single quotes around the season number to treat it as a string. Here's the corrected version:
```
SELECT MIN(no_in_series) FROM table_name_60 WHERE no_in_season = '11'
```
Thi... | 14,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_60 (no_in_series INTEGER, no_in_season VARCHAR)\n\n Question: What episode number is the first episode of season 11 in ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_14 (d_46_√ VARCHAR, d_50_√ VARCHAR)
Question: What is the D 46 √ when the D 50 √ is d 50 √?
Here is the SQLite query to answer to the question: What is the D ... | Your provided SQLite query is correct. Here it is wrapped in the requested code format:
```
SELECT d_46_√ FROM table_name_14 WHERE d_50_√ = "d 50 √"
```
This query will retrieve the value from the column `d_46_√` where the value in `d_50_√` matches "d 50 √". | 14,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_14 (d_46_√ VARCHAR, d_50_√ VARCHAR)\n\n Question: What is the D 46 √ when the D 50 √ is d 50 √?\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 (d_46_√ VARCHAR, d_44_√ VARCHAR)
Question: What is the D 46 √ when the D 44 √ is ← majority?
Here is the SQLite query to answer to the question: What is the... | Your SQLite query is correct for the given question and schema. Here it is wrapped in code formatting:
```
SELECT d_46_√ FROM table_name_3 WHERE d_44_√ = "← majority"
```
This query will return the values from the `d_46_√` column when the corresponding `d_44_√` value is "← majority". | 14,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_3 (d_46_√ VARCHAR, d_44_√ VARCHAR)\n\n Question: What is the D 46 √ when the D 44 √ is ← majority?\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_32 (d_44_√ VARCHAR, d_46_√ VARCHAR)
Question: What is the D 44 √ when the D 46 √ is r 26?
Here is the SQLite query to answer to the question: What is the D 44... | Here is the SQLite query to answer your question:
```
SELECT d_44_√ FROM table_name_32 WHERE d_46_√ = "r 26"
``` | 14,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_32 (d_44_√ VARCHAR, d_46_√ VARCHAR)\n\n Question: What is the D 44 √ when the D 46 √ is r 26?\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_83 (d_41_√ VARCHAR, d_47_√ VARCHAR)
Question: What is the D 41 √ when the D 47 √ is d 34?
Here is the SQLite query to answer to the question: What is the D 41... | Your SQLite query is correctly formulated to retrieve the value of `d_41_√` when `d_47_√` is equal to `"d 34"`. Here it is again, properly wrapped:
```
SELECT d_41_√ FROM table_name_83 WHERE d_47_√ = "d 34"
``` | 14,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_83 (d_41_√ VARCHAR, d_47_√ VARCHAR)\n\n Question: What is the D 41 √ when the D 47 √ is d 34?\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_24 (d_41_√ VARCHAR, d_47_√ VARCHAR)
Question: What is the D 41 √ when the D 47 √ is r 34 o?
Here is the SQLite query to answer to the question: What is the D ... | Your SQLite query to retrieve the value of `d_41_√` when `d_47_√` is "r 34 o" is correct. Here it is wrapped in the required code block:
```
SELECT d_41_√ FROM table_name_24 WHERE d_47_√ = "r 34 o"
``` | 14,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_24 (d_41_√ VARCHAR, d_47_√ VARCHAR)\n\n Question: What is the D 41 √ when the D 47 √ is r 34 o?\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_51 (crowd INTEGER, venue VARCHAR)
Question: What is the highest crowd at windy hill?
Here is the SQLite query to answer to the question: What is the highest c... | Here's the SQLite query to find the highest crowd at "windy hill":
```
SELECT MAX(crowd) FROM table_name_51 WHERE venue = "windy hill"
``` | 14,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_51 (crowd INTEGER, venue VARCHAR)\n\n Question: What is the highest crowd at windy hill?\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_90 (date VARCHAR, away_team VARCHAR)
Question: What date is st kilda the Away team?
Here is the SQLite query to answer to the question: What date is st kilda ... | Here's the SQLite query to find the date when St Kilda is the away team:
```
SELECT date FROM table_name_90 WHERE away_team = "st kilda"
``` | 14,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_90 (date VARCHAR, away_team VARCHAR)\n\n Question: What date is st kilda the Away team?\n\nHere is the SQLite query to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (ties VARCHAR, drawn VARCHAR)
Question: How many ties drawed at 20?
Here is the SQLite query to answer to the question: How many ties drawed at 20?:
```
SE... | To answer the question "How many ties drawn at 20?", we need to count the occurrences of ties where the value in the `drawn` column is "20". The correct SQL query for this would use the `COUNT` function. Here’s how you can write the query:
```
SELECT COUNT(ties) AS tie_count FROM table_name_74 WHERE drawn = "20"
``` | 14,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_74 (ties VARCHAR, drawn VARCHAR)\n\n Question: How many ties drawed at 20?\n\nHere is the SQLite query to answer to the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (qual_2 VARCHAR, qual_1 VARCHAR)
Question: What is the time for the second qualification where the first qualification time was 1:21.523?
Here is the SQLit... | Your provided SQLite query is correct for retrieving the second qualification time where the first qualification time was "1:21.523". Here it is formatted as requested:
```
SELECT qual_2 FROM table_name_21 WHERE qual_1 = "1:21.523"
``` | 14,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_21 (qual_2 VARCHAR, qual_1 VARCHAR)\n\n Question: What is the time for the second qualification where the first qualifi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (qual_2 VARCHAR, best VARCHAR)
Question: What is the time for the second qualification where the best time was 1:20.772?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question regarding the time for the second qualification where the best time was 1:20.772:
```
SELECT qual_2 FROM table_name_38 WHERE best = '1:20.772';
``` | 14,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_38 (qual_2 VARCHAR, best VARCHAR)\n\n Question: What is the time for the second qualification where the best time was 1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (team VARCHAR, qual_1 VARCHAR)
Question: What is the team name for the racer who had a first qualification time of 1:22.655?
Here is the SQLite query to an... | Here is the SQLite query you requested, wrapped in code formatting:
```
SELECT team FROM table_name_17 WHERE qual_1 = "1:22.655";
``` | 14,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_17 (team VARCHAR, qual_1 VARCHAR)\n\n Question: What is the team name for the racer who had a first qualification time ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (name VARCHAR, qual_1 VARCHAR)
Question: What is the name of the racer that had a first qualification time of 1:22.085?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question about the name of the racer that had a first qualification time of 1:22.085:
```
SELECT name FROM table_name_5 WHERE qual_1 = "1:22.085";
``` | 14,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_5 (name VARCHAR, qual_1 VARCHAR)\n\n Question: What is the name of the racer that had a first qualification time of 1:2... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (best VARCHAR, team VARCHAR, name VARCHAR)
Question: What is Paul Tracy's best time racing on the Forsythe Racing team?
Here is the SQLite query to answer ... | Here is the SQLite query to answer your question about Paul Tracy's best time racing on the Forsythe Racing team:
```
SELECT best FROM table_name_62 WHERE team = "forsythe racing" AND name = "paul tracy";
``` | 14,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_62 (best VARCHAR, team VARCHAR, name VARCHAR)\n\n Question: What is Paul Tracy's best time racing on the Forsythe Racin... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (type VARCHAR, year VARCHAR, artist VARCHAR)
Question: What is the type of disc by Logistics after 2004?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question about the type of disc by Logistics after 2004:
```
SELECT type FROM table_name_95 WHERE year > '2004' AND artist = 'Logistics';
``` | 14,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_95 (type VARCHAR, year VARCHAR, artist VARCHAR)\n\n Question: What is the type of disc by Logistics after 2004?\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_22 (year VARCHAR, catalogue_number VARCHAR)
Question: What is the year of the disc with a catalogue number mash02?
Here is the SQLite query to answer to the q... | Here is the SQLite query to find the year of the disc with the catalogue number mash02:
```
SELECT year FROM table_name_22 WHERE catalogue_number = "mash02";
``` | 14,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_22 (year VARCHAR, catalogue_number VARCHAR)\n\n Question: What is the year of the disc with a catalogue number mash02?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (swimsuit INTEGER, state VARCHAR, average VARCHAR)
Question: What is the lowest swimsuit score a contestant from Rhode Island with an average larger than 9.... | Here is the SQLite query to find the lowest swimsuit score for a contestant from Rhode Island with an average larger than 9.235:
```
SELECT MIN(swimsuit) FROM table_name_66 WHERE state = "rhode island" AND average > 9.235
``` | 14,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_66 (swimsuit INTEGER, state VARCHAR, average VARCHAR)\n\n Question: What is the lowest swimsuit score a contestant from... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_14 (average INTEGER, state VARCHAR, swimsuit VARCHAR)
Question: What is the highest average a contestant from Iowa with a swimsuit smaller than 9.267 has?
Her... | Here is the SQLite query to answer the question regarding the highest average a contestant from Iowa with a swimsuit smaller than 9.267 has:
```
SELECT MAX(average) FROM table_name_14 WHERE state = 'iowa' AND swimsuit < 9.267;
``` | 14,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_14 (average INTEGER, state VARCHAR, swimsuit VARCHAR)\n\n Question: What is the highest average a contestant from Iowa ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (average INTEGER, evening_gown VARCHAR, state VARCHAR)
Question: What is the highest average for a contestant with an evening gown larger than 9.449 from Ka... | Your SQLite query is almost correct, but it’s important to ensure that the condition for evening gowns involves a numeric comparison since you are comparing it as a number (greater than 9.449). Also, ensure that the state is correctly represented in case-sensitivity. Here's the cleaned-up version of your query:
```sql... | 14,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_56 (average INTEGER, evening_gown VARCHAR, state VARCHAR)\n\n Question: What is the highest average for a contestant wi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (swimsuit INTEGER, average VARCHAR)
Question: What is the lowest swimsuit for a contestant with an average of 9.125?
Here is the SQLite query to answer to ... | Here is the SQLite query to find the lowest swimsuit for a contestant with an average of 9.125, wrapped in the requested format:
```
SELECT MIN(swimsuit) FROM table_name_38 WHERE average = '9.125';
``` | 14,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_38 (swimsuit INTEGER, average VARCHAR)\n\n Question: What is the lowest swimsuit for a contestant with an average of 9.... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (interview INTEGER, evening_gown VARCHAR, state VARCHAR, swimsuit VARCHAR, average VARCHAR)
Question: What is the lowest interview for a contestant from Nor... | Here is the SQLite query to answer the question regarding the lowest interview score for a contestant from North Carolina, considering the specified conditions:
```
SELECT MIN(interview)
FROM table_name_60
WHERE swimsuit > 9.021
AND average < 9.513
AND state = "North Carolina"
AND evening_gown > 9.5;
``` | 14,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_60 (interview INTEGER, evening_gown VARCHAR, state VARCHAR, swimsuit VARCHAR, average VARCHAR)\n\n Question: What 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_23 (earnings__ INTEGER, player VARCHAR)
Question: What's the most jim colbert got paid?
Here is the SQLite query to answer to the question: What's the most ji... | Here is the SQLite query to answer the question: What's the most jim colbert got paid?:
```
SELECT MAX(earnings__) AS max_earnings FROM table_name_23 WHERE player = "jim colbert"
``` | 14,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_23 (earnings__ INTEGER, player VARCHAR)\n\n Question: What's the most jim colbert got paid?\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_40 (wins INTEGER, player VARCHAR)
Question: How many average wins does bruce fleisher have?
Here is the SQLite query to answer to the question: How many avera... | Here is the SQLite query to answer the question about how many average wins Bruce Fleisher has:
```
SELECT AVG(wins) FROM table_name_40 WHERE player = "bruce fleisher"
``` | 14,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_40 (wins INTEGER, player VARCHAR)\n\n Question: How many average wins does bruce fleisher have?\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_88 (rank VARCHAR, wins INTEGER)
Question: What rank has less than 22 wins
Here is the SQLite query to answer to the question: What rank has less than 22 wins:... | Your query is counting the number of ranks with less than 22 wins, but the question is asking for the ranks themselves. To get the ranks that have less than 22 wins, you should select the ranks directly. Here's the corrected query:
```
SELECT rank FROM table_name_88 WHERE wins < 22
``` | 14,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_88 (rank VARCHAR, wins INTEGER)\n\n Question: What rank has less than 22 wins\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_29 (winner VARCHAR, year VARCHAR, loser VARCHAR)
Question: Who was the winner of the game in 1999 with Kansas City Chiefs as the loser?
Here is the SQLite que... | Here is the SQLite query to answer the question about the winner of the game in 1999 where the Kansas City Chiefs were the loser:
```
SELECT winner FROM table_name_29 WHERE year = '1999' AND loser = 'Kansas City Chiefs';
``` | 14,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_29 (winner VARCHAR, year VARCHAR, loser VARCHAR)\n\n Question: Who was the winner of the game in 1999 with Kansas City ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (year INTEGER, date VARCHAR)
Question: What is the average year of the games with the date December 26?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about the average year of the games with the date December 26:
```
SELECT AVG(year) FROM table_name_84 WHERE date = 'December 26';
``` | 14,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_84 (year INTEGER, date VARCHAR)\n\n Question: What is the average year of the games with the date December 26?\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_40 (home_team VARCHAR, away_team VARCHAR)
Question: What is the home team that played Hull City?
Here is the SQLite query to answer to the question: What is t... | Here is the SQLite query to answer the question about the home team that played Hull City:
```
SELECT home_team FROM table_name_40 WHERE away_team = "Hull City";
``` | 14,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_40 (home_team VARCHAR, away_team VARCHAR)\n\n Question: What is the home team that played Hull City?\n\nHere is the SQL... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (height_ft___m VARCHAR, floors VARCHAR, name VARCHAR)
Question: Name the height when the floors are bigger than 30 at the bny mellon center
Here is the SQL... | Here is the SQLite query wrapped in code formatting:
```
SELECT height_ft___m FROM table_name_24 WHERE floors > 30 AND name = "bny mellon center";
``` | 14,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_24 (height_ft___m VARCHAR, floors VARCHAR, name VARCHAR)\n\n Question: Name the height when the floors are bigger than ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (year VARCHAR, rank VARCHAR)
Question: Name the year for 8 rank
Here is the SQLite query to answer to the question: Name the year for 8 rank:
```
SELECT ye... | Here is the SQLite query to answer the question: Name the year for 8 rank:
```
SELECT year FROM table_name_41 WHERE rank = '8';
``` | 14,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_41 (year VARCHAR, rank VARCHAR)\n\n Question: Name the year for 8 rank\n\nHere is the SQLite query to answer to the que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (crowd INTEGER, away_team VARCHAR)
Question: What was the lowest amount of people to turn out at a game with the away team as collingwood?
Here is the SQLi... | Your SQLite query is correctly formulated to find the lowest crowd turnout for games where the away team is Collingwood. Here it is wrapped as requested:
```
SELECT MIN(crowd) FROM table_name_93 WHERE away_team = "collingwood";
``` | 14,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_93 (crowd INTEGER, away_team VARCHAR)\n\n Question: What was the lowest amount of people to turn out at a game with the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (away_team VARCHAR, home_team VARCHAR)
Question: When the home team of st kilda was playing, what was the away team score?
Here is the SQLite query to answ... | The provided query seems to incorrectly identify the output you are looking for. It seems you want to retrieve the away teams when St Kilda was the home team. To clarify, we cannot directly extract "scores" from the given schema, as it only contains team names and does not include any score data.
Your query structure ... | 14,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_97 (away_team VARCHAR, home_team VARCHAR)\n\n Question: When the home team of st kilda was playing, what was the away t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (crowd INTEGER, venue VARCHAR)
Question: What is the total number of people that attended the glenferrie oval venue?
Here is the SQLite query to answer to ... | Your SQLite query is correct. Here it is again, wrapped in the appropriate code formatting:
```
SELECT SUM(crowd) FROM table_name_39 WHERE venue = "glenferrie oval";
```
This query will give you the total number of people that attended the Glenferrie Oval venue by summing up the values in the `crowd` column where th... | 14,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_39 (crowd INTEGER, venue VARCHAR)\n\n Question: What is the total number of people that attended the glenferrie oval ve... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.