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_91 (_jerk VARCHAR, clean_ INTEGER, snatch VARCHAR, bodyweight VARCHAR)
Question: What is the biggest clean and jerk number when snatch was less than 150 and th... | Your query has a small syntax error. The correct way to select the maximum clean and jerk number while filtering based on the conditions is to use a proper aggregation function. Here’s the corrected SQLite query:
```sql
SELECT MAX(clean_) AS max_clean_and_jerk
FROM table_name_91
WHERE CAST(snatch AS INTEGER) < 150 AND... | 14,700 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_91 (_jerk VARCHAR, clean_ INTEGER, snatch VARCHAR, bodyweight VARCHAR)\n\n Question: What is the biggest clean and jerk... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (name VARCHAR, snatch VARCHAR, bodyweight VARCHAR, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
Question: Which name had a bodyweight bigger than 89.6... | There is a small issue in your query regarding the condition for `clean_` and `_jerk`. You need to handle `clean_` and `_jerk` as separate fields and check them individually. Based on the conditions you provided, here is the corrected SQLite query:
```sql
SELECT name
FROM table_name_89
WHERE bodyweight > 89.64
AN... | 14,701 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_89 (name VARCHAR, snatch VARCHAR, bodyweight VARCHAR, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR)\n\n Question: ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (home_team VARCHAR, venue VARCHAR)
Question: What is the home team's score for the game at Junction Oval?
Here is the SQLite query to answer to the questio... | It looks like there might be a misunderstanding in your query. The provided schema (`CREATE TABLE table_name_42 (home_team VARCHAR, venue VARCHAR)`) does not indicate that there is a column for scores. It only has columns for `home_team` and `venue`. Therefore, the query cannot return the home team's score since that i... | 14,702 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_42 (home_team VARCHAR, venue VARCHAR)\n\n Question: What is the home team's score for the game at Junction Oval?\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_8 (club VARCHAR, replacement VARCHAR)
Question: Tell me the club with a replacement of alberto malesani
Here is the SQLite query to answer to the question: Te... | Here is the SQLite query to answer the question: Tell me the club with a replacement of alberto malesani:
```
SELECT club FROM table_name_8 WHERE replacement = "alberto malesani"
``` | 14,703 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (club VARCHAR, replacement VARCHAR)\n\n Question: Tell me the club with a replacement of alberto malesani\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_67 (club VARCHAR, date_of_appointment VARCHAR)
Question: Name the club with date of appointment of 1 november 2007
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question about naming the club with a date of appointment of 1 November 2007:
```
SELECT club FROM table_name_67 WHERE date_of_appointment = "1 november 2007";
``` | 14,704 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_67 (club VARCHAR, date_of_appointment VARCHAR)\n\n Question: Name the club with date of appointment of 1 november 2007\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (pick INTEGER, player VARCHAR)
Question: What's the total number of picks of a team that had june longalong?
Here is the SQLite query to answer to the ques... | Here's the SQLite query to answer the question about the total number of picks of a team that had June Longalong:
```sql
SELECT SUM(pick) FROM table_name_28 WHERE player = "june longalong";
``` | 14,705 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_28 (pick INTEGER, player VARCHAR)\n\n Question: What's the total number of picks of a team that had june longalong?\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_7 (pick INTEGER, school VARCHAR)
Question: What is the pick number for School of lsu?
Here is the SQLite query to answer to the question: What is the pick num... | Your current SQL query uses `SUM(pick)`, which would be appropriate if you wanted the total of all pick numbers for "lsu". If you just want the pick number for "School of LSU", you may want to select the pick directly, assuming there is a single entry for "lsu".
Here’s a refined SQL query that selects the pick number... | 14,706 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_7 (pick INTEGER, school VARCHAR)\n\n Question: What is the pick number for School of lsu?\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_2 (round INTEGER, school VARCHAR)
Question: What's the average round number for East Carolina?
Here is the SQLite query to answer to the question: What's the ... | Here is the SQLite query to calculate the average round number for East Carolina:
```sql
SELECT AVG(round) FROM table_name_2 WHERE school = "East Carolina";
``` | 14,707 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_2 (round INTEGER, school VARCHAR)\n\n Question: What's the average round number for East Carolina?\n\nHere is the SQLit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (round VARCHAR, position VARCHAR)
Question: Which round has an offensive tackle position?
Here is the SQLite query to answer to the question: Which round ha... | Here is the SQLite query to answer the question "Which round has an offensive tackle position?":
```
SELECT round FROM table_name_7 WHERE position = "offensive tackle";
``` | 14,708 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_7 (round VARCHAR, position VARCHAR)\n\n Question: Which round has an offensive tackle position?\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_54 (home_team VARCHAR, venue VARCHAR)
Question: What is the home team at princes park?
Here is the SQLite query to answer to the question: What is the home te... | Here is the SQLite query to answer the question: What is the home team at princes park?:
```
SELECT home_team FROM table_name_54 WHERE venue = "princes park"
``` | 14,709 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_54 (home_team VARCHAR, venue VARCHAR)\n\n Question: What is the home team 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_87 (home_team VARCHAR, venue VARCHAR)
Question: What is the home team for Windy Hill?
Here is the SQLite query to answer to the question: What is the home tea... | Here is the SQLite query to answer the question: What is the home team for Windy Hill?:
```
SELECT home_team FROM table_name_87 WHERE venue = "Windy Hill";
``` | 14,710 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (home_team VARCHAR, venue VARCHAR)\n\n Question: What is the home team for Windy Hill?\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_21 (home_team VARCHAR, venue VARCHAR)
Question: What is the home team of Lake Oval?
Here is the SQLite query to answer to the question: What is the home team ... | ```sql
SELECT home_team FROM table_name_21 WHERE venue = "Lake Oval";
``` | 14,711 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_21 (home_team VARCHAR, venue VARCHAR)\n\n Question: What is the home team of Lake 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_57 (date VARCHAR, golden_tickets VARCHAR)
Question: What was the date when there were 26 golden tickets?
Here is the SQLite query to answer to the question: W... | Your query is almost correct, but the `golden_tickets` column is defined as a `VARCHAR`, which means it holds string values. Therefore, if you want to compare it with a numeric value like 26, you should treat it as a string. Here's the corrected query:
```
SELECT date FROM table_name_57 WHERE golden_tickets = '26'
```... | 14,712 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_57 (date VARCHAR, golden_tickets VARCHAR)\n\n Question: What was the date when there were 26 golden tickets?\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_40 (date VARCHAR, first_audition_venue VARCHAR)
Question: What was the date when the first audition venue was Kemper Arena?
Here is the SQLite query to answer... | Your SQLite query to find the date when the first audition venue was Kemper Arena is correct. Here it is, wrapped as requested:
```
SELECT date FROM table_name_40 WHERE first_audition_venue = "Kemper Arena";
```
Note that I capitalized "Kemper Arena" in the query to match the typical casing of proper nouns, but you ... | 14,713 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_40 (date VARCHAR, first_audition_venue VARCHAR)\n\n Question: What was the date when the first audition venue was Kempe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (audition_city VARCHAR, callback_venue VARCHAR)
Question: Which audition city held callbacks at Amelia Island Plantation?
Here is the SQLite query to answe... | Your query is correct. Here it is wrapped in the specified format:
```
SELECT audition_city FROM table_name_81 WHERE callback_venue = "amelia island plantation";
``` | 14,714 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_81 (audition_city VARCHAR, callback_venue VARCHAR)\n\n Question: Which audition city held callbacks at Amelia Island Pl... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (golden_tickets VARCHAR, audition_city VARCHAR)
Question: How many golden tickets were given out when the auditions were held in San Francisco, California?
... | Here is the SQLite query to answer the question about how many golden tickets were given out when the auditions were held in San Francisco, California:
```
SELECT COUNT(golden_tickets) FROM table_name_51 WHERE audition_city = 'san francisco, california';
``` | 14,715 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_51 (golden_tickets VARCHAR, audition_city VARCHAR)\n\n Question: How many golden tickets were given out when the auditi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (callback_venue VARCHAR, audition_city VARCHAR)
Question: What was the callback venue for the Phoenix, Arizona auditions?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question about the callback venue for the Phoenix, Arizona auditions:
```
SELECT callback_venue FROM table_name_15 WHERE audition_city = "Phoenix, Arizona";
``` | 14,716 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_15 (callback_venue VARCHAR, audition_city VARCHAR)\n\n Question: What was the callback venue for the Phoenix, Arizona a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (Callback VARCHAR, date VARCHAR)
Question: What was the callback date for the auditions held on July 29, 2008?
Here is the SQLite query to answer to the qu... | The provided query incorrectly uses the `date` column to filter for "july 29, 2008", which assumes that the date of the audition is stored in the same column as the callbacks. Assuming that the `date` column actually represents the date of the auditions and you're looking for the corresponding `Callback`, the query sho... | 14,717 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_28 (Callback VARCHAR, date VARCHAR)\n\n Question: What was the callback date for the auditions held on July 29, 2008?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (date VARCHAR, high_assists VARCHAR)
Question: On which date was the high assists Delonte West Earl Watson (6)?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question about the date when Delonte West Earl Watson achieved high assists (6):
```
SELECT date FROM table_name_78 WHERE high_assists = "6";
``` | 14,718 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_78 (date VARCHAR, high_assists VARCHAR)\n\n Question: On which date was the high assists Delonte West Earl Watson (6)?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (laps VARCHAR, driver VARCHAR, grid VARCHAR)
Question: How many laps for ukyo katayama with a grid under 16?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question: How many laps for ukyo katayama with a grid under 16?:
```
SELECT COUNT(laps) FROM table_name_69 WHERE driver = "ukyo katayama" AND grid < 16
``` | 14,719 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_69 (laps VARCHAR, driver VARCHAR, grid VARCHAR)\n\n Question: How many laps for ukyo katayama with a grid under 16?\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_34 (grid VARCHAR, time_retired VARCHAR)
Question: What grid has a Time/Retired of +5 laps?
Here is the SQLite query to answer to the question: What grid has a... | Here is the SQLite query to answer the question "What grid has a Time/Retired of +5 laps?":
```
SELECT grid FROM table_name_34 WHERE time_retired = '+5 laps';
``` | 14,720 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_34 (grid VARCHAR, time_retired VARCHAR)\n\n Question: What grid has a Time/Retired of +5 laps?\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_46 (away_team VARCHAR, tie_no VARCHAR)
Question: Which away team that had 48 as a Tie no?
Here is the SQLite query to answer to the question: Which away team ... | Here is the SQLite query to answer the question regarding which away team had a Tie no of 48:
```
SELECT away_team FROM table_name_46 WHERE tie_no = "48";
``` | 14,721 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_46 (away_team VARCHAR, tie_no VARCHAR)\n\n Question: Which away team that had 48 as a Tie no?\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_47 (score VARCHAR, tie_no VARCHAR)
Question: What's the score during a game than had a tie no of 19?
Here is the SQLite query to answer to the question: What'... | Here is the SQLite query to answer the question regarding the score during a game that had a tie number of 19:
```sql
SELECT score FROM table_name_47 WHERE tie_no = "19";
``` | 14,722 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_47 (score VARCHAR, tie_no VARCHAR)\n\n Question: What's the score during a game than had a tie no of 19?\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_47 (attendance VARCHAR, home_team VARCHAR)
Question: How many people attended the game of a.f.c. totton?
Here is the SQLite query to answer to the question: H... | The provided SQL query retrieves the attendance records for matches where "a.f.c. totton" is the home team, but it doesn't actually count the number of attendees. To get the total attendance, you should use the `SUM` function if the attendance is numeric (assuming attendance is in a format that can be summed). Here's t... | 14,723 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_47 (attendance VARCHAR, home_team VARCHAR)\n\n Question: How many people attended the game of a.f.c. totton?\n\nHere is... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (attendance VARCHAR, tie_no VARCHAR)
Question: How many people attended the game with a Tie no of 30?
Here is the SQLite query to answer to the question: H... | To count the number of people who attended the game with a Tie no of 30, you need to use the `COUNT()` function instead of selecting the `attendance` directly. Here's the corrected SQLite query:
```sql
SELECT COUNT(*) AS number_of_attendees
FROM table_name_88
WHERE tie_no = '30';
``` | 14,724 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (attendance VARCHAR, tie_no VARCHAR)\n\n Question: How many people attended the game with a Tie no of 30?\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_19 (home_team VARCHAR, venue VARCHAR)
Question: What was the score of the home team at junction oval?
Here is the SQLite query to answer to the question: What... | It looks like there may be a misunderstanding in the question regarding the database schema provided. The schema for `table_name_19` only includes the names of the home teams and the venue, but it does not include any information about scores. To properly answer the question about the score of the home team at "junctio... | 14,725 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_19 (home_team VARCHAR, venue VARCHAR)\n\n Question: What was the score of the home team at junction oval?\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_54 (away_team VARCHAR, venue VARCHAR)
Question: Which away team is based at glenferrie oval?
Here is the SQLite query to answer to the question: Which away te... | Here is the SQLite query to answer the question about which away team is based at Glenferrie Oval:
```
SELECT away_team FROM table_name_54 WHERE venue = "glenferrie oval"
``` | 14,726 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_54 (away_team VARCHAR, venue VARCHAR)\n\n Question: Which away team is based at glenferrie oval?\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_70 (date VARCHAR, visiting_team VARCHAR, final_score VARCHAR)
Question: What is the date the new york giants were the visiting team and the Final Score was 37-... | Here is the SQLite query to answer the question regarding the New York Giants as the visiting team with a final score of 37-34:
```
SELECT date FROM table_name_70 WHERE visiting_team = "new york giants" AND final_score = "37-34";
``` | 14,727 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (date VARCHAR, visiting_team VARCHAR, final_score VARCHAR)\n\n Question: What is the date the new york giants were t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (visiting_team VARCHAR, date VARCHAR)
Question: What was the visiting team on october 23?
Here is the SQLite query to answer to the question: What was the ... | Here is the SQLite query to answer the question:
```
SELECT visiting_team FROM table_name_10 WHERE date = "october 23";
``` | 14,728 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_10 (visiting_team VARCHAR, date VARCHAR)\n\n Question: What was the visiting team on october 23?\n\nHere is the SQLite ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (host_team VARCHAR, date VARCHAR)
Question: What team was the host on september 11?
Here is the SQLite query to answer to the question: What team was the h... | Here is the SQLite query to answer the question about which team was the host on September 11:
```
SELECT host_team FROM table_name_37 WHERE date = "september 11";
``` | 14,729 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_37 (host_team VARCHAR, date VARCHAR)\n\n Question: What team was the host on september 11?\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_65 (stadium VARCHAR, date VARCHAR)
Question: What stadium was the game played in on november 20?
Here is the SQLite query to answer to the question: What stad... | Here is the SQLite query to answer the question regarding the stadium where the game was played on November 20:
```sql
SELECT stadium FROM table_name_65 WHERE date = "november 20";
``` | 14,730 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_65 (stadium VARCHAR, date VARCHAR)\n\n Question: What stadium was the game played in on november 20?\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_35 (date VARCHAR, final_score VARCHAR)
Question: What date was the final Score of 17-34?
Here is the SQLite query to answer to the question: What date was the... | Here is the SQLite query to answer the question about the date when the final score was 17-34:
```sql
SELECT date FROM table_name_35 WHERE final_score = "17-34";
``` | 14,731 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_35 (date VARCHAR, final_score VARCHAR)\n\n Question: What date was the final Score of 17-34?\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_88 (stadium VARCHAR, final_score VARCHAR)
Question: What stadium was the game held in when the final score was 17-31?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about the stadium where the final score was 17-31:
```
SELECT stadium FROM table_name_88 WHERE final_score = "17-31";
``` | 14,732 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (stadium VARCHAR, final_score VARCHAR)\n\n Question: What stadium was the game held in when the final score was 17-3... | |
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, home_team VARCHAR)
Question: When the home team was geelong, what did the away team score?
Here is the SQLite query to answer to the que... | It seems that there is a misunderstanding regarding the provided query; it attempts to select the `away_team` but labels it as `score`, which might not effectively convey the intended request regarding what the away team scored. The existing schema does not include any score data; it only lists the teams.
If we assum... | 14,733 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_6 (away_team VARCHAR, home_team VARCHAR)\n\n Question: When the home team was geelong, what did the away team score?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (suburb VARCHAR, date_first_settled_as_a_suburb VARCHAR)
Question: Which Suburb was First Settled as a Suburb in 1962?
Here is the SQLite query to answer t... | The SQLite query to find the suburb that was first settled as a suburb in 1962 is almost correct, but the value for the `date_first_settled_as_a_suburb` should be enclosed in single quotes if it’s a string. Here is the corrected query wrapped in code formatting:
```
SELECT suburb FROM table_name_54 WHERE date_first_se... | 14,734 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_54 (suburb VARCHAR, date_first_settled_as_a_suburb VARCHAR)\n\n Question: Which Suburb was First Settled as a Suburb in... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (area__km²_ INTEGER, density___km²_ VARCHAR)
Question: What's the Area with a Density of 263?
Here is the SQLite query to answer to the question: What's th... | The provided SQLite query seems to contain a misunderstanding regarding the data type of the `density___km²_` column, as it is defined as `VARCHAR`. To compare against an integer value like `263`, you should use a string, which typically requires quotes in SQL.
The corrected query to find the Area with a Density of 26... | 14,735 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_10 (area__km²_ INTEGER, density___km²_ VARCHAR)\n\n Question: What's the Area with a Density of 263?\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_17 (area__km²_ INTEGER, mean_household_size__in_2006_ VARCHAR)
Question: What is the highest Area that has a Mean Household Size of 3.1 persons?
Here is the S... | Here is the SQLite query to find the highest area that has a mean household size of 3.1 persons:
```
SELECT MAX(area__km²_) FROM table_name_17 WHERE mean_household_size__in_2006_ = '3.1 persons';
``` | 14,736 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_17 (area__km²_ INTEGER, mean_household_size__in_2006_ VARCHAR)\n\n Question: What is the highest Area that has a Mean H... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (game_site VARCHAR, attendance VARCHAR, kickoff_ VARCHAR, a_ VARCHAR)
Question: Which game site Kickoff [a] of 1:00, and an Attendance of 63,251?
Here is t... | Here's the corrected and properly formatted SQLite query to answer the question:
```sql
SELECT game_site
FROM table_name_53
WHERE kickoff_ = "1:00" AND attendance = "63,251";
```
Make sure to use the correct column names as defined in the schema. | 14,737 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_53 (game_site VARCHAR, attendance VARCHAR, kickoff_ VARCHAR, a_ VARCHAR)\n\n Question: Which game site Kickoff [a] of 1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (date VARCHAR, opponent VARCHAR, kickoff_ VARCHAR, a_ VARCHAR)
Question: Which date has a Kickoff [a] of 4:00, and an Opponent of detroit lions?
Here is th... | Your SQLite query needs a few corrections regarding the column names as they are mentioned in the schema.
The correct way to reference the column names in your query should not include brackets or quotes around them. Here's the corrected SQL query:
```sql
SELECT date FROM table_name_34 WHERE kickoff_ = "4:00" AND op... | 14,738 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_34 (date VARCHAR, opponent VARCHAR, kickoff_ VARCHAR, a_ VARCHAR)\n\n Question: Which date has a Kickoff [a] of 4:00, a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (attendance VARCHAR, week VARCHAR)
Question: What is the attendance in week 15?
Here is the SQLite query to answer to the question: What is the attendance ... | Here is the SQLite query to answer the question about attendance in week 15:
```
SELECT attendance FROM table_name_25 WHERE week = "15";
``` | 14,739 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_25 (attendance VARCHAR, week VARCHAR)\n\n Question: What is the attendance in week 15?\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_32 (laps INTEGER, driver VARCHAR)
Question: What is the lowest number of laps obtained by driver Nick Heidfeld?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question about the lowest number of laps obtained by driver Nick Heidfeld:
```
SELECT MIN(laps) FROM table_name_32 WHERE driver = "Nick Heidfeld";
``` | 14,740 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (laps INTEGER, driver VARCHAR)\n\n Question: What is the lowest number of laps obtained by driver Nick Heidfeld?\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_68 (percent_yes VARCHAR, jurisdiction VARCHAR, percent_no VARCHAR)
Question: What is the percent yes of Alberta, which had a percent no larger than 60.2?
Here... | Your SQL query has a small issue. You're attempting to count the `percent_yes`, but you should be selecting the `percent_yes` value directly. Also, since `percent_no` is stored as a `VARCHAR`, you should cast it to a numeric type to perform the comparison correctly. Here’s the correct query:
```sql
SELECT percent_yes ... | 14,741 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_68 (percent_yes VARCHAR, jurisdiction VARCHAR, percent_no VARCHAR)\n\n Question: What is the percent yes of Alberta, wh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (voted_yes VARCHAR, jurisdiction VARCHAR, voted_no VARCHAR)
Question: What is the total number of yes votes in Newfoundland, which had less than 77,881 vote... | It looks like there was a small mistake in your query regarding the syntax used to filter the "voted_no" column. The query should properly check for a value less than 77,881 without the use of "OFFSET". Here's the corrected version of your SQL query:
```sql
SELECT SUM(voted_yes) FROM table_name_49 WHERE jurisdiction =... | 14,742 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_49 (voted_yes VARCHAR, jurisdiction VARCHAR, voted_no VARCHAR)\n\n Question: What is the total number of yes votes in N... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (percent_yes INTEGER, jurisdiction VARCHAR, percent_no VARCHAR)
Question: What is the highest percent of yes Alberta, which had less than 60.2 vote no, has?... | Your SQLite query is almost correct, but keep in mind that the `percent_no` column is defined as a `VARCHAR` in the schema. Therefore, you will need to cast the `percent_no` values to a numeric type for the comparison to work correctly.
Here is the revised query:
```
SELECT MAX(percent_yes)
FROM table_name_29
WHERE... | 14,743 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_29 (percent_yes INTEGER, jurisdiction VARCHAR, percent_no VARCHAR)\n\n Question: What is the highest percent of yes Alb... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (away_team VARCHAR, home_team VARCHAR)
Question: What team was the away team when Footscray was the home team?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question about what team was the away team when Footscray was the home team:
```
SELECT away_team FROM table_name_19 WHERE home_team = 'Footscray';
``` | 14,744 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_19 (away_team VARCHAR, home_team VARCHAR)\n\n Question: What team was the away team when Footscray was the home 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_64 (crowd VARCHAR, home_team VARCHAR)
Question: What was the size of the crowd when North Melbourne was the home team?
Here is the SQLite query to answer to t... | Your SQLite query is correctly structured to retrieve the size of the crowd when North Melbourne was the home team. Here it is wrapped in the appropriate code block:
```
SELECT crowd FROM table_name_64 WHERE home_team = "north melbourne";
``` | 14,745 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (crowd VARCHAR, home_team VARCHAR)\n\n Question: What was the size of the crowd when North Melbourne was the home te... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (crowd INTEGER, away_team VARCHAR)
Question: What was the largest crowd when Collingwood was the away team?
Here is the SQLite query to answer to the quest... | Your SQLite query is almost correct, but make sure to follow standard case conventions for team names when querying to avoid any potential issues with case sensitivity. Here's your query wrapped correctly:
```
SELECT MAX(crowd) FROM table_name_67 WHERE away_team = 'Collingwood';
``` | 14,746 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_67 (crowd INTEGER, away_team VARCHAR)\n\n Question: What was the largest crowd when Collingwood was the away 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_25 (year INTEGER, result VARCHAR, venue VARCHAR)
Question: What year is the result 6th in munich, west germany?
Here is the SQLite query to answer to the ques... | The provided query does not correctly address the question of retrieving the year in which the result "6th" occurred in Munich, West Germany. Instead of using `SUM`, we should select the `year` directly. Here is the corrected SQLite query:
```
SELECT year FROM table_name_25 WHERE result = "6th" AND venue = "munich, we... | 14,747 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_25 (year INTEGER, result VARCHAR, venue VARCHAR)\n\n Question: What year is the result 6th in munich, west germany?\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_19 (year INTEGER, venue VARCHAR)
Question: What year is the event in athens, greece?
Here is the SQLite query to answer to the question: What year is the even... | ```sql
SELECT year FROM table_name_19 WHERE venue = "athens, greece";
``` | 14,748 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_19 (year INTEGER, venue VARCHAR)\n\n Question: What year is the event in athens, greece?\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_17 (year INTEGER, venue VARCHAR)
Question: What year is the venue in budapest, hungary?
Here is the SQLite query to answer to the question: What year is the v... | The query you provided is using the `SUM` function, which is typically used to calculate the total of a numeric column. However, if you are looking for the specific year when the venue is located in Budapest, Hungary, a different approach should be taken, particularly using the `SELECT` statement without `SUM`. Here’s ... | 14,749 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_17 (year INTEGER, venue VARCHAR)\n\n Question: What year is the venue in budapest, hungary?\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_61 (tournament VARCHAR, year VARCHAR)
Question: What tournament is in 1971?
Here is the SQLite query to answer to the question: What tournament is in 1971?:
`... | Here is the SQLite query to answer the question: What tournament is in 1971?:
```
SELECT tournament FROM table_name_61 WHERE year = '1971'
``` | 14,750 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_61 (tournament VARCHAR, year VARCHAR)\n\n Question: What tournament is in 1971?\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_22 (extra VARCHAR, result VARCHAR, year VARCHAR)
Question: What is the extra result associated with 6th place in 1972?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question: What is the extra result associated with 6th place in 1972?:
```
SELECT extra FROM table_name_22 WHERE result = '6th' AND year = '1972'
``` | 14,751 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_22 (extra VARCHAR, result VARCHAR, year VARCHAR)\n\n Question: What is the extra result associated with 6th place in 19... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (date VARCHAR, home_team VARCHAR)
Question: When did Collingwood play?
Here is the SQLite query to answer to the question: When did Collingwood play?:
```
... | Here's the SQLite query to find out when Collingwood played:
```
SELECT date FROM table_name_36 WHERE home_team = "collingwood";
``` | 14,752 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_36 (date VARCHAR, home_team VARCHAR)\n\n Question: When did Collingwood play?\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_88 (crowd INTEGER, venue VARCHAR)
Question: How many were in the crowd when there was a game at Junction Oval?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question about the crowd size when there was a game at Junction Oval:
```
SELECT SUM(crowd) FROM table_name_88 WHERE venue = "Junction Oval";
```
(Note: Ensure the text case in the venue name matches the data in the database.) | 14,753 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (crowd INTEGER, venue VARCHAR)\n\n Question: How many were in the crowd when there was a game at Junction Oval?\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_17 (competition VARCHAR, score VARCHAR, result VARCHAR)
Question: What is the Competition with a Score of 1–0, and a Result with 3–0?
Here is the SQLite query... | Here is the SQLite query to answer the question regarding the competition with a score of 1–0 and a result of 3–0:
```sql
SELECT competition FROM table_name_17 WHERE score = "1–0" AND result = "3–0";
``` | 14,754 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_17 (competition VARCHAR, score VARCHAR, result VARCHAR)\n\n Question: What is the Competition with a Score of 1–0, and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (result VARCHAR, date VARCHAR)
Question: What is the Result with a Date with 22 january 2008?
Here is the SQLite query to answer to the question: What is t... | ```sql
SELECT result FROM table_name_43 WHERE date = "22 january 2008";
``` | 14,755 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_43 (result VARCHAR, date VARCHAR)\n\n Question: What is the Result with a Date with 22 january 2008?\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_56 (decision VARCHAR, visitor VARCHAR)
Question: What was the decision of the Lightning game when the Canadiens were the away team?
Here is the SQLite query t... | Here is the SQLite query to answer the question you provided:
```
SELECT decision FROM table_name_56 WHERE visitor = "canadiens";
``` | 14,756 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_56 (decision VARCHAR, visitor VARCHAR)\n\n Question: What was the decision of the Lightning game when the Canadiens wer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (date VARCHAR, record VARCHAR, home VARCHAR, decision VARCHAR)
Question: What was the date of the 24–27–6 Lightning home game against Tampa Bay that had a d... | Here is the SQLite query to answer the question regarding the date of the 24–27–6 Lightning home game against Tampa Bay with a decision of Ramo:
```
SELECT date FROM table_name_93 WHERE home = "tampa bay" AND decision = "ramo" AND record = "24–27–6"
``` | 14,757 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_93 (date VARCHAR, record VARCHAR, home VARCHAR, decision VARCHAR)\n\n Question: What was the date of the 24–27–6 Lightn... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (week VARCHAR, date VARCHAR)
Question: What week was October 29, 2000?
Here is the SQLite query to answer to the question: What week was October 29, 2000?:
... | The provided SQLite query counts the number of weeks associated with the date "October 29, 2000." However, to find out which week that date belongs to, you should select the week directly instead of counting it. Here's the corrected query:
```
SELECT week FROM table_name_2 WHERE date = "October 29, 2000"
```
This qu... | 14,758 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_2 (week VARCHAR, date VARCHAR)\n\n Question: What week was October 29, 2000?\n\nHere is the SQLite query to answer to t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (opponent VARCHAR, date VARCHAR)
Question: Who was the opponent on December 10, 2000?
Here is the SQLite query to answer to the question: Who was the oppon... | Here is the SQLite query to answer the question: Who was the opponent on December 10, 2000?:
```
SELECT opponent FROM table_name_36 WHERE date = "December 10, 2000";
``` | 14,759 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_36 (opponent VARCHAR, date VARCHAR)\n\n Question: Who was the opponent on December 10, 2000?\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_62 (opponent VARCHAR, week VARCHAR, attendance VARCHAR)
Question: Who was the opponent on the game with a 65,569 attendance before week 12?
Here is the SQLite... | Here is the SQLite query to answer the question about who was the opponent in the game with an attendance of 65,569 before week 12:
```
SELECT opponent FROM table_name_62 WHERE week < '12' AND attendance = '65,569';
``` | 14,760 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_62 (opponent VARCHAR, week VARCHAR, attendance VARCHAR)\n\n Question: Who was the opponent on the game with a 65,569 at... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (week INTEGER, date VARCHAR)
Question: What week was September 24, 2000 on?
Here is the SQLite query to answer to the question: What week was September 24,... | To find out which week September 24, 2000, falls into, you need to retrieve the `week` value corresponding to that specific date from the `table_name_55`. The correct query should select the `week` directly rather than summing it. Here's the correct SQLite query:
```
SELECT week FROM table_name_55 WHERE date = "Septem... | 14,761 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_55 (week INTEGER, date VARCHAR)\n\n Question: What week was September 24, 2000 on?\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_65 (engine_configuration_ VARCHAR, _notes_0_100km_h VARCHAR, model VARCHAR)
Question: What is the engine configuration & notes 0-100km/h with a model with 2.3 ... | Here is the corrected SQLite query to retrieve the engine configuration and notes for the model "2.3 t5":
```sql
SELECT engine_configuration_, _notes_0_100km_h
FROM table_name_65
WHERE model = "2.3 t5";
```
Please note that I have used a comma to separate the two columns in the SELECT statement for proper syntax. | 14,762 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_65 (engine_configuration_ VARCHAR, _notes_0_100km_h VARCHAR, model VARCHAR)\n\n Question: What is the engine configurat... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (engine_configuration_ VARCHAR, _notes_0_100km_h VARCHAR, engine_type VARCHAR)
Question: What is the engine configuration & notes 0-100km/h with an engine t... | Here is the correct SQLite query to provide the engine configuration and notes for 0-100 km/h for the specified engine type:
```sql
SELECT engine_configuration_, _notes_0_100km_h
FROM table_name_49
WHERE engine_type = 'b5252 fs';
```
In this query, I've separated the two selected columns by a comma, which is neces... | 14,763 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_49 (engine_configuration_ VARCHAR, _notes_0_100km_h VARCHAR, engine_type VARCHAR)\n\n Question: What is the engine conf... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (model VARCHAR, engine_type VARCHAR)
Question: What is the model with a engine type with b5244 s2?
Here is the SQLite query to answer to the question: What... | Your SQLite query to find the model with the engine type "b5244 s2" is correct. Here it is wrapped in a code block:
```
SELECT model FROM table_name_97 WHERE engine_type = "b5244 s2";
``` | 14,764 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_97 (model VARCHAR, engine_type VARCHAR)\n\n Question: What is the model with a engine type with b5244 s2?\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_90 (engine_type VARCHAR, model VARCHAR)
Question: What is the engine type with a model with base 2.4?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question regarding the engine type for the model "base 2.4":
```sql
SELECT engine_type FROM table_name_90 WHERE model = "base 2.4";
``` | 14,765 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_90 (engine_type VARCHAR, model VARCHAR)\n\n Question: What is the engine type with a model with base 2.4?\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_76 (composition VARCHAR, year VARCHAR, mintage VARCHAR, artist VARCHAR)
Question: What is the composition of the coin that was issued after 2008, had a mintage... | Here is the SQLite query to answer the question regarding the composition of the coin issued after 2008, with a mintage larger than 999, and designed by Jody Broomfield:
```
SELECT composition FROM table_name_76 WHERE mintage > 999 AND artist = "Jody Broomfield" AND year > '2008'
``` | 14,766 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_76 (composition VARCHAR, year VARCHAR, mintage VARCHAR, artist VARCHAR)\n\n Question: What is the composition of the co... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (theme VARCHAR, year INTEGER)
Question: What is the theme of the coin from before 2006?
Here is the SQLite query to answer to the question: What is the the... | Here is the SQLite query to answer the question regarding the theme of the coin from before 2006:
```
SELECT theme FROM table_name_91 WHERE year < 2006;
``` | 14,767 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_91 (theme VARCHAR, year INTEGER)\n\n Question: What is the theme of the coin from before 2006?\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_27 (tyre VARCHAR, race VARCHAR)
Question: What was the Tyre for the German Grand Prix?
Here is the SQLite query to answer to the question: What was the Tyre f... | Here is the SQLite query to answer the question about the tyre used for the German Grand Prix, wrapped as you requested:
```
SELECT tyre FROM table_name_27 WHERE race = "German Grand Prix";
``` | 14,768 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_27 (tyre VARCHAR, race VARCHAR)\n\n Question: What was the Tyre for the German Grand Prix?\n\nHere is the SQLite query ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (pole_position VARCHAR, race VARCHAR)
Question: Who had Pole position for the French Grand Prix?
Here is the SQLite query to answer to the question: Who ha... | Your SQLite query is correct for retrieving the pole position for the French Grand Prix. Here it is wrapped in the appropriate code block:
```
SELECT pole_position FROM table_name_69 WHERE race = "french grand prix";
```
This query will return the value in the `pole_position` column where the `race` is "french grand... | 14,769 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_69 (pole_position VARCHAR, race VARCHAR)\n\n Question: Who had Pole position for the French Grand Prix?\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_36 (fastest_lap VARCHAR, pole_position VARCHAR, winning_driver VARCHAR)
Question: What was the fastest lap in a race where Phil Hill had the Pole position and ... | Here is the SQLite query to answer the question you provided:
```sql
SELECT fastest_lap FROM table_name_36 WHERE pole_position = "phil hill" AND winning_driver = "wolfgang von trips";
``` | 14,770 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_36 (fastest_lap VARCHAR, pole_position VARCHAR, winning_driver VARCHAR)\n\n Question: What was the fastest lap in a rac... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (drawn INTEGER, against VARCHAR)
Question: What is the lowest nuber of games drawn in the total column?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about the lowest number of games drawn in the total column:
```sql
SELECT MIN(drawn) FROM table_name_31 WHERE against = 'total';
``` | 14,771 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (drawn INTEGER, against VARCHAR)\n\n Question: What is the lowest nuber of games drawn in the total column?\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_96 (lost INTEGER, played VARCHAR, against VARCHAR, drawn VARCHAR, _percentage_won VARCHAR)
Question: What is the lowest number of games lost that has less than... | Here is the SQLite query that answers the question based on the provided schema:
```sql
SELECT MIN(lost)
FROM table_name_96
WHERE drawn < 1
AND _percentage_won = "50%"
AND against = "netherlands"
AND CAST(played AS INTEGER) > 2;
```
Please note that I've added a `CAST(played AS INTEGER)` because `played` ... | 14,772 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_96 (lost INTEGER, played VARCHAR, against VARCHAR, drawn VARCHAR, _percentage_won VARCHAR)\n\n Question: What is the lo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (venue VARCHAR, home_team VARCHAR)
Question: What was the venue when the home team was Essendon?
Here is the SQLite query to answer to the question: What w... | Here is the SQLite query to answer the question about the venue when the home team was Essendon:
```sql
SELECT venue FROM table_name_53 WHERE home_team = "Essendon";
``` | 14,773 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_53 (venue VARCHAR, home_team VARCHAR)\n\n Question: What was the venue when the home team was Essendon?\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_56 (interview INTEGER, evening_gown VARCHAR)
Question: Which biggest interview score had an evening gown stat of 9.286?
Here is the SQLite query to answer to ... | Your query needs a small adjustment to correctly compare the `evening_gown` as it is a `VARCHAR` type. You should use single quotes around the value. Here’s the corrected query:
```sql
SELECT MAX(interview) FROM table_name_56 WHERE evening_gown = '9.286'
``` | 14,774 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_56 (interview INTEGER, evening_gown VARCHAR)\n\n Question: Which biggest interview score had an evening gown stat 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_79 (interview INTEGER, evening_gown VARCHAR, average VARCHAR, swimsuit VARCHAR)
Question: Which mean interview number had an average of more than 9.233, a swim... | The query you provided has a couple of issues. Specifically, the conditions should correctly compare the `swimsuit` column with the threshold (greater than 9.473) instead of using equality (`=`). Additionally, to get the mean interview number for the specified conditions, we should use `GROUP BY` or simply select the a... | 14,775 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_79 (interview INTEGER, evening_gown VARCHAR, average VARCHAR, swimsuit VARCHAR)\n\n Question: Which mean interview numb... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (evening_gown INTEGER, average VARCHAR, interview VARCHAR, swimsuit VARCHAR)
Question: Which is the smallest evening gown score when the interview score was... | Here is the SQLite query to answer the question:
```
SELECT MIN(evening_gown) FROM table_name_63 WHERE interview > 9.164 AND swimsuit < 9.35 AND average < 9.233
``` | 14,776 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_63 (evening_gown INTEGER, average VARCHAR, interview VARCHAR, swimsuit VARCHAR)\n\n Question: Which is the smallest eve... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (average INTEGER, swimsuit VARCHAR, evening_gown VARCHAR)
Question: Which is the largest average number when the swimsuit is 9.4 and the evening gown stat i... | Here is the SQLite query to answer the question:
```
SELECT MAX(average) FROM table_name_75 WHERE swimsuit = '9.4' AND evening_gown < '9.486'
``` | 14,777 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_75 (average INTEGER, swimsuit VARCHAR, evening_gown VARCHAR)\n\n Question: Which is the largest average number when the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (interview INTEGER, evening_gown VARCHAR, average VARCHAR)
Question: What is the total number of interview scores that have an evening gown score of 9.543 a... | Here's the SQLite query that answers your question:
```
SELECT COUNT(interview) FROM table_name_59 WHERE evening_gown = '9.543' AND average > '9.521'
``` | 14,778 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (interview INTEGER, evening_gown VARCHAR, average VARCHAR)\n\n Question: What is the total number of interview score... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (average INTEGER, swimsuit VARCHAR, evening_gown VARCHAR, state VARCHAR)
Question: What is the mean average score when the evening gown score is more than 9... | Here is the SQLite query to find the mean average score based on the given conditions:
```
SELECT AVG(average) FROM table_name_52 WHERE evening_gown > 9.35 AND state = "South Carolina" AND swimsuit > 9.4
``` | 14,779 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_52 (average INTEGER, swimsuit VARCHAR, evening_gown VARCHAR, state VARCHAR)\n\n Question: What is the mean average scor... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (draws INTEGER, goals_against VARCHAR, losses VARCHAR)
Question: What is the total draw count with 52 goals and less than 15 losses?
Here is the SQLite que... | It looks like there is a small issue in the query you provided. The `losses` column is defined as a `VARCHAR`, which means it should be treated as a string. To compare it with an integer (like 15), you could either convert losses to an integer during the comparison or ensure that it contains numeric values.
Here's the... | 14,780 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (draws INTEGER, goals_against VARCHAR, losses VARCHAR)\n\n Question: What is the total draw count with 52 goals and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (losses INTEGER, club VARCHAR, points VARCHAR)
Question: What is the top losses that with Club of cd toledo and Points more than 56?
Here is the SQLite que... | Here is the SQLite query to answer the question:
```
SELECT MAX(losses) FROM table_name_23 WHERE club = "cd toledo" AND points > 56
``` | 14,781 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (losses INTEGER, club VARCHAR, points VARCHAR)\n\n Question: What is the top losses that with Club of cd toledo and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (wins INTEGER, goals_for INTEGER)
Question: What is the low win count with more than 72 goals?
Here is the SQLite query to answer to the question: What is t... | Here is the SQLite query to answer the question about the low win count with more than 72 goals:
```
SELECT MIN(wins) FROM table_name_1 WHERE goals_for > 72
``` | 14,782 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (wins INTEGER, goals_for INTEGER)\n\n Question: What is the low win count with more than 72 goals?\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_86 (total__kg_ VARCHAR, snatch VARCHAR)
Question: What's the Total (kg) of a Snatch of 132.5?
Here is the SQLite query to answer to the question: What's the T... | Your query is almost correct, but since the "snatch" column is of type VARCHAR, you should compare it to a string rather than a number. Here’s the corrected query:
```
SELECT total__kg_ FROM table_name_86 WHERE snatch = '132.5'
``` | 14,783 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_86 (total__kg_ VARCHAR, snatch VARCHAR)\n\n Question: What's the Total (kg) of a Snatch of 132.5?\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_62 (name VARCHAR, snatch VARCHAR, bodyweight VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
Question: What's the name of the athlete with a Snatch larger than 140, Bo... | It looks like there is a small mistake in the query you provided. To compare both "Clean" and "Jerk" values, you should use the appropriate logical operator to combine the two conditions. Here's the corrected SQL query:
```sql
SELECT name
FROM table_name_62
WHERE snatch > 140
AND bodyweight < 84.55
AND clean_ ... | 14,784 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_62 (name VARCHAR, snatch VARCHAR, bodyweight VARCHAR, clean_ VARCHAR, _jerk VARCHAR)\n\n Question: What's the name of t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (date VARCHAR, result VARCHAR)
Question: When was the result 3-1?
Here is the SQLite query to answer to the question: When was the result 3-1?:
```
SELECT ... | Here is the SQLite query to answer the question: When was the result 3-1?:
```
SELECT date FROM table_name_22 WHERE result = "3-1";
``` | 14,785 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_22 (date VARCHAR, result VARCHAR)\n\n Question: When was the result 3-1?\n\nHere is the SQLite query to answer to the q... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (competition VARCHAR, result VARCHAR)
Question: Which competition had a result of 1-0?
Here is the SQLite query to answer to the question: Which competitio... | Here is the SQLite query to answer the question about which competition had a result of 1-0:
```sql
SELECT competition FROM table_name_44 WHERE result = '1-0';
``` | 14,786 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_44 (competition VARCHAR, result VARCHAR)\n\n Question: Which competition had a result of 1-0?\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_62 (venue VARCHAR, away_team VARCHAR)
Question: At what venue was richmond the away team?
Here is the SQLite query to answer to the question: At what venue wa... | Here is the SQLite query to answer the question "At what venue was richmond the away team?":
```
SELECT venue FROM table_name_62 WHERE away_team = "richmond"
``` | 14,787 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_62 (venue VARCHAR, away_team VARCHAR)\n\n Question: At what venue was richmond the away team?\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_32 (venue VARCHAR, away_team VARCHAR)
Question: What venue had an away team of south melbourne?
Here is the SQLite query to answer to the question: What venue... | Here is the SQLite query to answer the question: What venue had an away team of south melbourne?:
```
SELECT venue FROM table_name_32 WHERE away_team = "south melbourne";
``` | 14,788 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (venue VARCHAR, away_team VARCHAR)\n\n Question: What venue had an away team of south melbourne?\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_27 (home_team VARCHAR)
Question: What was fitzroy's score at home?
Here is the SQLite query to answer to the question: What was fitzroy's score at home?:
```
... | Here is the SQLite query to answer the question about Fitzroy's score at home:
```
SELECT home_team AS score FROM table_name_27 WHERE home_team = "fitzroy"
``` | 14,789 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_27 (home_team VARCHAR)\n\n Question: What was fitzroy's score at home?\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_82 (date VARCHAR, away_team VARCHAR)
Question: What day did South Melbourne play as the away team?
Here is the SQLite query to answer to the question: What da... | Here is the SQLite query to answer the question: What day did South Melbourne play as the away team?:
```
SELECT date FROM table_name_82 WHERE away_team = "South Melbourne";
``` | 14,790 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_82 (date VARCHAR, away_team VARCHAR)\n\n Question: What day did South Melbourne play as 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_54 (crowd INTEGER, away_team VARCHAR)
Question: What was the attendance when Hawthorn played as the away team?
Here is the SQLite query to answer to the quest... | Your query is almost correct, but if you're looking to find the attendance when Hawthorn played as the away team, you should use `SUM(crowd)` or simply `crowd` depending on whether you're interested in the total attendance or individual game attendance.
Here’s a correct version of the query to select all attendance re... | 14,791 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_54 (crowd INTEGER, away_team VARCHAR)\n\n Question: What was the attendance when Hawthorn played as the away 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_79 (away_team VARCHAR, home_team VARCHAR)
Question: Who was Carlton's away team opponent?
Here is the SQLite query to answer to the question: Who was Carlton'... | To answer the question about who was Carlton's away team opponent, you need to look for records where Carlton is listed as the home team. Here's the corrected SQLite query:
```sql
SELECT away_team FROM table_name_79 WHERE home_team = 'Carlton';
```
This query retrieves the `away_team` for all instances where Carlton... | 14,792 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_79 (away_team VARCHAR, home_team VARCHAR)\n\n Question: Who was Carlton's away team opponent?\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_52 (third VARCHAR, events VARCHAR, skip VARCHAR, second VARCHAR)
Question: IN EVENTS 1995 STOH, WHO WAS THE THIRD WITH SKIP SANDRA PETERSON AND SECOND JOAN MCC... | Your provided SQLite query is correctly structured to retrieve the desired information based on the given conditions. Below is the query wrapped in a code block:
```
SELECT third FROM table_name_52 WHERE skip = "sandra peterson" AND second = "joan mccusker" AND events = "1995 stoh";
```
This query filters the record... | 14,793 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_52 (third VARCHAR, events VARCHAR, skip VARCHAR, second VARCHAR)\n\n Question: IN EVENTS 1995 STOH, WHO WAS THE THIRD W... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (club_team VARCHAR, overall VARCHAR, player VARCHAR)
Question: What club was derrick byfuglien drafted by before 283?
Here is the SQLite query to answer to... | Your provided SQLite query appears to be correct for the given question. It selects the `club_team` from the `table_name_96` where the `overall` is less than 283 and the `player` is "derrick byfuglien".
Here it is wrapped in the appropriate formatting:
```
SELECT club_team FROM table_name_96 WHERE overall < 283 AND ... | 14,794 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_96 (club_team VARCHAR, overall VARCHAR, player VARCHAR)\n\n Question: What club was derrick byfuglien drafted by before... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (venue VARCHAR, score VARCHAR, result VARCHAR, competition VARCHAR)
Question: What is the Venue with a Result of 3–0, and a Competition with 2006 fifa world... | Here is the SQLite query to answer your question:
```
SELECT venue FROM table_name_22 WHERE result = "3–0" AND competition = "2006 fifa world cup qualifier" AND score = "3–0"
``` | 14,795 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_22 (venue VARCHAR, score VARCHAR, result VARCHAR, competition VARCHAR)\n\n Question: What is the Venue with a Result of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (date VARCHAR, result VARCHAR, score VARCHAR)
Question: What is the Date with a Result of 8–2, and a Score with 6–2?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question regarding the date with a result of "8–2" and a score of "6–2":
```
SELECT date FROM table_name_99 WHERE result = "8–2" AND score = "6–2";
``` | 14,796 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_99 (date VARCHAR, result VARCHAR, score VARCHAR)\n\n Question: What is the Date with a Result of 8–2, and a Score with ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (result VARCHAR, score VARCHAR, date VARCHAR)
Question: What is the Result with a Score of 1–0, and a Date with 18 april 2009?
Here is the SQLite query to ... | Here is the SQLite query to answer the question regarding the Result with a Score of 1–0 on the date of 18 April 2009:
```
SELECT result FROM table_name_35 WHERE score = "1–0" AND date = "18 april 2009"
``` | 14,797 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_35 (result VARCHAR, score VARCHAR, date VARCHAR)\n\n Question: What is the Result with a Score of 1–0, and a Date with ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (venue VARCHAR, result VARCHAR, score VARCHAR)
Question: What is the Venue with a Result of 10–0, and a Score with 3–0?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about the venue with a result of 10–0 and a score of 3–0:
```sql
SELECT venue FROM table_name_64 WHERE result = "10–0" AND score = "3–0";
``` | 14,798 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (venue VARCHAR, result VARCHAR, score VARCHAR)\n\n Question: What is the Venue with a Result of 10–0, and a Score wi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (competition VARCHAR, date VARCHAR)
Question: What is the Competition with a Date with 6 december 2011?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about the competition with the date of 6 December 2011:
```sql
SELECT competition FROM table_name_72 WHERE date = "6 december 2011";
``` | 14,799 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (competition VARCHAR, date VARCHAR)\n\n Question: What is the Competition with a Date with 6 december 2011?\n\nHere ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.