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_89 (time_retired VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR)
Question: What is the Time/Retired for a Grid smaller than 10, a Laps larger than 20... | Here is the SQLite query you requested:
```
SELECT time_retired FROM table_name_89 WHERE grid < 10 AND laps > 20 AND constructor = "talbot-lago - talbot"
``` | 15,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_89 (time_retired VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR)\n\n Question: What is the Time/Retired for a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (grid INTEGER, constructor VARCHAR)
Question: What is the high grid total for maserati?
Here is the SQLite query to answer to the question: What is the hig... | Here is the SQLite query to answer the question: What is the high grid total for maserati?:
```
SELECT MAX(grid) FROM table_name_68 WHERE constructor = "maserati"
``` | 15,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_68 (grid INTEGER, constructor VARCHAR)\n\n Question: What is the high grid total for maserati?\n\nHere is the SQLite qu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (grid INTEGER, laps VARCHAR, constructor VARCHAR)
Question: What is the high grid total for maserati with under 35 laps?
Here is the SQLite query to answer... | Your SQLite query is structured correctly to answer the question. Here it is wrapped in code formatting:
```
SELECT MAX(grid) FROM table_name_64 WHERE laps < 35 AND constructor = "maserati";
```
This query selects the maximum `grid` value from the `table_name_64` table for entries where the `laps` are less than 35 a... | 15,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_64 (grid INTEGER, laps VARCHAR, constructor VARCHAR)\n\n Question: What is the high grid total for maserati with under ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (pole_position VARCHAR, race VARCHAR)
Question: What is the Pole Position of the Brazilian Grand Prix race?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question about the Pole Position of the Brazilian Grand Prix race:
```
SELECT pole_position FROM table_name_28 WHERE race = "Brazilian Grand Prix";
``` | 15,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_28 (pole_position VARCHAR, race VARCHAR)\n\n Question: What is the Pole Position of the Brazilian Grand Prix race?\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_89 (race VARCHAR, location VARCHAR)
Question: Who was the winner of the race in monza?
Here is the SQLite query to answer to the question: Who was the winner ... | Here is the SQLite query to answer the question about the winner of the race in Monza:
```sql
SELECT race AS Winner FROM table_name_89 WHERE location = "monza"
``` | 15,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_89 (race VARCHAR, location VARCHAR)\n\n Question: Who was the winner of the race in monza?\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_18 (position VARCHAR, player VARCHAR)
Question: What position for chris moreno?
Here is the SQLite query to answer to the question: What position for chris mo... | Here is the SQLite query to answer the question: What position for chris moreno?:
```
SELECT position FROM table_name_18 WHERE player = "chris moreno"
``` | 15,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_18 (position VARCHAR, player VARCHAR)\n\n Question: What position for chris moreno?\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_1 (date_of_birth__age_ VARCHAR, player VARCHAR)
Question: When was brian lemay born?
Here is the SQLite query to answer to the question: When was brian lemay ... | Here is the SQLite query to answer the question: When was brian lemay born?:
```
SELECT date_of_birth__age_ FROM table_name_1 WHERE player = "brian lemay"
``` | 15,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_1 (date_of_birth__age_ VARCHAR, player VARCHAR)\n\n Question: When was brian lemay born?\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 (player VARCHAR, round VARCHAR)
Question: Tell me the player for 7 round
Here is the SQLite query to answer to the question: Tell me the player for 7 round... | Here is the SQLite query to answer the question "Tell me the player for 7 round":
```
SELECT player FROM table_name_74 WHERE round = '7'
``` | 15,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_74 (player VARCHAR, round VARCHAR)\n\n Question: Tell me the player for 7 round\n\nHere is the SQLite query to answer t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (partially_deleted VARCHAR, cerclis_id VARCHAR)
Question: Which Superfund site has the CERCLIS ID fld980494959?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question about which Superfund site has the CERCLIS ID fld980494959:
```
SELECT partially_deleted FROM table_name_78 WHERE cerclis_id = "fld980494959";
``` | 15,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_78 (partially_deleted VARCHAR, cerclis_id VARCHAR)\n\n Question: Which Superfund site has the CERCLIS ID fld980494959?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (name VARCHAR, cerclis_id VARCHAR)
Question: Which site has the CERCLIS ID fld004092532?
Here is the SQLite query to answer to the question: Which site has... | Here is the SQLite query to answer the question: Which site has the CERCLIS ID fld004092532?:
```
SELECT name FROM table_name_88 WHERE cerclis_id = "fld004092532";
``` | 15,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_88 (name VARCHAR, cerclis_id VARCHAR)\n\n Question: Which site has the CERCLIS ID fld004092532?\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_96 (cerclis_id VARCHAR, county VARCHAR, deleted VARCHAR)
Question: What is the CERCLIS ID of the site in Polk County, with the date 08/04/2009?
Here is the SQ... | Here is the corrected SQLite query to answer the question regarding the CERCLIS ID of the site in Polk County, with the date 08/04/2009:
```
SELECT cerclis_id FROM table_name_96 WHERE county = "Polk" AND deleted = "08/04/2009"
```
Note: Ensure the county name matches the casing in the database, which in this case I ... | 15,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_96 (cerclis_id VARCHAR, county VARCHAR, deleted VARCHAR)\n\n Question: What is the CERCLIS ID of the site in Polk Count... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (date VARCHAR, tournament VARCHAR)
Question: When is the tournament of konica san jose classic?
Here is the SQLite query to answer to the question: When is... | Here is the SQLite query to answer the question: When is the tournament of konica san jose classic?:
```
SELECT date FROM table_name_41 WHERE tournament = "konica san jose classic"
``` | 15,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_41 (date VARCHAR, tournament VARCHAR)\n\n Question: When is the tournament of konica san jose classic?\n\nHere is the S... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (tournament VARCHAR, margin_of_victory VARCHAR)
Question: Which tournament had a playoff with a margin of victory?
Here is the SQLite query to answer to th... | To answer the question about which tournament had a playoff with a margin of victory, the appropriate SQLite query would be as follows:
```
SELECT tournament FROM table_name_49 WHERE margin_of_victory = "playoff";
``` | 15,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_49 (tournament VARCHAR, margin_of_victory VARCHAR)\n\n Question: Which tournament had a playoff with a margin of victor... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (runner_up VARCHAR, tournament VARCHAR)
Question: Who was the runner up in the konica san jose classic Tournament?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question: Who was the runner up in the konica san jose classic Tournament?:
```
SELECT runner_up FROM table_name_60 WHERE tournament = "konica san jose classic";
``` | 15,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_60 (runner_up VARCHAR, tournament VARCHAR)\n\n Question: Who was the runner up in the konica san jose classic Tournamen... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (crowd INTEGER, venue VARCHAR)
Question: What was the highest crowd size at the Western Oval?
Here is the SQLite query to answer to the question: What was ... | Your SQLite query to find the highest crowd size at the Western Oval is correct. Here it is wrapped in code format:
```
SELECT MAX(crowd) FROM table_name_48 WHERE venue = "western oval";
``` | 15,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_48 (crowd INTEGER, venue VARCHAR)\n\n Question: What was the highest crowd size at the Western Oval?\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_4 (name VARCHAR, order VARCHAR)
Question: Which name had an order number of 1?
Here is the SQLite query to answer to the question: Which name had an order num... | Here is the SQLite query to answer the question: Which name had an order number of 1?:
```sql
SELECT name FROM table_name_4 WHERE order = '1';
```
Note that I used single quotes around `1` since the `order` column is defined as VARCHAR. | 15,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_4 (name VARCHAR, order VARCHAR)\n\n Question: Which name had an order number of 1?\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 (entrant VARCHAR, driver VARCHAR, rounds VARCHAR, chassis VARCHAR)
Question: Who was the entrant for Gabriele Tarquini with all rounds and a JH24 JH25 Chass... | To answer the question regarding who was the entrant for Gabriele Tarquini with all rounds and a JH24 JH25 chassis, the SQLite query can be written as follows:
```
SELECT entrant
FROM table_name_65
WHERE rounds = 'all'
AND chassis IN ('JH24', 'JH25')
AND driver = 'Gabriele Tarquini';
```
This query selects the `e... | 15,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_65 (entrant VARCHAR, driver VARCHAR, rounds VARCHAR, chassis VARCHAR)\n\n Question: Who was the entrant for Gabriele Ta... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (entrant VARCHAR, driver VARCHAR)
Question: Who was the entrant for Gary Brabham?
Here is the SQLite query to answer to the question: Who was the entrant fo... | Here is the SQLite query to answer the question about who was the entrant for Gary Brabham:
```
SELECT entrant FROM table_name_5 WHERE driver = "Gary Brabham";
``` | 15,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_5 (entrant VARCHAR, driver VARCHAR)\n\n Question: Who was the entrant for Gary Brabham?\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_4 (constructor VARCHAR, driver VARCHAR)
Question: Who constructed Aguri Suzuki's car?
Here is the SQLite query to answer to the question: Who constructed Agur... | Here is the SQLite query to answer the question "Who constructed Aguri Suzuki's car?":
```
SELECT constructor FROM table_name_4 WHERE driver = "Aguri Suzuki"
``` | 15,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_4 (constructor VARCHAR, driver VARCHAR)\n\n Question: Who constructed Aguri Suzuki's car?\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_29 (highest_average_point_ratings INTEGER, genre VARCHAR, number_of_episodes VARCHAR)
Question: What was the highest average point rating for a modern suspense... | It appears there is a misunderstanding in the query you provided. Since you are looking for the highest average point rating, you should use the `MAX` function instead of `SUM`. Furthermore, make sure to compare the `number_of_episodes` as an integer instead of a string.
Here is the corrected SQLite query:
```
SELECT... | 15,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_29 (highest_average_point_ratings INTEGER, genre VARCHAR, number_of_episodes VARCHAR)\n\n Question: What was the highes... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (venue VARCHAR, result VARCHAR)
Question: Where was the game with the result of 22-20 played?
Here is the SQLite query to answer to the question: Where was... | Here is the SQLite query to answer the question: Where was the game with the result of 22-20 played?:
```
SELECT venue FROM table_name_81 WHERE result = "22-20"
``` | 15,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_81 (venue VARCHAR, result VARCHAR)\n\n Question: Where was the game with the result of 22-20 played?\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_85 (venue VARCHAR, scored INTEGER)
Question: Where was the game with a higher score than 1 played?
Here is the SQLite query to answer to the question: Where w... | Your SQLite query is correct for the given question. Here it is, properly wrapped:
```
SELECT venue FROM table_name_85 WHERE scored > 1;
```
This query selects the venue from the `table_name_85` where the scored value is greater than 1. | 15,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_85 (venue VARCHAR, scored INTEGER)\n\n Question: Where was the game with a higher score than 1 played?\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_98 (tournament VARCHAR, opponent VARCHAR)
Question: What tournament did the Crusaders play in?
Here is the SQLite query to answer to the question: What tourna... | Here is the SQLite query to answer the question: What tournament did the Crusaders play in?:
```
SELECT tournament FROM table_name_98 WHERE opponent = "Crusaders";
``` | 15,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_98 (tournament VARCHAR, opponent VARCHAR)\n\n Question: What tournament did the Crusaders play in?\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_78 (home_team VARCHAR, venue VARCHAR)
Question: What was the home score at Lake Oval?
Here is the SQLite query to answer to the question: What was the home sc... | To answer the question about the home score at Lake Oval with the given schema, we should modify the query to reflect the context accurately. However, the current schema does not contain any information regarding scores. It only contains home teams and venues. For the purpose of this exercise, if we assume that the "ho... | 15,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_78 (home_team VARCHAR, venue VARCHAR)\n\n Question: What was the home score at Lake 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_24 (total INTEGER, rank VARCHAR, gold VARCHAR, bronze VARCHAR)
Question: What is the highest metal total when there are 2 Gold medals, 0 Bronze metals, and the... | Here is the correct SQLite query to answer the question:
```sql
SELECT MAX(total) FROM table_name_24 WHERE gold = '2' AND bronze = '0' AND rank < '2';
```
Make sure to check the data types of the `gold`, `bronze`, and `rank` columns to ensure that the comparisons are appropriate. In this case, if they are stored as ... | 15,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_24 (total INTEGER, rank VARCHAR, gold VARCHAR, bronze VARCHAR)\n\n Question: What is the highest metal total when there... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (silver VARCHAR, bronze VARCHAR, nation VARCHAR)
Question: What is the total number of silver medals when there are 0 Bronze medals, and the nation is the U... | It looks like there are a few issues with the provided query. The `bronze` column is a `VARCHAR`, so checking if it is `0` won't work as expected because it won't be a numeric value. Instead, you should check if the `bronze` column is either empty or a specific value that represents 0. Here’s the corrected query:
```
... | 15,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_71 (silver VARCHAR, bronze VARCHAR, nation VARCHAR)\n\n Question: What is the total number of silver medals when there ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (rank INTEGER, total VARCHAR, nation VARCHAR)
Question: What is the highest rank when the metal total is 1 and the nation is the United Kingdom?
Here is th... | Here is the SQLite query you need to answer the question about the highest rank when the metal total is 1 and the nation is the United Kingdom:
```
SELECT MAX(rank) FROM table_name_99 WHERE total = '1' AND nation = 'United Kingdom';
``` | 15,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_99 (rank INTEGER, total VARCHAR, nation VARCHAR)\n\n Question: What is the highest rank when the metal total is 1 and t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (total INTEGER, gold VARCHAR, bronze VARCHAR, nation VARCHAR)
Question: What is the lowest metal total when the Bronze metals are larger than 0, the Gold me... | Here is the SQLite query that addresses the question you've provided:
```
SELECT MIN(total) FROM table_name_18 WHERE bronze > 0 AND nation = "Switzerland" AND gold < 1
```
This query filters the records to include only those where the bronze medals are greater than 0, the gold medals are less than 1, and the nation ... | 15,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_18 (total INTEGER, gold VARCHAR, bronze VARCHAR, nation VARCHAR)\n\n Question: What is the lowest metal total 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_71 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
Question: What is the highest Bronze medal count when the Gold medals are larger than 1 and the silver are sm... | ```sql
SELECT MAX(bronze) FROM table_name_71 WHERE gold > 1 AND silver < 0;
``` | 15,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_71 (bronze INTEGER, gold VARCHAR, silver VARCHAR)\n\n Question: What is the highest Bronze medal count when the Gold me... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (date VARCHAR, race VARCHAR)
Question: When was the swiss grand prix?
Here is the SQLite query to answer to the question: When was the swiss grand prix?:
`... | Here is the SQLite query to answer the question about when the Swiss Grand Prix occurred:
```
SELECT date FROM table_name_91 WHERE race = "swiss grand prix"
``` | 15,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_91 (date VARCHAR, race VARCHAR)\n\n Question: When was the swiss grand prix?\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_83 (circuit VARCHAR, fastest_lap VARCHAR)
Question: What was the circuit for alberto ascari josé froilán gonzález?
Here is the SQLite query to answer to the q... | The provided SQLite query correctly targets the question about retrieving the circuit for "alberto ascari josé froilán gonzález". However, it assumes that the `fastest_lap` column contains the name of the drivers, which may not be the case unless specified that this indeed represents drivers. If you ensure that the con... | 15,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_83 (circuit VARCHAR, fastest_lap VARCHAR)\n\n Question: What was the circuit for alberto ascari josé froilán gonzález?\... | |
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, race VARCHAR)
Question: Name the date of the italian grand prix
Here is the SQLite query to answer to the question: Name the date of the ita... | Here is the SQLite query to answer the question about the date of the Italian Grand Prix:
```
SELECT date FROM table_name_34 WHERE race = "italian grand prix";
``` | 15,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_34 (date VARCHAR, race VARCHAR)\n\n Question: Name the date of the italian grand prix\n\nHere is the SQLite query to an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (constructor VARCHAR, race VARCHAR)
Question: Name the constructor for the belgian grand prix
Here is the SQLite query to answer to the question: Name the ... | Here is the SQLite query to answer the question about naming the constructor for the Belgian Grand Prix:
```
SELECT constructor FROM table_name_69 WHERE race = "belgian grand prix";
``` | 15,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_69 (constructor VARCHAR, race VARCHAR)\n\n Question: Name the constructor for the belgian grand prix\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_67 (date VARCHAR, race VARCHAR)
Question: Name the date for the italian grand prix
Here is the SQLite query to answer to the question: Name the date for the i... | Here is the SQLite query to answer the question regarding the date for the Italian Grand Prix:
```
SELECT date FROM table_name_67 WHERE race = "italian grand prix"
``` | 15,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_67 (date VARCHAR, race VARCHAR)\n\n Question: Name the date for the italian grand prix\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_56 (opposition VARCHAR, stadium VARCHAR, attendance VARCHAR)
Question: Who's the opposition at westpac stadium when the attendance is 31,853?
Here is the SQLi... | Here is the SQLite query to answer the question about the opposition at Westpac Stadium when the attendance is 31,853:
```
SELECT opposition FROM table_name_56 WHERE stadium = "westpac stadium" AND attendance = "31,853";
``` | 15,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_56 (opposition VARCHAR, stadium VARCHAR, attendance VARCHAR)\n\n Question: Who's the opposition at westpac stadium when... | |
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, opposition VARCHAR, round VARCHAR)
Question: When was the opposition sydney fc on round 19?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question about when the opposition Sydney FC was in round 19:
```
SELECT date FROM table_name_33 WHERE opposition = "sydney fc" AND round = "round 19"
``` | 15,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_33 (date VARCHAR, opposition VARCHAR, round VARCHAR)\n\n Question: When was the opposition sydney fc on round 19?\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_32 (round VARCHAR, opposition VARCHAR, attendance VARCHAR)
Question: What round was adelaide united the opposition with an attendance of 18,345?
Here is the S... | Your query looks correct for the given schema and question. Here is the SQLite query wrapped in the requested code format:
```
SELECT round FROM table_name_32 WHERE opposition = "adelaide united" AND attendance = "18,345";
``` | 15,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_32 (round VARCHAR, opposition VARCHAR, attendance VARCHAR)\n\n Question: What round was adelaide united the opposition ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (opposition VARCHAR, stadium VARCHAR)
Question: Who was the opposition at 11,682 excl. exhibition match?
Here is the SQLite query to answer to the question... | Your query is almost correct, but it seems you are trying to match "11,682 excl. exhibition match" as the stadium. Instead, you should be looking for the opposition corresponding to a specific stadium ID or name if that's what you need. If "11,682 excl. exhibition match" is a part of the stadium column or an identifier... | 15,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_39 (opposition VARCHAR, stadium VARCHAR)\n\n Question: Who was the opposition at 11,682 excl. exhibition match?\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_55 (round VARCHAR, attendance VARCHAR)
Question: What round has an attendance of 12,127?
Here is the SQLite query to answer to the question: What round has an... | Here is the SQLite query to answer the question: What round has an attendance of 12,127?:
```
SELECT round FROM table_name_55 WHERE attendance = "12,127";
``` | 15,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_55 (round VARCHAR, attendance VARCHAR)\n\n Question: What round has an attendance of 12,127?\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_73 (result VARCHAR, opponent VARCHAR)
Question: What is the result against everton?
Here is the SQLite query to answer to the question: What is the result aga... | Here is the SQLite query to answer the question about the result against Everton:
```
SELECT result FROM table_name_73 WHERE opponent = "everton";
``` | 15,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_73 (result VARCHAR, opponent VARCHAR)\n\n Question: What is the result against everton?\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_3 (party VARCHAR, name VARCHAR)
Question: François Gendron was in which party?
Here is the SQLite query to answer to the question: François Gendron was in whi... | Here is the SQLite query to answer the question of which party François Gendron was in:
```
SELECT party FROM table_name_3 WHERE name = "François Gendron"
``` | 15,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_3 (party VARCHAR, name VARCHAR)\n\n Question: François Gendron was in which party?\n\nHere is the SQLite query to answe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (took_office VARCHAR, left_office VARCHAR)
Question: The deputy that left office in 2003 took office in which year?
Here is the SQLite query to answer to t... | Your provided SQLite query is mostly correct for retrieving the year when the deputy left office in 2003. However, to ensure clarity and correctness, here's the query wrapped in the correct format:
```
SELECT took_office FROM table_name_90 WHERE left_office = '2003';
```
This query will select the year the deputy to... | 15,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_90 (took_office VARCHAR, left_office VARCHAR)\n\n Question: The deputy that left office in 2003 took office in which ye... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (name VARCHAR, took_office VARCHAR)
Question: Which deputy took office in 1976?
Here is the SQLite query to answer to the question: Which deputy took offic... | Here is the SQLite query to answer the question: Which deputy took office in 1976?:
```
SELECT name FROM table_name_97 WHERE took_office = "1976"
``` | 15,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_97 (name VARCHAR, took_office VARCHAR)\n\n Question: Which deputy took office in 1976?\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_64 (film VARCHAR, year VARCHAR)
Question: Which film took place in 2000?
Here is the SQLite query to answer to the question: Which film took place in 2000?:
`... | Your SQLite query to find which film took place in 2000 is correct. Here it is wrapped in code formatting as you requested:
```
SELECT film FROM table_name_64 WHERE year = "2000";
``` | 15,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_64 (film VARCHAR, year VARCHAR)\n\n Question: Which film took place in 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_76 (song VARCHAR, status VARCHAR, name VARCHAR)
Question: Which song named Tan Dun was nominated?
Here is the SQLite query to answer to the question: Which so... | Your SQLite query to find the song named "Tan Dun" that was nominated looks correct. Here it is wrapped in the appropriate code format:
```
SELECT song FROM table_name_76 WHERE status = "nominated" AND name = "tan dun";
```
Make sure that the case of "tan dun" matches the case used in your database records, as SQLit... | 15,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_76 (song VARCHAR, status VARCHAR, name VARCHAR)\n\n Question: Which song named Tan Dun was nominated?\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_74 (constructor VARCHAR, grid VARCHAR)
Question: Who was the constructor when the grid was 11?
Here is the SQLite query to answer to the question: Who was the... | Here is the SQLite query to answer the question: Who was the constructor when the grid was 11?:
```
SELECT constructor FROM table_name_74 WHERE grid = '11'
```
Note: In SQL, string values should be enclosed in single quotes, so if `grid` is stored as a string, it should be compared with `'11'`. | 15,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_74 (constructor VARCHAR, grid VARCHAR)\n\n Question: Who was the constructor when the grid was 11?\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_25 (laps VARCHAR, grid VARCHAR, constructor VARCHAR, driver VARCHAR)
Question: How many laps were completed by Piers Courage when BRM was the constructor and t... | Your SQLite query to answer the question looks mostly correct, but there are a couple of adjustments needed for the `laps` field to correctly count the number of laps completed by Piers Courage with the specified conditions. Instead of using `COUNT(laps)`, you may want to use `SUM(laps)` if `laps` represents a numerica... | 15,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_25 (laps VARCHAR, grid VARCHAR, constructor VARCHAR, driver VARCHAR)\n\n Question: How many laps were completed by Pier... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (psip_short_name VARCHAR, channel INTEGER)
Question: What is the short name for a channelgreater than 63.4?
Here is the SQLite query to answer to the quest... | Here is the SQLite query that answers the question about the short name for a channel greater than 63.4:
```
SELECT psip_short_name FROM table_name_55 WHERE channel > 63.4;
``` | 15,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_55 (psip_short_name VARCHAR, channel INTEGER)\n\n Question: What is the short name for a channelgreater than 63.4?\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_16 (programming VARCHAR, channel INTEGER)
Question: For the channel smaller than 63.2, what was the programming?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question:
```sql
SELECT programming FROM table_name_16 WHERE channel < 63.2
``` | 15,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_16 (programming VARCHAR, channel INTEGER)\n\n Question: For the channel smaller than 63.2, what was the programming?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (horse VARCHAR, faults VARCHAR, total VARCHAR)
Question: Tell me the horse with faults of 0 when the total is 4.1
Here is the SQLite query to answer to the... | Your query is almost correct, but you need to ensure that the comparison for `total` is done correctly since it is defined as a `VARCHAR`. In SQLite, string comparisons should be done with quotes. Here’s the revised query:
```sql
SELECT horse FROM table_name_15 WHERE faults = "0" AND total = "4.1";
```
This query wi... | 15,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_15 (horse VARCHAR, faults VARCHAR, total VARCHAR)\n\n Question: Tell me the horse with faults of 0 when the total is 4.... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (horse VARCHAR, faults VARCHAR, total VARCHAR)
Question: Tell me the horse when the faults are 9 and the total is 46.36
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question: Tell me the horse when the faults are 9 and the total is 46.36:
```sql
SELECT horse FROM table_name_11 WHERE faults = '9' AND total = '46.36';
``` | 15,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_11 (horse VARCHAR, faults VARCHAR, total VARCHAR)\n\n Question: Tell me the horse when the faults are 9 and the total i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (total INTEGER, horse VARCHAR)
Question: Tell me the highest total when the horse is spender s
Here is the SQLite query to answer to the question: Tell me ... | Here is the SQLite query that answers the question about the highest total when the horse is "spender s":
```sql
SELECT MAX(total) FROM table_name_99 WHERE horse = 'spender s';
``` | 15,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_99 (total INTEGER, horse VARCHAR)\n\n Question: Tell me the highest total when the horse is spender s\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_61 (round_1_ VARCHAR, _2a_points VARCHAR, horse VARCHAR)
Question: Name the round 1 +2A points for horse of poncorde
Here is the SQLite query to answer to the... | Your SQLite query has a minor issue with string concatenation. In SQLite, to concatenate strings, you should use the `||` operator instead of the `+` operator. Here’s the corrected SQLite query:
```
SELECT round_1_ || _2a_points FROM table_name_61 WHERE horse = "poncorde"
``` | 15,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_61 (round_1_ VARCHAR, _2a_points VARCHAR, horse VARCHAR)\n\n Question: Name the round 1 +2A points for horse of poncord... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (total VARCHAR, round_1_ VARCHAR, _2a_points VARCHAR)
Question: Name the total number of total when round 1 +2A points of 19.620
Here is the SQLite query t... | Here is the corrected SQLite query to answer the question based on the database schema provided:
```sql
SELECT COUNT(total)
FROM table_name_48
WHERE (CAST(round_1_ AS REAL) + CAST(_2a_points AS REAL)) = 19.620;
```
In this query, `CAST` is used to convert the `VARCHAR` values in `round_1_` and `_2a_points` to `REA... | 15,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_48 (total VARCHAR, round_1_ VARCHAR, _2a_points VARCHAR)\n\n Question: Name the total number of total when round 1 +2A ... | |
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, away_team VARCHAR)
Question: Which Home team has an Away team of melbourne?
Here is the SQLite query to answer to the question: Which H... | Here is the SQLite query to answer the question: Which Home team has an Away team of melbourne?:
```sql
SELECT home_team FROM table_name_54 WHERE away_team = "melbourne";
``` | 15,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_54 (home_team VARCHAR, away_team VARCHAR)\n\n Question: Which Home team has an Away team of melbourne?\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_26 (away_team VARCHAR, venue VARCHAR)
Question: What is the away team at corio oval?
Here is the SQLite query to answer to the question: What is the away team... | Here is the SQLite query to answer the question of what the away team is at Corio Oval:
```
SELECT away_team FROM table_name_26 WHERE venue = "corio oval";
``` | 15,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_26 (away_team VARCHAR, venue VARCHAR)\n\n Question: What is the away team 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_28 (away_team VARCHAR, venue VARCHAR)
Question: What is the away team at lake oval?
Here is the SQLite query to answer to the question: What is the away team ... | Here is the SQLite query to answer the question: What is the away team at lake oval?:
```
SELECT away_team FROM table_name_28 WHERE venue = "lake oval"
``` | 15,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_28 (away_team VARCHAR, venue VARCHAR)\n\n Question: What is the away team at 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_68 (away_team VARCHAR, home_team VARCHAR)
Question: What is the away team score with geelong home team?
Here is the SQLite query to answer to the question: Wh... | The SQLite query to answer the question about the away team score with Geelong as the home team is as follows:
```
SELECT away_team AS score FROM table_name_68 WHERE home_team = "geelong"
``` | 15,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_68 (away_team VARCHAR, home_team VARCHAR)\n\n Question: What is the away team score with geelong home team?\n\nHere is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (home_team VARCHAR)
Question: What is the home team score when the home team is Collingwood?
Here is the SQLite query to answer to the question: What is th... | It seems that there is a misunderstanding in the query you provided. The column `home_team` contains the names of the home teams, but you are looking for the score of the home team when it is "Collingwood". However, the schema you provided does not include a column for scores. Assuming there is a column for scores that... | 15,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_79 (home_team VARCHAR)\n\n Question: What is the home team score when the home team is Collingwood?\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_40 (date VARCHAR, venue VARCHAR)
Question: What is the date of the game when the venue is Princes Park?
Here is the SQLite query to answer to the question: Wh... | Your SQLite query correctly addresses the question regarding the date of the game when the venue is "Princes Park". Here it is wrapped in code formatting for clarity:
```
SELECT date FROM table_name_40 WHERE venue = "Princes Park";
```
Please note that you may want to ensure the case sensitivity of the venue name ac... | 15,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_40 (date VARCHAR, venue VARCHAR)\n\n Question: What is the date of the game when the venue is Princes Park?\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_32 (position VARCHAR, school VARCHAR)
Question: What position does the player from texas a&m play?
Here is the SQLite query to answer to the question: What po... | Here is the SQLite query to answer the question about what position the player from Texas A&M plays:
```
SELECT position FROM table_name_32 WHERE school = "texas a&m"
``` | 15,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_32 (position VARCHAR, school VARCHAR)\n\n Question: What position does the player from texas a&m play?\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_52 (time VARCHAR, laps VARCHAR, grid VARCHAR)
Question: What is the time for 18 laps and 5 grids?
Here is the SQLite query to answer to the question: What is ... | Here is the SQLite query to answer the question regarding the time for 18 laps and 5 grids:
```
SELECT time FROM table_name_52 WHERE laps = '18' AND grid = '5'
``` | 15,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_52 (time VARCHAR, laps VARCHAR, grid VARCHAR)\n\n Question: What is the time for 18 laps and 5 grids?\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_46 (date VARCHAR, race VARCHAR, class VARCHAR)
Question: On which date was the Dodge Dealers Grand Prix GTS class race?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question about the date of the Dodge Dealers Grand Prix GTS class race:
```
SELECT date FROM table_name_46 WHERE race = "Dodge Dealers Grand Prix" AND class = "GTS"
``` | 15,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_46 (date VARCHAR, race VARCHAR, class VARCHAR)\n\n Question: On which date was the Dodge Dealers Grand Prix GTS class r... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (race VARCHAR, circuit VARCHAR, length VARCHAR)
Question: Which race was on the Las Vegas Motor Speedway for 2 hours?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question about which race was on the Las Vegas Motor Speedway for 2 hours:
```
SELECT race FROM table_name_36 WHERE circuit = "Las Vegas Motor Speedway" AND length = "2 hours";
``` | 15,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_36 (race VARCHAR, circuit VARCHAR, length VARCHAR)\n\n Question: Which race was on the Las Vegas Motor Speedway for 2 h... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (class VARCHAR, length VARCHAR, circuit VARCHAR)
Question: Which class was on the Las Vegas Motor Speedway for 2 hours?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question about which class was on the Las Vegas Motor Speedway for 2 hours:
```sql
SELECT class FROM table_name_3 WHERE length = "2 hours" AND circuit = "Las Vegas Motor Speedway";
``` | 15,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_3 (class VARCHAR, length VARCHAR, circuit VARCHAR)\n\n Question: Which class was on the Las Vegas Motor Speedway for 2 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (circuit VARCHAR, class VARCHAR, date VARCHAR)
Question: What circuit was on June 1 with a class of both?
Here is the SQLite query to answer to the questio... | Your SQLite query to find the circuit on June 1 with a class of "both" is correct. Here's the query wrapped properly:
```
SELECT circuit FROM table_name_16 WHERE class = "both" AND date = "june 1";
``` | 15,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_16 (circuit VARCHAR, class VARCHAR, date VARCHAR)\n\n Question: What circuit was on June 1 with a class of both?\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_98 (date VARCHAR, class VARCHAR, circuit VARCHAR)
Question: Which date was a GTS class on the Mosport International Raceway?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question regarding which date was a GTS class on the Mosport International Raceway:
```
SELECT date FROM table_name_98 WHERE class = "gts" AND circuit = "mosport international raceway";
``` | 15,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_98 (date VARCHAR, class VARCHAR, circuit VARCHAR)\n\n Question: Which date was a GTS class on the Mosport International... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (prom__m_ INTEGER, peak VARCHAR, height__m_ VARCHAR, class VARCHAR)
Question: What is the average prom (m) when the height (m) is more than 733, the class i... | Here is the SQLite query to answer the question:
```
SELECT AVG(prom__m_) FROM table_name_75 WHERE height__m_ > 733 AND class = "Hewitt" AND peak = "Kirk Fell East Top"
``` | 15,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_75 (prom__m_ INTEGER, peak VARCHAR, height__m_ VARCHAR, class VARCHAR)\n\n Question: What is the average prom (m) when ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (college VARCHAR, school VARCHAR)
Question: What college picked someone from The Episcopal Academy?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer your question:
```
SELECT college FROM table_name_47 WHERE school = "The Episcopal Academy";
``` | 15,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_47 (college VARCHAR, school VARCHAR)\n\n Question: What college picked someone from The Episcopal Academy?\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_98 (date VARCHAR, venue VARCHAR)
Question: When was the game at Moorabbin Oval?
Here is the SQLite query to answer to the question: When was the game at Moora... | Here is the SQLite query to answer the question "When was the game at Moorabbin Oval?":
```
SELECT date FROM table_name_98 WHERE venue = "Moorabbin Oval";
``` | 15,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_98 (date VARCHAR, venue VARCHAR)\n\n Question: When was the game at Moorabbin Oval?\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_8 (away_team VARCHAR, home_team VARCHAR)
Question: Who did Hawthorn play against at their home match?
Here is the SQLite query to answer to the question: Who ... | Here is the SQLite query to answer the question: Who did Hawthorn play against at their home match?:
```
SELECT away_team FROM table_name_8 WHERE home_team = 'Hawthorn';
``` | 15,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_8 (away_team VARCHAR, home_team VARCHAR)\n\n Question: Who did Hawthorn play against at their home match?\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_18 (season VARCHAR, points VARCHAR, finish VARCHAR)
Question: What season has a 6th north finish and more than 21 points?
Here is the SQLite query to answer t... | Your SQLite query looks almost correct, but since the `points` column is of type `VARCHAR`, you may need to cast it to an integer to perform a numeric comparison. Here's the refined query:
```
SELECT season FROM table_name_18 WHERE CAST(points AS INTEGER) > 21 AND finish = "6th north"
```
This ensures that the `poin... | 15,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_18 (season VARCHAR, points VARCHAR, finish VARCHAR)\n\n Question: What season has a 6th north finish and more than 21 p... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (language VARCHAR, music_director VARCHAR)
Question: What language does Raj Kamal speak?
Here is the SQLite query to answer to the question: What language ... | Here is the SQLite query to answer the question "What language does Raj Kamal speak?":
```
SELECT language FROM table_name_62 WHERE music_director = "Raj Kamal";
``` | 15,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_62 (language VARCHAR, music_director VARCHAR)\n\n Question: What language does Raj Kamal speak?\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_50 (film_name VARCHAR, music_director VARCHAR, lyricist VARCHAR, year VARCHAR, language VARCHAR)
Question: What 1972 Hindi film had Ravindra Jain directing the... | It looks like there is a small mistake in the query conditions. The query should search specifically for the year 1972 and check that the music director is "Ravindra Jain". Here's the corrected SQLite query:
```
SELECT film_name
FROM table_name_50
WHERE year = '1972' AND language = 'Hindi' AND music_director = 'Ravi... | 15,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_50 (film_name VARCHAR, music_director VARCHAR, lyricist VARCHAR, year VARCHAR, language VARCHAR)\n\n Question: What 197... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (film_name VARCHAR, year VARCHAR, music_director VARCHAR, language VARCHAR, lyricist VARCHAR)
Question: What 1979 Hindi film had Ravindra Jain directing mus... | Here's the corrected SQLite query to answer the question about the 1979 Hindi film that had Ravindra Jain directing music:
```
SELECT film_name FROM table_name_60 WHERE language = "hindi" AND music_director = "Ravindra Jain" AND year = "1979";
``` | 15,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_60 (film_name VARCHAR, year VARCHAR, music_director VARCHAR, language VARCHAR, lyricist VARCHAR)\n\n Question: What 197... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (make VARCHAR, winnings VARCHAR, car__number VARCHAR, points VARCHAR)
Question: Which driver has a # smaller than 40, less than 151 points, and Winnings of ... | Your SQLite query is mostly correct, but there are a couple of adjustments needed to ensure proper functionality. Specifically, we should use single quotes for string literals in SQL, and we need to convert the points to an integer to properly compare them. Here's the improved query:
```sql
SELECT make
FROM table_nam... | 15,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_17 (make VARCHAR, winnings VARCHAR, car__number VARCHAR, points VARCHAR)\n\n Question: Which driver has a # smaller tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (laps INTEGER, winnings VARCHAR, points VARCHAR)
Question: Which driver has less than 61 points, but winnings of $67,675?
Here is the SQLite query to answe... | It looks like there is a small mistake in your query. When checking for a specific string value in SQL, you should use single quotes (`'`) instead of double quotes (`"`). Additionally, if you want to select the driver associated with those conditions, you should specify a column that represents the driver (assuming the... | 15,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_33 (laps INTEGER, winnings VARCHAR, points VARCHAR)\n\n Question: Which driver has less than 61 points, but winnings of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (points INTEGER, winnings VARCHAR)
Question: Which driver has the highest point total after winning $133,386?
Here is the SQLite query to answer to the que... | The SQL query you've provided is almost correct, but it doesn't specify which driver has the highest points. You'll need to include the driver's name in the selection. Assuming there is a column for the driver's name (let's call it `driver`), you would need to rewrite the query. However, based on the provided schema, w... | 15,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_28 (points INTEGER, winnings VARCHAR)\n\n Question: Which driver has the highest point total after winning $133,386?\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 (round INTEGER, player VARCHAR)
Question: What is the average round for martin havlat?
Here is the SQLite query to answer to the question: What is the aver... | Your SQLite query looks correct. Here it is formatted as you requested:
```
SELECT AVG(round) FROM table_name_38 WHERE player = "martin havlat";
``` | 15,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_38 (round INTEGER, player VARCHAR)\n\n Question: What is the average round for martin havlat?\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_38 (name VARCHAR, tries VARCHAR, club VARCHAR)
Question: Who was part of Club Munster with 1 try?
Here is the SQLite query to answer to the question: Who was ... | Here is the SQLite query to answer the question: Who was part of Club Munster with 1 try?:
```sql
SELECT name FROM table_name_38 WHERE tries = '1' AND club = 'Munster';
``` | 15,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_38 (name VARCHAR, tries VARCHAR, club VARCHAR)\n\n Question: Who was part of Club Munster with 1 try?\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_49 (visitor VARCHAR, home VARCHAR, date VARCHAR)
Question: Who was the Visitor when the Home team was Anaheim on the Date of April 12?
Here is the SQLite quer... | Here is the SQLite query to answer the question:
```
SELECT visitor FROM table_name_49 WHERE home = "anaheim" AND date = "april 12";
``` | 15,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_49 (visitor VARCHAR, home VARCHAR, date VARCHAR)\n\n Question: Who was the Visitor when the Home team was Anaheim on th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (decision VARCHAR, date VARCHAR)
Question: What was the Decision on April 18?
Here is the SQLite query to answer to the question: What was the Decision on ... | Here is the SQLite query to answer the question about the Decision on April 18:
```sql
SELECT decision FROM table_name_89 WHERE date = "April 18";
``` | 15,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_89 (decision VARCHAR, date VARCHAR)\n\n Question: What was the Decision on April 18?\n\nHere is the SQLite query to ans... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (home_team VARCHAR, away_team VARCHAR)
Question: What did the team score when playing south melbourne at home?
Here is the SQLite query to answer to the qu... | Based on the provided schema and question, it seems like you're looking to identify the home team's score when they played against South Melbourne. However, the schema only includes home and away teams without any score information. I will assume you want to return the home team that played against South Melbourne rath... | 15,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_38 (home_team VARCHAR, away_team VARCHAR)\n\n Question: What did the team score when playing south melbourne at home?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (home_team VARCHAR, venue VARCHAR)
Question: Which team lives in mcg?
Here is the SQLite query to answer to the question: Which team lives in mcg?:
```
SEL... | Your SQLite query to find out which team lives in "mcg" appears to be correct. Here's how it looks wrapped in the requested code format:
```
SELECT home_team FROM table_name_26 WHERE venue = "mcg";
``` | 15,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_26 (home_team VARCHAR, venue VARCHAR)\n\n Question: Which team lives in mcg?\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_54 (crowd VARCHAR, home_team VARCHAR)
Question: What was the crowd size when st kilda played home?
Here is the SQLite query to answer to the question: What wa... | The query you provided is counting the number of rows (crowd sizes) instead of returning the actual crowd sizes. If you want to retrieve the crowd sizes when St Kilda played at home, you should select the `crowd` field. Here's the corrected query:
```sql
SELECT crowd FROM table_name_54 WHERE home_team = "st kilda";
``... | 15,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_54 (crowd VARCHAR, home_team VARCHAR)\n\n Question: What was the crowd size when st kilda played home?\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_19 (venue VARCHAR, home_team VARCHAR)
Question: What is the home field of the South Melbourne team?
Here is the SQLite query to answer to the question: What i... | Here is the SQLite query to answer the question about the home field of the South Melbourne team:
```
SELECT venue FROM table_name_19 WHERE home_team = "south melbourne";
``` | 15,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_19 (venue VARCHAR, home_team VARCHAR)\n\n Question: What is the home field of the South Melbourne team?\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_64 (overall INTEGER, nationality VARCHAR)
Question: For the player from Finland, what is the highest overall pick rank?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question about the highest overall pick rank for the player from Finland:
```
SELECT MAX(overall) FROM table_name_64 WHERE nationality = "Finland";
``` | 15,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_64 (overall INTEGER, nationality VARCHAR)\n\n Question: For the player from Finland, what is the highest overall pick r... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (laps INTEGER, driver VARCHAR, grid VARCHAR)
Question: what is the least laps when the driver is rolf stommelen and the grid is more than 18?
Here is the S... | Here is the SQLite query to answer the question:
```
SELECT MIN(laps) FROM table_name_99 WHERE driver = "rolf stommelen" AND grid > 18;
``` | 15,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_99 (laps INTEGER, driver VARCHAR, grid VARCHAR)\n\n Question: what is the least laps when the driver is rolf stommelen ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (laps INTEGER, grid VARCHAR)
Question: what is the most laps with a grid of 20?
Here is the SQLite query to answer to the question: what is the most laps w... | Here is the SQLite query to answer the question about the most laps with a grid of 20:
```
SELECT MAX(laps) FROM table_name_71 WHERE grid = '20'
``` | 15,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_71 (laps INTEGER, grid VARCHAR)\n\n Question: what is the most laps with a grid of 20?\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, away_team VARCHAR)
Question: With a North Melbourne away team, what is the average crowd?
Here is the SQLite query to answer to the questio... | ```sql
SELECT AVG(crowd) FROM table_name_35 WHERE away_team = "North Melbourne";
``` | 15,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_35 (crowd INTEGER, away_team VARCHAR)\n\n Question: With a North Melbourne away team, what is the average crowd?\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_57 (venue VARCHAR, away_team VARCHAR)
Question: Which venue does Fitzroy play as an away team?
Here is the SQLite query to answer to the question: Which venue... | Here is the SQLite query to answer the question: Which venue does Fitzroy play as an away team?:
```
SELECT venue FROM table_name_57 WHERE away_team = "Fitzroy";
``` | 15,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_57 (venue VARCHAR, away_team VARCHAR)\n\n Question: Which venue does Fitzroy play as an away team?\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_81 (home_team VARCHAR, venue VARCHAR)
Question: In the game at Glenferrie Oval, what is the home team score?
Here is the SQLite query to answer to the questio... | It seems there might be a misunderstanding in your original query, as it seems to query for the home team, while the question asks for the home team score. However, based on the provided schema, there is no indication of a column that stores scores. The schema only includes a `home_team` and a `venue`.
Assuming you ar... | 15,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_81 (home_team VARCHAR, venue VARCHAR)\n\n Question: In the game at Glenferrie Oval, what is the home team score?\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_95 (away_team VARCHAR, home_team VARCHAR)
Question: In the game against Essendon at home, what did the away team score?
Here is the SQLite query to answer to ... | The provided query is incorrect since it doesn't address the requirement of retrieving the score of the away team in a game where Essendon is the home team. Additionally, it does not take the scores into account, as the schema provided does not include any column for scores.
Assuming there is an implicit or related ta... | 15,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_95 (away_team VARCHAR, home_team VARCHAR)\n\n Question: In the game against Essendon at home, what did the away team sc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (lowest INTEGER, stadium VARCHAR, average VARCHAR)
Question: What's the highest lowest number of capacity that ibrox stadium has when the average is larger ... | The provided SQL query you have written contains a mistake in the condition for filtering the average value. The comparison should directly check if the average is greater than 49,143, rather than using an incorrect OFFSET clause.
Here is the correct SQL query:
```sql
SELECT MAX(lowest)
FROM table_name_67
WHERE st... | 15,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_67 (lowest INTEGER, stadium VARCHAR, average VARCHAR)\n\n Question: What's the highest lowest number of capacity that i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (role VARCHAR, direction VARCHAR)
Question: Which role had thulasidas direction?
Here is the SQLite query to answer to the question: Which role had thulasi... | Here is the SQLite query to answer the question regarding which role had the direction "thulasidas":
```
SELECT role FROM table_name_55 WHERE direction = 'thulasidas';
``` | 15,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_55 (role VARCHAR, direction VARCHAR)\n\n Question: Which role had thulasidas direction?\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_34 (role VARCHAR, year VARCHAR, direction VARCHAR)
Question: Which role did joemon play before 1991?
Here is the SQLite query to answer to the question: Which... | Your query has an error in the logic. The `direction` field should not be used to filter for the name "joemon", as `direction` typically refers to film direction. Instead, you should filter by the `role` for the specified `joemon`. Here is the corrected SQLite query:
```
SELECT role FROM table_name_34 WHERE year < '19... | 15,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_34 (role VARCHAR, year VARCHAR, direction VARCHAR)\n\n Question: Which role did joemon play before 1991?\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_52 (wins VARCHAR, cuts_made VARCHAR, top_10 VARCHAR, events VARCHAR)
Question: What is the number of wins that has a top-10 of 2, and more events than 8, more ... | Here’s the SQLite query wrapped in the proper code format to answer your question:
```
SELECT COUNT(wins) FROM table_name_52 WHERE top_10 = 2 AND events > 8 AND cuts_made > 6
``` | 15,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_52 (wins VARCHAR, cuts_made VARCHAR, top_10 VARCHAR, events VARCHAR)\n\n Question: What is the number of wins that has ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (wins INTEGER, top_25 VARCHAR, events VARCHAR)
Question: What is the highest number of wins that has a top-25 of 13 and events less than 32?
Here is the SQ... | Here is the SQLite query to answer the question regarding the highest number of wins with a top-25 of 13 and events less than 32:
```
SELECT MAX(wins) FROM table_name_76 WHERE top_25 = '13' AND events < '32';
```
Note: In SQLite, the data type of the `top_25` and `events` fields appears to be VARCHAR based on the sc... | 15,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_76 (wins INTEGER, top_25 VARCHAR, events VARCHAR)\n\n Question: What is the highest number of wins that has a top-25 of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (wins VARCHAR, tournament VARCHAR, top_25 VARCHAR)
Question: What is the number of Tournament of U.S. Open wins with a Top-25 smaller than 4?
Here is the S... | Your SQLite query is almost correct, but there is a small issue with how you are comparing the `top_25` column. Given that `top_25` is defined as a `VARCHAR`, you need to cast it to an integer (or use it directly in a way that makes sense for your comparison). Here’s the corrected query:
```sql
SELECT COUNT(wins)
FRO... | 15,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_79 (wins VARCHAR, tournament VARCHAR, top_25 VARCHAR)\n\n Question: What is the number of Tournament of U.S. Open wins ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (theme VARCHAR, show VARCHAR, order VARCHAR)
Question: For the week 1 show and order 2, what was the theme?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question regarding the theme for the week 1 show and order 2:
```
SELECT theme FROM table_name_59 WHERE show = "week 1" AND order = "2";
``` | 15,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_59 (theme VARCHAR, show VARCHAR, order VARCHAR)\n\n Question: For the week 1 show and order 2, what was the theme?\n\nH... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.