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_83 (founded INTEGER, type VARCHAR, nickname VARCHAR)
Question: Which of the private colleges is the oldest, and whose nickname is the Mountaineers?
Here is th... | Your query is mostly correct, but to retrieve the entire row of the oldest private college that has the nickname "Mountaineers," you should structure it differently. You can use a subquery or an additional condition in the `WHERE` clause. Here is the updated query:
```sql
SELECT * FROM table_name_83
WHERE type = 'pri... | 21,500 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_83 (founded INTEGER, type VARCHAR, nickname VARCHAR)\n\n Question: Which of the private colleges is the oldest, and who... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (institution VARCHAR, enrollment INTEGER)
Question: Which college's enrollment is less than 1,000?
Here is the SQLite query to answer to the question: Whic... | Here is the corrected SQLite query to answer the question about which college's enrollment is less than 1,000:
```
SELECT institution FROM table_name_85 WHERE enrollment < 1000;
```
Note: The `OFFSET 000` is unnecessary in this context, so I've removed it for clarity. | 21,501 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_85 (institution VARCHAR, enrollment INTEGER)\n\n Question: Which college's enrollment is less than 1,000?\n\nHere is th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (date VARCHAR, away_team VARCHAR)
Question: On what date does Essendon play as the away team?
Here is the SQLite query to answer to the question: On what d... | Here is the SQLite query to answer the question about the dates when Essendon plays as the away team:
```
SELECT date FROM table_name_19 WHERE away_team = "essendon";
``` | 21,502 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_19 (date VARCHAR, away_team VARCHAR)\n\n Question: On what date does Essendon play as the away team?\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_31 (goal_gain INTEGER, game INTEGER)
Question: What team with a Game smaller than 18 has the lowest Goal Gain?
Here is the SQLite query to answer to the quest... | Your query is almost correct, but it only retrieves the minimum `goal_gain` without identifying the corresponding team (or team-related information) that has that `goal_gain`. To get the team with the lowest `goal_gain` where the `game` is smaller than 18, you can use a subquery or ORDER BY with LIMIT. Here’s an improv... | 21,503 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (goal_gain INTEGER, game INTEGER)\n\n Question: What team with a Game smaller than 18 has the lowest Goal Gain?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (nationality VARCHAR, school_country VARCHAR)
Question: What was the nationality of every player that attended Baylor?
Here is the SQLite query to answer t... | Here is the correct SQLite query to answer the question about the nationality of every player that attended Baylor:
```
SELECT nationality FROM table_name_55 WHERE school_country = "Baylor";
```
Please note that the school name is typically case-sensitive, so "Baylor" is used instead of "baylor" assuming that's how ... | 21,504 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_55 (nationality VARCHAR, school_country VARCHAR)\n\n Question: What was the nationality of every player that attended B... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (away_team VARCHAR, venue VARCHAR)
Question: Which team was the away team when the game was at punt road oval?
Here is the SQLite query to answer to the que... | Here's the SQLite query wrapped in the requested format:
```
SELECT away_team FROM table_name_6 WHERE venue = "punt road oval";
``` | 21,505 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_6 (away_team VARCHAR, venue VARCHAR)\n\n Question: Which team was the away team when the game was at punt road oval?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (away_team VARCHAR, home_team VARCHAR)
Question: What was the score for the away team when the home team was Fitzroy?
Here is the SQLite query to answer to... | It looks like you're asking for an SQLite query to find the away team's score when the home team is Fitzroy. However, based on the provided schema, there is no score information in the table. The table only includes the columns for `away_team` and `home_team`.
If you meant to retrieve the names of the away teams when ... | 21,506 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (away_team VARCHAR, home_team VARCHAR)\n\n Question: What was the score for the away team when the home team was Fit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (date VARCHAR, away_team VARCHAR)
Question: What was the date of the game when the away team was south melbourne?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question regarding the date of the game when the away team was south melbourne:
```
SELECT date FROM table_name_77 WHERE away_team = "south melbourne";
``` | 21,507 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_77 (date VARCHAR, away_team VARCHAR)\n\n Question: What was the date of the game when the away team was south melbourne... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (glendale VARCHAR, pasadena VARCHAR)
Question: What is the percentage of Glendale when Pasadena is 14%?
Here is the SQLite query to answer to the question:... | The query you provided does not directly calculate the percentage of Glendale when Pasadena is at 14%. Instead, it retrieves the values of Glendale where Pasadena has a value of "14%".
To calculate the percentage of Glendale when Pasadena is 14%, you may want to adjust your query to calculate and return the desired v... | 21,508 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (glendale VARCHAR, pasadena VARCHAR)\n\n Question: What is the percentage of Glendale when Pasadena is 14%?\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_37 (tujunga VARCHAR, pasadena VARCHAR)
Question: What is the percentage of Tujunja when Pasadena is 33%?
Here is the SQLite query to answer to the question: W... | To calculate the percentage of Tujunga when Pasadena is 33%, you may need to derive the total number of records and specifically filter records where Pasadena is 33%. Assuming both columns hold percentage values in string format with a '%' sign, you might first want to convert them to a usable format (like numeric) for... | 21,509 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_37 (tujunga VARCHAR, pasadena VARCHAR)\n\n Question: What is the percentage of Tujunja when Pasadena is 33%?\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_33 (tujunga VARCHAR, la_crescenta__montrose VARCHAR)
Question: What is the percentage of Tukunga when La Crescenta-Montrose is 28%?
Here is the SQLite query t... | To calculate the percentage of Tukunga when La Crescenta-Montrose is 28%, you need to properly filter the records based on the value of 'la_crescenta__montrose'. The SQL query you provided is almost correct, but you may need to consider how to handle the percentage value correctly in SQLite. Typically, you might want t... | 21,510 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_33 (tujunga VARCHAR, la_crescenta__montrose VARCHAR)\n\n Question: What is the percentage of Tukunga when La Crescenta-... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (pasadena VARCHAR, tujunga VARCHAR)
Question: What is the figure for Pasadena when Tujunga is 36?
Here is the SQLite query to answer to the question: What ... | Your SQLite query looks good for the given question. Here’s the wrapped code:
```
SELECT pasadena FROM table_name_11 WHERE tujunga = "36";
``` | 21,511 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_11 (pasadena VARCHAR, tujunga VARCHAR)\n\n Question: What is the figure for Pasadena when Tujunga is 36?\n\nHere is the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (glendale VARCHAR, la_cañada_flintridge VARCHAR)
Question: What is the percentage of Glendale when La Canada Flintridge is 5%?
Here is the SQLite query to ... | Your SQL query is almost correct for fetching the value of `glendale` when `la_cañada_flintridge` is equal to "5%". However, to compute the percentage or get the actual value of `glendale`, you'll need to ensure that you're dealing with the right context in the query.
Here is an improved version of your SQLite query, ... | 21,512 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (glendale VARCHAR, la_cañada_flintridge VARCHAR)\n\n Question: What is the percentage of Glendale when La Canada Fli... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (la_crescenta__montrose VARCHAR, glendale VARCHAR)
Question: What is the figure for La Crescenta-Montrose when Gelndale is $57,112?
Here is the SQLite quer... | Here is the SQLite query to answer the question about the figure for La Crescenta-Montrose when Glendale is $57,112:
```
SELECT la_crescenta__montrose FROM table_name_64 WHERE glendale = '$57,112';
``` | 21,513 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (la_crescenta__montrose VARCHAR, glendale VARCHAR)\n\n Question: What is the figure for La Crescenta-Montrose when G... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (conv VARCHAR, pens VARCHAR, tries VARCHAR)
Question: How many conversions had 0 pens and 0 tries?
Here is the SQLite query to answer to the question: How ... | To count how many conversions had 0 pens and 0 tries, you can modify your query to use the `COUNT` function. Here's the correct SQLite query:
```
SELECT COUNT(*) FROM table_name_39 WHERE pens = "0" AND tries = "0";
``` | 21,514 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_39 (conv VARCHAR, pens VARCHAR, tries VARCHAR)\n\n Question: How many conversions had 0 pens and 0 tries?\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_49 (conv VARCHAR, pens VARCHAR, player VARCHAR)
Question: How many conversions did Severo Koroduadua Waqanibau have when he has 0 pens?
Here is the SQLite que... | Here is the corrected SQLite query to count the conversions of Severo Koroduadua Waqanibau when he has 0 pens:
```sql
SELECT SUM(CAST(conv AS INTEGER)) AS total_conversions
FROM table_name_49
WHERE pens = "0" AND player = "severo koroduadua waqanibau";
```
This query sums the conversions (converted to integers) fo... | 21,515 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_49 (conv VARCHAR, pens VARCHAR, player VARCHAR)\n\n Question: How many conversions did Severo Koroduadua Waqanibau have... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (home_team VARCHAR, venue VARCHAR)
Question: What is the home team's score at mcg?
Here is the SQLite query to answer to the question: What is the home tea... | It looks like your query is attempting to select the home team's name while referring to it as a "score," which may not align with the typically expected data in a score context. However, if you are looking to select the home team playing at a venue named 'mcg', the query you provided is correct for that purpose.
Here... | 21,516 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_54 (home_team VARCHAR, venue VARCHAR)\n\n Question: What is the home team's score at mcg?\n\nHere is the SQLite query t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (date VARCHAR, venue VARCHAR)
Question: What day is the venue the western oval?
Here is the SQLite query to answer to the question: What day is the venue t... | Here is the SQLite query to answer the question: What day is the venue the western oval?:
```
SELECT date FROM table_name_33 WHERE venue = "western oval";
``` | 21,517 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_33 (date VARCHAR, venue VARCHAR)\n\n Question: What day is the venue the western oval?\n\nHere is the SQLite query to a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (bullet_diameter VARCHAR, name VARCHAR)
Question: Which Bullet diameter has a Name of 11.4mm werndl m/73?
Here is the SQLite query to answer to the questio... | Sure! Here is the SQLite query wrapped in code formatting as you requested:
```
SELECT bullet_diameter FROM table_name_22 WHERE name = "11.4mm werndl m/73";
``` | 21,518 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_22 (bullet_diameter VARCHAR, name VARCHAR)\n\n Question: Which Bullet diameter has a Name of 11.4mm werndl m/73?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (case_length VARCHAR, rim_diameter VARCHAR)
Question: Which Case length has a Rim diameter of 13.20 (.518)?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question regarding which Case length has a Rim diameter of 13.20 (.518):
```
SELECT case_length FROM table_name_90 WHERE rim_diameter = '13.20 (.518)';
``` | 21,519 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_90 (case_length VARCHAR, rim_diameter VARCHAR)\n\n Question: Which Case length has a Rim diameter of 13.20 (.518)?\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_32 (bullet_diameter VARCHAR, neck_diameter VARCHAR)
Question: Which Bullet diameter has a Neck diameter of 12.17 (.479)?
Here is the SQLite query to answer to... | Your provided SQLite query to find the bullet diameter corresponding to a neck diameter of 12.17 (.479) is correct. Here’s how it looks:
```
SELECT bullet_diameter FROM table_name_32 WHERE neck_diameter = "12.17 (.479)";
```
This query selects the `bullet_diameter` from the `table_name_32` table where the `neck_diam... | 21,520 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (bullet_diameter VARCHAR, neck_diameter VARCHAR)\n\n Question: Which Bullet diameter has a Neck diameter of 12.17 (.... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (rim_diameter VARCHAR, neck_diameter VARCHAR)
Question: Which Rim diameter has a Neck diameter of 11.84 (.466)?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question regarding which Rim diameter has a Neck diameter of 11.84 (.466):
```
SELECT rim_diameter FROM table_name_27 WHERE neck_diameter = '11.84 (.466)';
``` | 21,521 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_27 (rim_diameter VARCHAR, neck_diameter VARCHAR)\n\n Question: Which Rim diameter has a Neck diameter of 11.84 (.466)?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (case_type VARCHAR, cartridge_length VARCHAR)
Question: Which Case type has a Cartridge length of 64.77 (2.550)?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question regarding which case type has a cartridge length of 64.77 (2.550):
```
SELECT case_type FROM table_name_57 WHERE cartridge_length = "64.77 (2.550)"
``` | 21,522 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_57 (case_type VARCHAR, cartridge_length VARCHAR)\n\n Question: Which Case type has a Cartridge length of 64.77 (2.550)?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (case_type VARCHAR, base_diameter VARCHAR, case_length VARCHAR)
Question: Which Case type has a Base diameter of 13.03 (.513), and a Case length of 63.5 (2.... | Here is the SQLite query to answer the question regarding the case type with the specified base diameter and case length:
```
SELECT case_type FROM table_name_29 WHERE base_diameter = "13.03 (.513)" AND case_length = "63.5 (2.5)"
``` | 21,523 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_29 (case_type VARCHAR, base_diameter VARCHAR, case_length VARCHAR)\n\n Question: Which Case type has a Base diameter of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (date VARCHAR, attendance VARCHAR)
Question: What day had 37,500 attending?
Here is the SQLite query to answer to the question: What day had 37,500 attendi... | Here is the SQLite query to answer the question about which day had 37,500 attending:
```
SELECT date FROM table_name_56 WHERE attendance = '37,500';
``` | 21,524 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_56 (date VARCHAR, attendance VARCHAR)\n\n Question: What day had 37,500 attending?\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_77 (date VARCHAR, game_site VARCHAR)
Question: What day did they play at candlestick park?
Here is the SQLite query to answer to the question: What day did th... | Here is the SQLite query to answer the question about the days they played at Candlestick Park:
```sql
SELECT date FROM table_name_77 WHERE game_site = "candlestick park"
``` | 21,525 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_77 (date VARCHAR, game_site VARCHAR)\n\n Question: What day did they play at candlestick park?\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_96 (crowd VARCHAR, away_team VARCHAR)
Question: What is the crowd size of the game when Fitzroy is the away team?
Here is the SQLite query to answer to the qu... | Your provided SQLite query is close, but it seems there is a misunderstanding in the use of `COUNT(crowd)`. If you want to get the crowd size specifically for the game when Fitzroy is the away team, you should just select the crowd value rather than counting. Here’s the correct query:
```
SELECT crowd FROM table_name_... | 21,526 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_96 (crowd VARCHAR, away_team VARCHAR)\n\n Question: What is the crowd size of the game when Fitzroy is the away team?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (venue VARCHAR, away_team VARCHAR)
Question: What is the venue when Geelong is the away team?
Here is the SQLite query to answer to the question: What is t... | Here is the SQLite query to answer the question about the venue when Geelong is the away team:
```
SELECT venue FROM table_name_27 WHERE away_team = "Geelong";
``` | 21,527 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_27 (venue VARCHAR, away_team VARCHAR)\n\n Question: What is the venue when Geelong is the away team?\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_37 (dwellings INTEGER, neighbourhood VARCHAR, change___percentage_ VARCHAR)
Question: How many Dwellings does Beverly Heights have that have a change percent l... | Here is the SQLite query to answer the question regarding the number of dwellings in Beverly Heights that have a change percent larger than -5.2:
```
SELECT SUM(dwellings)
FROM table_name_37
WHERE neighbourhood = "Beverly Heights" AND change___percentage_ > -5.2;
``` | 21,528 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_37 (dwellings INTEGER, neighbourhood VARCHAR, change___percentage_ VARCHAR)\n\n Question: How many Dwellings does Bever... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (density__people_km_2__ VARCHAR, area__km_2__ VARCHAR, population__2012_ VARCHAR)
Question: What is the density of an area that is 1.38km and has a populati... | The query you provided is close, but it seems to be trying to count the number of entries that meet the criteria instead of returning the density for the specific area and population conditions. Here's a correct SQLite query to retrieve the density for an area of 1.38 km² and a population greater than 12924:
```sql
SE... | 21,529 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_95 (density__people_km_2__ VARCHAR, area__km_2__ VARCHAR, population__2012_ VARCHAR)\n\n Question: What is the density ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (week INTEGER, attendance INTEGER)
Question: What is the average week number of all the matches where less than 22,604 people attended?
Here is the SQLite ... | It looks like there's a small mistake in your SQL query regarding the syntax. The `OFFSET` keyword is not appropriate in this context. You should simply filter the records based on the `attendance` condition and then apply the `AVG` function. Here’s the corrected query:
```sql
SELECT AVG(week) FROM table_name_75 WHERE... | 21,530 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_75 (week INTEGER, attendance INTEGER)\n\n Question: What is the average week number of all the matches where 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_20 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
Question: What is the largest crowd size at a match against the Chicago Cardinals after Week 10 of the ... | Here is the SQLite query to answer the question regarding the largest crowd size at a match against the Chicago Cardinals after Week 10 of the season:
```
SELECT MAX(attendance) FROM table_name_20 WHERE opponent = "chicago cardinals" AND week > 10;
``` | 21,531 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (attendance INTEGER, opponent VARCHAR, week VARCHAR)\n\n Question: What is the largest crowd size at a match against... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (crowd INTEGER, away_team VARCHAR)
Question: What is the average crowd size when North Melbourne is the away team?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question regarding the average crowd size when North Melbourne is the away team:
```sql
SELECT AVG(crowd) FROM table_name_33 WHERE away_team = "North Melbourne";
``` | 21,532 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_33 (crowd INTEGER, away_team VARCHAR)\n\n Question: What is the average crowd size when North Melbourne is the away tea... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (crowd INTEGER, away_team VARCHAR)
Question: What is the average crowd to watch Hawthorn as the away team?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question about the average crowd to watch Hawthorn as the away team:
```
SELECT AVG(crowd) FROM table_name_29 WHERE away_team = "Hawthorn";
```
(Note: I've used "Hawthorn" with a capital 'H' assuming that the case may matter, but if the database is case-insensitive, your origin... | 21,533 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_29 (crowd INTEGER, away_team VARCHAR)\n\n Question: What is the average crowd to watch Hawthorn as the away team?\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_92 (away_team VARCHAR, home_team VARCHAR)
Question: What away team played Footscray?
Here is the SQLite query to answer to the question: What away team played... | Here is the SQLite query to answer the question of which away team played against Footscray:
```sql
SELECT away_team FROM table_name_92 WHERE home_team = "footscray";
``` | 21,534 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_92 (away_team VARCHAR, home_team VARCHAR)\n\n Question: What away team played Footscray?\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_41 (crowd INTEGER, away_team VARCHAR)
Question: What was the size of the largest crowd that Essendon played in front of as the away team?
Here is the SQLite q... | The SQLite query you've provided looks correct. It retrieves the maximum crowd size for matches where Essendon played as the away team. Here's the formatted SQL code:
```
SELECT MAX(crowd) FROM table_name_41 WHERE away_team = "essendon";
```
This query will return the largest crowd size from the `table_name_41` tabl... | 21,535 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_41 (crowd INTEGER, away_team VARCHAR)\n\n Question: What was the size of the largest crowd that Essendon played in fron... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (crowd INTEGER, venue VARCHAR)
Question: What was the average crowd at Western Oval?
Here is the SQLite query to answer to the question: What was the averag... | Here is the SQLite query to answer the question: What was the average crowd at Western Oval?:
```
SELECT AVG(crowd) FROM table_name_9 WHERE venue = "Western Oval";
``` | 21,536 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_9 (crowd INTEGER, venue VARCHAR)\n\n Question: What was the average crowd at 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_74 (crowd INTEGER, home_team VARCHAR)
Question: What is the sum of all the crowds that watched North Melbourne at home?
Here is the SQLite query to answer to ... | Your SQLite query is almost correct, but it's important to be mindful of the casing in string comparisons. If you're certain that the `home_team` values are consistently stored in lowercase (e.g., "north melbourne"), then your query is fine. However, if there may be variations in casing (such as "North Melbourne" or "N... | 21,537 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (crowd INTEGER, home_team VARCHAR)\n\n Question: What is the sum of all the crowds that watched North Melbourne at h... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (crowd VARCHAR, venue VARCHAR)
Question: What was the crowd size at Victoria Park?
Here is the SQLite query to answer to the question: What was the crowd s... | Here is the SQLite query to answer the question about the crowd size at Victoria Park:
```
SELECT crowd FROM table_name_18 WHERE venue = "Victoria Park";
``` | 21,538 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (crowd VARCHAR, venue VARCHAR)\n\n Question: What was the crowd size at Victoria Park?\n\nHere is the SQLite query t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (winning_score VARCHAR, margin_of_victory VARCHAR)
Question: What was the winning score when there were 9 strokes advantage?
Here is the SQLite query to an... | Here is the SQLite query to answer the question:
```
SELECT winning_score FROM table_name_82 WHERE margin_of_victory = "9 strokes"
``` | 21,539 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_82 (winning_score VARCHAR, margin_of_victory VARCHAR)\n\n Question: What was the winning score when there were 9 stroke... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (margin_of_victory VARCHAR, date VARCHAR)
Question: What was the margin of victory on Apr 23, 1967?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question about the margin of victory on Apr 23, 1967:
```
SELECT margin_of_victory FROM table_name_56 WHERE date = "Apr 23, 1967"
``` | 21,540 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_56 (margin_of_victory VARCHAR, date VARCHAR)\n\n Question: What was the margin of victory on Apr 23, 1967?\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_32 (make VARCHAR, driver VARCHAR)
Question: What make of car did Brian Vickers drive?
Here is the SQLite query to answer to the question: What make of car did... | Here is the SQLite query to answer the question: What make of car did Brian Vickers drive?:
```sql
SELECT make FROM table_name_32 WHERE driver = "Brian Vickers";
``` | 21,541 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (make VARCHAR, driver VARCHAR)\n\n Question: What make of car did Brian Vickers drive?\n\nHere is the SQLite query t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (car__number INTEGER, points VARCHAR)
Question: What is the average car number of all the drivers with 109 points?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about the average car number of all the drivers with 109 points:
```
SELECT AVG(car__number) FROM table_name_12 WHERE points = '109';
``` | 21,542 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_12 (car__number INTEGER, points VARCHAR)\n\n Question: What is the average car number of all the drivers with 109 point... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (car__number INTEGER, winnings VARCHAR)
Question: What is the average car number of all the drivers who have won $111,683?
Here is the SQLite query to answ... | The SQLite query you've provided is almost correct, but in SQLite, it's best to use single quotes for string literals. Here's the corrected version of the query wrapped in code blocks:
```
SELECT AVG(car__number) FROM table_name_21 WHERE winnings = '$111,683';
``` | 21,543 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_21 (car__number INTEGER, winnings VARCHAR)\n\n Question: What is the average car number of all the drivers who have won... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (crowd VARCHAR, home_team VARCHAR)
Question: How many people were in the crowd when Essendon was the home team?
Here is the SQLite query to answer to the q... | Your query is mostly correct, but to get the total number of people in the crowd when Essendon was the home team, you should be summing up the crowd values instead of counting them. However, since the `crowd` column is defined as VARCHAR, you need to convert it to an integer before performing the summation. Below is th... | 21,544 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_78 (crowd VARCHAR, home_team VARCHAR)\n\n Question: How many people were in the crowd when Essendon was the home team?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (home_team VARCHAR, away_team VARCHAR)
Question: Which home team competed against the away team Geelong?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question about which home team competed against the away team Geelong:
```sql
SELECT home_team FROM table_name_16 WHERE away_team = "Geelong";
``` | 21,545 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_16 (home_team VARCHAR, away_team VARCHAR)\n\n Question: Which home team competed against the away team Geelong?\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_32 (crowd INTEGER, venue VARCHAR)
Question: How many people were present in a total of every crowd at the MCG venue?
Here is the SQLite query to answer to the... | Your SQLite query is correct for calculating the total number of people present at the MCG venue. Here it is wrapped as requested:
```
SELECT SUM(crowd) FROM table_name_32 WHERE venue = "mcg";
``` | 21,546 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (crowd INTEGER, venue VARCHAR)\n\n Question: How many people were present in a total of every crowd at the MCG venue... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (home_team VARCHAR)
Question: What was the score for the home team of Essendon?
Here is the SQLite query to answer to the question: What was the score for ... | It looks like there's a misunderstanding in your question. The current schema you provided only includes a single column called `home_team`, which contains the names of the home teams. There is no score data available in this schema.
If you are trying to find the score for Essendon, you would need to have a score colu... | 21,547 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_71 (home_team VARCHAR)\n\n Question: What was the score for the home team of Essendon?\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_35 (crowd INTEGER, venue VARCHAR)
Question: What is the sum of all crowds present at the Glenferrie Oval venue?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question regarding the sum of all crowds present at the Glenferrie Oval venue:
```
SELECT SUM(crowd) FROM table_name_35 WHERE venue = "Glenferrie Oval";
``` | 21,548 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_35 (crowd INTEGER, venue VARCHAR)\n\n Question: What is the sum of all crowds present at the Glenferrie Oval venue?\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_28 (party VARCHAR, mayor VARCHAR)
Question: What party was achille variati afilliated with?
Here is the SQLite query to answer to the question: What party was... | Here is the SQLite query to answer the question about which party Achille Variati was affiliated with:
```
SELECT party FROM table_name_28 WHERE mayor = "achille variati";
``` | 21,549 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_28 (party VARCHAR, mayor VARCHAR)\n\n Question: What party was achille variati afilliated with?\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 (inhabitants INTEGER, party VARCHAR, election VARCHAR)
Question: In the election earlier than 2012 how many Inhabitants had a Party of five star movement?
... | Here is the SQLite query that answers your question:
```
SELECT SUM(inhabitants)
FROM table_name_57
WHERE party = 'five star movement' AND election < 2012;
``` | 21,550 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_57 (inhabitants INTEGER, party VARCHAR, election VARCHAR)\n\n Question: In the election earlier than 2012 how many Inha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (inhabitants VARCHAR, election VARCHAR, party VARCHAR, mayor VARCHAR)
Question: How many Inhabitants were in the democratic party for an election before 2009... | Here is the SQLite query to answer the question:
```
SELECT COUNT(inhabitants)
FROM table_name_3
WHERE party = "democratic party"
AND mayor = "stefano cimatti"
AND election < 2009;
``` | 21,551 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_3 (inhabitants VARCHAR, election VARCHAR, party VARCHAR, mayor VARCHAR)\n\n Question: How many Inhabitants were in the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (time VARCHAR, speed VARCHAR)
Question: At 96.76mph speed, what is the Time?
Here is the SQLite query to answer to the question: At 96.76mph speed, what is... | Here is the SQLite query to answer the question about the time at a speed of 96.76mph:
```
SELECT time FROM table_name_76 WHERE speed = "96.76mph"
``` | 21,552 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_76 (time VARCHAR, speed VARCHAR)\n\n Question: At 96.76mph speed, what is the Time?\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_92 (rider VARCHAR, time VARCHAR)
Question: Which Rider has a 1:06.02.0 Time?
Here is the SQLite query to answer to the question: Which Rider has a 1:06.02.0 T... | Here is the SQLite query to answer the question: Which Rider has a 1:06.02.0 Time?:
```
SELECT rider FROM table_name_92 WHERE time = "1:06.02.0";
``` | 21,553 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_92 (rider VARCHAR, time VARCHAR)\n\n Question: Which Rider has a 1:06.02.0 Time?\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_8 (rank VARCHAR, rider VARCHAR)
Question: How many Ranks have ray pickrell as a Rider?
Here is the SQLite query to answer to the question: How many Ranks have... | Here is the SQLite query to answer the question of how many ranks have Ray Pickrell as a rider:
```
SELECT COUNT(rank) FROM table_name_8 WHERE rider = "ray pickrell"
``` | 21,554 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (rank VARCHAR, rider VARCHAR)\n\n Question: How many Ranks have ray pickrell as a Rider?\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_49 (crowd INTEGER, away_team VARCHAR)
Question: What is the largest crowd when the away team is Hawthorn?
Here is the SQLite query to answer to the question: ... | Here's the SQLite query to find the largest crowd when the away team is Hawthorn:
```
SELECT MAX(crowd) FROM table_name_49 WHERE away_team = "Hawthorn";
``` | 21,555 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_49 (crowd INTEGER, away_team VARCHAR)\n\n Question: What is the largest crowd when the away team is Hawthorn?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (date VARCHAR, away_team VARCHAR)
Question: What date was the game when the away team was carlton?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question: What date was the game when the away team was carlton?:
```
SELECT date FROM table_name_45 WHERE away_team = "carlton";
``` | 21,556 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_45 (date VARCHAR, away_team VARCHAR)\n\n Question: What date was the game when the away team was carlton?\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_83 (away_team VARCHAR, crowd INTEGER)
Question: What is the score of the away team when the crowd was larger than 8,000?
Here is the SQLite query to answer to... | It looks like there is a misunderstanding in the question regarding the response. The query you provided does not actually return the score of the away team; it simply selects the `away_team` when the `crowd` is greater than 8,000. Also, if you want to retrieve any kind of "score," you should have a column in your sche... | 21,557 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_83 (away_team VARCHAR, crowd INTEGER)\n\n Question: What is the score of the away team when the crowd was larger than 8... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (away_team VARCHAR, venue VARCHAR)
Question: What was the away team when the game was at corio oval?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question "What was the away team when the game was at corio oval?":
```
SELECT away_team FROM table_name_53 WHERE venue = "corio oval"
``` | 21,558 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_53 (away_team VARCHAR, venue VARCHAR)\n\n Question: What was the away team when the game was at corio oval?\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_61 (location VARCHAR, year VARCHAR)
Question: What is the location in 2007?
Here is the SQLite query to answer to the question: What is the location in 2007?:... | Here is the SQLite query to answer the question about the location in 2007:
```
SELECT location FROM table_name_61 WHERE year = '2007'
``` | 21,559 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_61 (location VARCHAR, year VARCHAR)\n\n Question: What is the location in 2007?\n\nHere is the SQLite query to answer t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (date VARCHAR, theme VARCHAR)
Question: What date has a theme of fate or fortune?
Here is the SQLite query to answer to the question: What date has a theme... | It seems like the query needs to check for themes that could be either "fate" or "fortune." The correct SQLite query would use the `IN` clause or the `OR` operator to find dates with either of those themes.
Here is the corrected SQL query:
```
SELECT date FROM table_name_21 WHERE theme IN ("fate", "fortune")
```
or al... | 21,560 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_21 (date VARCHAR, theme VARCHAR)\n\n Question: What date has a theme of fate or fortune?\n\nHere is the SQLite query to... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (year INTEGER, location VARCHAR, anthem VARCHAR)
Question: What is the earliest year it was located in gelredome, arnhem, and a Anthem of technoboy - next d... | Your SQLite query is correctly structured to retrieve the earliest year for the specified location and anthem. Here it is wrapped as requested:
```
SELECT MIN(year) FROM table_name_74 WHERE location = "gelredome, arnhem" AND anthem = "technoboy - next dimensional world";
``` | 21,561 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (year INTEGER, location VARCHAR, anthem VARCHAR)\n\n Question: What is the earliest year it was located in gelredome... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (sweet_sixteen VARCHAR, conference VARCHAR)
Question: What Sweet Sixteen team is in the Colonial conference?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question "What Sweet Sixteen team is in the Colonial conference?":
```
SELECT sweet_sixteen FROM table_name_95 WHERE conference = "Colonial";
``` | 21,562 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_95 (sweet_sixteen VARCHAR, conference VARCHAR)\n\n Question: What Sweet Sixteen team is in the Colonial conference?\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_76 (date VARCHAR, label VARCHAR)
Question: What date is associated with the Spunk label?
Here is the SQLite query to answer to the question: What date is asso... | Here is the SQLite query to answer the question about the date associated with the Spunk label:
```
SELECT date FROM table_name_76 WHERE label = "Spunk"
``` | 21,563 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_76 (date VARCHAR, label VARCHAR)\n\n Question: What date is associated with the Spunk label?\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_2 (label VARCHAR, catalog VARCHAR)
Question: What label has a catalog of chem036cd?
Here is the SQLite query to answer to the question: What label has a catal... | Here is the SQLite query to answer the question: What label has a catalog of chem036cd?:
```
SELECT label FROM table_name_2 WHERE catalog = "chem036cd";
``` | 21,564 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_2 (label VARCHAR, catalog VARCHAR)\n\n Question: What label has a catalog of chem036cd?\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_86 (label VARCHAR, region VARCHAR, catalog VARCHAR)
Question: What label is associated with the United Kingdom and the chem036 catalog?
Here is the SQLite que... | Here is the SQLite query to answer the question about the label associated with the United Kingdom and the chem036 catalog:
```
SELECT label FROM table_name_86 WHERE region = "United Kingdom" AND catalog = "chem036";
``` | 21,565 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_86 (label VARCHAR, region VARCHAR, catalog VARCHAR)\n\n Question: What label is associated with the United Kingdom and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (crowd VARCHAR, away_team VARCHAR)
Question: What is the listed crowd when essendon is the away squad?
Here is the SQLite query to answer to the question: ... | To answer the question regarding the listed crowd when Essendon is the away squad, the following SQLite query can be used:
```sql
SELECT crowd FROM table_name_68 WHERE away_team = 'essendon';
```
This query will return the crowd value(s) for the records where Essendon is the away team. If you wanted to count the num... | 21,566 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_68 (crowd VARCHAR, away_team VARCHAR)\n\n Question: What is the listed crowd when essendon is the away squad?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (venue VARCHAR, crowd INTEGER)
Question: What venue featured a crowd of over 30,000?
Here is the SQLite query to answer to the question: What venue feature... | The provided SQL query is almost correct but contains unnecessary syntax. The `OFFSET` clause is not needed in this context since you're only interested in venues with a crowd over 30,000. Here's the corrected query:
```sql
SELECT venue FROM table_name_98 WHERE crowd > 30000;
```
This query will return the names of ... | 21,567 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_98 (venue VARCHAR, crowd INTEGER)\n\n Question: What venue featured a crowd of over 30,000?\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_28 (crowd VARCHAR, venue VARCHAR)
Question: What was the listed crowd at junction oval?
Here is the SQLite query to answer to the question: What was the liste... | Here is the SQLite query to answer the question about the listed crowd at Junction Oval:
```
SELECT crowd FROM table_name_28 WHERE venue = 'junction oval';
``` | 21,568 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_28 (crowd VARCHAR, venue VARCHAR)\n\n Question: What was the listed crowd at junction 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_97 (date VARCHAR, event VARCHAR)
Question: What date was the 1500 m freestyle competition?
Here is the SQLite query to answer to the question: What date was t... | Here is the SQLite query to answer the question regarding the date of the 1500 m freestyle competition:
```
SELECT date FROM table_name_97 WHERE event = "1500 m freestyle"
``` | 21,569 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_97 (date VARCHAR, event VARCHAR)\n\n Question: What date was the 1500 m freestyle competition?\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_3 (location VARCHAR, meet VARCHAR, time VARCHAR)
Question: Where were the 2008 championships with a time of 7:56.90 held?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question:
```sql
SELECT location FROM table_name_3 WHERE meet = "2008 championships" AND time = "7:56.90"
``` | 21,570 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_3 (location VARCHAR, meet VARCHAR, time VARCHAR)\n\n Question: Where were the 2008 championships with a time of 7:56.90... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (home_team VARCHAR)
Question: What is the home team score for Footscray?
Here is the SQLite query to answer to the question: What is the home team score fo... | Here is the corrected SQLite query to answer the question about the home team score for Footscray:
```sql
SELECT home_team FROM table_name_22 WHERE home_team = "Footscray";
```
Please note that the query is simply selecting the `home_team` as is, since the original table schema does not include a score column. If the... | 21,571 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_22 (home_team VARCHAR)\n\n Question: What is the home team score for Footscray?\n\nHere is the SQLite query to answer t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (home_team VARCHAR, venue VARCHAR)
Question: What home team played at western oval?
Here is the SQLite query to answer to the question: What home team playe... | Here is the SQLite query to answer the question: What home team played at western oval?:
```
SELECT home_team FROM table_name_9 WHERE venue = "western oval";
``` | 21,572 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_9 (home_team VARCHAR, venue VARCHAR)\n\n Question: What home team played at western oval?\n\nHere is the SQLite query t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (result VARCHAR, week VARCHAR)
Question: What was the score of the Browns week 4 game?
Here is the SQLite query to answer to the question: What was the sco... | To find the score of the Browns' week 4 game, you need to filter the results based on both the week and the team. Assuming you have a way to identify the Browns in your table, typically you'd have a separate column for the team name. However, given the provided schema, it appears the team information may not be current... | 21,573 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_48 (result VARCHAR, week VARCHAR)\n\n Question: What was the score of the Browns week 4 game?\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_89 (year VARCHAR, slogan VARCHAR)
Question: What year has the wild side of soccer! as the slogan?
Here is the SQLite query to answer to the question: What yea... | Here is the SQLite query to answer the question about which year has the slogan "the wild side of soccer!":
```
SELECT year FROM table_name_89 WHERE slogan = "the wild side of soccer!";
``` | 21,574 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_89 (year VARCHAR, slogan VARCHAR)\n\n Question: What year has the wild side of soccer! as the slogan?\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_20 (lner_1946_no VARCHAR, year VARCHAR, lner_no VARCHAR)
Question: Which LNER 1946 number is from 1892 and has an LNER number of 7347–7356?
Here is the SQLite... | Here's the SQLite query you've requested, formatted properly:
```sql
SELECT lner_1946_no
FROM table_name_20
WHERE year = "1892" AND lner_no = "7347–7356";
``` | 21,575 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (lner_1946_no VARCHAR, year VARCHAR, lner_no VARCHAR)\n\n Question: Which LNER 1946 number is from 1892 and has an 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 (lner_1946_no VARCHAR, order_no VARCHAR)
Question: What is order S24's LNER 1946 number?
Here is the SQLite query to answer to the question: What is order ... | Here is the SQLite query to find order S24's LNER 1946 number:
```
SELECT lner_1946_no FROM table_name_88 WHERE order_no = "S24";
``` | 21,576 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (lner_1946_no VARCHAR, order_no VARCHAR)\n\n Question: What is order S24's LNER 1946 number?\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_85 (away_team VARCHAR, venue VARCHAR)
Question: Who is the away side at corio oval?
Here is the SQLite query to answer to the question: Who is the away side a... | Here is the SQLite query to answer the question: Who is the away side at corio oval?:
```
SELECT away_team FROM table_name_85 WHERE venue = "corio oval";
``` | 21,577 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_85 (away_team VARCHAR, venue VARCHAR)\n\n Question: Who is the away side at corio oval?\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_47 (home_team VARCHAR, away_team VARCHAR)
Question: Who is the home team when melbourne is the away team?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question: Who is the home team when melbourne is the away team?:
```sql
SELECT home_team AS score FROM table_name_47 WHERE away_team = "melbourne"
``` | 21,578 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_47 (home_team VARCHAR, away_team VARCHAR)\n\n Question: Who is the home team when melbourne is the away team?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (venue VARCHAR, away_team VARCHAR)
Question: What is the venue when fitzroy was the away team?
Here is the SQLite query to answer to the question: What is ... | Here is the SQLite query to answer the question: What is the venue when fitzroy was the away team?:
```
SELECT venue FROM table_name_80 WHERE away_team = 'fitzroy';
``` | 21,579 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_80 (venue VARCHAR, away_team VARCHAR)\n\n Question: What is the venue when fitzroy was the away team?\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_51 (date VARCHAR, venue VARCHAR)
Question: What day does the team play at punt road oval?
Here is the SQLite query to answer to the question: What day does th... | ```sql
SELECT date FROM table_name_51 WHERE venue = "punt road oval";
``` | 21,580 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_51 (date VARCHAR, venue VARCHAR)\n\n Question: What day does the team play at punt road oval?\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_30 (week VARCHAR, attendance INTEGER)
Question: How many weeks had an attendance larger than 84,816?
Here is the SQLite query to answer to the question: How m... | It looks like there is a small mistake in your query regarding the use of the OFFSET clause and the value you're comparing against. The correct SQL query should simply count the number of weeks where the attendance is greater than 84,816 without the OFFSET. Here's the correct query:
```sql
SELECT COUNT(week) FROM tabl... | 21,581 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_30 (week VARCHAR, attendance INTEGER)\n\n Question: How many weeks had an attendance larger than 84,816?\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_57 (date VARCHAR, week VARCHAR)
Question: What is the date of week 4?
Here is the SQLite query to answer to the question: What is the date of week 4?:
```
SEL... | Here is the correct SQLite query to find the date of week 4, formatted as requested:
```
SELECT date FROM table_name_57 WHERE week = '4'
```
Note that the comparison value for the week should be a string since the week column is of VARCHAR type. | 21,582 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_57 (date VARCHAR, week VARCHAR)\n\n Question: What is the date of week 4?\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_52 (attendance INTEGER, date VARCHAR)
Question: What is the lowest attendance on September 3, 1972?
Here is the SQLite query to answer to the question: What i... | Here is the SQLite query to answer the question about the lowest attendance on September 3, 1972:
```sql
SELECT MIN(attendance) FROM table_name_52 WHERE date = "september 3, 1972";
``` | 21,583 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_52 (attendance INTEGER, date VARCHAR)\n\n Question: What is the lowest attendance on September 3, 1972?\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_65 (away_team VARCHAR, venue VARCHAR)
Question: Who was the away team at the game at Victoria Park?
Here is the SQLite query to answer to the question: Who wa... | Here is the SQLite query to answer the question about the away team at the game at Victoria Park:
```
SELECT away_team FROM table_name_65 WHERE venue = "Victoria Park";
``` | 21,584 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_65 (away_team VARCHAR, venue VARCHAR)\n\n Question: Who was the away team at the game at Victoria Park?\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_38 (date VARCHAR, away_team VARCHAR)
Question: When was the game when Footscray was the away team?
Here is the SQLite query to answer to the question: When wa... | Here is the SQLite query to answer the question regarding when Footscray was the away team:
```
SELECT date FROM table_name_38 WHERE away_team = "footscray";
``` | 21,585 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (date VARCHAR, away_team VARCHAR)\n\n Question: When was the game when Footscray was the away team?\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_41 (laps INTEGER, points VARCHAR)
Question: What is the highest number of laps for the driver with 5 points?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer your question about the highest number of laps for the driver with 5 points:
```
SELECT MAX(laps) FROM table_name_41 WHERE points = "5";
``` | 21,586 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_41 (laps INTEGER, points VARCHAR)\n\n Question: What is the highest number of laps for the driver with 5 points?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (team VARCHAR, driver VARCHAR)
Question: What team does jan heylen race for?
Here is the SQLite query to answer to the question: What team does jan heylen ... | Here is the SQLite query to answer the question: What team does jan heylen race for?:
```
SELECT team FROM table_name_35 WHERE driver = "jan heylen";
``` | 21,587 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_35 (team VARCHAR, driver VARCHAR)\n\n Question: What team does jan heylen race for?\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_14 (result VARCHAR, week VARCHAR, date VARCHAR)
Question: What was the result of the game after Week 13 on December 8, 1991?
Here is the SQLite query to answe... | Here's the SQLite query to answer the question based on the provided schema:
```
SELECT result FROM table_name_14 WHERE week > '13' AND date = 'december 8, 1991';
``` | 21,588 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_14 (result VARCHAR, week VARCHAR, date VARCHAR)\n\n Question: What was the result of the game after Week 13 on December... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (opponent VARCHAR, week VARCHAR)
Question: Who did the Patriots play in week 4?
Here is the SQLite query to answer to the question: Who did the Patriots pl... | Here is the SQLite query to answer the question: Who did the Patriots play in week 4?:
```
SELECT opponent FROM table_name_43 WHERE week = '4' AND opponent = 'Patriots';
```
Note: I assumed that the opponents are recorded in the same table and modified the query to include the condition for the Patriots. If the tabl... | 21,589 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_43 (opponent VARCHAR, week VARCHAR)\n\n Question: Who did the Patriots play in week 4?\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_37 (result VARCHAR, date VARCHAR)
Question: What was the result of the game on December 22, 1991?
Here is the SQLite query to answer to the question: What was... | Here is the SQLite query to answer your question regarding the result of the game on December 22, 1991:
```
SELECT result FROM table_name_37 WHERE date = 'December 22, 1991';
``` | 21,590 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_37 (result VARCHAR, date VARCHAR)\n\n Question: What was the result of the game on December 22, 1991?\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_99 (silver INTEGER, rank INTEGER)
Question: What is the fewest number of silver medals a nation who ranked below 8 received?
Here is the SQLite query to answe... | Your SQLite query is correct for retrieving the fewest number of silver medals received by a nation that ranked below 8. Here it is wrapped as requested:
```
SELECT MIN(silver) FROM table_name_99 WHERE rank > 8;
``` | 21,591 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_99 (silver INTEGER, rank INTEGER)\n\n Question: What is the fewest number of silver medals a nation who ranked below 8 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (place INTEGER, time VARCHAR, points VARCHAR, machine VARCHAR)
Question: Which place has points larger than 1, a bmw machine, and a time of 1:18.47.6?
Here... | Here is the SQLite query to answer the question regarding which place has points larger than 1, a BMW machine, and a time of 1:18.47.6:
```
SELECT place FROM table_name_44 WHERE points > 1 AND machine = 'bmw' AND time = '1:18.47.6'
``` | 21,592 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_44 (place INTEGER, time VARCHAR, points VARCHAR, machine VARCHAR)\n\n Question: Which place has points larger than 1, a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (laps VARCHAR, make VARCHAR, winnings VARCHAR)
Question: How many total laps did the Chevrolet that won $97,508 make?
Here is the SQLite query to answer to... | Your SQLite query is almost correct, but to count the total laps, you may need to sum them if the `laps` are stored as numeric values rather than strings. Assuming that `laps` is indeed a string and represents numeric values, you'll want to convert it to an integer for proper summation. Here's an updated version of the... | 21,593 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_53 (laps VARCHAR, make VARCHAR, winnings VARCHAR)\n\n Question: How many total laps did the Chevrolet that won $97,508 ... | |
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, venue VARCHAR)
Question: What away team played at Brunswick Street Oval?
Here is the SQLite query to answer to the question: What away ... | Here is the SQLite query to answer the question regarding the away team that played at Brunswick Street Oval:
```
SELECT away_team FROM table_name_23 WHERE venue = "Brunswick Street Oval";
``` | 21,594 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (away_team VARCHAR, venue VARCHAR)\n\n Question: What away team played at Brunswick Street 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_10 (attendance INTEGER, week INTEGER)
Question: What is the average attendance after week 16?
Here is the SQLite query to answer to the question: What is the ... | Here is the SQLite query to answer the question about the average attendance after week 16:
```sql
SELECT AVG(attendance) FROM table_name_10 WHERE week > 16;
``` | 21,595 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_10 (attendance INTEGER, week INTEGER)\n\n Question: What is the average attendance after week 16?\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_83 (injured VARCHAR, place VARCHAR, killed VARCHAR)
Question: How many people were injured in total in East Champaran, Bihar with more than 2 people killed?
H... | Here is the corrected SQLite query to answer the question about the total number of people injured in East Champaran, Bihar, where more than 2 people were killed:
```
SELECT SUM(injured) FROM table_name_83 WHERE place = "East Champaran, Bihar" AND CAST(killed AS INTEGER) > 2
```
Note: I'm assuming the `injured` and `... | 21,596 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_83 (injured VARCHAR, place VARCHAR, killed VARCHAR)\n\n Question: How many people were injured in total in East Champar... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (injured INTEGER, place VARCHAR, killed VARCHAR)
Question: What is the least amount of injuries in Dantewada, Chhattisgarh when 8 people were killed?
Here ... | Here is the SQLite query to answer the question about the least amount of injuries in Dantewada, Chhattisgarh when 8 people were killed:
```
SELECT MIN(injured) FROM table_name_83 WHERE place = "Dantewada, Chhattisgarh" AND killed = "8";
``` | 21,597 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_83 (injured INTEGER, place VARCHAR, killed VARCHAR)\n\n Question: What is the least amount of injuries in Dantewada, Ch... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (home_team VARCHAR, venue VARCHAR)
Question: Which team plays home at Princes Park?
Here is the SQLite query to answer to the question: Which team plays ho... | Here is the SQLite query to answer the question "Which team plays home at Princes Park?":
```
SELECT home_team FROM table_name_45 WHERE venue = "Princes Park";
``` | 21,598 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_45 (home_team VARCHAR, venue VARCHAR)\n\n Question: Which team plays home at Princes Park?\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_58 (crowd INTEGER, away_team VARCHAR)
Question: Which match where Hawthorn was the away team had the largest crowd?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question regarding which match where Hawthorn was the away team had the largest crowd:
```
SELECT MAX(crowd) FROM table_name_58 WHERE away_team = "hawthorn";
``` | 21,599 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_58 (crowd INTEGER, away_team VARCHAR)\n\n Question: Which match where Hawthorn was the away team had the largest crowd?... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.