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_46 (modern_title_of_house VARCHAR, translation VARCHAR)
Question: Which modern house title translates to prison?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question "Which modern house title translates to prison?":
```sql
SELECT modern_title_of_house FROM table_name_46 WHERE translation = "prison";
``` | 22,600 | [
{
"from": "human",
"value": " 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 (modern_title_of_house VARCHAR, translation VARCHAR)\n\n Question: Which modern house title translates to prison?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (latin_motto VARCHAR, translation VARCHAR)
Question: What is the Latin motto of the sign that translates to spouse?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question about the Latin motto that translates to "spouse":
```
SELECT latin_motto FROM table_name_94 WHERE translation = "spouse";
``` | 22,601 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_94 (latin_motto VARCHAR, translation VARCHAR)\n\n Question: What is the Latin motto of the sign that translates to spou... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (modern_title_of_house VARCHAR, house VARCHAR)
Question: What is the modern house title of the 1st house?
Here is the SQLite query to answer to the questio... | The provided SQLite query seeks to retrieve the modern house title for a house labeled "1st." However, the way to refer to the "1st house" in the database may differ. If "1st" is indeed the specific name of the house in the values of the `house` column, then the query is correct. In many cases, you may want to retrieve... | 22,602 | [
{
"from": "human",
"value": " 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 (modern_title_of_house VARCHAR, house VARCHAR)\n\n Question: What is the modern house title of the 1st house?\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_50 (sign VARCHAR, modern_title_of_house VARCHAR)
Question: Which sign has a modern house title of House of Partnerships?
Here is the SQLite query to answer to... | Here is the corrected SQLite query to answer the question:
```
SELECT sign FROM table_name_50 WHERE modern_title_of_house = "House of Partnerships";
``` | 22,603 | [
{
"from": "human",
"value": " 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 (sign VARCHAR, modern_title_of_house VARCHAR)\n\n Question: Which sign has a modern house title of House of Partners... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (int_yards INTEGER, assts VARCHAR, player VARCHAR)
Question: What is the sum for the int yards that has an assts more than 3, and player Jay Alford?
Here i... | Here is the SQLite query formatted properly:
```
SELECT SUM(int_yards) FROM table_name_81 WHERE assts > 3 AND player = "Jay Alford";
``` | 22,604 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_81 (int_yards INTEGER, assts VARCHAR, player VARCHAR)\n\n Question: What is the sum for the int yards that has an assts... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (time VARCHAR, score VARCHAR)
Question: What is the Time with a Score that is 80-34?
Here is the SQLite query to answer to the question: What is the Time w... | Here is the SQLite query to answer the question "What is the Time with a Score that is 80-34?":
```
SELECT time FROM table_name_38 WHERE score = "80-34"
``` | 22,605 | [
{
"from": "human",
"value": " 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 (time VARCHAR, score VARCHAR)\n\n Question: What is the Time with a Score that is 80-34?\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_29 (date VARCHAR, home VARCHAR)
Question: What is the Date with a Home that is hamilton wildcats?
Here is the SQLite query to answer to the question: What is ... | Here is the SQLite query to answer the question:
```
SELECT date FROM table_name_29 WHERE home = "hamilton wildcats"
``` | 22,606 | [
{
"from": "human",
"value": " 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 (date VARCHAR, home VARCHAR)\n\n Question: What is the Date with a Home that is hamilton wildcats?\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_42 (ground VARCHAR, date VARCHAR)
Question: What is the Ground with a Date that is 2008-06-20?
Here is the SQLite query to answer to the question: What is the... | Here is the SQLite query to answer the question regarding the Ground with a Date that is 2008-06-20:
```
SELECT ground FROM table_name_42 WHERE date = "2008-06-20";
``` | 22,607 | [
{
"from": "human",
"value": " 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 (ground VARCHAR, date VARCHAR)\n\n Question: What is the Ground with a Date that is 2008-06-20?\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_88 (away VARCHAR, ground VARCHAR)
Question: What is the Away with a Ground that is humber college lakeshore?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question:
```
SELECT away FROM table_name_88 WHERE ground = "humber college lakeshore"
``` | 22,608 | [
{
"from": "human",
"value": " 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 (away VARCHAR, ground VARCHAR)\n\n Question: What is the Away with a Ground that is humber college lakeshore?\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_7 (time VARCHAR, ground VARCHAR)
Question: What is the Time with a Ground that is humber college north?
Here is the SQLite query to answer to the question: Wh... | Your SQLite query is correctly formulated to retrieve the time associated with "humber college north". Here is the query wrapped as requested:
```
SELECT time FROM table_name_7 WHERE ground = "humber college north";
``` | 22,609 | [
{
"from": "human",
"value": " 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 (time VARCHAR, ground VARCHAR)\n\n Question: What is the Time with a Ground that is humber college north?\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_9 (away VARCHAR, ground VARCHAR)
Question: What is the Away with a Ground that is humber college north?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question:
```
SELECT away FROM table_name_9 WHERE ground = "humber college north";
``` | 22,610 | [
{
"from": "human",
"value": " 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 (away VARCHAR, ground VARCHAR)\n\n Question: What is the Away with a Ground that is humber college north?\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_20 (college VARCHAR, round__number VARCHAR)
Question: What is the College with a Round # that is 290?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question regarding the college with a round number of 290:
```
SELECT college FROM table_name_20 WHERE round__number = '290';
``` | 22,611 | [
{
"from": "human",
"value": " 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 (college VARCHAR, round__number VARCHAR)\n\n Question: What is the College with a Round # that is 290?\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_49 (college VARCHAR, player VARCHAR)
Question: What is the College with a Player that is dean caliguire?
Here is the SQLite query to answer to the question: W... | Your provided SQLite query is correct. It will retrieve the college of the player named "dean caliguire" from the table. Here it is wrapped in the requested code format:
```
SELECT college FROM table_name_49 WHERE player = "dean caliguire";
``` | 22,612 | [
{
"from": "human",
"value": " 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 (college VARCHAR, player VARCHAR)\n\n Question: What is the College with a Player that is dean caliguire?\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_78 (first_leg VARCHAR, round VARCHAR)
Question: What was the first leg of the semi-final?
Here is the SQLite query to answer to the question: What was the fir... | Here is the SQLite query to answer the question about what the first leg of the semi-final was:
```
SELECT first_leg FROM table_name_78 WHERE round = 'semi-final';
``` | 22,613 | [
{
"from": "human",
"value": " 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 (first_leg VARCHAR, round VARCHAR)\n\n Question: What was the first leg of the semi-final?\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_66 (first_leg VARCHAR, opposition VARCHAR)
Question: What was the first leg score against Real Sociedad?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question about the first leg score against Real Sociedad:
```
SELECT first_leg FROM table_name_66 WHERE opposition = "Real Sociedad";
``` | 22,614 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_66 (first_leg VARCHAR, opposition VARCHAR)\n\n Question: What was the first leg score against Real Sociedad?\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_13 (first_leg VARCHAR, opposition VARCHAR)
Question: What was the first leg against Hibernian?
Here is the SQLite query to answer to the question: What was th... | Your query is correctly structured to retrieve the first leg against Hibernian. However, in SQLite, it's important to ensure that the `opposition` value is exactly as it appears in the database, including case sensitivity. Assuming "hibernian" is the correct and consistent case used in the database, your query is good ... | 22,615 | [
{
"from": "human",
"value": " 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 (first_leg VARCHAR, opposition VARCHAR)\n\n Question: What was the first leg against Hibernian?\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_50 (opposition VARCHAR, round VARCHAR)
Question: Who were the opposition in the quarter-final?
Here is the SQLite query to answer to the question: Who were th... | Here is the SQLite query to answer the question about the opposition in the quarter-final:
```
SELECT opposition FROM table_name_50 WHERE round = "quarter-final";
``` | 22,616 | [
{
"from": "human",
"value": " 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 (opposition VARCHAR, round VARCHAR)\n\n Question: Who were the opposition in the quarter-final?\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_53 (assists INTEGER, rank VARCHAR)
Question: What is the least number of assists among players ranked 2?
Here is the SQLite query to answer to the question: W... | Your query is almost correct, but in SQL, the rank column is a VARCHAR type, so you should compare it to '2' (a string) instead of the integer 2. Here’s the corrected query:
```
SELECT MIN(assists) FROM table_name_53 WHERE rank = '2'
``` | 22,617 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_53 (assists INTEGER, rank VARCHAR)\n\n Question: What is the least number of assists among players ranked 2?\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 (total INTEGER, rank VARCHAR, gold VARCHAR)
Question: What is the lowest total when the rank is 14 and the gold medals is larger than 0?
Here is the SQLite... | Your SQLite query is almost correct, but since the `gold` column is of type `VARCHAR`, you should ensure you compare it to a numeric value correctly. To do so, you can cast the `gold` column to an integer. Here's the refined query:
```
SELECT MIN(total) FROM table_name_34 WHERE rank = "14" AND CAST(gold AS INTEGER) > ... | 22,618 | [
{
"from": "human",
"value": " 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 (total INTEGER, rank VARCHAR, gold VARCHAR)\n\n Question: What is the lowest total when the rank is 14 and the gold ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (total INTEGER, gold VARCHAR)
Question: What is the total number of medals when there are 18 gold medals?
Here is the SQLite query to answer to the questio... | It looks like there is a slight misunderstanding in your SQL query. The column `gold` is of type `VARCHAR`, which means you should be checking for it as a string value rather than as an integer. In this case, you need to look for rows where the `gold` column has the value '18' (as a string).
Here is the corrected SQLi... | 22,619 | [
{
"from": "human",
"value": " 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 (total INTEGER, gold VARCHAR)\n\n Question: What is the total number of medals when there are 18 gold medals?\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_94 (bronze VARCHAR, rank VARCHAR, total VARCHAR, silver VARCHAR)
Question: What is the number of bronze medals when the total is greater than 1, more than 2 si... | Your SQLite query is almost correct, but it needs a slight adjustment to count the number of bronze medals rather than selecting the bronze medal values directly. You can use the `COUNT` function to achieve this. Here’s the corrected query:
```
SELECT COUNT(bronze) AS num_bronze_medals
FROM table_name_94
WHERE total... | 22,620 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_94 (bronze VARCHAR, rank VARCHAR, total VARCHAR, silver VARCHAR)\n\n Question: What is the number of bronze medals when... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (location VARCHAR, record VARCHAR)
Question: What was the location of the game when the record was 12-4?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question about the location of the game when the record was 12-4:
```
SELECT location FROM table_name_74 WHERE record = "12-4";
``` | 22,621 | [
{
"from": "human",
"value": " 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 (location VARCHAR, record VARCHAR)\n\n Question: What was the location of the game when the record was 12-4?\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_86 (location VARCHAR, record VARCHAR)
Question: What was the location of the game when the record was 2-1?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question regarding the location of the game when the record was 2-1:
```
SELECT location FROM table_name_86 WHERE record = "2-1"
``` | 22,622 | [
{
"from": "human",
"value": " 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 (location VARCHAR, record VARCHAR)\n\n Question: What was the location of the game when the record was 2-1?\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_85 (date VARCHAR, visitor VARCHAR, home VARCHAR)
Question: What day was the game that had the Cavaliers as visiting team and the Knicks as the home team?
Here... | Sure! Here is the SQLite query wrapped in code formatting to answer the question about the game with the Cavaliers as the visiting team and the Knicks as the home team:
```
SELECT date FROM table_name_85 WHERE visitor = "cavaliers" AND home = "knicks";
``` | 22,623 | [
{
"from": "human",
"value": " 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 (date VARCHAR, visitor VARCHAR, home VARCHAR)\n\n Question: What day was the game that had the Cavaliers as visiting... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (main_span_feet VARCHAR, main_span_metres VARCHAR, year_opened VARCHAR, rank VARCHAR)
Question: What is the main span in feet from a year of 2009 or more re... | Your SQL query is almost correct, but there are a couple of minor adjustments needed. The condition for `year_opened` should include `2009` as well, since you want entries from 2009 or more recent. Additionally, ensure that the numeric values are compared correctly.
Here's the corrected SQL query:
```sql
SELECT main... | 22,624 | [
{
"from": "human",
"value": " 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 (main_span_feet VARCHAR, main_span_metres VARCHAR, year_opened VARCHAR, rank VARCHAR)\n\n Question: What is the main... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (main_span_feet VARCHAR, main_span_metres VARCHAR, rank VARCHAR, year_opened VARCHAR, country VARCHAR)
Question: What is the main span feet from opening yea... | Here is the SQLite query to answer the question:
```
SELECT main_span_feet
FROM table_name_43
WHERE year_opened = "1936"
AND country = "united states"
AND rank > "47"
AND main_span_metres = "421";
``` | 22,625 | [
{
"from": "human",
"value": " 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 (main_span_feet VARCHAR, main_span_metres VARCHAR, rank VARCHAR, year_opened VARCHAR, country VARCHAR)\n\n Question:... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (rank INTEGER, year_opened VARCHAR, main_span_metres VARCHAR)
Question: What is the highest rank from the year greater than 2010 with 430 main span metres?
... | Your provided SQLite query is correct for the question asked. Here it is wrapped as requested:
```
SELECT MAX(rank) FROM table_name_69 WHERE year_opened > 2010 AND main_span_metres = "430";
```
This query will retrieve the highest rank from the entries in the table where the year opened is greater than 2010 and the ... | 22,626 | [
{
"from": "human",
"value": " 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 (rank INTEGER, year_opened VARCHAR, main_span_metres VARCHAR)\n\n Question: What is the highest rank from the year g... | |
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_opened INTEGER, main_span_feet VARCHAR, country VARCHAR)
Question: What is the oldest year with a main span feet of 1,640 in South Korea?
Here is the... | Here is the SQLite query to answer the question about the oldest year with a main span feet of 1,640 in South Korea:
```sql
SELECT MIN(year_opened) FROM table_name_52 WHERE main_span_feet = "1,640" AND country = "South Korea";
``` | 22,627 | [
{
"from": "human",
"value": " 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_opened INTEGER, main_span_feet VARCHAR, country VARCHAR)\n\n Question: What is the oldest year with a main spa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (score VARCHAR, record VARCHAR)
Question: What was the score of the game when the record was 39–21–4?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to obtain the score of the game when the record was 39–21–4:
```sql
SELECT score FROM table_name_49 WHERE record = "39–21–4";
``` | 22,628 | [
{
"from": "human",
"value": " 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 (score VARCHAR, record VARCHAR)\n\n Question: What was the score of the game when the record was 39–21–4?\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_60 (date VARCHAR, score VARCHAR)
Question: What was the date of the game with a score of 2–1?
Here is the SQLite query to answer to the question: What was the... | Here is the SQLite query to answer the question of what was the date of the game with a score of 2–1:
```sql
SELECT date FROM table_name_60 WHERE score = '2–1';
``` | 22,629 | [
{
"from": "human",
"value": " 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 (date VARCHAR, score VARCHAR)\n\n Question: What was the date of the game with a score of 2–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_name_10 (week INTEGER, game_site VARCHAR)
Question: What is the earliest week that the Texans played at the Cleveland Browns Stadium?
Here is the SQLite query to a... | Here is the SQLite query to find the earliest week that the Texans played at the Cleveland Browns Stadium:
```
SELECT MIN(week) FROM table_name_10 WHERE game_site = "cleveland browns stadium" AND team = "Texans";
```
(Note: Make sure to include the condition for the team, as the original schema does not specify a 't... | 22,630 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_10 (week INTEGER, game_site VARCHAR)\n\n Question: What is the earliest week that the Texans played at the Cleveland Br... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (date VARCHAR, game_site VARCHAR)
Question: When did the Texans play at LP Field?
Here is the SQLite query to answer to the question: When did the Texans p... | Here is the SQLite query to answer the question about when the Texans played at LP Field:
```sql
SELECT date FROM table_name_90 WHERE game_site = "LP Field";
``` | 22,631 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_90 (date VARCHAR, game_site VARCHAR)\n\n Question: When did the Texans play at LP Field?\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_11 (name VARCHAR, avg_g VARCHAR)
Question: Which quarterback had an Avg/G of 195.8?
Here is the SQLite query to answer to the question: Which quarterback had ... | Here is the SQLite query you can use to find the quarterback who had an Avg/G of 195.8:
```
SELECT name FROM table_name_11 WHERE avg_g = '195.8'
```
Note that I enclosed `195.8` in quotes because it is being compared to a VARCHAR column. | 22,632 | [
{
"from": "human",
"value": " 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 (name VARCHAR, avg_g VARCHAR)\n\n Question: Which quarterback had an Avg/G of 195.8?\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_84 (royal_house VARCHAR, name VARCHAR)
Question: Which royal house corresponds to Polyxenos Epiphanes Soter?
Here is the SQLite query to answer to the questio... | Here is the SQLite query wrapped in the appropriate code block:
```
SELECT royal_house FROM table_name_84 WHERE name = "Polyxenos Epiphanes Soter";
``` | 22,633 | [
{
"from": "human",
"value": " 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 (royal_house VARCHAR, name VARCHAR)\n\n Question: Which royal house corresponds to Polyxenos Epiphanes Soter?\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_19 (mark VARCHAR, name VARCHAR)
Question: What is Mark, when Name is Dmytro Hlushchenko?
Here is the SQLite query to answer to the question: What is Mark, whe... | Here is the SQLite query wrapped in code format to answer the question regarding the mark for the name "Dmytro Hlushchenko":
```sql
SELECT mark FROM table_name_19 WHERE name = "Dmytro Hlushchenko";
``` | 22,634 | [
{
"from": "human",
"value": " 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 (mark VARCHAR, name VARCHAR)\n\n Question: What is Mark, when Name is Dmytro Hlushchenko?\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_80 (country VARCHAR, lane VARCHAR, react VARCHAR)
Question: What is Country, when Lane is 5, and when React is greater than 0.166?
Here is the SQLite query to... | Certainly! Below is the SQLite query wrapped in the appropriate code formatting:
```
SELECT country FROM table_name_80 WHERE lane = 5 AND react > 0.166
``` | 22,635 | [
{
"from": "human",
"value": " 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 (country VARCHAR, lane VARCHAR, react VARCHAR)\n\n Question: What is Country, when Lane is 5, and when React is grea... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (lane INTEGER, country VARCHAR, react VARCHAR)
Question: What is the lowest Lane, when Country is France, and when React is less than 0.14100000000000001?
... | Here is the SQLite query to answer the question you provided:
```
SELECT MIN(lane) FROM table_name_28 WHERE country = "France" AND react < 0.14100000000000001;
``` | 22,636 | [
{
"from": "human",
"value": " 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 (lane INTEGER, country VARCHAR, react VARCHAR)\n\n Question: What is the lowest Lane, when Country is France, and wh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (heat VARCHAR, mark VARCHAR)
Question: What is Heat, when Mark is 6.69?
Here is the SQLite query to answer to the question: What is Heat, when Mark is 6.69... | Here is the SQLite query to answer the question: What is Heat, when Mark is 6.69?:
```
SELECT heat FROM table_name_42 WHERE mark = "6.69";
``` | 22,637 | [
{
"from": "human",
"value": " 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 (heat VARCHAR, mark VARCHAR)\n\n Question: What is Heat, when Mark is 6.69?\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_35 (points INTEGER, rank VARCHAR, draw VARCHAR)
Question: What is the average number of points for a song ranked 2nd with a draw greater than 3?
Here is the S... | Here is the SQLite query to answer the question about the average number of points for a song ranked 2nd with a draw greater than 3:
```sql
SELECT AVG(points) FROM table_name_35 WHERE rank = "2nd" AND draw > 3;
``` | 22,638 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_35 (points INTEGER, rank VARCHAR, draw VARCHAR)\n\n Question: What is the average number of points for a song ranked 2n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (draw VARCHAR, performer VARCHAR, points VARCHAR)
Question: What is the total number of draws for songs performed by Miranda with fewer than 48 points?
Her... | Your query is almost correct, but you need to ensure that the points are being evaluated as integers, since they are stored as strings in the database. You can convert the points to integers using the `CAST` function. Here’s the corrected SQLite query:
```
SELECT COUNT(draw) FROM table_name_64 WHERE performer = "miran... | 22,639 | [
{
"from": "human",
"value": " 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 (draw VARCHAR, performer VARCHAR, points VARCHAR)\n\n Question: What is the total number of draws for songs performe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (hdtv VARCHAR, content VARCHAR)
Question: What is the HDTV when the content shows a timeshift +1 di disney junior?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question you provided:
```
SELECT hdtv FROM table_name_54 WHERE content = "timeshift +1 di disney junior"
``` | 22,640 | [
{
"from": "human",
"value": " 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 (hdtv VARCHAR, content VARCHAR)\n\n Question: What is the HDTV when the content shows a timeshift +1 di disney junio... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (country VARCHAR, language VARCHAR, television_service VARCHAR)
Question: What is the Country when the language is italian english, and the television servi... | Your SQLite query is correctly formatted to answer the specified question. Here it is wrapped in code formatting:
```
SELECT country FROM table_name_12 WHERE language = "italian english" AND television_service = "disney xd +1";
``` | 22,641 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_12 (country VARCHAR, language VARCHAR, television_service VARCHAR)\n\n Question: What is the Country when the language ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (hdtv VARCHAR, package_option VARCHAR, television_service VARCHAR)
Question: What is the HDTV when the Package/Option is sky famiglia, and a Television serv... | Here is the SQLite query to answer the question about the HDTV for the specified package option and television service:
```
SELECT hdtv FROM table_name_67 WHERE package_option = "sky famiglia" AND television_service = "boomerang +1"
``` | 22,642 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_67 (hdtv VARCHAR, package_option VARCHAR, television_service VARCHAR)\n\n Question: What is the HDTV when the Package/O... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (content VARCHAR, television_service VARCHAR)
Question: What shows as Content for the Television service of nickelodeon +1?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question about the shows as content for the television service of Nickelodeon +1:
```
SELECT content FROM table_name_75 WHERE television_service = "nickelodeon +1"
``` | 22,643 | [
{
"from": "human",
"value": " 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 (content VARCHAR, television_service VARCHAR)\n\n Question: What shows as Content for the Television service of nick... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (year_2007 INTEGER, year_2005 INTEGER)
Question: What is the sum of Year 2007(s), when the Year 2005 is greater than 29,377?
Here is the SQLite query to an... | It looks like there is a small error in the OFFSET clause in your query. The correct way to specify the condition is without using "OFFSET". You need to use a direct comparison in the WHERE clause. Here’s the corrected SQLite query:
```
SELECT SUM(year_2007) FROM table_name_23 WHERE year_2005 > 29377;
```
This will ... | 22,644 | [
{
"from": "human",
"value": " 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 (year_2007 INTEGER, year_2005 INTEGER)\n\n Question: What is the sum of Year 2007(s), when the Year 2005 is greater ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (date VARCHAR, score VARCHAR)
Question: On what day was the game that ended in a score of 97-38?
Here is the SQLite query to answer to the question: On wha... | Your SQLite query to find the day when the game ended with a score of 97-38 is correct. Here it is wrapped as requested:
```
SELECT date FROM table_name_17 WHERE score = "97-38"
``` | 22,645 | [
{
"from": "human",
"value": " 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 (date VARCHAR, score VARCHAR)\n\n Question: On what day was the game that ended in a score of 97-38?\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_53 (home VARCHAR, time VARCHAR)
Question: Who was the home team of the game at the time of 14:00?
Here is the SQLite query to answer to the question: Who was ... | Your SQL query correctly retrieves the home team of the game at the specified time. Here is your query, wrapped in code formatting:
```
SELECT home FROM table_name_53 WHERE time = "14:00";
``` | 22,646 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_53 (home VARCHAR, time VARCHAR)\n\n Question: Who was the home team of the game at the time of 14:00?\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_33 (home VARCHAR, time VARCHAR)
Question: Who was the home team of the game at the time of 15:00?
Here is the SQLite query to answer to the question: Who was ... | ```sql
SELECT home FROM table_name_33 WHERE time = "15:00";
``` | 22,647 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_33 (home VARCHAR, time VARCHAR)\n\n Question: Who was the home team of the game at the time of 15:00?\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_1 (date VARCHAR, score VARCHAR)
Question: On what day was the game that ended in a score of 97-38?
Here is the SQLite query to answer to the question: On what... | Here is the SQLite query to answer the question about the day the game ended with a score of 97-38:
```
SELECT date FROM table_name_1 WHERE score = "97-38"
``` | 22,648 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (date VARCHAR, score VARCHAR)\n\n Question: On what day was the game that ended in a score of 97-38?\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_57 (away VARCHAR, time VARCHAR)
Question: Who was the away team of the game at the time 15:00?
Here is the SQLite query to answer to the question: Who was the... | Your SQLite query to find the away team of the game at the time 15:00 is correct. Here it is wrapped in code formatting:
```
SELECT away FROM table_name_57 WHERE time = "15:00";
``` | 22,649 | [
{
"from": "human",
"value": " 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 (away VARCHAR, time VARCHAR)\n\n Question: Who was the away team of the game at the time 15:00?\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_5 (ground VARCHAR, away VARCHAR)
Question: On what grounds did the away team of the Toronto Rebels play?
Here is the SQLite query to answer to the question: O... | Here is the SQLite query you can use to answer the question regarding the grounds the away team of the Toronto Rebels played on:
```sql
SELECT ground FROM table_name_5 WHERE away = 'Toronto Rebels';
``` | 22,650 | [
{
"from": "human",
"value": " 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 (ground VARCHAR, away VARCHAR)\n\n Question: On what grounds did the away team of the Toronto Rebels play?\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_97 (capital VARCHAR, hangul_chosongul VARCHAR)
Question: Which capital has a Hangul of 경상남도?
Here is the SQLite query to answer to the question: Which capital... | Here is the SQLite query to answer the question "Which capital has a Hangul of 경상남도?":
```
SELECT capital FROM table_name_97 WHERE hangul_chosongul = "경상남도";
``` | 22,651 | [
{
"from": "human",
"value": " 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 (capital VARCHAR, hangul_chosongul VARCHAR)\n\n Question: Which capital has a Hangul of 경상남도?\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_83 (country VARCHAR, hanja VARCHAR)
Question: Which country has a city with a Hanja of 平安北道?
Here is the SQLite query to answer to the question: Which country... | Here is the SQLite query to answer the question regarding which country has a city with a Hanja of 平安北道:
```
SELECT country FROM table_name_83 WHERE hanja = "平安北道"
``` | 22,652 | [
{
"from": "human",
"value": " 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 (country VARCHAR, hanja VARCHAR)\n\n Question: Which country has a city with a Hanja of 平安北道?\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_85 (rr_romaja VARCHAR, hangul_chosongul VARCHAR, capital VARCHAR)
Question: What is the RR Romaja for the province that has Hangul of 강원도 and capital of Wonsan... | Here is the SQLite query to answer the question regarding the RR Romaja for the province that has Hangul of 강원도 and capital of Wonsan:
```
SELECT rr_romaja FROM table_name_85 WHERE hangul_chosongul = "강원도" AND capital = "Wonsan";
``` | 22,653 | [
{
"from": "human",
"value": " 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 (rr_romaja VARCHAR, hangul_chosongul VARCHAR, capital VARCHAR)\n\n Question: What is the RR Romaja for the province ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (area VARCHAR, hangul_chosongul VARCHAR)
Question: What is the area for the province having Hangul of 경기도?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question regarding the area for the province having Hangul of 경기도:
```
SELECT area FROM table_name_60 WHERE hangul_chosongul = "경기도";
``` | 22,654 | [
{
"from": "human",
"value": " 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 (area VARCHAR, hangul_chosongul VARCHAR)\n\n Question: What is the area for the province having Hangul of 경기도?\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_34 (m_r_romaja VARCHAR, capital VARCHAR)
Question: What is the M-R Romaja for the province having a capital of Cheongju?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question regarding the M-R Romaja for the province having a capital of Cheongju:
```
SELECT m_r_romaja FROM table_name_34 WHERE capital = "Cheongju";
``` | 22,655 | [
{
"from": "human",
"value": " 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 (m_r_romaja VARCHAR, capital VARCHAR)\n\n Question: What is the M-R Romaja for the province having a capital of Cheo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (games INTEGER, rank VARCHAR, points VARCHAR, team VARCHAR)
Question: What is the highest game that has 32 points and a team rank larger than 4 named montep... | Your SQLite query looks almost correct, but there is a small issue regarding data type for the `points` column. Since `points` is defined as a `VARCHAR`, any comparison with a numeric value (like `32`) should be changed to a string.
Here's the adjusted query:
```
SELECT MAX(games)
FROM table_name_41
WHERE points =... | 22,656 | [
{
"from": "human",
"value": " 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 (games INTEGER, rank VARCHAR, points VARCHAR, team VARCHAR)\n\n Question: What is the highest game that has 32 point... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (built INTEGER, floors VARCHAR, rank VARCHAR)
Question: What is the lowest Built, when Floors is greater than 23, and when Rank is 3?
Here is the SQLite qu... | Here is the SQLite query to answer the question:
```sql
SELECT MIN(built) FROM table_name_38 WHERE floors > 23 AND rank = '3'
``` | 22,657 | [
{
"from": "human",
"value": " 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 (built INTEGER, floors VARCHAR, rank VARCHAR)\n\n Question: What is the lowest Built, when Floors is greater than 23... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (height VARCHAR, name VARCHAR, built VARCHAR, rank VARCHAR, floors VARCHAR)
Question: What is Height, when Rank is less than 20, when Floors is greater than... | Your SQLite query is almost correct, but make sure to match the string case as SQLite string comparisons are case-sensitive by default. Here's the refined SQL query with minor adjustments:
```sql
SELECT height FROM table_name_84
WHERE rank < 20
AND floors > 9
AND built = 2005
AND name = "The Edge (C)"
```
This q... | 22,658 | [
{
"from": "human",
"value": " 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 (height VARCHAR, name VARCHAR, built VARCHAR, rank VARCHAR, floors VARCHAR)\n\n Question: What is Height, when Rank ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (floors INTEGER, built VARCHAR, name VARCHAR)
Question: What is the lowest Floors, when Built is greater than 1970, and when Name is NV Building 3?
Here is... | Here is the SQLite query wrapped in code formatting:
```
SELECT MIN(floors) FROM table_name_90 WHERE built > 1970 AND name = "NV Building 3";
``` | 22,659 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_90 (floors INTEGER, built VARCHAR, name VARCHAR)\n\n Question: What is the lowest Floors, when Built is greater than 19... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (built VARCHAR, name VARCHAR, floors VARCHAR, rank VARCHAR)
Question: What is the total number of Built, when Floors is less than 22, when Rank is less than... | Here is the corrected SQLite query based on your requirements:
```sql
SELECT COUNT(built)
FROM table_name_55
WHERE floors < 22
AND rank < 8
AND name IN ('White', 'Mediacityuk');
```
This query counts the total number of entries in `table_name_55` where `floors` is less than 22, `rank` is less than 8, and `na... | 22,660 | [
{
"from": "human",
"value": " 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 (built VARCHAR, name VARCHAR, floors VARCHAR, rank VARCHAR)\n\n Question: What is the total number of Built, when Fl... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (height VARCHAR, home_town VARCHAR)
Question: What is the height of the player from Las Vegas, NV?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question regarding the height of the player from Las Vegas, NV:
```
SELECT height FROM table_name_80 WHERE home_town = "Las Vegas, NV"
``` | 22,661 | [
{
"from": "human",
"value": " 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 (height VARCHAR, home_town VARCHAR)\n\n Question: What is the height of the player from Las Vegas, NV?\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_44 (name VARCHAR, position VARCHAR, home_town VARCHAR)
Question: What is the name of the guard from Cary, NC?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question about the name of the guard from Cary, NC:
```
SELECT name FROM table_name_44 WHERE position = "guard" AND home_town = "Cary, NC";
``` | 22,662 | [
{
"from": "human",
"value": " 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 (name VARCHAR, position VARCHAR, home_town VARCHAR)\n\n Question: What is the name of the guard from Cary, NC?\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_90 (year VARCHAR, position VARCHAR, name VARCHAR)
Question: In what year of school is the forward Iman McFarland?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question regarding the year of school for the forward Iman McFarland:
```
SELECT year FROM table_name_90 WHERE position = "forward" AND name = "Iman McFarland";
``` | 22,663 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_90 (year VARCHAR, position VARCHAR, name VARCHAR)\n\n Question: In what year of school is the forward Iman McFarland?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (height VARCHAR, name VARCHAR, position VARCHAR, year VARCHAR)
Question: How tall is the freshman guard Cetera Degraffenreid?
Here is the SQLite query to a... | Here is the SQLite query to answer the question about how tall the freshman guard Cetera Degraffenreid is:
```
SELECT height FROM table_name_56 WHERE position = "guard" AND year = "freshman" AND name = "Cetera Degraffenreid"
``` | 22,664 | [
{
"from": "human",
"value": " 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 (height VARCHAR, name VARCHAR, position VARCHAR, year VARCHAR)\n\n Question: How tall is the freshman guard Cetera D... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (position VARCHAR, height VARCHAR, home_town VARCHAR)
Question: What position does the 5-8 player from Grottoes, VA play?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question about the position of the 5-8 player from Grottoes, VA:
```
SELECT position FROM table_name_10 WHERE height = "5-8" AND home_town = "Grottoes, VA"
``` | 22,665 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_10 (position VARCHAR, height VARCHAR, home_town VARCHAR)\n\n Question: What position does the 5-8 player from Grottoes,... | |
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 VARCHAR, home_town VARCHAR)
Question: In what year of school is the player from Fayetteville, NC?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about the year of school for the player from Fayetteville, NC:
```
SELECT year FROM table_name_52 WHERE home_town = "Fayetteville, NC";
``` | 22,666 | [
{
"from": "human",
"value": " 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 VARCHAR, home_town VARCHAR)\n\n Question: In what year of school is the player from Fayetteville, NC?\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_76 (team VARCHAR, game VARCHAR, score VARCHAR)
Question: What is the Team with a game of more than 56, and the score is l 85–90 (ot)?
Here is the SQLite query... | Here's the corrected SQLite query to answer the question about the team with a game score of more than 56 and a score of "l 85–90 (ot)":
```
SELECT team FROM table_name_76 WHERE game > '56' AND score = 'l 85–90 (ot)';
``` | 22,667 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_76 (team VARCHAR, game VARCHAR, score VARCHAR)\n\n Question: What is the Team with a game of more than 56, and the scor... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (record VARCHAR, high_rebounds VARCHAR)
Question: What is the Record when the high rebounds was Antonio Davis (9)?
Here is the SQLite query to answer to the... | Your SQLite query is almost correct, but it needs to ensure that the case sensitivity and formatting match exactly. Here's a refined version:
```sql
SELECT record FROM table_name_5 WHERE high_rebounds = "Antonio Davis (9)";
```
This query retrieves the `record` for the entry where `high_rebounds` is specifically "An... | 22,668 | [
{
"from": "human",
"value": " 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 (record VARCHAR, high_rebounds VARCHAR)\n\n Question: What is the Record when the high rebounds was Antonio Davis (9)... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (home VARCHAR, opponent VARCHAR)
Question: What is the home score with marek dupnitsa as opponent?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question of what the home score is with "marek dupnitsa" as the opponent:
```
SELECT home FROM table_name_33 WHERE opponent = "marek dupnitsa"
``` | 22,669 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_33 (home VARCHAR, opponent VARCHAR)\n\n Question: What is the home score with marek dupnitsa as opponent?\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_60 (label VARCHAR, catalog VARCHAR)
Question: What is the Label of the B0011141-01 Catalog?
Here is the SQLite query to answer to the question: What is the La... | Here is the SQLite query to answer the question about the Label of the B0011141-01 Catalog:
```sql
SELECT label FROM table_name_60 WHERE catalog = "B0011141-01";
``` | 22,670 | [
{
"from": "human",
"value": " 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 (label VARCHAR, catalog VARCHAR)\n\n Question: What is the Label of the B0011141-01 Catalog?\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_42 (label VARCHAR, catalog VARCHAR)
Question: What is the Label of the UICI-1069 Catalog?
Here is the SQLite query to answer to the question: What is the Labe... | Here is the SQLite query to answer the question about the Label of the UICI-1069 Catalog:
```
SELECT label FROM table_name_42 WHERE catalog = "UICI-1069";
``` | 22,671 | [
{
"from": "human",
"value": " 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 (label VARCHAR, catalog VARCHAR)\n\n Question: What is the Label of the UICI-1069 Catalog?\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_71 (region VARCHAR, catalog VARCHAR)
Question: What is the Region of the 1766390 Catalog?
Here is the SQLite query to answer to the question: What is the Regi... | Here is the SQLite query to answer the question regarding the region of the 1766390 catalog:
```
SELECT region FROM table_name_71 WHERE catalog = "1766390";
``` | 22,672 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_71 (region VARCHAR, catalog VARCHAR)\n\n Question: What is the Region of the 1766390 Catalog?\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_27 (school_club_team VARCHAR, player VARCHAR)
Question: What School/Club did Dominique Wilkins play for?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question: What School/Club did Dominique Wilkins play for?:
```
SELECT school_club_team FROM table_name_27 WHERE player = "dominique wilkins"
``` | 22,673 | [
{
"from": "human",
"value": " 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 (school_club_team VARCHAR, player VARCHAR)\n\n Question: What School/Club did Dominique Wilkins play for?\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_7 (outcome VARCHAR, score VARCHAR)
Question: What is the outcome of the 4–6, 6–4, 6–3, 7–6 (7–2) score?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question regarding the outcome of the score "4–6, 6–4, 6–3, 7–6 (7–2)":
```
SELECT outcome FROM table_name_7 WHERE score = "4–6, 6–4, 6–3, 7–6 (7–2)"
``` | 22,674 | [
{
"from": "human",
"value": " 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 (outcome VARCHAR, score VARCHAR)\n\n Question: What is the outcome of the 4–6, 6–4, 6–3, 7–6 (7–2) score?\n\nHere is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (outcome VARCHAR, opponent VARCHAR)
Question: What is the outcome of the match with Roger Federer as the opponent?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about the outcome of the match with Roger Federer as the opponent:
```
SELECT outcome FROM table_name_89 WHERE opponent = "Roger Federer";
``` | 22,675 | [
{
"from": "human",
"value": " 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 (outcome VARCHAR, opponent VARCHAR)\n\n Question: What is the outcome of the match with Roger Federer as the opponen... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (surface VARCHAR, championship VARCHAR)
Question: What surface was the Australian Open (1) played on?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question about the surface on which the Australian Open (1) was played:
```sql
SELECT surface FROM table_name_84 WHERE championship = "Australian Open (1)";
``` | 22,676 | [
{
"from": "human",
"value": " 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 (surface VARCHAR, championship VARCHAR)\n\n Question: What surface was the Australian Open (1) played on?\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_92 (rank INTEGER, matches VARCHAR)
Question: What is the Rank of the player with 362 Matches?
Here is the SQLite query to answer to the question: What is the ... | The SQLite query you provided is almost correct but needs a slight adjustment. Since "matches" is defined as a VARCHAR type, you should compare it as a string. Here's the corrected version of your query:
```sql
SELECT rank FROM table_name_92 WHERE matches = '362'
```
This query will return the rank of the player who ... | 22,677 | [
{
"from": "human",
"value": " 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 (rank INTEGER, matches VARCHAR)\n\n Question: What is the Rank of the player with 362 Matches?\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_85 (rank VARCHAR, goals VARCHAR, matches VARCHAR)
Question: What is the Rank of the player with 158 Goals in more than 362 Matches?
Here is the SQLite query t... | It looks like you are looking for a query that retrieves the rank of the player with 158 goals in more than 362 matches. However, the query you provided is counting the number of ranks instead of selecting the rank itself.
Here's the corrected SQLite query:
```sql
SELECT rank
FROM table_name_85
WHERE goals = '158' ... | 22,678 | [
{
"from": "human",
"value": " 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 (rank VARCHAR, goals VARCHAR, matches VARCHAR)\n\n Question: What is the Rank of the player with 158 Goals in more t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (drawn VARCHAR, played INTEGER)
Question: What is the sum of drawn that has a played more than 12?
Here is the SQLite query to answer to the question: What ... | It seems you want to find the sum of the `drawn` values for rows where `played` is more than 12. However, `drawn` is a VARCHAR type, which means it cannot be summed arithmetically. Instead, if you want to count the occurrences of `drawn` where `played` is greater than 12, your query should count the entries, but not su... | 22,679 | [
{
"from": "human",
"value": " 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 (drawn VARCHAR, played INTEGER)\n\n Question: What is the sum of drawn that has a played more than 12?\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_66 (difference VARCHAR, points VARCHAR, drawn VARCHAR)
Question: What difference has a points greater than 10, and a drawn less than 2?
Here is the SQLite que... | Here is the SQLite query to answer the question about differences where points are greater than 10 and drawn is less than 2:
```
SELECT difference FROM table_name_66 WHERE points > 10 AND drawn < 2;
``` | 22,680 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_66 (difference VARCHAR, points VARCHAR, drawn VARCHAR)\n\n Question: What difference has a points greater than 10, and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (result VARCHAR, attendance VARCHAR)
Question: What is the Result of the game with 72,949 in attendance?
Here is the SQLite query to answer to the question... | Here is the SQLite query you need to answer the question about the result of the game with an attendance of 72,949:
```
SELECT result FROM table_name_41 WHERE attendance = "72,949";
``` | 22,681 | [
{
"from": "human",
"value": " 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 (result VARCHAR, attendance VARCHAR)\n\n Question: What is the Result of the game with 72,949 in attendance?\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_39 (attendance VARCHAR, week VARCHAR, date VARCHAR)
Question: What is the Attendance for a Week earlier than 16, and a Date of bye?
Here is the SQLite query t... | Here is the SQLite query to answer the question regarding the Attendance for a Week earlier than 16, and a Date of "bye":
```
SELECT attendance FROM table_name_39 WHERE week < 16 AND date = 'bye';
``` | 22,682 | [
{
"from": "human",
"value": " 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 (attendance VARCHAR, week VARCHAR, date VARCHAR)\n\n Question: What is the Attendance for a Week earlier than 16, an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (result VARCHAR, opponent VARCHAR)
Question: What is the Result of the game against the Indianapolis Colts?
Here is the SQLite query to answer to the quest... | ```sql
SELECT result FROM table_name_70 WHERE opponent = "indianapolis colts";
``` | 22,683 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (result VARCHAR, opponent VARCHAR)\n\n Question: What is the Result of the game against the Indianapolis Colts?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (song VARCHAR, rank VARCHAR, points VARCHAR, draw VARCHAR)
Question: Which song has more than 66 points, a draw greater than 3, and is ranked 3rd?
Here is ... | Here is the SQLite query to answer the question:
```
SELECT song FROM table_name_25 WHERE points > 66 AND draw > 3 AND rank = "3rd"
``` | 22,684 | [
{
"from": "human",
"value": " 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 (song VARCHAR, rank VARCHAR, points VARCHAR, draw VARCHAR)\n\n Question: Which song has more than 66 points, a draw ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (points INTEGER, rank VARCHAR)
Question: What is the lowest points when the ranking is 1st?
Here is the SQLite query to answer to the question: What is the... | Here is the SQLite query to answer the question about the lowest points when the ranking is 1st:
```
SELECT MIN(points) FROM table_name_60 WHERE rank = "1st"
``` | 22,685 | [
{
"from": "human",
"value": " 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 (points INTEGER, rank VARCHAR)\n\n Question: What is the lowest points when the ranking is 1st?\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_63 (points INTEGER, rank VARCHAR, draw VARCHAR)
Question: What is the average number of points when the ranking is 7th and the draw is less than 4?
Here is th... | Here is the SQLite query to answer the question regarding the average number of points when the ranking is 7th and the draw is less than 4:
```
SELECT AVG(points) FROM table_name_63 WHERE rank = '7th' AND draw < 4;
``` | 22,686 | [
{
"from": "human",
"value": " 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 (points INTEGER, rank VARCHAR, draw VARCHAR)\n\n Question: What is the average number of points when the ranking is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (points VARCHAR, engine VARCHAR)
Question: What is the total number of points of the honda hr-1 engine?
Here is the SQLite query to answer to the question:... | The provided query counts the number of entries (rows) in the `table_name_41` table where the engine is "honda hr-1". However, if you want the total number of points associated with that engine, you would need to use the `SUM` function instead of `COUNT`. Below is the corrected SQLite query to calculate the total numbe... | 22,687 | [
{
"from": "human",
"value": " 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 (points VARCHAR, engine VARCHAR)\n\n Question: What is the total number of points of the honda hr-1 engine?\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_50 (rank VARCHAR, year VARCHAR, chassis VARCHAR)
Question: What is the rank of the reynard 2ki chassis before 2002?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question regarding the rank of the "reynard 2ki" chassis before 2002:
```
SELECT rank FROM table_name_50 WHERE year < '2002' AND chassis = 'reynard 2ki';
``` | 22,688 | [
{
"from": "human",
"value": " 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 (rank VARCHAR, year VARCHAR, chassis VARCHAR)\n\n Question: What is the rank of the reynard 2ki chassis before 2002?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
Question: Who was the home team on April 13, 2008 when Itabuna was the away team?
Here is the SQLite q... | Here is the SQLite query to answer the question about the home team on April 13, 2008, when Itabuna was the away team:
```
SELECT home_team FROM table_name_80 WHERE date = "April 13, 2008" AND away_team = "Itabuna"
``` | 22,689 | [
{
"from": "human",
"value": " 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 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)\n\n Question: Who was the home team on April 13, 2008 when Itab... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (home_team VARCHAR, round VARCHAR, away_team VARCHAR)
Question: What is the name of the home team with a round of 2nd and Vitória da Conquista as the way te... | Here is the SQLite query to answer the question about the home team with a round of 2nd and Vitória da Conquista as the away team:
```
SELECT home_team FROM table_name_57 WHERE round = "2nd" AND away_team = "Vitória da Conquista";
``` | 22,690 | [
{
"from": "human",
"value": " 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 (home_team VARCHAR, round VARCHAR, away_team VARCHAR)\n\n Question: What is the name of the home team with a round o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
Question: What is the name of the home team on April 13, 2008 when Itabuna was the away team?
Here is ... | Here is the SQLite query to answer the question regarding the home team on April 13, 2008, when Itabuna was the away team:
```
SELECT home_team FROM table_name_48 WHERE date = "April 13, 2008" AND away_team = "Itabuna";
``` | 22,691 | [
{
"from": "human",
"value": " 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 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)\n\n Question: What is the name of the home team on April 13, 20... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_30 (home_team VARCHAR, score VARCHAR)
Question: What home team has a score of 5 - 5?
Here is the SQLite query to answer to the question: What home team has a ... | Here is the SQLite query to answer the question: What home team has a score of 5 - 5?:
```
SELECT home_team FROM table_name_30 WHERE score = "5 - 5";
``` | 22,692 | [
{
"from": "human",
"value": " 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 (home_team VARCHAR, score VARCHAR)\n\n Question: What home team has a score of 5 - 5?\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_54 (date VARCHAR, score VARCHAR)
Question: On which date was the score 0 - 0?
Here is the SQLite query to answer to the question: On which date was the score ... | Here is the SQLite query to answer the question about the date when the score was 0 - 0:
```
SELECT date FROM table_name_54 WHERE score = "0 - 0";
``` | 22,693 | [
{
"from": "human",
"value": " 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 (date VARCHAR, score VARCHAR)\n\n Question: On which date was the score 0 - 0?\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_89 (home_team VARCHAR, away_team VARCHAR)
Question: Who played as the home team when Vitória was the away team?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question: Who played as the home team when Vitória was the away team?:
```
SELECT home_team FROM table_name_89 WHERE away_team = "Vitória"
``` | 22,694 | [
{
"from": "human",
"value": " 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 (home_team VARCHAR, away_team VARCHAR)\n\n Question: Who played as the home team when Vitória was the away team?\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_30 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
Question: What grid is the lowest when the time/retired is + 5 laps and the laps is less than 161?
Here ... | Your SQLite query to find the lowest grid when the `time_retired` is "+ 5 laps" and the `laps` is less than 161 is correct. Here it is wrapped in the specified code format:
```
SELECT MIN(grid) FROM table_name_30 WHERE time_retired = "+ 5 laps" AND laps < 161
``` | 22,695 | [
{
"from": "human",
"value": " 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 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)\n\n Question: What grid is the lowest when the time/retired 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 (points INTEGER, grid VARCHAR, time_retired VARCHAR)
Question: What is the biggest points when the grid is less than 13 and the time/retired is +7.538 secs?... | Here is the SQLite query to answer your question:
```
SELECT MAX(points) FROM table_name_34 WHERE grid < 13 AND time_retired = '+7.538 secs';
``` | 22,696 | [
{
"from": "human",
"value": " 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 (points INTEGER, grid VARCHAR, time_retired VARCHAR)\n\n Question: What is the biggest points when the grid is less ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (laps INTEGER, driver VARCHAR)
Question: Driver Ricardo Sperafico has what as his average laps?
Here is the SQLite query to answer to the question: Driver ... | Here is the SQLite query to answer the question regarding the average laps for driver Ricardo Sperafico:
```sql
SELECT AVG(laps) FROM table_name_96 WHERE driver = "Ricardo Sperafico";
``` | 22,697 | [
{
"from": "human",
"value": " 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 (laps INTEGER, driver VARCHAR)\n\n Question: Driver Ricardo Sperafico has what as his average laps?\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_35 (driver VARCHAR, points VARCHAR)
Question: What is the name of the driver with 6 points?
Here is the SQLite query to answer to the question: What is the na... | Your SQLite query has a small issue. Since the `points` column is defined as `VARCHAR`, the comparison of `points` with the number `6` should be done as a string. Here's the corrected query:
```
SELECT driver FROM table_name_35 WHERE points = '6'
```
This will properly find the driver with 6 points. | 22,698 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_35 (driver VARCHAR, points VARCHAR)\n\n Question: What is the name of the driver with 6 points?\n\nHere is the SQLite q... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (points INTEGER, driver VARCHAR)
Question: What is the average points that the driver Ryan Hunter-Reay has?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to find the average points for the driver Ryan Hunter-Reay:
```
SELECT AVG(points) FROM table_name_54 WHERE driver = "Ryan Hunter-Reay";
``` | 22,699 | [
{
"from": "human",
"value": " 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 (points INTEGER, driver VARCHAR)\n\n Question: What is the average points that the driver Ryan Hunter-Reay has?\n\nH... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.