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_21839208_4 (record VARCHAR, week VARCHAR)
Question: What was their record in week 11?
Here is the SQLite query to answer to the question: What was their record in ... | Here is the SQLite query to answer the question about their record in week 11:
```
SELECT record FROM table_21839208_4 WHERE week = '11';
``` | 35,000 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21839208_4 (record VARCHAR, week VARCHAR)\n\n Question: What was their record in week 11?\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_2187333_1 (wins INTEGER)
Question: Name the least wins
Here is the SQLite query to answer to the question: Name the least wins:
```
SELECT MIN(wins) FROM table_218... | Here is the SQLite query to name the least wins:
```
SELECT MIN(wins) FROM table_2187333_1;
``` | 35,001 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2187333_1 (wins INTEGER)\n\n Question: Name the least wins\n\nHere is the SQLite query to answer to the question: Name the l... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2187333_1 (avg_start VARCHAR, avg_finish VARCHAR)
Question: Name the avg start for avg finish of 18.3
Here is the SQLite query to answer to the question: Name the ... | Your SQLite query looks correct for retrieving the `avg_start` corresponding to the `avg_finish` of `18.3`. Here it is wrapped in code format as you requested:
```
SELECT avg_start FROM table_2187333_1 WHERE avg_finish = "18.3"
``` | 35,002 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2187333_1 (avg_start VARCHAR, avg_finish VARCHAR)\n\n Question: Name the avg start for avg finish of 18.3\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_2187333_1 (year VARCHAR, team_s_ VARCHAR, poles VARCHAR)
Question: Name the year for #16 roush racing for poles less than smaller 1.0
Here is the SQLite query to a... | Here is the SQLite query to answer the question about the year for #16 Roush Racing with poles less than 1.0:
```sql
SELECT year FROM table_2187333_1 WHERE team_s_ = '#16 Roush Racing' AND poles < '1.0'
```
Note: I've kept the string comparison for `poles` assuming `poles` is stored as a VARCHAR as per the schema. I... | 35,003 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2187333_1 (year VARCHAR, team_s_ VARCHAR, poles VARCHAR)\n\n Question: Name the year for #16 roush racing for poles less tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2187178_1 (listed_owner_s_ VARCHAR, primary_sponsor_s_ VARCHAR)
Question: Name the listen owners for repairone
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question: Name the listen owners for RepairOne:
```
SELECT listed_owner_s_ FROM table_2187178_1 WHERE primary_sponsor_s_ = "RepairOne";
``` | 35,004 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2187178_1 (listed_owner_s_ VARCHAR, primary_sponsor_s_ VARCHAR)\n\n Question: Name the listen owners for repairone\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2187178_1 (truck_s_ VARCHAR, crew_chief VARCHAR)
Question: Name the trucks for scott neal
Here is the SQLite query to answer to the question: Name the trucks for s... | Here is the SQLite query to answer the question: Name the trucks for Scott Neal:
```
SELECT truck_s_ FROM table_2187178_1 WHERE crew_chief = "Scott Neal"
``` | 35,005 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2187178_1 (truck_s_ VARCHAR, crew_chief VARCHAR)\n\n Question: Name the trucks for scott neal\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_2187178_1 (listed_owner_s_ VARCHAR, team VARCHAR)
Question: Name the listed owners for brevak racing
Here is the SQLite query to answer to the question: Name the l... | Here is the SQLite query to answer the question about naming the listed owners for Brevak Racing:
```sql
SELECT listed_owner_s_ FROM table_2187178_1 WHERE team = 'Brevak Racing';
``` | 35,006 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2187178_1 (listed_owner_s_ VARCHAR, team VARCHAR)\n\n Question: Name the listed owners for brevak racing\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_2187178_1 (crew_chief VARCHAR, driver_s_ VARCHAR)
Question: Name the crew chief for ricky craven
Here is the SQLite query to answer to the question: Name the crew ... | Here is the SQLite query to answer the question: Name the crew chief for Ricky Craven:
```sql
SELECT crew_chief FROM table_2187178_1 WHERE driver_s_ = "Ricky Craven";
``` | 35,007 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2187178_1 (crew_chief VARCHAR, driver_s_ VARCHAR)\n\n Question: Name the crew chief for ricky craven\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_2187178_1 (driver_s_ VARCHAR, primary_sponsor_s_ VARCHAR)
Question: Name the drivers for superchips
Here is the SQLite query to answer to the question: Name the dr... | Here is the SQLite query to answer the question "Name the drivers for superchips":
```
SELECT driver_s_ FROM table_2187178_1 WHERE primary_sponsor_s_ = "Superchips"
``` | 35,008 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2187178_1 (driver_s_ VARCHAR, primary_sponsor_s_ VARCHAR)\n\n Question: Name the drivers for superchips\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_21904740_1 (year__ceremony_ VARCHAR, spanish_title VARCHAR)
Question: When was Viva Cuba submitted?
Here is the SQLite query to answer to the question: When was Vi... | Here is the SQLite query to answer the question: When was Viva Cuba submitted?:
```
SELECT year__ceremony_ FROM table_21904740_1 WHERE spanish_title = "Viva Cuba"
``` | 35,009 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21904740_1 (year__ceremony_ VARCHAR, spanish_title VARCHAR)\n\n Question: When was Viva Cuba submitted?\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_2189647_1 (name_or_number VARCHAR, yield__megatons_ VARCHAR)
Question: Name the name for 15 yield
Here is the SQLite query to answer to the question: Name the name... | Here is the SQLite query to name the name for 15 yield:
```
SELECT name_or_number FROM table_2189647_1 WHERE yield__megatons_ = "15"
``` | 35,010 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2189647_1 (name_or_number VARCHAR, yield__megatons_ VARCHAR)\n\n Question: Name the name for 15 yield\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_21926985_2 (state_rank_by_revenue VARCHAR, known_for VARCHAR)
Question: What is the rank of the company known for retailing?
Here is the SQLite query to answer to ... | To find the rank of the company known for retailing, you typically want to retrieve the specific `state_rank_by_revenue` value associated with that company. The query you've provided counts the number of entries where `known_for` is "Retailing", which isn't quite the same as retrieving the rank.
Here’s the corrected S... | 35,011 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21926985_2 (state_rank_by_revenue VARCHAR, known_for VARCHAR)\n\n Question: What is the rank of the company known for retail... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21926985_2 (state_rank_by_revenue VARCHAR, company_name VARCHAR)
Question: What is the rank for Murphy Oil?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question regarding the rank for Murphy Oil:
```
SELECT state_rank_by_revenue FROM table_21926985_2 WHERE company_name = "Murphy Oil"
``` | 35,012 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21926985_2 (state_rank_by_revenue VARCHAR, company_name VARCHAR)\n\n Question: What is the rank for Murphy Oil?\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_21926985_2 (headquarters_city VARCHAR, revenue__$billions__2012_estimate VARCHAR)
Question: Where is the company with estimated revenue of 33.3 billion headquartere... | Here is the SQLite query formatted as requested:
```
SELECT headquarters_city FROM table_21926985_2 WHERE revenue__$billions__2012_estimate = "33.3"
``` | 35,013 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21926985_2 (headquarters_city VARCHAR, revenue__$billions__2012_estimate VARCHAR)\n\n Question: Where is the company with es... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21926985_2 (national_rank INTEGER, company_name VARCHAR)
Question: What is the national rank of Windstream?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question regarding the national rank of Windstream:
```
SELECT national_rank FROM table_21926985_2 WHERE company_name = "Windstream";
``` | 35,014 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21926985_2 (national_rank INTEGER, company_name VARCHAR)\n\n Question: What is the national rank of Windstream?\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_21926985_2 (state_rank_by_revenue VARCHAR, revenue__$billions__2012_estimate VARCHAR)
Question: What is the state rank of the company with 6.8 billion in revenue?
... | Here is the SQLite query to answer the question about the state rank of the company with 6.8 billion in revenue:
```sql
SELECT state_rank_by_revenue FROM table_21926985_2 WHERE revenue__$billions__2012_estimate = "6.8"
``` | 35,015 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21926985_2 (state_rank_by_revenue VARCHAR, revenue__$billions__2012_estimate VARCHAR)\n\n Question: What is the state rank o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21977704_1 (entrant VARCHAR, driver VARCHAR)
Question: Name the entrant for benedicto campos
Here is the SQLite query to answer to the question: Name the entrant f... | Here is the SQLite query to answer the question "Name the entrant for benedicto campos":
```
SELECT entrant FROM table_21977704_1 WHERE driver = "Benedicto Campos"
``` | 35,016 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21977704_1 (entrant VARCHAR, driver VARCHAR)\n\n Question: Name the entrant for benedicto campos\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_21977704_1 (no VARCHAR, entrant VARCHAR, driver VARCHAR)
Question: Name the number for automóvil club argentino for juan manuel fangio
Here is the SQLite query to... | Here is the SQLite query formatted properly to answer the question regarding the number for "Automóvil Club Argentino" for "Juan Manuel Fangio":
```
SELECT no FROM table_21977704_1 WHERE entrant = "Automóvil Club Argentino" AND driver = "Juan Manuel Fangio";
``` | 35,017 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21977704_1 (no VARCHAR, entrant VARCHAR, driver VARCHAR)\n\n Question: Name the number for automóvil club argentino for jua... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21977704_1 (no INTEGER, entrant VARCHAR, driver VARCHAR)
Question: Name the most number for automóvil club argentino for benedicto campos
Here is the SQLite query ... | Here is the SQLite query to answer the question about naming the most number for Automóvil Club Argentino for Benedicto Campos:
```
SELECT MAX(no) FROM table_21977704_1 WHERE entrant = "Automóvil Club Argentino" AND driver = "Benedicto Campos"
``` | 35,018 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21977704_1 (no INTEGER, entrant VARCHAR, driver VARCHAR)\n\n Question: Name the most number for automóvil club argentino for... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21977704_1 (driver VARCHAR, engine VARCHAR)
Question: Name the driver for talbot l6
Here is the SQLite query to answer to the question: Name the driver for talbot ... | Here is the SQLite query to answer the question about naming the driver for the Talbot L6:
```
SELECT driver FROM table_21977704_1 WHERE engine = 'Talbot L6';
``` | 35,019 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21977704_1 (driver VARCHAR, engine VARCHAR)\n\n Question: Name the driver for talbot l6\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_21977704_1 (constructor VARCHAR, driver VARCHAR)
Question: Name the constructor for alberto ascari
Here is the SQLite query to answer to the question: Name the con... | Here is the SQLite query to answer the question: Name the constructor for Alberto Ascari:
```
SELECT constructor FROM table_21977704_1 WHERE driver = "Alberto Ascari"
``` | 35,020 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21977704_1 (constructor VARCHAR, driver VARCHAR)\n\n Question: Name the constructor for alberto ascari\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_21977704_1 (chassis VARCHAR, constructor VARCHAR)
Question: Name the chassis for alta
Here is the SQLite query to answer to the question: Name the chassis for alta... | Here is the SQLite query to answer the question "Name the chassis for alta":
```
SELECT chassis FROM table_21977704_1 WHERE constructor = "alta";
``` | 35,021 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21977704_1 (chassis VARCHAR, constructor VARCHAR)\n\n Question: Name the chassis for alta\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_21977627_1 (no INTEGER, chassis VARCHAR)
Question: The Maserati 4cl's minimum no was?
Here is the SQLite query to answer to the question: The Maserati 4cl's minimu... | Here is the SQLite query to find the minimum `no` for the Maserati 4CL:
```
SELECT MIN(no) FROM table_21977627_1 WHERE chassis = "Maserati 4CL"
``` | 35,022 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21977627_1 (no INTEGER, chassis VARCHAR)\n\n Question: The Maserati 4cl's minimum no was?\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_21977627_1 (entrant VARCHAR, driver VARCHAR)
Question: How many entrants was yves giraud-cabantous?
Here is the SQLite query to answer to the question: How many en... | Here is the SQLite query to answer the question: How many entrants was Yves Giraud-Cabantous?:
```
SELECT COUNT(entrant) FROM table_21977627_1 WHERE driver = "Yves Giraud-Cabantous"
``` | 35,023 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21977627_1 (entrant VARCHAR, driver VARCHAR)\n\n Question: How many entrants was yves giraud-cabantous?\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_21977627_1 (chassis VARCHAR, engine VARCHAR)
Question: What chasis did the maserati l6s have?
Here is the SQLite query to answer to the question: What chasis did t... | Here is the SQLite query to answer the question regarding the chassis of the Maserati L6s:
```sql
SELECT chassis FROM table_21977627_1 WHERE engine = 'Maserati L6s';
``` | 35,024 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21977627_1 (chassis VARCHAR, engine VARCHAR)\n\n Question: What chasis did the maserati l6s have?\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_21977627_1 (driver VARCHAR, entrant VARCHAR)
Question: How many drivers did Bob Gerard Racing have?
Here is the SQLite query to answer to the question: How many dr... | Here is the SQLite query to answer the question:
```
SELECT COUNT(driver) FROM table_21977627_1 WHERE entrant = "Bob Gerard Racing";
``` | 35,025 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21977627_1 (driver VARCHAR, entrant VARCHAR)\n\n Question: How many drivers did Bob Gerard Racing have?\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_21991074_1 (pts_agst VARCHAR, points VARCHAR)
Question: For the team with 7 points, how many points were scored against this season?
Here is the SQLite query to an... | The SQLite query you've provided is almost correct, but you need to ensure that the `points` column is treated as an integer if it's a VARCHAR and you're checking for the value 7. Here’s the query wrapped in the appropriate format:
```
SELECT COUNT(pts_agst) FROM table_21991074_1 WHERE CAST(points AS INTEGER) = 7;
```... | 35,026 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21991074_1 (pts_agst VARCHAR, points VARCHAR)\n\n Question: For the team with 7 points, how many points were scored against ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21991074_1 (pts_agst INTEGER)
Question: What is the maximum number of points scored against?
Here is the SQLite query to answer to the question: What is the maximu... | Here is the SQLite query to answer the question regarding the maximum number of points scored against:
```
SELECT MAX(pts_agst) FROM table_21991074_1;
``` | 35,027 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21991074_1 (pts_agst INTEGER)\n\n Question: What is the maximum number of points scored against?\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_21991074_1 (average VARCHAR, club VARCHAR)
Question: What is Chesterfield Spires average?
Here is the SQLite query to answer to the question: What is Chesterfield ... | Here is the SQLite query that answers the question "What is Chesterfield Spires average?":
```
SELECT average FROM table_21991074_1 WHERE club = "Chesterfield Spires"
``` | 35,028 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21991074_1 (average VARCHAR, club VARCHAR)\n\n Question: What is Chesterfield Spires average?\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_21980_1 (january__ VARCHAR, july__°c_ VARCHAR)
Question: What is the total number of January (°C) temperatures when the July (°C) temperatures were 22/13?
Here is ... | Here is the corrected SQLite query to answer the question:
```sql
SELECT COUNT(january__) AS °c_ FROM table_21980_1 WHERE july__°c_ = "22/13"
```
This query counts the number of January temperature entries recorded in the `january__` column of the `table_21980_1` table where the corresponding July temperature is "22... | 35,029 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21980_1 (january__ VARCHAR, july__°c_ VARCHAR)\n\n Question: What is the total number of January (°C) temperatures when the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21980_1 (january__ VARCHAR, july__°c_ VARCHAR)
Question: What is the total number of January (°C) temperatures when the July (°C) temperatures were 23/15?
Here is ... | Here is the SQLite query to answer the question regarding the total number of January (°C) temperatures when the July (°C) temperatures were 23/15:
```
SELECT COUNT(january__) AS °c_ FROM table_21980_1 WHERE july__°c_ = "23/15"
``` | 35,030 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21980_1 (january__ VARCHAR, july__°c_ VARCHAR)\n\n Question: What is the total number of January (°C) temperatures when the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21980_1 (location VARCHAR, january__°f_ VARCHAR)
Question: In what location were the January (°F) temperatures 30/17?
Here is the SQLite query to answer to the que... | Here's the SQLite query to find the location where the January (°F) temperatures were 30/17:
```
SELECT location FROM table_21980_1 WHERE january__°f_ = "30/17";
``` | 35,031 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21980_1 (location VARCHAR, january__°f_ VARCHAR)\n\n Question: In what location were the January (°F) temperatures 30/17?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21980_1 (july__°c_ VARCHAR, july__°f_ VARCHAR)
Question: What were the July (°C) temperatures when the July (°F) temperatures were 71/55?
Here is the SQLite query... | Here is the SQLite query that answers the question about the July (°C) temperatures when the July (°F) temperatures were 71/55:
```
SELECT july__°c_ FROM table_21980_1 WHERE july__°f_ = "71/55"
``` | 35,032 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21980_1 (july__°c_ VARCHAR, july__°f_ VARCHAR)\n\n Question: What were the July (°C) temperatures when the July (°F) temper... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21980_1 (january__°f_ VARCHAR, location VARCHAR)
Question: What were the January (°F) temperatures in the Corner Brook location?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question about the January (°F) temperatures in the Corner Brook location, wrapped as requested:
```
SELECT january__°f_ FROM table_21980_1 WHERE location = "Corner Brook"
``` | 35,033 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21980_1 (january__°f_ VARCHAR, location VARCHAR)\n\n Question: What were the January (°F) temperatures in the Corner Brook ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21991074_3 (pts_agst INTEGER)
Question: Name the most points agst
Here is the SQLite query to answer to the question: Name the most points agst:
```
SELECT MAX(pts... | Here is the SQLite query to answer the question regarding the most points against:
```
SELECT MAX(pts_agst) FROM table_21991074_3
``` | 35,034 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21991074_3 (pts_agst INTEGER)\n\n Question: Name the most points agst\n\nHere is the SQLite query to answer to the question:... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21991074_3 (lost INTEGER)
Question: Name the least lost
Here is the SQLite query to answer to the question: Name the least lost:
```
SELECT MIN(lost) FROM table_21... | Here's the SQLite query to find the least lost value from the specified table:
```
SELECT MIN(lost) FROM table_21991074_3;
``` | 35,035 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21991074_3 (lost INTEGER)\n\n Question: Name the least lost\n\nHere is the SQLite query to answer to the question: Name the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21979779_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
Question: who are the writers of the episode that had 3.07 millions of North American spectators?
Her... | ```sql
SELECT written_by FROM table_21979779_1 WHERE us_viewers__million_ = "3.07"
``` | 35,036 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21979779_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)\n\n Question: who are the writers of the episode that had 3.07... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21979779_1 (no INTEGER, production_code VARCHAR)
Question: what is the biggest series episode number whose production code is 2t7211?
Here is the SQLite query to a... | Here is the SQLite query to find the biggest series episode number whose production code is 2t7211:
```
SELECT MAX(no) FROM table_21979779_1 WHERE production_code = "2t7211";
``` | 35,037 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21979779_1 (no INTEGER, production_code VARCHAR)\n\n Question: what is the biggest series episode number whose production co... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21979779_1 (no INTEGER, production_code VARCHAR)
Question: what is the smallest series episode number whose production code is 2t7211?
Here is the SQLite query to ... | Your SQLite query is almost correct, but you need to ensure that the production code is matched in a case-insensitive manner since SQLite's string comparison is case-sensitive by default. It's also a good practice to ensure the comparison string matches the exact case. However, if you want to maintain case insensitivit... | 35,038 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21979779_1 (no INTEGER, production_code VARCHAR)\n\n Question: what is the smallest series episode number whose production c... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21979779_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
Question: when was the premiere of the episode where the amount of North American spectators wa... | Here is the SQLite query to answer the question regarding the premiere of the episode where the amount of North American spectators was 1.76 million:
```
SELECT original_air_date FROM table_21979779_1 WHERE us_viewers__million_ = "1.76"
``` | 35,039 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21979779_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)\n\n Question: when was the premiere of the episode wher... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21994729_3 (series__number INTEGER, prod_code VARCHAR)
Question: how many maximum series number have 2apx05 prod. code.
Here is the SQLite query to answer to the q... | Your query is almost correct, but if you want to count how many times the maximum series number appears for the prod_code "2apx05", you will need to first find the maximum series number and then count the occurrences of that number in the table. Here’s the correct query to achieve that:
```sql
SELECT COUNT(*)
FROM ta... | 35,040 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21994729_3 (series__number INTEGER, prod_code VARCHAR)\n\n Question: how many maximum series number have 2apx05 prod. code.\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21994729_3 (title VARCHAR, directed_by VARCHAR)
Question: What are all the title directed by reginald hudlin
Here is the SQLite query to answer to the question: Wh... | The provided SQL query counts the number of titles directed by Reginald Hudlin, but it does not return the actual titles. If you want to retrieve all the titles directed by Reginald Hudlin, you should use the following SQL query:
```
SELECT title FROM table_21994729_3 WHERE directed_by = "Reginald Hudlin"
```
This q... | 35,041 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21994729_3 (title VARCHAR, directed_by VARCHAR)\n\n Question: What are all the title directed by reginald hudlin\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_21994729_3 (written_by VARCHAR, directed_by VARCHAR)
Question: reginald hudlin directed how many written by.
Here is the SQLite query to answer to the question: re... | To find out how many entries were written by authors under the direction of "Reginald Hudlin," you need to count the number of distinct authors in the results. Here is the corrected SQLite query:
```
SELECT COUNT(written_by) AS number_of_writers
FROM table_21994729_3
WHERE directed_by = "Reginald Hudlin";
```
This q... | 35,042 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21994729_3 (written_by VARCHAR, directed_by VARCHAR)\n\n Question: reginald hudlin directed how many written by.\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_21994729_2 (written_by VARCHAR, prod_code VARCHAR)
Question: Who wore the episode with the production code of 1apx11?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question about who wore the episode with the production code of 1apx11:
```
SELECT written_by FROM table_21994729_2 WHERE prod_code = "1apx11"
``` | 35,043 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21994729_2 (written_by VARCHAR, prod_code VARCHAR)\n\n Question: Who wore the episode with the production code of 1apx11?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21995420_9 (total VARCHAR, rank VARCHAR)
Question: If the rank is 11, what is the total amount?
Here is the SQLite query to answer to the question: If the rank is ... | Your SQLite query is mostly correct, but since the `rank` column is defined as a `VARCHAR`, you should wrap the value `11` in quotes to ensure it's treated as a string. Here’s the updated query:
```
SELECT total FROM table_21995420_9 WHERE rank = '11'
``` | 35,044 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21995420_9 (total VARCHAR, rank VARCHAR)\n\n Question: If the rank is 11, what is the total amount?\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_21995420_9 (stunts VARCHAR, school VARCHAR)
Question: If the school is Central Colleges of the Philippines CCP Bobcats, what is the stunts number?
Here is the SQLi... | Here is the SQLite query to answer the question:
```
SELECT stunts FROM table_21995420_9 WHERE school = "Central Colleges of the Philippines CCP Bobcats"
``` | 35,045 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_21995420_9 (stunts VARCHAR, school VARCHAR)\n\n Question: If the school is Central Colleges of the Philippines CCP Bobcats, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22011138_7 (pos VARCHAR)
Question: If the POS is 3, what is the 08 points?
Here is the SQLite query to answer to the question: If the POS is 3, what is the 08 poin... | It looks like you want to retrieve a specific value (08 points) based on a condition where the POS is 3. However, using a numeric representation with a leading zero (like `08`) in SQLite is unusual. Here’s the corrected version of your query, which will give you the desired output:
```sql
SELECT 8 AS _pts FROM table_2... | 35,046 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22011138_7 (pos VARCHAR)\n\n Question: If the POS is 3, what is the 08 points?\n\nHere is the SQLite query to answer to the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22011138_7 (team VARCHAR)
Question: If the team is Rubio ñú, what is the 08 points?
Here is the SQLite query to answer to the question: If the team is Rubio ñú, wh... | Here is the SQLite query to answer the question "If the team is Rubio ñú, what is the 08 points?":
```sql
SELECT 08 AS _pts FROM table_22011138_7 WHERE team = "Rubio ñú"
``` | 35,047 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22011138_7 (team VARCHAR)\n\n Question: If the team is Rubio ñú, what is the 08 points?\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_22011138_7 (total_pts INTEGER, avg VARCHAR)
Question: If the average is 1.2803, what is the total points maximum?
Here is the SQLite query to answer to the questio... | Your provided SQLite query is correct for retrieving the maximum total points where the average is 1.2803. Here it is wrapped as requested:
```
SELECT MAX(total_pts) FROM table_22011138_7 WHERE avg = "1.2803";
``` | 35,048 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22011138_7 (total_pts INTEGER, avg VARCHAR)\n\n Question: If the average is 1.2803, what is the total points maximum?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22011138_7 (total_pld VARCHAR, pos VARCHAR)
Question: If the POS is 4, what is the total PLD?
Here is the SQLite query to answer to the question: If the POS is 4, ... | Here is the SQLite query wrapped in the requested format:
```
SELECT total_pld FROM table_22011138_7 WHERE pos = '4'
```
Note that I have enclosed the number 4 in single quotes since the `pos` column is of type VARCHAR. | 35,049 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22011138_7 (total_pld VARCHAR, pos VARCHAR)\n\n Question: If the POS is 4, what is the total PLD?\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_22014431_3 (team_name VARCHAR, total VARCHAR)
Question: What is the team name when 243 is the total?
Here is the SQLite query to answer to the question: What is th... | Here is the SQLite query to answer the question about the team name when the total is 243:
```
SELECT team_name FROM table_22014431_3 WHERE total = "243"
``` | 35,050 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22014431_3 (team_name VARCHAR, total VARCHAR)\n\n Question: What is the team name when 243 is the total?\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_22014431_3 (team_name VARCHAR, tumbling VARCHAR)
Question: Which team names have 44.5 for tumbling?
Here is the SQLite query to answer to the question: Which team ... | Here is the SQLite query to answer the question about which team names have 44.5 for tumbling:
```sql
SELECT team_name FROM table_22014431_3 WHERE tumbling = "44.5";
``` | 35,051 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22014431_3 (team_name VARCHAR, tumbling VARCHAR)\n\n Question: Which team names have 44.5 for tumbling?\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_22014431_3 (total VARCHAR, tosses_pyramids VARCHAR)
Question: What is the total if 44 is tosses/pyramids?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question:
```
SELECT total FROM table_22014431_3 WHERE tosses_pyramids = '44'
``` | 35,052 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22014431_3 (total VARCHAR, tosses_pyramids VARCHAR)\n\n Question: What is the total if 44 is tosses/pyramids?\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_22014431_3 (deductions VARCHAR, tosses_pyramids VARCHAR)
Question: How many deductions have 56.5 as tosses/pyramids?
Here is the SQLite query to answer to the ques... | To answer the question about how many deductions have 56.5 as tosses/pyramids, you should use a `COUNT` function in your query. Here is the corrected SQLite query:
```
SELECT COUNT(deductions) FROM table_22014431_3 WHERE tosses_pyramids = "56.5"
``` | 35,053 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22014431_3 (deductions VARCHAR, tosses_pyramids VARCHAR)\n\n Question: How many deductions have 56.5 as tosses/pyramids?\n\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22014431_3 (rank VARCHAR, tumbling VARCHAR)
Question: What is the rank when 36.5 is tumbling?
Here is the SQLite query to answer to the question: What is the rank ... | To answer the question "What is the rank when 36.5 is tumbling?", the SQLite query you provided counts the number of ranks associated with tumbling value 36.5. However, if you want to retrieve the `rank` itself rather than counting it, the query would be slightly different. Here's the correct query:
```
SELECT rank FR... | 35,054 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22014431_3 (rank VARCHAR, tumbling VARCHAR)\n\n Question: What is the rank when 36.5 is tumbling?\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_22014431_3 (rank INTEGER, tosses_pyramids VARCHAR)
Question: What is the rank when 64.5 is tosses/pyramids?
Here is the SQLite query to answer to the question: Wha... | Your query seems to be structured correctly to retrieve the rank when the value of `tosses_pyramids` is "64.5". However, if you want a direct answer to find the specific rank for the value '64.5', the query does need to focus on the specific value you are interested in. Here it is wrapped in the requested format:
```
... | 35,055 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22014431_3 (rank INTEGER, tosses_pyramids VARCHAR)\n\n Question: What is the rank when 64.5 is tosses/pyramids?\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_2201724_2 (outcome VARCHAR, championship VARCHAR)
Question: How many different outcomes of the French Championships were there?
Here is the SQLite query to answer ... | Your SQLite query is almost correct, but it should use `DISTINCT` to count only the different outcomes. Here is the revised query:
```sql
SELECT COUNT(DISTINCT outcome) FROM table_2201724_2 WHERE championship = "French Championships";
``` | 35,056 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2201724_2 (outcome VARCHAR, championship VARCHAR)\n\n Question: How many different outcomes of the French Championships were... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2201724_2 (score_in_the_final VARCHAR, year VARCHAR)
Question: How many different final scores were there in 1963?
Here is the SQLite query to answer to the questi... | The query you've provided will count the total number of scores for the year 1963, but it does not account for distinct scores. To find out how many different final scores there were in 1963, you should use `COUNT(DISTINCT score_in_the_final)`. Here is the corrected SQLite query:
```
SELECT COUNT(DISTINCT score_in_the... | 35,057 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2201724_2 (score_in_the_final VARCHAR, year VARCHAR)\n\n Question: How many different final scores were there in 1963?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22020724_1 (director VARCHAR, film_title_used_in_nomination VARCHAR)
Question: Who directed the film titled 'Steam of Life'?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question: Who directed the film titled 'Steam of Life'?:
```
SELECT director FROM table_22020724_1 WHERE film_title_used_in_nomination = 'Steam of Life';
``` | 35,058 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22020724_1 (director VARCHAR, film_title_used_in_nomination VARCHAR)\n\n Question: Who directed the film titled 'Steam of Li... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22020724_1 (year__ceremony_ VARCHAR, title_in_the_original_language VARCHAR)
Question: What year was the ceremony where the film 'Tummien Perhosten Koti' was submit... | Here is the SQLite query to answer the question about the year of the ceremony where the film 'Tummien Perhosten Koti' was submitted:
```
SELECT year__ceremony_ FROM table_22020724_1 WHERE title_in_the_original_language = 'Tummien Perhosten Koti';
``` | 35,059 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22020724_1 (year__ceremony_ VARCHAR, title_in_the_original_language VARCHAR)\n\n Question: What year was the ceremony where ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22020724_1 (result VARCHAR, title_in_the_original_language VARCHAR)
Question: What are the results for the film titled 'Joki'?
Here is the SQLite query to answer t... | ```sql
SELECT result FROM table_22020724_1 WHERE title_in_the_original_language = "Joki";
``` | 35,060 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22020724_1 (result VARCHAR, title_in_the_original_language VARCHAR)\n\n Question: What are the results for the film titled '... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2203760_4 (domestic_box_office VARCHAR, foreign_box_office VARCHAR)
Question: What was the domestic box office for the film that had a foreign box office of $26,600... | Here is the SQLite query to answer the question regarding the domestic box office for the film with a foreign box office of $26,600,000:
```
SELECT domestic_box_office FROM table_2203760_4 WHERE foreign_box_office = '26,600,000'
```
Note that in SQL, it's generally recommended to use single quotes for string literal... | 35,061 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2203760_4 (domestic_box_office VARCHAR, foreign_box_office VARCHAR)\n\n Question: What was the domestic box office for the f... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2203760_4 (domestic_box_office VARCHAR, film VARCHAR)
Question: What was the domestic box office for "House on Haunted Hill"?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question about the domestic box office for "House on Haunted Hill":
```
SELECT domestic_box_office FROM table_2203760_4 WHERE film = "House on Haunted Hill"
``` | 35,062 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2203760_4 (domestic_box_office VARCHAR, film VARCHAR)\n\n Question: What was the domestic box office for \"House on Haunted ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2203760_4 (budget VARCHAR, film VARCHAR)
Question: What was the budget for "Thirteen Ghosts"?
Here is the SQLite query to answer to the question: What was the budg... | Here is the SQLite query to answer the question about the budget for "Thirteen Ghosts":
```
SELECT budget FROM table_2203760_4 WHERE film = "Thirteen Ghosts"
``` | 35,063 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2203760_4 (budget VARCHAR, film VARCHAR)\n\n Question: What was the budget for \"Thirteen Ghosts\"?\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_22043925_1 (school VARCHAR, location VARCHAR)
Question: What is every school for the Adelaide location?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question about every school for the Adelaide location:
```
SELECT school FROM table_22043925_1 WHERE location = "Adelaide"
``` | 35,064 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22043925_1 (school VARCHAR, location VARCHAR)\n\n Question: What is every school for the Adelaide location?\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_22043925_1 (founded VARCHAR, enrolment VARCHAR)
Question: How many values for founded when enrollment is 850?
Here is the SQLite query to answer to the question: H... | Your SQLite query looks almost correct, but the `enrolment` field is defined as a `VARCHAR`, so you should compare it with a string. Here’s the corrected query:
```
SELECT COUNT(founded) FROM table_22043925_1 WHERE enrolment = '850'
```
This query will count the number of non-null values in the `founded` column wher... | 35,065 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22043925_1 (founded VARCHAR, enrolment VARCHAR)\n\n Question: How many values for founded when enrollment is 850?\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_22043925_1 (denomination VARCHAR, school VARCHAR)
Question: What is every denomination for the school Seymour college?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question about every denomination for the school Seymour College:
```
SELECT denomination FROM table_22043925_1 WHERE school = "Seymour college"
``` | 35,066 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22043925_1 (denomination VARCHAR, school VARCHAR)\n\n Question: What is every denomination for the school Seymour college?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22050544_3 (date VARCHAR, event__number VARCHAR)
Question: Event number 38m was held on which date?
Here is the SQLite query to answer to the question: Event numb... | Here is the SQLite query to answer the question regarding the date on which event number 38m was held:
```
SELECT date FROM table_22050544_3 WHERE event__number = "38m"
``` | 35,067 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22050544_3 (date VARCHAR, event__number VARCHAR)\n\n Question: Event number 38m was held on which date? \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_22050544_3 (winner VARCHAR, event VARCHAR)
Question: Who won the $109 no limit hold'em w/rebuys [turbo]?
Here is the SQLite query to answer to the question: Who wo... | Here is the SQLite query to answer the question:
```
SELECT winner FROM table_22050544_3 WHERE event = "$109 No Limit Hold'em w/rebuys [Turbo]";
``` | 35,068 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22050544_3 (winner VARCHAR, event VARCHAR)\n\n Question: Who won the $109 no limit hold'em w/rebuys [turbo]?\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_22050544_3 (event VARCHAR, entries VARCHAR)
Question: Which event had 25,883 entries?
Here is the SQLite query to answer to the question: Which event had 25,883 e... | Your SQLite query is almost correct, but it's important to ensure that the format of the entries matches how they are stored in the database. Assuming the entries are stored as strings with a comma, your query would work correctly as long as they are formatted the same way in the database. Here's your query wrapped in ... | 35,069 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22050544_3 (event VARCHAR, entries VARCHAR)\n\n Question: Which event had 25,883 entries? \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_22050544_3 (elapsed_time VARCHAR, event VARCHAR)
Question: How many categories for elapsed time exist for the $16.50 fixed-limit badugi game?
Here is the SQLite qu... | To count how many distinct categories for elapsed time exist for the `$16.50 Fixed-Limit Badugi` game, you should use the `COUNT(DISTINCT ...)` function. Here’s the corrected SQLite query:
```
SELECT COUNT(DISTINCT elapsed_time)
FROM table_22050544_3
WHERE event = "$16.50 Fixed-Limit Badugi";
``` | 35,070 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22050544_3 (elapsed_time VARCHAR, event VARCHAR)\n\n Question: How many categories for elapsed time exist for the $16.50 fix... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22032599_1 (year__ceremony_ VARCHAR, director VARCHAR)
Question: What year did jaroslav vojtek category:articles with hcards Direct?
Here is the SQLite query to an... | To answer the question using the provided schema, you would want to select the year from the table where the director matches "Jaroslav Vojtek" and the category is "articles with hCards." Your current query has a slight mismatch in how you're referring to the director’s name. Here's the corrected query:
```
SELECT yea... | 35,071 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22032599_1 (year__ceremony_ VARCHAR, director VARCHAR)\n\n Question: What year did jaroslav vojtek category:articles with hc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22032599_1 (result VARCHAR, film_title_used_in_nomination VARCHAR)
Question: What was the result for Gypsy?
Here is the SQLite query to answer to the question: Wha... | Here's the SQLite query to answer the question about the result for the film "Gypsy":
```sql
SELECT result FROM table_22032599_1 WHERE film_title_used_in_nomination = "Gypsy";
``` | 35,072 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22032599_1 (result VARCHAR, film_title_used_in_nomination VARCHAR)\n\n Question: What was the result for Gypsy?\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_22032599_1 (film_title_used_in_nomination VARCHAR, director VARCHAR)
Question: HOw many films did martin repka category:articles with hcards direct?
Here is the SQ... | Here is the SQLite query to answer the question about how many films Martin Repka directed, specifically in the category "Articles with hCards":
```sql
SELECT COUNT(film_title_used_in_nomination)
FROM table_22032599_1
WHERE director = "Martin Repka Category:Articles with hCards";
``` | 35,073 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22032599_1 (film_title_used_in_nomination VARCHAR, director VARCHAR)\n\n Question: HOw many films did martin repka category:... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22032599_1 (result VARCHAR, film_title_used_in_nomination VARCHAR)
Question: What was the result for City of the Sun?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question about the result for "City of the Sun":
```
SELECT result FROM table_22032599_1 WHERE film_title_used_in_nomination = "City of the Sun"
``` | 35,074 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22032599_1 (result VARCHAR, film_title_used_in_nomination VARCHAR)\n\n Question: What was the result for City of the Sun?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22034853_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR)
Question: What was the language for the movie "Late Bloomers"?
Here is the SQLite query to ... | Here is the SQLite query to answer the question about the language for the movie "Late Bloomers":
```
SELECT language_s_ FROM table_22034853_1 WHERE film_title_used_in_nomination = "Late Bloomers";
``` | 35,075 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22034853_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR)\n\n Question: What was the language for the movie \"... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22034853_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
Question: How many original titles were listed as "If the Sun Never Returns"?
Here is th... | Here is the SQLite query to answer the question about how many original titles were listed as "If the Sun Never Returns":
```
SELECT COUNT(original_title) FROM table_22034853_1 WHERE film_title_used_in_nomination = "If the Sun Never Returns";
``` | 35,076 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22034853_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)\n\n Question: How many original titles were liste... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22034853_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR)
Question: What was the language of "Mein Name Ist Bach"?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question about the language of "Mein Name Ist Bach":
```
SELECT language_s_ FROM table_22034853_1 WHERE film_title_used_in_nomination = "Mein Name Ist Bach";
``` | 35,077 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22034853_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR)\n\n Question: What was the language of \"Mein Name I... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22034853_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
Question: What was the year for the film "Vitus"?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question regarding the year for the film "Vitus":
```
SELECT year__ceremony_ FROM table_22034853_1 WHERE original_title = "Vitus"
``` | 35,078 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22034853_1 (year__ceremony_ VARCHAR, original_title VARCHAR)\n\n Question: What was the year for the film \"Vitus\"?\n\nHere... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22034853_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
Question: How many films are titled "Dans la Ville Blanche"?
Here is the SQLite query to... | Your query is almost correct, but it's important to ensure the casing of the title matches expectations. Based on your schema, here is the SQLite query formatted correctly:
```sql
SELECT COUNT(film_title_used_in_nomination)
FROM table_22034853_1
WHERE original_title = "Dans la Ville Blanche";
```
This query will c... | 35,079 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22034853_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)\n\n Question: How many films are titled \"Dans la... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22053239_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
Question: How many of the writers had 5.35 viewers?
Here is the SQLite query to answer to the questi... | Your SQLite query to count the number of writers who had 5.35 viewers looks correct. Here it is, wrapped in the requested code format:
```
SELECT COUNT(written_by) FROM table_22053239_1 WHERE us_viewers__millions_ = "5.35";
``` | 35,080 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22053239_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)\n\n Question: How many of the writers had 5.35 viewers?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22050544_4 (elapsed_time VARCHAR, prize VARCHAR)
Question: What was the elapsed time for the championship that had $9,377.42 in prize money?
Here is the SQLite qu... | Here is the SQLite query to answer the question about the elapsed time for the championship that had $9,377.42 in prize money:
```
SELECT elapsed_time FROM table_22050544_4 WHERE prize = "$9,377.42";
``` | 35,081 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22050544_4 (elapsed_time VARCHAR, prize VARCHAR)\n\n Question: What was the elapsed time for the championship that had $9,37... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22050544_4 (prize VARCHAR, event__number VARCHAR)
Question: What was the prize pool for the event number 27H?
Here is the SQLite query to answer to the question: ... | Your SQLite query to retrieve the prize pool for the event number 27H is correctly structured. Here it is wrapped in code format:
```
SELECT prize AS Pool FROM table_22050544_4 WHERE event__number = "27H";
``` | 35,082 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22050544_4 (prize VARCHAR, event__number VARCHAR)\n\n Question: What was the prize pool for the event number 27H? \n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22050544_4 (event VARCHAR, event__number VARCHAR)
Question: What is the event name with the number 8M?
Here is the SQLite query to answer to the question: What is... | Your SQLite query is correct. Here it is wrapped in code blocks:
```
SELECT event FROM table_22050544_4 WHERE event__number = "8M";
``` | 35,083 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22050544_4 (event VARCHAR, event__number VARCHAR)\n\n Question: What is the event name with the number 8M? \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_22071705_6 (country VARCHAR)
Question: Name the total number 1980 mil for soviet union
Here is the SQLite query to answer to the question: Name the total number 19... | There seems to be a misunderstanding in your SQL query syntax. It appears you're trying to count occurrences in the table where the country is "Soviet Union" rather than counting a specific value of 1980.
If you want to count how many times "Soviet Union" appears in the table, you would use a `COUNT` function correct... | 35,084 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22071705_6 (country VARCHAR)\n\n Question: Name the total number 1980 mil for soviet union\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_22073745_1 (languages VARCHAR, film_title_used_in_nomination VARCHAR)
Question: How many languages have elles as the film title used in nomination?
Here is the SQL... | Here is the SQLite query to answer the question: How many languages have "Elles" as the film title used in nomination?
```
SELECT COUNT(languages) FROM table_22073745_1 WHERE film_title_used_in_nomination = "Elles";
``` | 35,085 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22073745_1 (languages VARCHAR, film_title_used_in_nomination VARCHAR)\n\n Question: How many languages have elles as the fil... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22073745_1 (languages VARCHAR, film_title_used_in_nomination VARCHAR)
Question: How many languages is refractaire as the film title used in nomination?
Here is the... | Here is the SQLite query to answer the question regarding how many languages is "Refractaire" as the film title used in nomination:
```
SELECT COUNT(languages) FROM table_22073745_1 WHERE film_title_used_in_nomination = "Refractaire";
``` | 35,086 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22073745_1 (languages VARCHAR, film_title_used_in_nomination VARCHAR)\n\n Question: How many languages is refractaire as the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22073745_1 (languages VARCHAR, original_title VARCHAR)
Question: How many languages have le roman de renart as the original title?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question about how many languages have "le roman de renart" as the original title:
```
SELECT COUNT(languages) FROM table_22073745_1 WHERE original_title = "le roman de renart";
``` | 35,087 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22073745_1 (languages VARCHAR, original_title VARCHAR)\n\n Question: How many languages have le roman de renart as the origi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22073745_1 (director VARCHAR, original_title VARCHAR)
Question: Who is the director of the original title perl oder pica?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question about the director of the original title "Perl oder Pica":
```
SELECT director FROM table_22073745_1 WHERE original_title = "Perl oder Pica";
``` | 35,088 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22073745_1 (director VARCHAR, original_title VARCHAR)\n\n Question: Who is the director of the original title perl oder pica... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22073745_1 (result VARCHAR, year__ceremony_ VARCHAR)
Question: What is the result of the 2005 (78th) year ceremony?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to retrieve the result of the 2005 (78th) year ceremony:
```
SELECT result FROM table_22073745_1 WHERE year__ceremony_ = "2005 (78th)"
``` | 35,089 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22073745_1 (result VARCHAR, year__ceremony_ VARCHAR)\n\n Question: What is the result of the 2005 (78th) year ceremony?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22078691_2 (title VARCHAR, us_viewers__millions_ VARCHAR)
Question: What is the title that has 14.59 u.s. viewers (millions)?
Here is the SQLite query to answer to... | Your query looks correct. Here it is wrapped in the appropriate format:
```
SELECT title FROM table_22078691_2 WHERE us_viewers__millions_ = "14.59"
``` | 35,090 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22078691_2 (title VARCHAR, us_viewers__millions_ VARCHAR)\n\n Question: What is the title that has 14.59 u.s. viewers (milli... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22078691_2 (title VARCHAR, us_viewers__millions_ VARCHAR)
Question: What is the title that had 13.59 u.s. viewers (millions)?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question about what title had 13.59 U.S. viewers (millions):
```
SELECT title FROM table_22078691_2 WHERE us_viewers__millions_ = "13.59"
``` | 35,091 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22078691_2 (title VARCHAR, us_viewers__millions_ VARCHAR)\n\n Question: What is the title that had 13.59 u.s. viewers (mill... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22081847_1 (money_list_rank VARCHAR, earnings__$_ VARCHAR)
Question: If the earning amount is $309,886, what is the money list ranking?
Here is the SQLite query to... | Here is the SQLite query to answer the question regarding the money list ranking for the earning amount of $309,886:
```
SELECT money_list_rank FROM table_22081847_1 WHERE earnings__$_ = '309,886';
``` | 35,092 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22081847_1 (money_list_rank VARCHAR, earnings__$_ VARCHAR)\n\n Question: If the earning amount is $309,886, what is the mone... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22081847_1 (wins INTEGER)
Question: What was the maximum number of wins?
Here is the SQLite query to answer to the question: What was the maximum number of wins?:
... | Your SQLite query to find the maximum number of wins is correctly written. Here it is wrapped in code format:
```
SELECT MAX(wins) FROM table_22081847_1;
``` | 35,093 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22081847_1 (wins INTEGER)\n\n Question: What was the maximum number of wins?\n\nHere is the SQLite query to answer to the qu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22081847_1 (scoring_average VARCHAR, year VARCHAR)
Question: If the year is 2010, what was the average score?
Here is the SQLite query to answer to the question: I... | The query you've provided is almost correct, but if you want to calculate the average score for the year 2010, you should use the `AVG()` function. Here’s the corrected SQL query:
```
SELECT AVG(scoring_average) AS average_score FROM table_22081847_1 WHERE year = '2010'
```
Make sure to compare the year as a string s... | 35,094 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22081847_1 (scoring_average VARCHAR, year VARCHAR)\n\n Question: If the year is 2010, what was the average score?\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_22083044_2 (event VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
Question: How many times did Tim Macrow and Joey Foster both got the fastest lap and pole pos... | Here is the SQLite query to answer the question regarding how many times Tim Macrow and Joey Foster both got the fastest lap and pole position respectively:
```
SELECT COUNT(event)
FROM table_22083044_2
WHERE fastest_lap = "Tim Macrow" AND pole_position = "Joey Foster"
``` | 35,095 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22083044_2 (event VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)\n\n Question: How many times did Tim Macrow and Joey ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22083044_2 (winning_team VARCHAR, circuit VARCHAR, fastest_lap VARCHAR)
Question: What was the winning team where Tim Macrow won the fastest lap on Queensland Racew... | Here is the corrected SQLite query to answer your question:
```sql
SELECT winning_team
FROM table_22083044_2
WHERE circuit = "Queensland Raceway" AND fastest_lap = "Tim Macrow";
```
This query selects the `winning_team` from the `table_22083044_2` where the circuit is "Queensland Raceway" and the fastest lap was a... | 35,096 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22083044_2 (winning_team VARCHAR, circuit VARCHAR, fastest_lap VARCHAR)\n\n Question: What was the winning team where Tim Ma... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22078972_2 (no_in_series INTEGER, written_by VARCHAR)
Question: What's the series number of the episode whose writer is David North?
Here is the SQLite query to an... | Your provided query is almost correct but may collect the wrong value if there are multiple episodes written by David North. Instead of using `MAX`, you might want to use `SELECT *` to see all episodes written by David North.
To simply find the series number of the episode written by David North, you can use:
```sql
... | 35,097 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22078972_2 (no_in_series INTEGER, written_by VARCHAR)\n\n Question: What's the series number of the episode whose writer is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22078972_2 (no_in_series INTEGER, us_viewers__millions_ VARCHAR)
Question: What's the series number of the episode seen by 17.04 million people in the US?
Here is ... | Here's the SQLite query to answer the question about the series number of the episode seen by 17.04 million people in the US:
```
SELECT no_in_series FROM table_22078972_2 WHERE us_viewers__millions_ = "17.04";
``` | 35,098 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22078972_2 (no_in_series INTEGER, us_viewers__millions_ VARCHAR)\n\n Question: What's the series number of the episode seen ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22078972_2 (title VARCHAR, us_viewers__millions_ VARCHAR)
Question: What's the title of the episode first seen by 18.15 million people in the US?
Here is the SQLit... | Here is the SQLite query to answer the question:
```sql
SELECT title FROM table_22078972_2 WHERE us_viewers__millions_ = "18.15"
``` | 35,099 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_22078972_2 (title VARCHAR, us_viewers__millions_ VARCHAR)\n\n Question: What's the title of the episode first seen by 18.15 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.