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_30083499_1 (nationality VARCHAR, tournament VARCHAR)
Question: How many nationalities are there for the 2011 apertura?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question:
```
SELECT COUNT(DISTINCT nationality) FROM table_30083499_1 WHERE tournament = "2011 Apertura"
``` | 21,300 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30083499_1 (nationality VARCHAR, tournament VARCHAR)\n\n Question: How many nationalities are there for the 2011 apertura?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30083499_1 (team VARCHAR, tournament VARCHAR)
Question: Which team was in the 2012 clausura tournament?
Here is the SQLite query to answer to the question: Which t... | Here is the SQLite query to answer the question:
```sql
SELECT team FROM table_30083499_1 WHERE tournament = "2012 Clausura";
``` | 21,301 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30083499_1 (team VARCHAR, tournament VARCHAR)\n\n Question: Which team was in the 2012 clausura tournament?\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_30083499_1 (coefficient VARCHAR, player VARCHAR)
Question: What is the coefficient for agustín marchesín (1)?
Here is the SQLite query to answer to the question: W... | ```sql
SELECT coefficient FROM table_30083499_1 WHERE player = "Agustín Marchesín (1)";
``` | 21,302 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30083499_1 (coefficient VARCHAR, player VARCHAR)\n\n Question: What is the coefficient for agustín marchesín (1)?\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_30083499_1 (coefficient VARCHAR, tournament VARCHAR)
Question: the 2010 clausura tournament?
Here is the SQLite query to answer to the question: the 2010 clausur... | Here is the SQLite query to answer the question about the 2010 Clausura tournament:
```
SELECT coefficient FROM table_30083499_1 WHERE tournament = "2010 Clausura";
``` | 21,303 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30083499_1 (coefficient VARCHAR, tournament VARCHAR)\n\n Question: the 2010 clausura tournament?\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_30083499_1 (nationality VARCHAR, tournament VARCHAR)
Question: What is the nationality of the 2012 clausura tournament?
Here is the SQLite query to answer to the ... | Here is the SQLite query to find the nationality associated with the "2012 Clausura" tournament:
```sql
SELECT nationality FROM table_30083499_1 WHERE tournament = "2012 Clausura";
``` | 21,304 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30083499_1 (nationality VARCHAR, tournament VARCHAR)\n\n Question: What is the nationality of the 2012 clausura tournament?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30087032_5 (high_points VARCHAR, game VARCHAR)
Question: Who did the high points in game number 1?
Here is the SQLite query to answer to the question: Who did the ... | Your SQLite query is almost correct, but the game values should generally be treated as a string since the `game` column is defined as VARCHAR in the schema. If the game number is stored as a string, you should use quotes around the game number in the query. Here’s the revised query:
```
SELECT high_points FROM table_... | 21,305 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30087032_5 (high_points VARCHAR, game VARCHAR)\n\n Question: Who did the high points in game number 1?\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_30087032_5 (game VARCHAR, high_rebounds VARCHAR)
Question: In how many different games did Oliver Miller (7) did the high rebounds?
Here is the SQLite query to ans... | Your query is almost correct, but it should ensure that you only count distinct games to avoid duplicates. Here's the revised query:
```sql
SELECT COUNT(DISTINCT game) FROM table_30087032_5 WHERE high_rebounds = "Oliver Miller (7)";
```
This will give you the count of different games in which Oliver Miller had high ... | 21,306 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30087032_5 (game VARCHAR, high_rebounds VARCHAR)\n\n Question: In how many different games did Oliver Miller (7) did the hig... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30087032_5 (high_assists VARCHAR, high_points VARCHAR)
Question: Who did the high assists in the game where Charles Barkley (21) did the high points?
Here is the S... | It looks like there is a small correction needed in your SQL query. You need to find the `high_assists` in the game where Charles Barkley scored his `high_points`. However, your query seems to be looking for a match on the `high_points` rather than identifying the specific points scored by Charles Barkley.
Assuming "h... | 21,307 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30087032_5 (high_assists VARCHAR, high_points VARCHAR)\n\n Question: Who did the high assists in the game where Charles Bark... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30087032_5 (high_points VARCHAR, date VARCHAR)
Question: How many different high points results are there for the game on May 15?
Here is the SQLite query to answe... | To count the number of different high points results for the game on May 15, you should use the `COUNT(DISTINCT high_points)` function to ensure you only count unique high points. Here is the corrected SQLite query:
```
SELECT COUNT(DISTINCT high_points) FROM table_30087032_5 WHERE date = "May 15";
``` | 21,308 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30087032_5 (high_points VARCHAR, date VARCHAR)\n\n Question: How many different high points results are there for the game o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30087032_5 (series VARCHAR, high_points VARCHAR)
Question: In what series did Charles Barkley (34) did most high points?
Here is the SQLite query to answer to the ... | It looks like you want to find out in which series Charles Barkley had the most high points. However, based on your provided query, it seems you are trying to match the `high_points` column directly with "Charles Barkley (34)", which likely won’t give you the desired results.
It seems that the `high_points` column sho... | 21,309 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30087032_5 (series VARCHAR, high_points VARCHAR)\n\n Question: In what series did Charles Barkley (34) did most high points?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30120605_1 (barony VARCHAR, townland VARCHAR)
Question: What is the barony of mountcotton?
Here is the SQLite query to answer to the question: What is the barony o... | Here is the SQLite query to answer the question: What is the barony of Mountcotton?:
```
SELECT barony FROM table_30120605_1 WHERE townland = "Mountcotton"
``` | 21,310 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30120605_1 (barony VARCHAR, townland VARCHAR)\n\n Question: What is the barony of mountcotton?\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_30120605_1 (area__acres__ VARCHAR, townland VARCHAR)
Question: What is the area in acres of gortnaskehy?
Here is the SQLite query to answer to the question: What i... | Here is the SQLite query to answer the question about the area in acres of Gortnaskehy:
```
SELECT area__acres__ FROM table_30120605_1 WHERE townland = "Gortnaskehy"
``` | 21,311 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30120605_1 (area__acres__ VARCHAR, townland VARCHAR)\n\n Question: What is the area in acres of gortnaskehy?\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_30120605_1 (civil_parish VARCHAR, townland VARCHAR)
Question: In which civil parish is ballymacandrick?
Here is the SQLite query to answer to the question: In whic... | Here is the SQLite query to answer the question: In which civil parish is ballymacandrick?:
```
SELECT civil_parish FROM table_30120605_1 WHERE townland = "Ballymacandrick"
``` | 21,312 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30120605_1 (civil_parish VARCHAR, townland VARCHAR)\n\n Question: In which civil parish is ballymacandrick?\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_30120664_1 (townland VARCHAR, poor_law_union VARCHAR, civil_parish VARCHAR)
Question: Name the townland for fermoy and ballynoe
Here is the SQLite query to answer... | Here is the SQLite query to answer the question of naming the townland for Fermoy and Ballynoe:
```
SELECT townland FROM table_30120664_1 WHERE poor_law_union = 'Fermoy' AND civil_parish = 'Ballynoe';
``` | 21,313 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30120664_1 (townland VARCHAR, poor_law_union VARCHAR, civil_parish VARCHAR)\n\n Question: Name the townland for fermoy and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30120664_1 (civil_parish VARCHAR, townland VARCHAR)
Question: name the civil parish for garryduff
Here is the SQLite query to answer to the question: name the civi... | Here is the SQLite query to answer the question of naming the civil parish for Garryduff:
```
SELECT civil_parish FROM table_30120664_1 WHERE townland = "Garryduff"
``` | 21,314 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30120664_1 (civil_parish VARCHAR, townland VARCHAR)\n\n Question: name the civil parish for garryduff\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_30120664_1 (area__acres__ VARCHAR, civil_parish VARCHAR, townland VARCHAR)
Question: Name the area for civil parish ballynoe and killasseragh
Here is the SQLite qu... | It looks like you're trying to query for the areas associated with the civil parishes "Ballynoe" and "Killasseragh". However, since you want to retrieve areas for both civil parishes, you need to use the `OR` operator to include both conditions. Here's the corrected SQLite query:
```
SELECT area__acres__ FROM table_30... | 21,315 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30120664_1 (area__acres__ VARCHAR, civil_parish VARCHAR, townland VARCHAR)\n\n Question: Name the area for civil parish ball... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30121046_1 (poor_law_union VARCHAR, townland VARCHAR)
Question: What is the poor law union of the Kilmaloda townland?
Here is the SQLite query to answer to the que... | Your SQLite query to find the poor law union of the Kilmaloda townland is correct. Here it is wrapped in code formatting as you requested:
```
SELECT poor_law_union FROM table_30121046_1 WHERE townland = "Kilmaloda"
``` | 21,316 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30121046_1 (poor_law_union VARCHAR, townland VARCHAR)\n\n Question: What is the poor law union of the Kilmaloda townland?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30121046_1 (poor_law_union VARCHAR, townland VARCHAR)
Question: What is the poor law union of the Lackenagobidane townland?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question regarding the poor law union of the Lackenagobidane townland:
```
SELECT poor_law_union FROM table_30121046_1 WHERE townland = "Lackenagobidane";
``` | 21,317 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30121046_1 (poor_law_union VARCHAR, townland VARCHAR)\n\n Question: What is the poor law union of the Lackenagobidane townla... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30121046_1 (poor_law_union VARCHAR, townland VARCHAR)
Question: What is the poor law union of the Ardacrow townland?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to find the poor law union of the Ardacrow townland:
```
SELECT poor_law_union FROM table_30121046_1 WHERE townland = 'Ardacrow';
``` | 21,318 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30121046_1 (poor_law_union VARCHAR, townland VARCHAR)\n\n Question: What is the poor law union of the Ardacrow townland?\n\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30121046_1 (area__acres__ INTEGER, townland VARCHAR)
Question: What is the maximum area (in acres) of the Knockacullen townland?
Here is the SQLite query to answer... | Your SQLite query is correctly structured to find the maximum area (in acres) of the Knockacullen townland. Here is the formatted query:
```
SELECT MAX(area__acres__) FROM table_30121046_1 WHERE townland = "Knockacullen";
```
This query will return the maximum value of the `area__acres__` column for rows where the `... | 21,319 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30121046_1 (area__acres__ INTEGER, townland VARCHAR)\n\n Question: What is the maximum area (in acres) of the Knockacullen t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30121082_1 (civil_parish VARCHAR, townland VARCHAR)
Question: What are the civil parishes of the Loughmarsh townland?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question regarding the civil parishes of the Loughmarsh townland:
```
SELECT civil_parish FROM table_30121082_1 WHERE townland = "Loughmarsh"
``` | 21,320 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30121082_1 (civil_parish VARCHAR, townland VARCHAR)\n\n Question: What are the civil parishes of the Loughmarsh townland?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30121082_1 (area__acres__ INTEGER, poor_law_union VARCHAR, civil_parish VARCHAR)
Question: What is the greatest area when the Poor Law Union is Skibbereen and the C... | Here is the SQLite query to answer the question regarding the greatest area when the Poor Law Union is Skibbereen and the Civil Parish is Tullagh:
```
SELECT MAX(area__acres__) FROM table_30121082_1 WHERE poor_law_union = "Skibbereen" AND civil_parish = "Tullagh";
``` | 21,321 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30121082_1 (area__acres__ INTEGER, poor_law_union VARCHAR, civil_parish VARCHAR)\n\n Question: What is the greatest area whe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30121082_1 (area__acres__ VARCHAR, townland VARCHAR)
Question: What are the areas (in acres) of the Kilnahera East townland?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question regarding the areas (in acres) of the Kilnahera East townland:
```
SELECT area__acres__ FROM table_30121082_1 WHERE townland = "Kilnahera East";
``` | 21,322 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30121082_1 (area__acres__ VARCHAR, townland VARCHAR)\n\n Question: What are the areas (in acres) of the Kilnahera East townl... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30121082_1 (barony VARCHAR, area__acres__ VARCHAR)
Question: What are the Baronies when the area (in acres) is 276?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question about the Baronies when the area (in acres) is 276:
```
SELECT barony FROM table_30121082_1 WHERE area__acres__ = '276'
```
Note: The area is stored as a VARCHAR, so it's important to compare it as a string. | 21,323 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30121082_1 (barony VARCHAR, area__acres__ VARCHAR)\n\n Question: What are the Baronies when the area (in acres) is 276?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30121082_1 (poor_law_union VARCHAR, area__acres__ VARCHAR)
Question: What are the Poor Law Unions when the area (in acres) is 142?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question regarding the Poor Law Unions with an area of 142 acres:
```
SELECT poor_law_union FROM table_30121082_1 WHERE area__acres__ = '142'
```
Note: Ensure that `area__acres__` is treated as a string in this case by enclosing the value in single quotes, as it is defined as `... | 21,324 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30121082_1 (poor_law_union VARCHAR, area__acres__ VARCHAR)\n\n Question: What are the Poor Law Unions when the area (in acre... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_30 (rank INTEGER, school VARCHAR, losses VARCHAR, wins VARCHAR)
Question: Tell me the average Rank for lossess less than 6 and wins less than 11 for michigan s... | Here is the SQLite query to answer the question regarding the average Rank for losses less than 6 and wins less than 11 for Michigan State:
```sql
SELECT AVG(rank)
FROM table_name_30
WHERE losses < 6 AND wins < 11 AND school = 'michigan state';
``` | 21,325 | [
{
"from": "human",
"value": " 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 (rank INTEGER, school VARCHAR, losses VARCHAR, wins VARCHAR)\n\n Question: Tell me the average Rank for lossess less... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (losses INTEGER, appearances VARCHAR, wins VARCHAR, rank VARCHAR)
Question: Tell me the sum of losses for wins less than 2 and rank of 10 with appearances l... | Here is the SQLite query to answer the question:
```
SELECT SUM(losses) FROM table_name_60 WHERE wins < 2 AND rank = '10' AND appearances > '3'
``` | 21,326 | [
{
"from": "human",
"value": " 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 (losses INTEGER, appearances VARCHAR, wins VARCHAR, rank VARCHAR)\n\n Question: Tell me the sum of losses for wins l... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (rank VARCHAR, total VARCHAR, silver VARCHAR, gold VARCHAR)
Question: Which Rank number has a Silver of 0, Gold of 2 and total smaller than 2?
Here is the ... | The SQLite query you provided is almost correct, but it requires a slight adjustment because the `silver`, `gold`, and `total` columns are of type VARCHAR. You need to cast them to integers for comparison. Here's the corrected query:
```sql
SELECT COUNT(rank) FROM table_name_56 WHERE CAST(silver AS INTEGER) = 0 AND CA... | 21,327 | [
{
"from": "human",
"value": " 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 (rank VARCHAR, total VARCHAR, silver VARCHAR, gold VARCHAR)\n\n Question: Which Rank number has a Silver of 0, Gold ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (total INTEGER, bronze VARCHAR, rank VARCHAR)
Question: What is the lowest Total containing a Bronze of 0 and Rank smaller than 2?
Here is the SQLite query... | Your SQLite query is almost correct, but the `bronze` column is defined as a VARCHAR in the schema. This means that you should compare the `bronze` field with the string '0' instead of the integer 0. Here is the corrected version of your query:
```
SELECT MIN(total) FROM table_name_92 WHERE bronze = '0' AND rank < '2'... | 21,328 | [
{
"from": "human",
"value": " 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 (total INTEGER, bronze VARCHAR, rank VARCHAR)\n\n Question: What is the lowest Total containing a Bronze of 0 and Ra... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (track VARCHAR, date VARCHAR)
Question: Tell me the track for june 9
Here is the SQLite query to answer to the question: Tell me the track for june 9:
```
... | Here is the SQLite query to answer the question "Tell me the track for June 9":
```
SELECT track FROM table_name_44 WHERE date = "june 9";
``` | 21,329 | [
{
"from": "human",
"value": " 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 (track VARCHAR, date VARCHAR)\n\n Question: Tell me the track for june 9\n\nHere is the SQLite query to answer to th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (track VARCHAR, race_winner VARCHAR)
Question: Tell me the track for scott lagasse jr.
Here is the SQLite query to answer to the question: Tell me the trac... | Here is the SQLite query to answer the question about the track for Scott Lagasse Jr.:
```
SELECT track FROM table_name_47 WHERE race_winner = "scott lagasse jr."
``` | 21,330 | [
{
"from": "human",
"value": " 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 (track VARCHAR, race_winner VARCHAR)\n\n Question: Tell me the track for scott lagasse jr.\n\nHere is the SQLite que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (event_name VARCHAR, pole_winner VARCHAR, race_winner VARCHAR)
Question: Tell me the event name for michael mcdowell and billy leslie
Here is the SQLite qu... | Here is the SQLite query to answer the question regarding the event name for Michael McDowell and Billy Leslie:
```
SELECT event_name FROM table_name_98 WHERE pole_winner = "michael mcdowell" AND race_winner = "billy leslie"
``` | 21,331 | [
{
"from": "human",
"value": " 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 (event_name VARCHAR, pole_winner VARCHAR, race_winner VARCHAR)\n\n Question: Tell me the event name for michael mcdo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (pole_winner VARCHAR, date VARCHAR)
Question: Tell me the pole winner of may 12
Here is the SQLite query to answer to the question: Tell me the pole winner... | Here is the SQLite query to answer the question about the pole winner of May 12:
```
SELECT pole_winner FROM table_name_91 WHERE date = "may 12";
``` | 21,332 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_91 (pole_winner VARCHAR, date VARCHAR)\n\n Question: Tell me the pole winner of may 12\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_20 (kazakhstan INTEGER, kyrghizstan VARCHAR, belarus VARCHAR)
Question: Tell me the lowest kazakhstan for kyrghizstan of 4.62 and belarus less than 2.46
Here ... | The SQLite query you provided has a small error regarding the data type of the `kyrghizstan` column. Since `kyrghizstan` is defined as `VARCHAR`, you should compare it as a string. Here is the corrected query:
```
SELECT MIN(kazakhstan) FROM table_name_20 WHERE kyrghizstan = '4.62' AND belarus < '2.46'
```
This quer... | 21,333 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (kazakhstan INTEGER, kyrghizstan VARCHAR, belarus VARCHAR)\n\n Question: Tell me the lowest kazakhstan for kyrghizst... | |
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, rank VARCHAR, total VARCHAR)
Question: Tell me the lowest gold for rank of 6 and total less than 2
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question about the lowest gold for rank of 6 and total less than 2:
```
SELECT MIN(gold) FROM table_name_16 WHERE rank = "6" AND total < 2
``` | 21,334 | [
{
"from": "human",
"value": " 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, rank VARCHAR, total VARCHAR)\n\n Question: Tell me the lowest gold for rank of 6 and total less than ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (rank VARCHAR, gold VARCHAR, bronze VARCHAR, silver VARCHAR)
Question: Tell me the rank for bronze less than 17 and gold less than 1
Here is the SQLite que... | It seems there is a small mistake in your query regarding the conditions specified. The question asks for "bronze less than 17" and "gold less than 1." However, in your query, you included a condition for "silver > 1," which is not required by the question.
Here is the corrected SQLite query:
```
SELECT rank FROM tab... | 21,335 | [
{
"from": "human",
"value": " 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 VARCHAR, gold VARCHAR, bronze VARCHAR, silver VARCHAR)\n\n Question: Tell me the rank for bronze less than 17 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (w_l__doubles_ VARCHAR, debut VARCHAR)
Question: Tell me the WL doubles with a debut of 1999
Here is the SQLite query to answer to the question: Tell me th... | The provided SQLite query is almost correct, but the value of `debut` should be enclosed in single quotes since it's a string type. Here's the corrected query:
```
SELECT w_l__doubles_ FROM table_name_73 WHERE debut = '1999'
``` | 21,336 | [
{
"from": "human",
"value": " 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 (w_l__doubles_ VARCHAR, debut VARCHAR)\n\n Question: Tell me the WL doubles with a debut of 1999\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_93 (win__percentage VARCHAR, conference VARCHAR, _number_of_bids VARCHAR)
Question: For the Hockey East conference, what is the total number of win percentages... | Your provided SQLite query is correctly formulated to answer the question based on the given database schema. Here it is again, wrapped appropriately as you requested:
```
SELECT COUNT(win__percentage) FROM table_name_93 WHERE conference = "hockey east" AND _number_of_bids < 4;
```
Make sure to check that the data t... | 21,337 | [
{
"from": "human",
"value": " 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 (win__percentage VARCHAR, conference VARCHAR, _number_of_bids VARCHAR)\n\n Question: For the Hockey East conference,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (regional_finals INTEGER, record VARCHAR, _number_of_bids VARCHAR)
Question: What is the average Regional Finals score when the record is 3-2 and there are m... | Here is the SQLite query to answer the question regarding the average Regional Finals score for a record of 3-2 and more than 3 bids:
```
SELECT AVG(regional_finals) FROM table_name_3 WHERE record = "3-2" AND _number_of_bids > 3
``` | 21,338 | [
{
"from": "human",
"value": " 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 (regional_finals INTEGER, record VARCHAR, _number_of_bids VARCHAR)\n\n Question: What is the average Regional Finals ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_30 (competition VARCHAR, score VARCHAR)
Question: In what competition was the score reported as 12.8 (80) - 8.7 (55)?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question regarding the competition where the score is reported as 12.8 (80) - 8.7 (55):
```
SELECT competition FROM table_name_30 WHERE score = "12.8 (80) - 8.7 (55)"
``` | 21,339 | [
{
"from": "human",
"value": " 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 (competition VARCHAR, score VARCHAR)\n\n Question: In what competition was the score reported as 12.8 (80) - 8.7 (55... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (venue VARCHAR, score VARCHAR)
Question: At what venue was there a competition with a score reported as 7.14 (56) - 4.5 (29)?
Here is the SQLite query to a... | Here is the SQLite query to answer the question regarding the venue with the specified score:
```
SELECT venue FROM table_name_89 WHERE score = "7.14 (56) - 4.5 (29)"
``` | 21,340 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_89 (venue VARCHAR, score VARCHAR)\n\n Question: At what venue was there a competition with a score reported as 7.14 (56... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (venue VARCHAR, opponent VARCHAR, score VARCHAR)
Question: At what venue did the team from Collingwood score 7.14 (56) - 4.5 (29)?
Here is the SQLite query... | Here is the corrected SQLite query to answer the question about the venue where the team from Collingwood scored 7.14 (56) - 4.5 (29):
```sql
SELECT venue FROM table_name_51 WHERE opponent = "Collingwood" AND score = "7.14 (56) - 4.5 (29)";
``` | 21,341 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_51 (venue VARCHAR, opponent VARCHAR, score VARCHAR)\n\n Question: At what venue did the team from Collingwood score 7.1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (mls_team VARCHAR, player VARCHAR)
Question: What team does Jimmy Frazelle play on?
Here is the SQLite query to answer to the question: What team does Jimm... | Here is the SQLite query to answer the question about which team Jimmy Frazelle plays on:
```
SELECT mls_team FROM table_name_41 WHERE player = "Jimmy Frazelle";
``` | 21,342 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_41 (mls_team VARCHAR, player VARCHAR)\n\n Question: What team does Jimmy Frazelle play on?\n\nHere is the SQLite query ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (mls_team VARCHAR, pick__number VARCHAR)
Question: Which MLS team has the #41 pick?
Here is the SQLite query to answer to the question: Which MLS team has ... | Your SQLite query is almost correct, but since `pick__number` is defined as a `VARCHAR`, you should compare it as a string. Here's the correct query:
```
SELECT mls_team FROM table_name_86 WHERE pick__number = '41'
``` | 21,343 | [
{
"from": "human",
"value": " 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 (mls_team VARCHAR, pick__number VARCHAR)\n\n Question: Which MLS team has the #41 pick?\n\nHere is the SQLite query ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (position VARCHAR, pick__number VARCHAR, affiliation VARCHAR)
Question: What position has UCLA pick that is larger than #47?
Here is the SQLite query to an... | Here is the SQLite query to answer the question regarding what position has UCLA pick that is larger than #47:
```
SELECT position FROM table_name_78 WHERE pick__number > '47' AND affiliation = 'ucla'
``` | 21,344 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_78 (position VARCHAR, pick__number VARCHAR, affiliation VARCHAR)\n\n Question: What position has UCLA pick that is larg... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (position VARCHAR, mls_team VARCHAR)
Question: What is the position of the Colorado Rapids team?
Here is the SQLite query to answer to the question: What i... | Here is the SQLite query to answer the question regarding the position of the Colorado Rapids team:
```
SELECT position FROM table_name_38 WHERE mls_team = "colorado rapids";
``` | 21,345 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (position VARCHAR, mls_team VARCHAR)\n\n Question: What is the position of the Colorado Rapids team?\n\nHere is the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (in_service VARCHAR, versions VARCHAR)
Question: Tell me the service for versions l-410uvp
Here is the SQLite query to answer to the question: Tell me the ... | Here is the SQLite query to answer the question about the service for versions l-410uvp:
```sql
SELECT in_service FROM table_name_52 WHERE versions = "l-410uvp";
``` | 21,346 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_52 (in_service VARCHAR, versions VARCHAR)\n\n Question: Tell me the service for versions l-410uvp\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_80 (versions VARCHAR, origin VARCHAR)
Question: Tell me the versions for czechoslovakia?
Here is the SQLite query to answer to the question: Tell me the versi... | Here is the SQLite query to answer the question about the versions for czechoslovakia:
```
SELECT versions FROM table_name_80 WHERE origin = "czechoslovakia";
``` | 21,347 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_80 (versions VARCHAR, origin VARCHAR)\n\n Question: Tell me the versions for czechoslovakia?\n\nHere is the SQLite quer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (aircraft VARCHAR, versions VARCHAR)
Question: Tell me the aircraft for pzl-104
Here is the SQLite query to answer to the question: Tell me the aircraft for... | Here is the SQLite query to answer the question: Tell me the aircraft for pzl-104:
```
SELECT aircraft FROM table_name_1 WHERE versions = 'pzl-104';
``` | 21,348 | [
{
"from": "human",
"value": " 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 (aircraft VARCHAR, versions VARCHAR)\n\n Question: Tell me the aircraft for pzl-104\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_57 (origin VARCHAR, versions VARCHAR)
Question: Tell me the origin for mi-2
Here is the SQLite query to answer to the question: Tell me the origin for mi-2:
`... | Here is the SQLite query to answer the question: Tell me the origin for mi-2:
```
SELECT origin FROM table_name_57 WHERE versions = "mi-2"
``` | 21,349 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_57 (origin VARCHAR, versions VARCHAR)\n\n Question: Tell me the origin for mi-2\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_59 (top_25 VARCHAR, cuts_made VARCHAR, wins VARCHAR)
Question: Tell me the total number of top 25 for wins less than 1 and cuts made of 22
Here is the SQLite ... | Here is the SQLite query to answer the question about the total number of top 25 for wins less than 1 and cuts made of 22:
```
SELECT COUNT(top_25) FROM table_name_59 WHERE cuts_made = 22 AND wins < 1
``` | 21,350 | [
{
"from": "human",
"value": " 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 (top_25 VARCHAR, cuts_made VARCHAR, wins VARCHAR)\n\n Question: Tell me the total number of top 25 for wins less tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (events VARCHAR, tournament VARCHAR, top_25 VARCHAR)
Question: Tell me the total number of events for tournament of masters tournament and top 25 less than ... | Here is the SQLite query to answer the question regarding the total number of events for the "masters tournament" with a "top 25" value less than 6:
```
SELECT COUNT(events) FROM table_name_32 WHERE tournament = "masters tournament" AND CAST(top_25 AS INTEGER) < 6
``` | 21,351 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (events VARCHAR, tournament VARCHAR, top_25 VARCHAR)\n\n Question: Tell me the total number of events for tournament... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (year INTEGER, league VARCHAR)
Question: What was the earliest year for the USISL Pro League?
Here is the SQLite query to answer to the question: What was ... | Here is the SQLite query to answer the question about the earliest year for the USISL Pro League:
```
SELECT MIN(year) FROM table_name_52 WHERE league = "usisl pro league";
``` | 21,352 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_52 (year INTEGER, league VARCHAR)\n\n Question: What was the earliest year for the USISL Pro League?\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_8 (Id VARCHAR)
Question: What is the 2007 Lukoil oil prodroduction when in 2010 oil production 3.137 million tonnes?
Here is the SQLite query to answer to the... | It seems there may be some confusion in your SQL query regarding the database schema and the requirements of the question. The provided schema only has a single column `Id`, which might represent some kind of identifier, but it does not have specific columns for years or oil production values. Plus, you cannot directly... | 21,353 | [
{
"from": "human",
"value": " 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 (Id VARCHAR)\n\n Question: What is the 2007 Lukoil oil prodroduction when in 2010 oil production 3.137 million tonnes... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (Id VARCHAR)
Question: What is the 2010 Lukoil oil prodroduction when in 2009 oil production 21.662 million tonnes?
Here is the SQLite query to answer to t... | Your SQLite query is not correctly structured to answer the question about Lukoil's oil production in 2010 based on the 2009 oil production figures. The `SELECT` statement should refer to the columns that contain the relevant data and should use proper conditions.
Based on the table schema provided (which just has a s... | 21,354 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_25 (Id VARCHAR)\n\n Question: What is the 2010 Lukoil oil prodroduction when in 2009 oil production 21.662 million tonn... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (Id VARCHAR)
Question: What is the 2004 Lukoil oil prodroduction when in 2011 oil production 90.917 million tonnes?
Here is the SQLite query to answer to t... | It seems like there is a misunderstanding in the SQL query you provided. Given the schema and the question context, it's important to clarify how the data is structured and queried.
If we assume that the `table_name_40` contains oil production data per year or per entry for Lukoil (with years being part of the data in... | 21,355 | [
{
"from": "human",
"value": " 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 (Id VARCHAR)\n\n Question: What is the 2004 Lukoil oil prodroduction when in 2011 oil production 90.917 million tonn... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (Id VARCHAR)
Question: What is the 2005 Lukoil oil prodroduction when in 2007 oil production 91.100 million tonnes?
Here is the SQLite query to answer to t... | It seems there are some misunderstandings in your provided schema and query. Based on the provided schema `CREATE TABLE table_name_25 (Id VARCHAR)` and the question about Lukoil oil production, we need to consider how the production data is represented.
If the table contains years and their corresponding oil productio... | 21,356 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_25 (Id VARCHAR)\n\n Question: What is the 2005 Lukoil oil prodroduction when in 2007 oil production 91.100 million tonn... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (Id VARCHAR)
Question: What is the 2005 Lukoil oil prodroduction when in 2007 oil production 5.545 million tonnes?
Here is the SQLite query to answer to th... | It seems there might be a misunderstanding in the query you provided. The database schema indicates that the table contains a single column `Id` with a datatype of `VARCHAR`, but the question implies that there are specific data points related to Lukoil oil production for the years 2005 and 2007.
Assuming you actually... | 21,357 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (Id VARCHAR)\n\n Question: What is the 2005 Lukoil oil prodroduction when in 2007 oil production 5.545 million tonne... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (home_runs INTEGER, team VARCHAR, year VARCHAR)
Question: Tell me the highest home runs for cleveland indians years before 1931
Here is the SQLite query to... | Here is the SQLite query to answer the question about the highest home runs for the Cleveland Indians in years before 1931:
```
SELECT MAX(home_runs) FROM table_name_92 WHERE team = "cleveland indians" AND year < '1931'
``` | 21,358 | [
{
"from": "human",
"value": " 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 (home_runs INTEGER, team VARCHAR, year VARCHAR)\n\n Question: Tell me the highest home runs for cleveland indians ye... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (gold INTEGER, rank INTEGER)
Question: What nation has the lowest gold average that has a rank over 9?
Here is the SQLite query to answer to the question: ... | To find the nation with the lowest gold average for ranks over 9, you'll need to calculate the average gold for each rank that meets the condition, and then select the minimum of those averages. Assuming you want the nation alongside the average, the following query is appropriate:
```sql
SELECT rank, AVG(gold) AS avg... | 21,359 | [
{
"from": "human",
"value": " 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 (gold INTEGER, rank INTEGER)\n\n Question: What nation has the lowest gold average that has a rank over 9?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (country VARCHAR, director VARCHAR)
Question: Tell me the country for julian schnabel
Here is the SQLite query to answer to the question: Tell me the count... | Here is the SQLite query to answer the question "Tell me the country for julian schnabel":
```
SELECT country FROM table_name_38 WHERE director = "julian schnabel"
``` | 21,360 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (country VARCHAR, director VARCHAR)\n\n Question: Tell me the country for julian schnabel\n\nHere is the SQLite quer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (english_title VARCHAR, director VARCHAR)
Question: Name the title of jean-pierre jeunet
Here is the SQLite query to answer to the question: Name the title... | Here is the SQLite query to answer the question regarding the title of Jean-Pierre Jeunet:
```
SELECT english_title FROM table_name_17 WHERE director = "jean-pierre jeunet"
``` | 21,361 | [
{
"from": "human",
"value": " 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 (english_title VARCHAR, director VARCHAR)\n\n Question: Name the title of jean-pierre jeunet\n\nHere is the SQLite q... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (power_output__kw_ VARCHAR, model VARCHAR)
Question: What is the power output (kw) of model hxd2b?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question about the power output (kw) of model hxd2b:
```
SELECT power_output__kw_ FROM table_name_32 WHERE model = 'hxd2b';
``` | 21,362 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (power_output__kw_ VARCHAR, model VARCHAR)\n\n Question: What is the power output (kw) of model hxd2b?\n\nHere is th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (model VARCHAR, builder__family_ VARCHAR, power_output__kw_ VARCHAR)
Question: What model has a builder of zhuzhou, and a power output of 9600 (kw)?
Here i... | Here is the SQLite query that answers the question regarding the model with a builder of "zhuzhou" and a power output of "9600" (kw):
```
SELECT model FROM table_name_20 WHERE builder__family_ = "zhuzhou" AND power_output__kw_ = "9600"
``` | 21,363 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (model VARCHAR, builder__family_ VARCHAR, power_output__kw_ VARCHAR)\n\n Question: What model has a builder of zhuzh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (power_output__kw_ VARCHAR, model VARCHAR)
Question: What is the power output (kw) of model hxd3d?
Here is the SQLite query to answer to the question: What ... | Your query is correctly structured to retrieve the power output of the model "hxd3d" from the specified table. Here it is wrapped in code format:
```
SELECT power_output__kw_ FROM table_name_6 WHERE model = "hxd3d";
``` | 21,364 | [
{
"from": "human",
"value": " 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 (power_output__kw_ VARCHAR, model VARCHAR)\n\n Question: What is the power output (kw) of model hxd3d?\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_79 (power_output__kw_ VARCHAR, model VARCHAR, total_production VARCHAR, builder__family_ VARCHAR)
Question: What is the power output (kw) of builder zhuzhou, m... | Here is the SQLite query to answer the question:
```
SELECT power_output__kw_ FROM table_name_79 WHERE total_production = "2" AND builder__family_ = "zhuzhou" AND model = "hxd1d"
``` | 21,365 | [
{
"from": "human",
"value": " 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 (power_output__kw_ VARCHAR, model VARCHAR, total_production VARCHAR, builder__family_ VARCHAR)\n\n Question: What is... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (bronze INTEGER, total INTEGER)
Question: Name the average bronze for total less than 1
Here is the SQLite query to answer to the question: Name the averag... | Here is the SQLite query to answer the question regarding the average bronze for total less than 1:
```
SELECT AVG(bronze) FROM table_name_32 WHERE total < 1
``` | 21,366 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (bronze INTEGER, total INTEGER)\n\n Question: Name the average bronze for total less than 1\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_77 (recipient VARCHAR, play VARCHAR, year VARCHAR)
Question: Name the recipient of much ado about nothing for 1973
Here is the SQLite query to answer to the q... | Here is the corrected SQLite query to answer the question regarding the recipient of "Much Ado About Nothing" for the year 1973:
```sql
SELECT recipient FROM table_name_77 WHERE play = "much ado about nothing" AND year = "1973"
``` | 21,367 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_77 (recipient VARCHAR, play VARCHAR, year VARCHAR)\n\n Question: Name the recipient of much ado about nothing for 1973\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (recipient VARCHAR, year VARCHAR)
Question: Name the recipientof the year for 1976
Here is the SQLite query to answer to the question: Name the recipientof... | Here is the SQLite query to answer the question: Name the recipient of the year for 1976:
```
SELECT recipient FROM table_name_69 WHERE year = '1976';
``` | 21,368 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_69 (recipient VARCHAR, year VARCHAR)\n\n Question: Name the recipientof the year for 1976\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_20 (play VARCHAR, year VARCHAR)
Question: Name the play for 1976
Here is the SQLite query to answer to the question: Name the play for 1976:
```
SELECT play F... | Here is the SQLite query to answer the question: Name the play for 1976:
```
SELECT play FROM table_name_20 WHERE year = '1976'
``` | 21,369 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (play VARCHAR, year VARCHAR)\n\n Question: Name the play for 1976\n\nHere is the SQLite query to answer to the quest... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (year INTEGER, play VARCHAR, recipient VARCHAR)
Question: Name the average year for much ado about nothing and recipient of ray virta
Here is the SQLite qu... | Your query is almost correct, but it seems you are trying to get two different pieces of information (the average year for "Much Ado About Nothing" and the recipient "Ray Virta") in a single statement. To achieve that, you can use a `UNION` or run two separate queries.
If you would like a single query, you might want... | 21,370 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_50 (year INTEGER, play VARCHAR, recipient VARCHAR)\n\n Question: Name the average year for much ado about nothing and r... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (modulation VARCHAR, power VARCHAR, channel VARCHAR)
Question: On channel 32, when the power is 32 kW horizontal, what is the modulation?
Here is the SQLit... | Here is the SQLite query to answer the question regarding the modulation on channel 32 with power of 32 kW horizontal:
```
SELECT modulation FROM table_name_91 WHERE power = "32 kW horizontal" AND channel = "32"
``` | 21,371 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_91 (modulation VARCHAR, power VARCHAR, channel VARCHAR)\n\n Question: On channel 32, when the power is 32 kW horizontal... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (frequency VARCHAR, power VARCHAR, channel VARCHAR)
Question: On channel 32, when the power is 32 kW horizontal, what is the frequency?
Here is the SQLite ... | Here is the SQLite query to answer the question:
```sql
SELECT frequency FROM table_name_32 WHERE power = '32 kW horizontal' AND channel = '32';
``` | 21,372 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (frequency VARCHAR, power VARCHAR, channel VARCHAR)\n\n Question: On channel 32, when the power is 32 kW horizontal,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (wins INTEGER, tournaments_played VARCHAR, year VARCHAR, best_finish VARCHAR)
Question: Tell me the highest wins for year less than 2000 and best finish of ... | Here is the SQLite query to answer the question regarding the highest wins for years less than 2000, with a best finish of 4 and tournaments played less than 3:
```
SELECT MAX(wins) FROM table_name_42 WHERE year < '2000' AND best_finish = '4' AND tournaments_played < '3'
``` | 21,373 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_42 (wins INTEGER, tournaments_played VARCHAR, year VARCHAR, best_finish VARCHAR)\n\n Question: Tell me the highest wins... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (scoring_average VARCHAR, year VARCHAR, wins VARCHAR)
Question: Tell me the scoring average for year less than 1998 and wins more than 3
Here is the SQLite... | Here's the corrected SQLite query to retrieve the scoring average for years less than 1998 and wins more than 3, ensuring that the conditions applied to the `year` and `wins` columns are properly formatted:
```
SELECT scoring_average FROM table_name_92 WHERE year < '1998' AND wins > '3'
``` | 21,374 | [
{
"from": "human",
"value": " 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 (scoring_average VARCHAR, year VARCHAR, wins VARCHAR)\n\n Question: Tell me the scoring average for year less than 1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (result VARCHAR, week VARCHAR, date VARCHAR)
Question: What happened on November 20, 1983 before week 15?
Here is the SQLite query to answer to the questio... | Here is the correct SQLite query to answer the question regarding what happened on November 20, 1983 before week 15:
```
SELECT result FROM table_name_51 WHERE week < '15' AND date = 'November 20, 1983';
``` | 21,375 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_51 (result VARCHAR, week VARCHAR, date VARCHAR)\n\n Question: What happened on November 20, 1983 before week 15?\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_92 (winner VARCHAR, trainer VARCHAR)
Question: Who won under Gary Simms?
Here is the SQLite query to answer to the question: Who won under Gary Simms?:
```
SE... | Your SQLite query looks almost correct, but if you want to ensure case insensitivity while matching 'Gary Simms', you might want to use `LOWER()` function or similar. Here's your query wrapped correctly:
```
SELECT winner FROM table_name_92 WHERE LOWER(trainer) = "gary simms"
```
Or, if you're confident the casing of... | 21,376 | [
{
"from": "human",
"value": " 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 (winner VARCHAR, trainer VARCHAR)\n\n Question: Who won under Gary Simms?\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_34 (trainer VARCHAR, year VARCHAR, time VARCHAR)
Question: Which trainer had a time of 1:10.09 with a year less than 2009?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question regarding which trainer had a time of 1:10.09 with a year less than 2009:
```sql
SELECT trainer FROM table_name_34 WHERE year < '2009' AND time = '1:10.09';
``` | 21,377 | [
{
"from": "human",
"value": " 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 (trainer VARCHAR, year VARCHAR, time VARCHAR)\n\n Question: Which trainer had a time of 1:10.09 with a year less tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (trainer VARCHAR, year VARCHAR, winner VARCHAR)
Question: Which trainer won the hyroglyphic in a year that was before 2010?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question of which trainer won the hyroglyphic in a year that was before 2010:
```
SELECT trainer FROM table_name_97 WHERE year < '2010' AND winner = 'hyroglyphic';
``` | 21,378 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_97 (trainer VARCHAR, year VARCHAR, winner VARCHAR)\n\n Question: Which trainer won the hyroglyphic in a year that was b... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (time VARCHAR, winner VARCHAR)
Question: What was the time for Screen Your Friend?
Here is the SQLite query to answer to the question: What was the time fo... | Here is the SQLite query to answer the question about the time for "Screen Your Friend":
```
SELECT time FROM table_name_48 WHERE winner = "Screen Your Friend"
``` | 21,379 | [
{
"from": "human",
"value": " 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 (time VARCHAR, winner VARCHAR)\n\n Question: What was the time for Screen Your Friend?\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_8 (points INTEGER, place INTEGER)
Question: Which places have points larger than 10?
Here is the SQLite query to answer to the question: Which places have poi... | It seems like your query is slightly incorrect in relation to the question. The question asks for places that have points larger than 10, but your query is trying to find the minimum points for places with a condition on the place column, not the points.
Here's the correct SQL query:
```sql
SELECT place FROM table_na... | 21,380 | [
{
"from": "human",
"value": " 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 (points INTEGER, place INTEGER)\n\n Question: Which places have points larger than 10?\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_59 (grid VARCHAR, rider VARCHAR, laps VARCHAR)
Question: What is the total grid number when Fonsi Nieto had more than 22 laps?
Here is the SQLite query to ans... | Your query is almost correct, but it seems that you are counting the rows instead of summing the grid numbers. If you want the total of the grid numbers, you should use the `SUM` function. Assuming that the `grid` is numeric, here is the correct query to find the total grid number when Fonsi Nieto had more than 22 laps... | 21,381 | [
{
"from": "human",
"value": " 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 (grid VARCHAR, rider VARCHAR, laps VARCHAR)\n\n Question: What is the total grid number when Fonsi Nieto had more th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (laps VARCHAR, grid VARCHAR)
Question: When the grid number is 10, what is the total number of laps?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question of the total number of laps when the grid number is 10:
```sql
SELECT SUM(laps) FROM table_name_39 WHERE grid = '10'
```
Please note that I've used `SUM(laps)` instead of `COUNT(laps)` assuming that the `laps` column contains numeric values representing the number of la... | 21,382 | [
{
"from": "human",
"value": " 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 (laps VARCHAR, grid VARCHAR)\n\n Question: When the grid number is 10, what is the total number of laps?\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_34 (bike VARCHAR, rider VARCHAR, grid VARCHAR, laps VARCHAR)
Question: Which bike did Jiri Drazdak ride when he had a grid number larger than 14 and less than ... | Your SQLite query looks almost correct, but there's a small issue with the conditions. You want to ensure that the comparison for `laps` is corrected to represent the actual numeric value rather than the VARCHAR where the numeric comparison is not directly applicable as expected. Assuming `laps` contains numeric values... | 21,383 | [
{
"from": "human",
"value": " 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 (bike VARCHAR, rider VARCHAR, grid VARCHAR, laps VARCHAR)\n\n Question: Which bike did Jiri Drazdak ride when he had... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (winning_driver VARCHAR, name VARCHAR)
Question: Tell me the winning driver for pau grand prix
Here is the SQLite query to answer to the question: Tell me t... | Here is the SQLite query to answer the question about the winning driver for the Pau Grand Prix:
```
SELECT winning_driver FROM table_name_1 WHERE name = "pau grand prix";
``` | 21,384 | [
{
"from": "human",
"value": " 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 (winning_driver VARCHAR, name VARCHAR)\n\n Question: Tell me the winning driver for pau grand prix\n\nHere is the SQL... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (report VARCHAR, date VARCHAR)
Question: Tell me the report for 30 july
Here is the SQLite query to answer to the question: Tell me the report for 30 july:... | Here is the SQLite query to answer the question: Tell me the report for 30 July:
```
SELECT report FROM table_name_86 WHERE date = "30 july";
``` | 21,385 | [
{
"from": "human",
"value": " 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 (report VARCHAR, date VARCHAR)\n\n Question: Tell me the report for 30 july\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_64 (report VARCHAR, date VARCHAR)
Question: Tell me the report for 10 april
Here is the SQLite query to answer to the question: Tell me the report for 10 apri... | Here is the SQLite query to answer the question "Tell me the report for 10 April":
```
SELECT report FROM table_name_64 WHERE date = "10 april";
``` | 21,386 | [
{
"from": "human",
"value": " 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 (report VARCHAR, date VARCHAR)\n\n Question: Tell me the report for 10 april\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_42 (winning_constructor VARCHAR, name VARCHAR)
Question: Tell me the winning constructor for the paris cup
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about the winning constructor for the Paris Cup:
```
SELECT winning_constructor FROM table_name_42 WHERE name = "paris cup";
``` | 21,387 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_42 (winning_constructor VARCHAR, name VARCHAR)\n\n Question: Tell me the winning constructor for the paris cup\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_27 (date VARCHAR, position VARCHAR, class VARCHAR, driver VARCHAR)
Question: what date has the class of non-championship f2 as well as a driver name josé froil... | Here is the SQLite query to answer the question about the date with the class of non-championship f2, a driver named José Froilán González, and a position larger than 2:
```sql
SELECT date
FROM table_name_27
WHERE class = "non-championship f2"
AND driver = "josé froilán gonzález"
AND position > 2;
``` | 21,388 | [
{
"from": "human",
"value": " 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 (date VARCHAR, position VARCHAR, class VARCHAR, driver VARCHAR)\n\n Question: what date has the class of non-champio... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (team VARCHAR, driver VARCHAR, position VARCHAR, date VARCHAR)
Question: what team has a drive name emmanuel de graffenried and a position larger than 1 as ... | Here is the SQLite query to answer the question regarding the team associated with the driver "emmanuel de graffenried", a position larger than 1, and the date of "9/1953":
```
SELECT team FROM table_name_46 WHERE position > 1 AND date = "9/1953" AND driver = "emmanuel de graffenried";
``` | 21,389 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_46 (team VARCHAR, driver VARCHAR, position VARCHAR, date VARCHAR)\n\n Question: what team has a drive name emmanuel de ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (class VARCHAR, date VARCHAR)
Question: what class has the date of 8/1954?
Here is the SQLite query to answer to the question: what class has the date of 8... | Here is the SQLite query to answer the question about which class has the date of 8/1954:
```sql
SELECT class FROM table_name_56 WHERE date = '8/1954';
``` | 21,390 | [
{
"from": "human",
"value": " 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 (class VARCHAR, date VARCHAR)\n\n Question: what class has the date of 8/1954?\n\nHere is the SQLite query to answer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (driver VARCHAR, date VARCHAR, position VARCHAR, team VARCHAR, class VARCHAR)
Question: what driver has a team of officine alfieri maserati and belongs to t... | Here is the SQLite query to answer the specified question:
```
SELECT driver FROM table_name_51
WHERE team = "officine alfieri maserati"
AND class = "non-championship f2"
AND position = "2"
AND date = "9/1952";
``` | 21,391 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_51 (driver VARCHAR, date VARCHAR, position VARCHAR, team VARCHAR, class VARCHAR)\n\n Question: what driver has a team o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (attendance INTEGER, result VARCHAR, week VARCHAR)
Question: How many people attended the game with a result of w 16-13 and a week earlier than 12?
Here is... | It looks like you're asking for a count of how many people attended the game, but your query is using `MAX(attendance)` which will return the maximum attendance rather than a count. Instead, you should use `SUM(attendance)` if you want the total attendance or `COUNT(attendance)` if you would like the number of records ... | 21,392 | [
{
"from": "human",
"value": " 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 (attendance INTEGER, result VARCHAR, week VARCHAR)\n\n Question: How many people attended the game with a result of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (total_apps INTEGER, total_goals VARCHAR, fa_cup_goals VARCHAR)
Question: It has fa cup goals larger than 0 and total goals of 0, what is the average total ... | Your SQLite query is correct. Here it is wrapped in code formatting for clarity:
```
SELECT AVG(total_apps) FROM table_name_41 WHERE total_goals = 0 AND fa_cup_goals > 0
``` | 21,393 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_41 (total_apps INTEGER, total_goals VARCHAR, fa_cup_goals VARCHAR)\n\n Question: It has fa cup goals larger than 0 and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (total_apps VARCHAR, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR)
Question: It has a FA Cup Goals smaller than 4, and a FA Cup Apps larger than 7, what is the ... | Your query has a small error because `fa_cup_goals` and `fa_cup_apps` are defined as `VARCHAR`, which means they need to be converted to numerical types in order to perform comparisons. You can do this using the `CAST` or `INTEGER` function in SQLite. Here’s the corrected query:
```sql
SELECT COUNT(total_apps)
FROM t... | 21,394 | [
{
"from": "human",
"value": " 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 (total_apps VARCHAR, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR)\n\n Question: It has a FA Cup Goals smaller than 4, a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (total_goals VARCHAR, league_apps VARCHAR, fa_cup_apps VARCHAR, total_apps VARCHAR)
Question: The total goals have a FA Cup Apps larger than 1, and a Total ... | Here is the SQLite query that answers the question based on the given schema:
```
SELECT COUNT(total_goals) FROM table_name_20 WHERE fa_cup_apps > 1 AND total_apps = 37 AND league_apps < 30
``` | 21,395 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (total_goals VARCHAR, league_apps VARCHAR, fa_cup_apps VARCHAR, total_apps VARCHAR)\n\n Question: The total goals ha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (result VARCHAR, week VARCHAR, record VARCHAR)
Question: What is the result when the record was 1-0 and it was earlier than week 4?
Here is the SQLite quer... | Here is the SQLite query that answers the question:
```
SELECT result FROM table_name_63 WHERE week < '4' AND record = '1-0';
``` | 21,396 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_63 (result VARCHAR, week VARCHAR, record VARCHAR)\n\n Question: What is the result when the record was 1-0 and it was e... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (bore_ VARCHAR, _stroke VARCHAR, carburetor VARCHAR, vin_code VARCHAR)
Question: What are the bore & stroke specifications for an engine with 4-barrel carbu... | Your SQL query has a slight syntax issue. You should be selecting the columns separately instead of trying to concatenate them. Here's the corrected version of the query:
```sql
SELECT bore_, _stroke
FROM table_name_28
WHERE carburetor = "4-barrel" AND vin_code = "A";
``` | 21,397 | [
{
"from": "human",
"value": " 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 (bore_ VARCHAR, _stroke VARCHAR, carburetor VARCHAR, vin_code VARCHAR)\n\n Question: What are the bore & stroke spec... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (opponent VARCHAR, attendance VARCHAR, result VARCHAR)
Question: Which opponent has unknown attendance, and lost 2-0?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question regarding which opponent has unknown attendance and lost 2-0:
```
SELECT opponent FROM table_name_43 WHERE attendance = 'unknown' AND result = 'lost 2-0';
``` | 21,398 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_43 (opponent VARCHAR, attendance VARCHAR, result VARCHAR)\n\n Question: Which opponent has unknown attendance, and lost... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (result VARCHAR, opponent VARCHAR)
Question: What is the result from the Leeds United opponent?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question about the result from Leeds United's opponent:
```
SELECT result FROM table_name_89 WHERE opponent = "Leeds United";
``` | 21,399 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_89 (result VARCHAR, opponent VARCHAR)\n\n Question: What is the result from the Leeds United opponent?\n\nHere is the S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.