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_72 (team VARCHAR, ravg VARCHAR)
Question: What team had a Ravg of 3.4?
Here is the SQLite query to answer to the question: What team had a Ravg of 3.4?:
```
S... | Certainly! Here is the SQLite query wrapped in the requested format:
```
SELECT team FROM table_name_72 WHERE ravg = "3.4";
``` | 11,000 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (team VARCHAR, ravg VARCHAR)\n\n Question: What team had a Ravg of 3.4?\n\nHere is the SQLite query to answer to the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (int_percentage VARCHAR, ravg VARCHAR)
Question: What is the int percentage that has Ravg of 2.8?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question regarding the `int_percentage` that has an `Ravg` of 2.8:
```
SELECT int_percentage FROM table_name_29 WHERE ravg = '2.8';
``` | 11,001 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_29 (int_percentage VARCHAR, ravg VARCHAR)\n\n Question: What is the int percentage that has Ravg of 2.8?\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_49 (r1st VARCHAR, ryds VARCHAR)
Question: Who is the R1st that has 36 RYds?
Here is the SQLite query to answer to the question: Who is the R1st that has 36 RY... | Your SQLite query to find the R1st that has 36 RYds is correct. Here it is wrapped in code format:
```
SELECT r1st FROM table_name_49 WHERE ryds = "36";
``` | 11,002 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_49 (r1st VARCHAR, ryds VARCHAR)\n\n Question: Who is the R1st that has 36 RYds?\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_87 (ravg VARCHAR, year VARCHAR)
Question: What was the Ravg for 2003?
Here is the SQLite query to answer to the question: What was the Ravg for 2003?:
```
SEL... | Here is the SQLite query to answer the question about the Ravg for 2003:
```
SELECT ravg FROM table_name_87 WHERE year = "2003";
``` | 11,003 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (ravg VARCHAR, year VARCHAR)\n\n Question: What was the Ravg for 2003?\n\nHere is the SQLite query to answer to the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (rate VARCHAR, ryds VARCHAR)
Question: What was the rate for 73 RYds?
Here is the SQLite query to answer to the question: What was the rate for 73 RYds?:
`... | Here is the SQLite query to answer the question: What was the rate for 73 RYds?:
```
SELECT rate FROM table_name_22 WHERE ryds = "73"
``` | 11,004 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_22 (rate VARCHAR, ryds VARCHAR)\n\n Question: What was the rate for 73 RYds?\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_19 (name VARCHAR, location VARCHAR, unit VARCHAR)
Question: What is the name of the non-mammal from brazil of the unit of caturrita formation?
Here is the SQL... | Here is the SQLite query you requested to find the name of the non-mammal from Brazil of the unit of caturrita formation:
```
SELECT name FROM table_name_19 WHERE location = "brazil" AND unit = "caturrita formation"
``` | 11,005 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_19 (name VARCHAR, location VARCHAR, unit VARCHAR)\n\n Question: What is the name of the non-mammal from brazil of the u... | |
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, authors VARCHAR)
Question: What is the name of the non-mammal who has tatarinov as the author?
Here is the SQLite query to answer to the ques... | Your SQLite query is almost correct, but to specifically filter for non-mammals, you will need to add an additional condition to the query (assuming there is a way to identify non-mammals in your data).
However, since the schema provided only includes `name` and `authors`, we can't directly determine if a name is a n... | 11,006 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_4 (name VARCHAR, authors VARCHAR)\n\n Question: What is the name of the non-mammal who has tatarinov as the author?\n\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (unit VARCHAR, location VARCHAR)
Question: What is the unit of the non-mammal from greenland?
Here is the SQLite query to answer to the question: What is t... | Here is the corrected SQLite query to answer the question regarding the unit of the non-mammal from Greenland:
```sql
SELECT unit FROM table_name_95 WHERE location = 'greenland' AND unit NOT IN (SELECT DISTINCT unit FROM table_name_95 WHERE unit LIKE '%mammal%');
```
This query selects the unit of any non-mammal enti... | 11,007 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_95 (unit VARCHAR, location VARCHAR)\n\n Question: What is the unit of the non-mammal from greenland?\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_65 (authors VARCHAR, name VARCHAR)
Question: Who is the author for the malasaurus?
Here is the SQLite query to answer to the question: Who is the author for t... | Here is the SQLite query to answer the question: Who is the author for the malasaurus?:
```
SELECT authors FROM table_name_65 WHERE name = "malasaurus";
``` | 11,008 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_65 (authors VARCHAR, name VARCHAR)\n\n Question: Who is the author for the malasaurus?\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_3 (name VARCHAR, unit VARCHAR)
Question: What is the name of the non mammal of the unit vyazniki assemblage?
Here is the SQLite query to answer to the questio... | To find the name of the non-mammal in the "vyazniki assemblage" based on the provided schema, the query could be adjusted to specifically filter out non-mammals. However, since the provided schema does not include a direct way to identify whether an entry is a mammal or not, we need more context about how mammals are r... | 11,009 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_3 (name VARCHAR, unit VARCHAR)\n\n Question: What is the name of the non mammal of the unit vyazniki assemblage?\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_16 (authors VARCHAR, unit VARCHAR, name VARCHAR)
Question: Who are the authors for the malasaurus of the vyazniki assemblage?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question about the authors for the malasaurus of the vyazniki assemblage:
```
SELECT authors FROM table_name_16 WHERE unit = "vyazniki assemblage" AND name = "malasaurus"
``` | 11,010 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_16 (authors VARCHAR, unit VARCHAR, name VARCHAR)\n\n Question: Who are the authors for the malasaurus of the vyazniki a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (rank INTEGER, gold VARCHAR, total VARCHAR, bronze VARCHAR, silver VARCHAR)
Question: What is the lowest Rank with more than 0 bronze, 8 silver, and a total... | Your SQLite query looks correct for the given question. Here’s the query wrapped in code format:
```
SELECT MIN(rank)
FROM table_name_23
WHERE bronze > 0
AND silver = 8
AND total = 19
AND gold < 9;
```
This query will return the lowest rank that meets all the specified criteria. | 11,011 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (rank INTEGER, gold VARCHAR, total VARCHAR, bronze VARCHAR, silver VARCHAR)\n\n Question: What is the lowest Rank wi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (gold INTEGER, silver VARCHAR, bronze VARCHAR)
Question: What is the sum for gold when there is more than 17 silver and more than 24 bronze?
Here is the SQ... | Your SQLite query is almost correct but needs a slight adjustment regarding the data types of `silver` and `bronze`. Since `silver` and `bronze` are defined as `VARCHAR`, comparisons greater than a certain numeric value don't apply directly as expected in the context of counting items.
If `silver` and `bronze` are me... | 11,012 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_28 (gold INTEGER, silver VARCHAR, bronze VARCHAR)\n\n Question: What is the sum for gold when there is more than 17 sil... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (bronze INTEGER, rank VARCHAR, total VARCHAR)
Question: What is the sum of Bronze when the rank is 7, and the total is more than 22?
Here is the SQLite que... | Here is the SQLite query to answer the question about the sum of Bronze when the rank is 7, and the total is more than 22:
```
SELECT SUM(bronze) FROM table_name_19 WHERE rank = '7' AND total > '22';
```
Note: The `rank` and `total` fields are compared as strings since they are declared as `VARCHAR`. If `total` and ... | 11,013 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_19 (bronze INTEGER, rank VARCHAR, total VARCHAR)\n\n Question: What is the sum of Bronze when the rank is 7, and the 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 (rank INTEGER, bronze VARCHAR, silver VARCHAR, gold VARCHAR)
Question: What is the sum of rank when silver is 1, and gold is less than 7, and bronze is 2?
... | Here is the SQLite query to answer the question you provided:
```sql
SELECT SUM(rank) FROM table_name_28 WHERE silver = 1 AND gold < 7 AND bronze = 2;
``` | 11,014 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_28 (rank INTEGER, bronze VARCHAR, silver VARCHAR, gold VARCHAR)\n\n Question: What is the sum of rank when silver is 1,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (conductor VARCHAR, production VARCHAR)
Question: Who was the Conductor of the Three Pintos (Die Drei Pintos) Production?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question about the conductor of the Three Pintos (Die Drei Pintos) production:
```sql
SELECT conductor FROM table_name_34 WHERE production = "Three Pintos (Die Drei Pintos)";
``` | 11,015 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_34 (conductor VARCHAR, production VARCHAR)\n\n Question: Who was the Conductor of the Three Pintos (Die Drei Pintos) Pr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (conductor VARCHAR, director VARCHAR)
Question: Who is the Conductor who had Stephen Barlow as Director?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question "Who is the Conductor who had Stephen Barlow as Director?":
```
SELECT conductor FROM table_name_22 WHERE director = "Stephen Barlow";
``` | 11,016 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_22 (conductor VARCHAR, director VARCHAR)\n\n Question: Who is the Conductor who had Stephen Barlow as Director?\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_3 (composer VARCHAR, director VARCHAR)
Question: Who was Director John Ramster's Composer?
Here is the SQLite query to answer to the question: Who was Directo... | Here is the SQLite query to answer the question: Who was Director John Ramster's Composer?:
```
SELECT composer FROM table_name_3 WHERE director = "John Ramster"
``` | 11,017 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_3 (composer VARCHAR, director VARCHAR)\n\n Question: Who was Director John Ramster's Composer?\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_26 (Giant VARCHAR, slalom VARCHAR)
Question: Which Giant Slalom has a Slalom of 45?
Here is the SQLite query to answer to the question: Which Giant Slalom has... | Your query has the right structure but the naming in the SELECT clause seems to be confused. If you want to select the "Giant" where the "slalom" is "45", you should simply keep the original column names. Here’s the corrected query:
```
SELECT Giant FROM table_name_26 WHERE slalom = '45'
```
This will correctly retu... | 11,018 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_26 (Giant VARCHAR, slalom VARCHAR)\n\n Question: Which Giant Slalom has a Slalom of 45?\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_98 (slalom VARCHAR, super_g VARCHAR)
Question: Which Slalom has a Super G of 4?
Here is the SQLite query to answer to the question: Which Slalom has a Super G... | Here is the SQLite query to answer the question: Which Slalom has a Super G of 4?:
```
SELECT slalom FROM table_name_98 WHERE super_g = '4';
``` | 11,019 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_98 (slalom VARCHAR, super_g VARCHAR)\n\n Question: Which Slalom has a Super G of 4?\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_55 (champion VARCHAR, tournament_location VARCHAR)
Question: Which champion has sentosa golf club as the tournament location?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question about which champion has sentosa golf club as the tournament location:
```
SELECT champion FROM table_name_55 WHERE tournament_location = "sentosa golf club";
``` | 11,020 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_55 (champion VARCHAR, tournament_location VARCHAR)\n\n Question: Which champion has sentosa golf club as the tournament... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (country VARCHAR, year VARCHAR)
Question: Which county has 2011 as the year?
Here is the SQLite query to answer to the question: Which county has 2011 as t... | Here is the SQLite query to answer the question: Which country has 2011 as the year?:
```
SELECT country FROM table_name_17 WHERE year = '2011';
``` | 11,021 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_17 (country VARCHAR, year VARCHAR)\n\n Question: Which county has 2011 as the year?\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_39 (bronze INTEGER, total VARCHAR, silver VARCHAR, nation VARCHAR)
Question: What is the total sum of bronze medals for the Soviet Union when there are more th... | Here is the corrected SQLite query to answer the question about the total sum of bronze medals for the Soviet Union, while ensuring the conditions for silver and total medals are applied correctly:
```sql
SELECT SUM(bronze)
FROM table_name_39
WHERE nation = "soviet union"
AND silver > '0'
AND total > '3';
```
In ... | 11,022 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_39 (bronze INTEGER, total VARCHAR, silver VARCHAR, nation VARCHAR)\n\n Question: What is the total sum of bronze medals... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (rank INTEGER, bronze VARCHAR, gold VARCHAR, silver VARCHAR)
Question: What is the lowest rank of a nation with fewer than 3 gold medals, more than 2 bronze... | The provided SQLite query contains a small mistake regarding the comparison for the `gold` column. Since `gold` is defined as a VARCHAR, we need to ensure that we’re comparing it as an integer. Here’s the corrected SQLite query wrapped as requested:
```sql
SELECT MIN(rank)
FROM table_name_95
WHERE CAST(gold AS INTEG... | 11,023 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_95 (rank INTEGER, bronze VARCHAR, gold VARCHAR, silver VARCHAR)\n\n Question: What is the lowest rank of a nation with ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (contribution VARCHAR, album VARCHAR)
Question: For the album Board Up the House, what is the contribution?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question regarding the contributions for the album "Board Up the House":
```sql
SELECT contribution FROM table_name_49 WHERE album = "Board Up the House";
``` | 11,024 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_49 (contribution VARCHAR, album VARCHAR)\n\n Question: For the album Board Up the House, what is the contribution?\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_75 (band VARCHAR, year INTEGER)
Question: What band has a year above 2011?
Here is the SQLite query to answer to the question: What band has a year above 2011... | Your SQLite query is correct. It will retrieve the names of bands that have a year greater than 2011. Here is the query wrapped as you requested:
```
SELECT band FROM table_name_75 WHERE year > 2011;
``` | 11,025 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_75 (band VARCHAR, year INTEGER)\n\n Question: What band has a year above 2011?\n\nHere is the SQLite query to answer to... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (time___et__ VARCHAR, record VARCHAR)
Question: What time was the game played that had a record of 0–2–0?
Here is the SQLite query to answer to the questio... | Your SQL query is correctly structured to retrieve the time of the game that had a record of 0–2–0. Here is the query wrapped in the requested format:
```
SELECT time___et__ FROM table_name_56 WHERE record = "0–2–0";
``` | 11,026 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_56 (time___et__ VARCHAR, record VARCHAR)\n\n Question: What time was the game played that had a record of 0–2–0?\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_83 (weight__kg_ INTEGER, height__cm_ INTEGER)
Question: What is the average weight of a player who is less than 175 centimeters tall?
Here is the SQLite query... | ```sql
SELECT AVG(weight__kg_) FROM table_name_83 WHERE height__cm_ < 175
``` | 11,027 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_83 (weight__kg_ INTEGER, height__cm_ INTEGER)\n\n Question: What is the average weight of a player who is less than 175... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (english_country_name VARCHAR, english_capital_name VARCHAR)
Question: What is the English name of the country that has Ramallah as its capital?
Here is th... | Here is the SQLite query to answer the question about the English name of the country that has Ramallah as its capital:
```
SELECT english_country_name FROM table_name_59 WHERE english_capital_name = "Ramallah";
``` | 11,028 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (english_country_name VARCHAR, english_capital_name VARCHAR)\n\n Question: What is the English name of the country t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (english_country_name VARCHAR, english_capital_name VARCHAR)
Question: What is the English name of the country that has Doha as its capital?
Here is the SQL... | Here is the SQLite query to answer the question regarding the English name of the country that has Doha as its capital:
```
SELECT english_country_name FROM table_name_5 WHERE english_capital_name = "Doha";
``` | 11,029 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_5 (english_country_name VARCHAR, english_capital_name VARCHAR)\n\n Question: What is the English name of the country th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (arabic_capital_name VARCHAR, english_capital_name VARCHAR)
Question: What is the name of the capital, in Arabic, that is called n'djamena in English?
Here ... | Here is the SQLite query to answer the question about the capital called n'djamena in English:
```
SELECT arabic_capital_name FROM table_name_7 WHERE english_capital_name = "n'djamena";
``` | 11,030 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_7 (arabic_capital_name VARCHAR, english_capital_name VARCHAR)\n\n Question: What is the name of the capital, in Arabic,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (arabic_country_name VARCHAR, english_capital_name VARCHAR)
Question: What is the name of the country in Arabic that has Moroni as the name of its capital i... | Here is the SQLite query to find the name of the country in Arabic that has Moroni as the name of its capital in English:
```
SELECT arabic_country_name FROM table_name_68 WHERE english_capital_name = "Moroni";
``` | 11,031 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_68 (arabic_country_name VARCHAR, english_capital_name VARCHAR)\n\n Question: What is the name of the country in Arabic ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (premiere VARCHAR, channel VARCHAR)
Question: When was the premiere on the TVB Jade Channel?
Here is the SQLite query to answer to the question: When was t... | Here is the SQLite query to answer the question: When was the premiere on the TVB Jade Channel?:
```
SELECT premiere FROM table_name_86 WHERE channel = "TVB Jade";
``` | 11,032 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_86 (premiere VARCHAR, channel VARCHAR)\n\n Question: When was the premiere on the TVB Jade Channel?\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_18 (host VARCHAR, premiere VARCHAR)
Question: Who was the host of the premiere on November 10, 2007?
Here is the SQLite query to answer to the question: Who w... | Here is the SQLite query to answer the question about the host of the premiere on November 10, 2007:
```
SELECT host FROM table_name_18 WHERE premiere = "November 10, 2007";
``` | 11,033 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (host VARCHAR, premiere VARCHAR)\n\n Question: Who was the host of the premiere on November 10, 2007?\n\nHere is the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (country VARCHAR, premiere VARCHAR)
Question: Which country had a premiere on July 24, 2010?
Here is the SQLite query to answer to the question: Which coun... | Here is the SQLite query to answer the question about which country had a premiere on July 24, 2010:
```
SELECT country FROM table_name_65 WHERE premiere = "July 24, 2010";
``` | 11,034 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_65 (country VARCHAR, premiere VARCHAR)\n\n Question: Which country had a premiere on July 24, 2010?\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_83 (channel VARCHAR, country VARCHAR)
Question: Which channel comes out of Israel?
Here is the SQLite query to answer to the question: Which channel comes out... | Here is the SQLite query to answer the question: Which channel comes out of Israel?:
```
SELECT channel FROM table_name_83 WHERE country = "Israel"
``` | 11,035 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_83 (channel VARCHAR, country VARCHAR)\n\n Question: Which channel comes out of Israel?\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_31 (total INTEGER, rank VARCHAR, gold VARCHAR)
Question: What is the largest total when the rank is 6 and there's less than 1 gold?
Here is the SQLite query t... | Your SQLite query is almost correct, but there's a small detail to clarify regarding the data type of the `gold` column. If the `gold` column is stored as a string (VARCHAR), you'll need to make sure that the comparison works correctly. Here’s a revised version of your query:
```sql
SELECT MAX(total)
FROM table_name_... | 11,036 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (total INTEGER, rank VARCHAR, gold VARCHAR)\n\n Question: What is the largest total when the rank is 6 and there's l... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (gold INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR)
Question: What is the largest gold number when the total is less than 3, the rank is 5, and the ... | Your SQLite query is mostly correct, but the comparison for the `silver` column needs to be clarified. If `silver` represents a string (VARCHAR), then comparing it directly to an integer (like 1) may not yield the intended result.
Assuming that `silver` should be treated as a numerical value for proper comparison, it... | 11,037 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_16 (gold INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR)\n\n Question: What is the largest gold number when the t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_30 (silver INTEGER, gold INTEGER)
Question: What is the total of silver when gold is less than 0?
Here is the SQLite query to answer to the question: What is ... | Here is the SQLite query to answer the question: What is the total of silver when gold is less than 0?:
```
SELECT SUM(silver) FROM table_name_30 WHERE gold < 0
``` | 11,038 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_30 (silver INTEGER, gold INTEGER)\n\n Question: What is the total of silver when gold is less than 0?\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_82 (visitor VARCHAR, leading_scorer VARCHAR)
Question: Which team was the visitor when Milt Palacio (15) was the leading scorer?
Here is the SQLite query to a... | Your query is correct for retrieving the visitor when Milt Palacio was the leading scorer, but the leading scorer’s name should be formatted consistently, meaning that parentheses might not be necessary in the condition. Here is the query wrapped appropriately:
```
SELECT visitor FROM table_name_82 WHERE leading_score... | 11,039 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_82 (visitor VARCHAR, leading_scorer VARCHAR)\n\n Question: Which team was the visitor when Milt Palacio (15) was the le... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (home VARCHAR, leading_scorer VARCHAR)
Question: What is the home of the team with Carlos Boozer (27) as the leading scorer?
Here is the SQLite query to ans... | Here's the SQLite query that answers the question regarding the home of the team with Carlos Boozer as the leading scorer:
```
SELECT home FROM table_name_1 WHERE leading_scorer = 'Carlos Boozer (27)';
```
Make sure to use the correct case and punctuation in the leading scorer's name as it appears in your database. | 11,040 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (home VARCHAR, leading_scorer VARCHAR)\n\n Question: What is the home of the team with Carlos Boozer (27) as the lead... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (date VARCHAR, home VARCHAR, visitor VARCHAR)
Question: What date was the game played with the Cavaliers at home and the Warriors visiting?
Here is the SQL... | Here is the SQLite query to find the date when the Cavaliers played at home against the Warriors:
```
SELECT date FROM table_name_39 WHERE home = "cavaliers" AND visitor = "warriors"
``` | 11,041 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_39 (date VARCHAR, home VARCHAR, visitor VARCHAR)\n\n Question: What date was the game played with the Cavaliers at home... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (year INTEGER, weight__kg_ VARCHAR)
Question: What is the sum total of all the years with a bell that weighed 857 kilograms?
Here is the SQLite query to an... | Here is the correct SQLite query to answer the question about the sum total of all the years with a bell that weighed 857 kilograms:
```
SELECT SUM(year) FROM table_name_40 WHERE weight__kg_ = '857'
``` | 11,042 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_40 (year INTEGER, weight__kg_ VARCHAR)\n\n Question: What is the sum total of all the years with a bell that weighed 85... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (enrollment INTEGER, team_nickname VARCHAR)
Question: What is the Enrollment for the Pilots?
Here is the SQLite query to answer to the question: What is the... | Your provided SQLite query seems to look for the minimum enrollment for the team with the nickname "pilots." If you want to get the enrollment specifically for the Pilots, regardless of whether it's the minimum or maximum, you may want to adjust the query accordingly, depending on your intent. However, if you indeed wa... | 11,043 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_3 (enrollment INTEGER, team_nickname VARCHAR)\n\n Question: What is the Enrollment for the Pilots?\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_34 (enrollment VARCHAR, founded VARCHAR, team_nickname VARCHAR)
Question: What is the Enrollment for the Coyotes Founded in 1891?
Here is the SQLite query to ... | Your query is almost correct, but instead of using `COUNT(enrollment)`, you should directly select the `enrollment` value since you want to retrieve the enrollment for the Coyotes, not the count. Here’s the corrected query:
```
SELECT enrollment FROM table_name_34 WHERE founded = '1891' AND team_nickname = 'Coyotes';
... | 11,044 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_34 (enrollment VARCHAR, founded VARCHAR, team_nickname VARCHAR)\n\n Question: What is the Enrollment for the Coyotes Fo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (location VARCHAR, team_nickname VARCHAR)
Question: What Location has a Team Nickname called the Fighting Missionaries?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about what location has a team nickname called the Fighting Missionaries:
```
SELECT location FROM table_name_13 WHERE team_nickname = "Fighting Missionaries"
``` | 11,045 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_13 (location VARCHAR, team_nickname VARCHAR)\n\n Question: What Location has a Team Nickname called the Fighting Missio... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (primary_conference VARCHAR, team_nickname VARCHAR)
Question: The Loggers are part of what Primary Conference?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question about the primary conference for the Loggers:
```
SELECT primary_conference FROM table_name_60 WHERE team_nickname = "Loggers"
``` | 11,046 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_60 (primary_conference VARCHAR, team_nickname VARCHAR)\n\n Question: The Loggers are part of what Primary Conference?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (enrollment INTEGER, institution VARCHAR, founded VARCHAR)
Question: What is the Enrollment at Whitman College Founded after 1859?
Here is the SQLite query ... | The SQLite query you provided is almost correct, but it uses the `AVG()` function, which calculates the average enrollment instead of retrieving the enrollment directly. If you want to get the enrollment at Whitman College founded after 1859, you should simply select the `enrollment` value without averaging. Here’s the... | 11,047 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_6 (enrollment INTEGER, institution VARCHAR, founded VARCHAR)\n\n Question: What is the Enrollment at Whitman College Fo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (attendance INTEGER, opponent VARCHAR)
Question: What was the attendance when the opponent was virginia?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question about the attendance when the opponent was Virginia:
```sql
SELECT SUM(attendance) FROM table_name_96 WHERE opponent = 'virginia';
``` | 11,048 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_96 (attendance INTEGER, opponent VARCHAR)\n\n Question: What was the attendance when the opponent was virginia?\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_8 (date VARCHAR, opponent VARCHAR)
Question: What was the date when the opponent was at South carolina?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question regarding the date when the opponent was at South Carolina:
```
SELECT date FROM table_name_8 WHERE opponent = "at south carolina";
``` | 11,049 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR)\n\n Question: What was the date when the opponent was at South carolina?\n\nHere is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (attendance INTEGER, result VARCHAR)
Question: What was the highest attendance when the result was L 6-28?
Here is the SQLite query to answer to the questi... | Here is the corrected SQLite query to answer the question regarding the highest attendance when the result was "L 6-28":
```
SELECT MAX(attendance) FROM table_name_40 WHERE result = "L 6-28"
``` | 11,050 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_40 (attendance INTEGER, result VARCHAR)\n\n Question: What was the highest attendance when the result was L 6-28?\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_62 (week INTEGER, game_site VARCHAR)
Question: What was the earliest week the Titans played at Ford Field?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about the earliest week the Titans played at Ford Field:
```sql
SELECT MIN(week)
FROM table_name_62
WHERE game_site = "ford field" AND team = "Titans";
```
(Note: The assumption is made that there is a column named `team` that identifies the team; if there isn't and ... | 11,051 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_62 (week INTEGER, game_site VARCHAR)\n\n Question: What was the earliest week the Titans played at Ford Field?\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_68 (date VARCHAR, opponent VARCHAR, week VARCHAR, game_site VARCHAR)
Question: When did the Titans play the Houston Texans at LP Field before Week 13?
Here is... | Here is the SQLite query to answer the question of when the Titans played the Houston Texans at LP Field before Week 13:
```
SELECT date FROM table_name_68 WHERE week < '13' AND game_site = 'LP Field' AND opponent = 'Houston Texans';
``` | 11,052 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_68 (date VARCHAR, opponent VARCHAR, week VARCHAR, game_site VARCHAR)\n\n Question: When did the Titans play the Houston... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (avg_g INTEGER, yards VARCHAR, long VARCHAR, gp_gs VARCHAR)
Question: What is the highest average for a long less than 24, a GP-GS of 2-0, and less than 7 y... | The SQLite query you have provided has a couple of issues regarding data types for the `yards` and `long` columns, as they are VARCHAR fields. You need to cast them to INTEGER for numeric comparisons. Here’s the corrected query:
```sql
SELECT MAX(avg_g)
FROM table_name_93
WHERE CAST(long AS INTEGER) < 24
AND gp_g... | 11,053 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_93 (avg_g INTEGER, yards VARCHAR, long VARCHAR, gp_gs VARCHAR)\n\n Question: What is the highest average for a long les... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (long INTEGER, yards VARCHAR, avg_g VARCHAR)
Question: What is the sum for the long that has 926 yards and an avg/g less than 84.2?
Here is the SQLite quer... | Here's the SQLite query that answers your question:
```
SELECT SUM(long) FROM table_name_47 WHERE yards = '926' AND avg_g < 84.2;
```
Please note that the `yards` column is of type `VARCHAR`, so I've included the value `926` as a string. | 11,054 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_47 (long INTEGER, yards VARCHAR, avg_g VARCHAR)\n\n Question: What is the sum for the long that has 926 yards and an av... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (avg_g VARCHAR, yards VARCHAR, long VARCHAR, gp_gs VARCHAR)
Question: What is the total number of avg/g with a long of 50, a gp-gs of 3-0, and 926 yards?
H... | The provided query has a slight inconsistency related to the yardage condition. You specified that you are looking for "926 yards," but the query checks for yards greater than 926.
Here’s the corrected SQLite query to answer the question regarding the total number of `avg_g` values matching the specified conditions:
... | 11,055 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (avg_g VARCHAR, yards VARCHAR, long VARCHAR, gp_gs VARCHAR)\n\n Question: What is the total number of avg/g with a l... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (motorway VARCHAR, scheduled_completion VARCHAR, county VARCHAR)
Question: Which motorway is in brod-posavina county and has a scheduled completion in 2013?... | Here is the SQLite query to answer the question about which motorway is in brod-posavina county and has a scheduled completion in 2013:
```
SELECT motorway FROM table_name_68 WHERE scheduled_completion = "2013" AND county = "brod-posavina";
``` | 11,056 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_68 (motorway VARCHAR, scheduled_completion VARCHAR, county VARCHAR)\n\n Question: Which motorway is in brod-posavina co... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (built_by_hm_dockyard VARCHAR, laid_down VARCHAR)
Question: Which built by HM Dockyard has September 1830 as the laid down?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question regarding which built by HM Dockyard has September 1830 as the laid down:
```
SELECT built_by_hm_dockyard FROM table_name_43 WHERE laid_down = "september 1830"
``` | 11,057 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_43 (built_by_hm_dockyard VARCHAR, laid_down VARCHAR)\n\n Question: Which built by HM Dockyard has September 1830 as the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (name VARCHAR, laid_down VARCHAR, built_by_hm_dockyard VARCHAR)
Question: What is the name that has July 1823 as the Laid down, and portsmouth as the built ... | Here is the SQLite query to answer the question:
```
SELECT name FROM table_name_96 WHERE laid_down = "July 1823" AND built_by_hm_dockyard = "portsmouth"
``` | 11,058 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_96 (name VARCHAR, laid_down VARCHAR, built_by_hm_dockyard VARCHAR)\n\n Question: What is the name that has July 1823 as... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (ordered VARCHAR, name VARCHAR)
Question: What ordered has helena as the name?
Here is the SQLite query to answer to the question: What ordered has helena ... | Here is the SQLite query to answer the question: What ordered has helena as the name?:
```
SELECT ordered FROM table_name_87 WHERE name = "helena";
``` | 11,059 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (ordered VARCHAR, name VARCHAR)\n\n Question: What ordered has helena as the name?\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_73 (ordered VARCHAR, name VARCHAR)
Question: What ordered has algerine (2nd of name) as the name?
Here is the SQLite query to answer to the question: What ord... | Here is the corrected SQLite query to answer the question:
```sql
SELECT ordered FROM table_name_73 WHERE name = "algerine";
```
This revision is made because you want to find the ordered value where the name matches "algerine" rather than the phrase "algerine (2nd of name)", which seems to indicate the position rat... | 11,060 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_73 (ordered VARCHAR, name VARCHAR)\n\n Question: What ordered has algerine (2nd of name) as the name?\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_79 (name VARCHAR, built_by_hm_dockyard VARCHAR, laid_down VARCHAR)
Question: What name has pembroke as the built by hm dockyard, and may 1825 as the laid down?... | Here is the SQLite query to answer the question:
```
SELECT name FROM table_name_79 WHERE built_by_hm_dockyard = "pembroke" AND laid_down = "may 1825";
``` | 11,061 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_79 (name VARCHAR, built_by_hm_dockyard VARCHAR, laid_down VARCHAR)\n\n Question: What name has pembroke as the built by... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (match VARCHAR, points VARCHAR, draw VARCHAR)
Question: How many match values have points under 14 and 0 draws?
Here is the SQLite query to answer to the q... | It looks like there is a mistake in your query regarding the condition for "draw." Since "draw" is a string (VARCHAR), you need to check if it equals '0' instead of using `<`. Additionally, you need to convert the "points" to an integer for comparison. Here's the corrected query:
```sql
SELECT COUNT(match)
FROM table... | 11,062 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (match VARCHAR, points VARCHAR, draw VARCHAR)\n\n Question: How many match values have points under 14 and 0 draws?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (lost INTEGER, match INTEGER)
Question: What is the sum of losses for teams with under 10 matches?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question regarding the sum of losses for teams with under 10 matches:
```
SELECT SUM(lost) FROM table_name_5 WHERE match < 10
``` | 11,063 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_5 (lost INTEGER, match INTEGER)\n\n Question: What is the sum of losses for teams with under 10 matches?\n\nHere is the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (draw INTEGER, match INTEGER)
Question: What is the average number of draws for teams with more than 10 matches?
Here is the SQLite query to answer to the ... | Your SQL query is correctly structured to find the average number of draws for teams with more than 10 matches. However, it's important to ensure that the logic aligns with the schema's definitions. Given your question, the query intends to calculate the average number of draws, ensuring that it only includes records w... | 11,064 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_47 (draw INTEGER, match INTEGER)\n\n Question: What is the average number of draws for teams with more than 10 matches?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (points INTEGER, match VARCHAR, draw VARCHAR, lost VARCHAR)
Question: What is the sum of points for teams with more than 10 matches, more than 0 draws, and ... | Here is the SQLite query wrapped as requested:
```
SELECT SUM(points) FROM table_name_86 WHERE draw > 0 AND lost = 7 AND match > 10
``` | 11,065 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_86 (points INTEGER, match VARCHAR, draw VARCHAR, lost VARCHAR)\n\n Question: What is the sum of points for teams with m... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (season VARCHAR, average VARCHAR)
Question: Which season's average was 37.5?
Here is the SQLite query to answer to the question: Which season's average was... | It looks like there's a small issue with the data type for the `average` column in your schema. The `average` column is defined as `VARCHAR`, but to compare it with a numeric value like 37.5, it would be more appropriate to convert it to a numeric type or ensure it is stored as a number in a different way.
Assuming th... | 11,066 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (season VARCHAR, average VARCHAR)\n\n Question: Which season's average was 37.5?\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_13 (rank VARCHAR, celebrity VARCHAR, season VARCHAR)
Question: How many ranks had marcin mroczek as the celebrity in a season more recent than 4?
Here is the ... | Here is the SQLite query to answer the question about how many ranks had "marcin mroczek" as the celebrity in a season more recent than 4:
```
SELECT COUNT(rank) FROM table_name_13 WHERE celebrity = "marcin mroczek" AND season > 4
``` | 11,067 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_13 (rank VARCHAR, celebrity VARCHAR, season VARCHAR)\n\n Question: How many ranks had marcin mroczek as the celebrity i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (population_1991 INTEGER, name VARCHAR, population_2007 VARCHAR)
Question: What is the highest population in 1991 in Baden Bei Wien, and a 2007 population l... | It looks like there are some minor issues with your SQL query. Specifically, it seems you might be confused with the condition for filtering the population in the year 2007. Additionally, the phrase "OFFSET 284" appears to be a typographical error, as it doesn't fit the context of your query.
Here’s the corrected SQLi... | 11,068 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_13 (population_1991 INTEGER, name VARCHAR, population_2007 VARCHAR)\n\n Question: What is the highest population in 199... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (director VARCHAR, title VARCHAR)
Question: What is the Director for the episode titled “some lapse of time”?
Here is the SQLite query to answer to the que... | Here is the SQLite query to retrieve the Director for the episode titled “some lapse of time”:
```
SELECT director FROM table_name_85 WHERE title = "some lapse of time";
``` | 11,069 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_85 (director VARCHAR, title VARCHAR)\n\n Question: What is the Director for the episode titled “some lapse of time”?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_30 (airdate VARCHAR, adapted_by VARCHAR, title VARCHAR)
Question: What is the Airdate for the episode titled “thirteen to centaurus” Adapted by stanley miller?... | The SQLite query you provided almost correctly solves the problem, but there seems to be an extra quote in the title. Here's the corrected query:
```
SELECT airdate FROM table_name_30 WHERE adapted_by = "stanley miller" AND title = "thirteen to centaurus";
```
This will retrieve the airdate for the episode titled "t... | 11,070 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_30 (airdate VARCHAR, adapted_by VARCHAR, title VARCHAR)\n\n Question: What is the Airdate for the episode titled “thirt... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (million_czk VARCHAR)
Question: What 2007 number when the million CZK shows operating revenues?
Here is the SQLite query to answer to the question: What 20... | Your query is almost correct, but the use of `COUNT(2007)` is not appropriate in this context. Instead, you should use a condition that accurately counts the rows where the year 2007 is related to "operating revenues".
Assuming that the column `million_czk` contains values that represent the type of revenue and that ... | 11,071 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_47 (million_czk VARCHAR)\n\n Question: What 2007 number when the million CZK shows operating revenues?\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_34 (year INTEGER, album VARCHAR)
Question: What is the lowest Year with an Album that is live love in London?
Here is the SQLite query to answer to the questi... | Your SQLite query to find the lowest year with an album titled "live love in london" is correct. Here it is wrapped in the requested format:
```
SELECT MIN(year) FROM table_name_34 WHERE album = "live love in london";
``` | 11,072 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_34 (year INTEGER, album VARCHAR)\n\n Question: What is the lowest Year with an Album that is live love in London?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (us VARCHAR, year VARCHAR)
Question: What is the U.S. Christian with a Year that is 1989?
Here is the SQLite query to answer to the question: What is the U... | Here's the SQLite query to answer the question about the U.S. Christian with a Year that is 1989:
```
SELECT us AS Christian FROM table_name_92 WHERE year = '1989';
``` | 11,073 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_92 (us VARCHAR, year VARCHAR)\n\n Question: What is the U.S. Christian with a Year that is 1989?\n\nHere is the SQLite ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (theme VARCHAR, original_artist VARCHAR)
Question: What is the Theme when Fontella Bass was the original artist?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question regarding the theme associated with Fontella Bass as the original artist:
```
SELECT theme FROM table_name_73 WHERE original_artist = "Fontella Bass";
``` | 11,074 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_73 (theme VARCHAR, original_artist VARCHAR)\n\n Question: What is the Theme when Fontella Bass was the original artist?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (week__number VARCHAR, original_artist VARCHAR, theme VARCHAR)
Question: What is the Week # when the Beatles were the original artist and the theme was The ... | Here is the SQLite query to answer the question:
```
SELECT week__number FROM table_name_18 WHERE original_artist = "the beatles" AND theme = "the beatles"
``` | 11,075 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (week__number VARCHAR, original_artist VARCHAR, theme VARCHAR)\n\n Question: What is the Week # when the Beatles wer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (top_25 VARCHAR, top_5 VARCHAR, top_10 VARCHAR, tournament VARCHAR)
Question: What is the total number of top-25 in the Masters Tournament, which has 0 top-... | Your SQLite query needs a slight correction to accurately reflect the conditions specified in the question. Specifically, you need to ensure that `top_10` and `top_5` are treated correctly; they should be compared against conditions that parse them as integers or NULLs as appropriate.
Here’s the corrected SQLite query... | 11,076 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_16 (top_25 VARCHAR, top_5 VARCHAR, top_10 VARCHAR, tournament VARCHAR)\n\n Question: What is the total number of top-25... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (top_25 INTEGER, tournament VARCHAR, cuts_made VARCHAR)
Question: What is the total top-25 of the U.S. Open, which has less than 7 cuts?
Here is the SQLite... | Here's the SQLite query to answer your question about the total top-25 of the U.S. Open, which has less than 7 cuts:
```
SELECT SUM(top_25) FROM table_name_84 WHERE tournament = "U.S. Open" AND cuts_made < 7;
```
Make sure to check the case sensitivity of the tournament name in your database. | 11,077 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_84 (top_25 INTEGER, tournament VARCHAR, cuts_made VARCHAR)\n\n Question: What is the total top-25 of the U.S. Open, whi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (top_5 INTEGER, top_10 VARCHAR, top_25 VARCHAR)
Question: What is the lowest top-5 of the tournament with less than 1 top-10 and less than 1 top-25?
Here i... | Your SQLite query looks almost correct, but it seems the conditions for `top_10` and `top_25` being less than 1 should be checked against the number of occurrences of these values. Since `top_10` and `top_25` are defined as strings (VARCHAR), you may want to check for some specific values that indicate "not present" ra... | 11,078 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (top_5 INTEGER, top_10 VARCHAR, top_25 VARCHAR)\n\n Question: What is the lowest top-5 of the tournament with less t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (top_25 INTEGER, events VARCHAR, top_10 VARCHAR)
Question: What is the highest top-25 of the tournament with less than 22 events and more than 1 top-10?
He... | Your provided SQLite query has a small mistake in the condition for counting the number of top-10 occurrences. Since `top_10` is a VARCHAR column, you can't directly compare it with a number like `1`. You should count the occurrences of top-10 entries and then apply the filtering.
Here is the corrected query:
```sql
... | 11,079 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_11 (top_25 INTEGER, events VARCHAR, top_10 VARCHAR)\n\n Question: What is the highest top-25 of the tournament with les... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (appearances INTEGER, bronze_medals INTEGER)
Question: What is the average amount of appearances for the Bronze Meals less than 0?
Here is the SQLite query... | Your SQLite query is correct for the given question. Here it is wrapped in the appropriate code block:
```
SELECT AVG(appearances) FROM table_name_58 WHERE bronze_medals < 0;
``` | 11,080 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_58 (appearances INTEGER, bronze_medals INTEGER)\n\n Question: What is the average amount of appearances for the Bronze ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (gold_medals VARCHAR, appearances VARCHAR, silver_medals VARCHAR)
Question: What is the total number of 4th place that has 3 appearances for 3, and a more t... | It looks like you're trying to count the number of records that match specific criteria in your SQLite database. However, there are a few mistakes in the provided SQL query. When selecting a count, you don't need to alias the count with `4 AS th_place`. Furthermore, you should check if `gold_medals` is equal to `0` ins... | 11,081 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_27 (gold_medals VARCHAR, appearances VARCHAR, silver_medals VARCHAR)\n\n Question: What is the total number of 4th plac... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (year VARCHAR, hmos VARCHAR, pos_plans VARCHAR)
Question: How many years have HMOs been 27% and POS plans 18%?
Here is the SQLite query to answer to the qu... | Your SQLite query looks correct for counting the number of years when HMOs were at 27% and POS plans were at 18%. Here it is wrapped properly:
```
SELECT COUNT(year) FROM table_name_54 WHERE hmos = "27%" AND pos_plans = "18%"
```
This query will return the count of rows in the `table_name_54` table that match the co... | 11,082 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_54 (year VARCHAR, hmos VARCHAR, pos_plans VARCHAR)\n\n Question: How many years have HMOs been 27% and POS plans 18%?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (conventional_plans VARCHAR, pos_plans VARCHAR)
Question: Which conventional plan has a POS of 13%?
Here is the SQLite query to answer to the question: Whi... | Here's the SQLite query to find the conventional plan that has a POS of 13%:
```sql
SELECT conventional_plans FROM table_name_55 WHERE pos_plans = '13%';
``` | 11,083 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_55 (conventional_plans VARCHAR, pos_plans VARCHAR)\n\n Question: Which conventional plan has a POS of 13%?\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_24 (year INTEGER, conventional_plans VARCHAR)
Question: How many years have a conventional plan of 7%?
Here is the SQLite query to answer to the question: How... | The query you provided seems to attempt to sum the years, which isn't the answer to the question about counting the number of years. Instead, you need to count the distinct years that have a conventional plan of 7%. Here's the corrected SQL query:
```
SELECT COUNT(DISTINCT year)
FROM table_name_24
WHERE conventional... | 11,084 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_24 (year INTEGER, conventional_plans VARCHAR)\n\n Question: How many years have a conventional plan of 7%?\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_14 (conventional_plans VARCHAR, pos_plans VARCHAR)
Question: Which conventional plan has a POS plan of 21%?
Here is the SQLite query to answer to the question... | Your query structure is almost correct, but it requires a minor adjustment. In SQLite, to match a percentage value or a string that includes a percentage sign, you need to make sure the comparison accurately reflects how the data is stored. Also, for comparison against a percentage, you typically want to use a numerica... | 11,085 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_14 (conventional_plans VARCHAR, pos_plans VARCHAR)\n\n Question: Which conventional plan has a POS plan of 21%?\n\nHere... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (hmos VARCHAR, conventional_plans VARCHAR, year VARCHAR)
Question: Which HMO has a conventional plan of 3% in 2005?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question: Which HMO has a conventional plan of 3% in 2005?:
```
SELECT hmos FROM table_name_96 WHERE conventional_plans = '3%' AND year = '2005';
``` | 11,086 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_96 (hmos VARCHAR, conventional_plans VARCHAR, year VARCHAR)\n\n Question: Which HMO has a conventional plan of 3% in 20... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (administrative_panel INTEGER, labour_panel VARCHAR, agricultural_panel VARCHAR, industrial_and_commercial_panel VARCHAR)
Question: How many are on the admin... | Your query needs to count the number of records rather than calculate the average of the `administrative_panel`. To achieve your requirement, use the `COUNT` function instead. Here is the corrected SQLite query:
```
SELECT COUNT(administrative_panel) FROM table_name_7 WHERE agricultural_panel < 11 AND industrial_and_c... | 11,087 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_7 (administrative_panel INTEGER, labour_panel VARCHAR, agricultural_panel VARCHAR, industrial_and_commercial_panel VARCHAR... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (read_by VARCHAR, un__abridged VARCHAR, author VARCHAR)
Question: Who read the unabridged book written by Gary Paulsen?
Here is the SQLite query to answer t... | The provided query has a small issue. It seems to look for a literal string "unabridged" instead of checking if the book is unabridged by simply checking for the author's name. Assuming "un__abridged" is a column that contains the title of the book or a boolean indicator for abridgement, the query should be revised acc... | 11,088 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_9 (read_by VARCHAR, un__abridged VARCHAR, author VARCHAR)\n\n Question: Who read the unabridged book written by Gary Pa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (read_by VARCHAR, un__abridged VARCHAR, author VARCHAR)
Question: Who read the unabridged novel written by John D. Fitzgerald?
Here is the SQLite query to ... | Your SQLite query is almost correct, but it looks like you're checking for the value "unabridged" instead of the specific title of the unabridged novel written by John D. Fitzgerald. Assuming you are looking for the records of the unabridged novel, you might want to check for the specific title instead. Given your ques... | 11,089 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_55 (read_by VARCHAR, un__abridged VARCHAR, author VARCHAR)\n\n Question: Who read the unabridged novel written by John ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (week__number VARCHAR, theme VARCHAR)
Question: In which week was the Theme 1960s?
Here is the SQLite query to answer to the question: In which week was th... | Here is the SQLite query to answer the question: In which week was the Theme 1960s?:
```
SELECT week__number FROM table_name_44 WHERE theme = "1960s";
``` | 11,090 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_44 (week__number VARCHAR, theme VARCHAR)\n\n Question: In which week was the Theme 1960s?\n\nHere is the SQLite query t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (song_choice VARCHAR, theme VARCHAR, week__number VARCHAR)
Question: When the week # is listed as Hollywood, and the Theme is N/A, what song is listed?
Her... | Here is the SQLite query to answer the question about the songs listed when the week is Hollywood and the theme is N/A:
```sql
SELECT song_choice FROM table_name_82 WHERE theme = 'N/A' AND week__number = 'Hollywood';
``` | 11,091 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_82 (song_choice VARCHAR, theme VARCHAR, week__number VARCHAR)\n\n Question: When the week # is listed as Hollywood, and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (theme VARCHAR, result VARCHAR)
Question: Which Theme has a Result of eliminated?
Here is the SQLite query to answer to the question: Which Theme has a Res... | Here is the SQLite query to answer the question: Which Theme has a Result of eliminated?:
```
SELECT theme FROM table_name_95 WHERE result = "eliminated";
``` | 11,092 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_95 (theme VARCHAR, result VARCHAR)\n\n Question: Which Theme has a Result of eliminated?\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_23 (song_choice VARCHAR, original_artist VARCHAR)
Question: Which song choice was originally performed by Bonnie Tyler?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question regarding which song choice was originally performed by Bonnie Tyler:
```
SELECT song_choice FROM table_name_23 WHERE original_artist = "Bonnie Tyler";
``` | 11,093 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (song_choice VARCHAR, original_artist VARCHAR)\n\n Question: Which song choice was originally performed by Bonnie Ty... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (call_sign VARCHAR, erp_w VARCHAR, frequency_mhz VARCHAR)
Question: Which call sign, broadcast at less than 103.5MHz, has an ERP W of 50?
Here is the SQLit... | Here is the SQLite query wrapped as you requested:
```
SELECT call_sign FROM table_name_43 WHERE erp_w = 50 AND frequency_mhz < 103.5
``` | 11,094 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_43 (call_sign VARCHAR, erp_w VARCHAR, frequency_mhz VARCHAR)\n\n Question: Which call sign, broadcast at less than 103.... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (frequency_mhz VARCHAR, city_of_license VARCHAR)
Question: What is the frequency of the call sign licensed in Albany, New York?
Here is the SQLite query to ... | Here is the SQLite query to answer the question about the frequency of the call sign licensed in Albany, New York:
```
SELECT frequency_mhz FROM table_name_7 WHERE city_of_license = "Albany, New York";
``` | 11,095 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_7 (frequency_mhz VARCHAR, city_of_license VARCHAR)\n\n Question: What is the frequency of the call sign licensed in Alb... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (chart_peak VARCHAR, recorded VARCHAR)
Question: Which Chart peak was Recorded on 2/19/69?
Here is the SQLite query to answer to the question: Which Chart ... | Here is the SQLite query to answer the question: Which Chart peak was Recorded on 2/19/69?:
```
SELECT chart_peak FROM table_name_64 WHERE recorded = "2/19/69";
``` | 11,096 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (chart_peak VARCHAR, recorded VARCHAR)\n\n Question: Which Chart peak was Recorded on 2/19/69?\n\nHere is the SQLite... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_30 (chart_peak VARCHAR, time VARCHAR)
Question: Which Chart peak has a Time of 3:11?
Here is the SQLite query to answer to the question: Which Chart peak has ... | Here is the SQLite query to answer the question "Which Chart peak has a Time of 3:11?":
```sql
SELECT chart_peak FROM table_name_30 WHERE time = "3:11";
``` | 11,097 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_30 (chart_peak VARCHAR, time VARCHAR)\n\n Question: Which Chart peak has a Time of 3:11?\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_60 (catalogue VARCHAR, writer_s_ VARCHAR)
Question: Which Catalogue has a Writer(s) of mark james?
Here is the SQLite query to answer to the question: Which C... | Here is the SQLite query to answer the question: Which Catalogue has a Writer(s) of mark james?:
```
SELECT catalogue FROM table_name_60 WHERE writer_s_ = "mark james"
``` | 11,098 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_60 (catalogue VARCHAR, writer_s_ VARCHAR)\n\n Question: Which Catalogue has a Writer(s) of mark james?\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_48 (track INTEGER, writer_s_ VARCHAR)
Question: Which Track has a Writer(s) of mac davis?
Here is the SQLite query to answer to the question: Which Track has ... | The query you provided does not accurately answer the question, as it computes the average of the `track` values instead of selecting the tracks that have "mac davis" as a writer. Here is the corrected SQLite query:
```
SELECT track FROM table_name_48 WHERE writer_s_ = "mac davis";
``` | 11,099 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_48 (track INTEGER, writer_s_ VARCHAR)\n\n Question: Which Track has a Writer(s) of mac davis?\n\nHere is the SQLite que... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.