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_66 (league VARCHAR, goals VARCHAR)
Question: Which league has 12 goals?
Here is the SQLite query to answer to the question: Which league has 12 goals?:
```
SE... | The SQLite query to answer the question "Which league has 12 goals?" is as follows:
```
SELECT league FROM table_name_66 WHERE goals = '12'
```
Note: The value '12' is wrapped in quotes because the `goals` column is defined as a VARCHAR type, which means its values are treated as strings. | 13,900 | [
{
"from": "human",
"value": " 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 (league VARCHAR, goals VARCHAR)\n\n Question: Which league has 12 goals?\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_41 (league VARCHAR, club VARCHAR, apps VARCHAR, goals VARCHAR)
Question: Which league has less than 15 apps and 0 goals with sparta prague?
Here is the SQLite... | Here is the SQLite query to answer the question about which league has less than 15 apps and 0 goals with Sparta Prague:
```sql
SELECT league FROM table_name_41 WHERE CAST(apps AS INTEGER) < 15 AND CAST(goals AS INTEGER) = 0 AND club = "sparta prague";
``` | 13,901 | [
{
"from": "human",
"value": " 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 (league VARCHAR, club VARCHAR, apps VARCHAR, goals VARCHAR)\n\n Question: Which league has less than 15 apps and 0 g... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (runners_up INTEGER, years_won VARCHAR)
Question: How many runners up for the team that won in 1993?
Here is the SQLite query to answer to the question: Ho... | The query you provided seems to have a misunderstanding in terms of what it is trying to compute. You are looking for the number of runners-up for the team that won in 1993, so a count of the `runners_up` field is more appropriate. Here’s how you can structure the SQL query:
```sql
SELECT COUNT(runners_up) FROM table_... | 13,902 | [
{
"from": "human",
"value": " 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 (runners_up INTEGER, years_won VARCHAR)\n\n Question: How many runners up for the team that won in 1993?\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 (runners_up VARCHAR, winners VARCHAR, years_runner_up VARCHAR)
Question: How many runners up for the team with under 1 win and a Years runner-up of 1985 , 19... | To answer the question based on the provided schema, you need to count the number of unique runners-up for the teams that have fewer than 1 win (assuming a win count implies the presence of more than 0 in the winners column) and that were runner-ups in the years 1985 and 1996.
The correct query would look something li... | 13,903 | [
{
"from": "human",
"value": " 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 (runners_up VARCHAR, winners VARCHAR, years_runner_up VARCHAR)\n\n Question: How many runners up for the team with un... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (circuit VARCHAR, race_name VARCHAR)
Question: On what circuit was the iii Reims Grand Prix held?
Here is the SQLite query to answer to the question: On wh... | Your SQLite query to find the circuit for the "iii Reims Grand Prix" is correctly written. Here it is wrapped in code format:
```
SELECT circuit FROM table_name_43 WHERE race_name = "iii reims grand prix";
``` | 13,904 | [
{
"from": "human",
"value": " 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 (circuit VARCHAR, race_name VARCHAR)\n\n Question: On what circuit was the iii Reims Grand Prix held?\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_5 (circuit VARCHAR, race_name VARCHAR)
Question: On what circuit was the i mexican grand prix held?
Here is the SQLite query to answer to the question: On wha... | Here is the SQLite query to answer the question about the circuit on which the "i mexican grand prix" was held:
```
SELECT circuit FROM table_name_5 WHERE race_name = "i mexican grand prix"
``` | 13,905 | [
{
"from": "human",
"value": " 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 (circuit VARCHAR, race_name VARCHAR)\n\n Question: On what circuit was the i mexican grand prix held?\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_29 (start INTEGER, pens VARCHAR, conv VARCHAR, tries VARCHAR)
Question: What is the largest start for a player with 14 conv, 10 tries and more than 22 pens?
H... | Your SQLite query to find the largest start for a player with 14 conv, 10 tries, and more than 22 pens is correct. Here it is wrapped as requested:
```
SELECT MAX(start) FROM table_name_29 WHERE conv = 14 AND tries = 10 AND pens > 22
``` | 13,906 | [
{
"from": "human",
"value": " 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 (start INTEGER, pens VARCHAR, conv VARCHAR, tries VARCHAR)\n\n Question: What is the largest start for a player with... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (tries VARCHAR, pens VARCHAR, conv VARCHAR, start VARCHAR)
Question: What is the total of tries for a player with conv smaller than 45, 19 starts and pens f... | Your query is mostly correct, but there seems to be a slight misunderstanding regarding how to compute the total of `tries`. If `tries` is a number and you want to sum it up instead of counting the occurrences, you should use `SUM` instead of `COUNT`.
Here is the corrected version of the query:
```
SELECT SUM(tries)... | 13,907 | [
{
"from": "human",
"value": " 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 (tries VARCHAR, pens VARCHAR, conv VARCHAR, start VARCHAR)\n\n Question: What is the total of tries for a player wit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (earnings__ INTEGER, rank VARCHAR, country VARCHAR, wins VARCHAR)
Question: When the united states has 22 wins and a rank greater than 2, what is the total ... | Here's the SQLite query to answer the specified question:
```
SELECT SUM(earnings__) AS total_earnings FROM table_name_82 WHERE country = "united states" AND wins = "22" AND rank > "2"
``` | 13,908 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_82 (earnings__ INTEGER, rank VARCHAR, country VARCHAR, wins VARCHAR)\n\n Question: When the united states has 22 wins a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (rank INTEGER, country VARCHAR)
Question: What is the smallest rank for new zealand?
Here is the SQLite query to answer to the question: What is the smalle... | Your SQLite query is correct for retrieving the smallest rank for New Zealand. Here it is wrapped in code format:
```
SELECT MIN(rank) FROM table_name_23 WHERE country = "new zealand";
``` | 13,909 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (rank INTEGER, country VARCHAR)\n\n Question: What is the smallest rank for new zealand?\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_96 (away_team VARCHAR)
Question: What is Richmond's away team score versus Geelong?
Here is the SQLite query to answer to the question: What is Richmond's awa... | To retrieve Richmond's away team score against Geelong, it seems like we need to check if there is a score associated with Richmond as an away team playing against Geelong. However, the schema provided only shows an `away_team` column and does not include any columns for scores or home teams.
Given the limited schema... | 13,910 | [
{
"from": "human",
"value": " 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 (away_team VARCHAR)\n\n Question: What is Richmond's away team score versus Geelong?\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_61 (total_seats INTEGER, share_of_votes VARCHAR)
Question: When the share of votes equals 21.8%, what's the sum of the total amount of seats?
Here is the SQLi... | Here is the SQLite query to answer the question about the sum of total seats when the share of votes equals 21.8%:
```sql
SELECT SUM(total_seats) FROM table_name_61 WHERE share_of_votes = "21.8%"
``` | 13,911 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_61 (total_seats INTEGER, share_of_votes VARCHAR)\n\n Question: When the share of votes equals 21.8%, what's the sum of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (election VARCHAR, total_seats VARCHAR, seats VARCHAR)
Question: If the total number of seats is under 144, and the seats won is 32, which election is this?... | Here is the SQLite query to answer your question:
```
SELECT election FROM table_name_37 WHERE total_seats < 144 AND seats = 32
``` | 13,912 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_37 (election VARCHAR, total_seats VARCHAR, seats VARCHAR)\n\n Question: If the total number of seats is under 144, and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (total_seats INTEGER, share_of_votes VARCHAR)
Question: When the share of votes is 33.9%, what's the highest total amount of seats?
Here is the SQLite query... | Your SQLite query is correct for retrieving the highest total amount of seats when the share of votes is 33.9%. Here it is wrapped in code formatting for clarity:
```
SELECT MAX(total_seats) FROM table_name_4 WHERE share_of_votes = "33.9%"
```
This query selects the maximum value of `total_seats` from `table_name_4`... | 13,913 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_4 (total_seats INTEGER, share_of_votes VARCHAR)\n\n Question: When the share of votes is 33.9%, what's the highest tota... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR)
Question: What was the home team's score when North Melbourne was the away team?
Here is the SQLite query to answer ... | It seems there is a misunderstanding in your query. The provided schema does not have any information about scores. To find the home team's score when North Melbourne was the away team, you would need a score column in your schema. However, since it is not present, we cannot retrieve scores.
If you're looking to retri... | 13,914 | [
{
"from": "human",
"value": " 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 (home_team VARCHAR, away_team VARCHAR)\n\n Question: What was the home team's score when North Melbourne was the awa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (away_team VARCHAR, home_team VARCHAR)
Question: Who was the away team when Geelong was the home team?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question of who was the away team when Geelong was the home team:
```
SELECT away_team FROM table_name_41 WHERE home_team = "Geelong";
``` | 13,915 | [
{
"from": "human",
"value": " 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 (away_team VARCHAR, home_team VARCHAR)\n\n Question: Who was the away team when Geelong was the home team?\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_37 (away_team VARCHAR)
Question: What is the score of away team, North Melbourne?
Here is the SQLite query to answer to the question: What is the score of awa... | It seems there is a misunderstanding in the query you provided. The schema only defines a table with the column `away_team`, which suggests that it may contain the names of away teams but doesn't provide any information about scores. Assuming there is a separate score column that you might have omitted from the schema,... | 13,916 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_37 (away_team VARCHAR)\n\n Question: What is the score of away team, North Melbourne?\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_36 (crowd INTEGER, venue VARCHAR)
Question: What is the fewest number of attendees at Kardinia Park?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question about the fewest number of attendees at Kardinia Park:
```
SELECT MIN(crowd) FROM table_name_36 WHERE venue = "Kardinia Park";
``` | 13,917 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_36 (crowd INTEGER, venue VARCHAR)\n\n Question: What is the fewest number of attendees at Kardinia Park?\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_93 (home_team VARCHAR, away_team VARCHAR)
Question: What is the home team score when the away team was fitzroy?
Here is the SQLite query to answer to the ques... | The provided SQL query attempts to derive the "home team score" based on the context given. However, in the schema defined, there is no explicit "score" column available; the schema only indicates the home and away teams.
If you're looking to retrieve the names of the home teams when the away team is "fitzroy", the co... | 13,918 | [
{
"from": "human",
"value": " 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 (home_team VARCHAR, away_team VARCHAR)\n\n Question: What is the home team score when the away team was fitzroy?\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_96 (home VARCHAR, decision VARCHAR, visitor VARCHAR)
Question: Who was the home team at the game with a decision of Mason and a visiting team of Dallas?
Here ... | Here's the SQLite query to answer the question about the home team with the specified criteria:
```
SELECT home FROM table_name_96 WHERE decision = "Mason" AND visitor = "Dallas";
``` | 13,919 | [
{
"from": "human",
"value": " 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 (home VARCHAR, decision VARCHAR, visitor VARCHAR)\n\n Question: Who was the home team at the game with a decision of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
Question: Name the highest laps for time/retired of engine and grid of 5
Here is the SQLite query to ans... | Here is the SQLite query to answer the question about the highest laps for time/retired of "engine" and grid of 5:
```
SELECT MAX(laps) FROM table_name_37 WHERE time_retired = 'engine' AND grid = '5'
``` | 13,920 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_37 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)\n\n Question: Name the highest laps for time/retired of engine an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (laps INTEGER, grid VARCHAR, constructor VARCHAR, time_retired VARCHAR)
Question: Name the highest laps for maserati and +6 laps for grid more than 11
Here... | The provided SQL query has a logical issue regarding the way it checks the `time_retired` and the `grid` conditions. The condition for `time_retired` seems to be requiring an exact string match, and the usage of `+6 laps` might be incorrect contextually depending on what you are trying to achieve.
If you want to find ... | 13,921 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_33 (laps INTEGER, grid VARCHAR, constructor VARCHAR, time_retired VARCHAR)\n\n Question: Name the highest laps for mase... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (time_retired VARCHAR, grid VARCHAR)
Question: Tell me the time/retired for grid 4
Here is the SQLite query to answer to the question: Tell me the time/ret... | Here is the SQLite query to answer the question: Tell me the time/retired for grid 4:
```
SELECT time_retired FROM table_name_41 WHERE grid = '4'
```
(Note: The grid value is a string, hence it is enclosed in quotes.) | 13,922 | [
{
"from": "human",
"value": " 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 (time_retired VARCHAR, grid VARCHAR)\n\n Question: Tell me the time/retired for grid 4\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_18 (driver VARCHAR, laps VARCHAR)
Question: Tell me the driver for 58 laps
Here is the SQLite query to answer to the question: Tell me the driver for 58 laps:... | Here is the SQLite query to answer the question "Tell me the driver for 58 laps":
```
SELECT driver FROM table_name_18 WHERE laps = '58'
``` | 13,923 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (driver VARCHAR, laps VARCHAR)\n\n Question: Tell me the driver for 58 laps\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_89 (home_team VARCHAR, away_team VARCHAR)
Question: What is the score of the home team aginst Essendon?
Here is the SQLite query to answer to the question: Wh... | To answer your question regarding the score of the home team against Essendon, it appears that you want to retrieve the home team's name from matches where Essendon is the away team.
Here is the corrected SQLite query:
```
SELECT home_team AS score FROM table_name_89 WHERE away_team = 'Essendon';
```
Make sure to m... | 13,924 | [
{
"from": "human",
"value": " 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: What is the score of the home team aginst Essendon?\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_26 (date VARCHAR, home_team VARCHAR)
Question: When is the Geelong game?
Here is the SQLite query to answer to the question: When is the Geelong game?:
```
SE... | Here is the SQLite query to answer the question "When is the Geelong game?":
```
SELECT date FROM table_name_26 WHERE home_team = "Geelong";
``` | 13,925 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_26 (date VARCHAR, home_team VARCHAR)\n\n Question: When is the Geelong game?\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_52 (original_broadway_production VARCHAR, first_us_national_tour VARCHAR)
Question: Which Original Broadway production has a First US National Tour of roger ba... | Your SQLite query to find the Original Broadway production that has a First US National Tour of "roger bart" is correct. Here it is wrapped in the requested format:
```
SELECT original_broadway_production FROM table_name_52 WHERE first_us_national_tour = "roger bart";
``` | 13,926 | [
{
"from": "human",
"value": " 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 (original_broadway_production VARCHAR, first_us_national_tour VARCHAR)\n\n Question: Which Original Broadway product... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (original_broadway_production VARCHAR, role VARCHAR)
Question: Which Original Broadway production has a Role of dr. victor von frankenstein?
Here is the SQL... | Here is the SQLite query to answer the question about which Original Broadway production has a role of "dr. victor von frankenstein":
```
SELECT original_broadway_production FROM table_name_1 WHERE role = "dr. victor von frankenstein";
``` | 13,927 | [
{
"from": "human",
"value": " 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 (original_broadway_production VARCHAR, role VARCHAR)\n\n Question: Which Original Broadway production has a Role of d... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (role VARCHAR, first_us_national_tour VARCHAR)
Question: Which Role has a First US National Tour of roger bart?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question regarding which role has a First US National Tour of "roger bart":
```
SELECT role FROM table_name_19 WHERE first_us_national_tour = "roger bart"
``` | 13,928 | [
{
"from": "human",
"value": " 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 (role VARCHAR, first_us_national_tour VARCHAR)\n\n Question: Which Role has a First US National Tour of roger bart?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (original_italian_production VARCHAR, first_us_national_tour VARCHAR)
Question: Which Original Italian production has a First US National Tour of joanna glus... | Here is the SQLite query that answers the question about which Original Italian production has a First US National Tour of joanna glushak:
```
SELECT original_italian_production FROM table_name_4 WHERE first_us_national_tour = "joanna glushak";
``` | 13,929 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_4 (original_italian_production VARCHAR, first_us_national_tour VARCHAR)\n\n Question: Which Original Italian production... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (venue VARCHAR, away_team VARCHAR)
Question: At what venue was the game played where the away team was South Melbourne
Here is the SQLite query to answer t... | Your SQLite query is almost correct, but we should ensure that we account for case sensitivity in SQL. Here's the refined query:
```sql
SELECT venue FROM table_name_49 WHERE LOWER(away_team) = "south melbourne"
```
This modification uses the `LOWER()` function to convert the `away_team` value to lowercase, ensuring t... | 13,930 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, away_team VARCHAR)\n\n Question: At what venue was the game played where the away team was South Mel... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (director VARCHAR, year VARCHAR, role VARCHAR)
Question: Who directed the eula goodnight movie after 1949?
Here is the SQLite query to answer to the questi... | Your SQLite query has a small issue with the role condition. It should check for the movie title rather than a role. Assuming "Eula Goodnight" is the movie title and you're trying to find who directed it after 1949, the `role` condition should typically be checked for a title-like condition rather than a specific role.... | 13,931 | [
{
"from": "human",
"value": " 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 (director VARCHAR, year VARCHAR, role VARCHAR)\n\n Question: Who directed the eula goodnight movie after 1949?\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_97 (role VARCHAR, year VARCHAR, director VARCHAR)
Question: What role does she play before 1942 with dorothy arzner directing?
Here is the SQLite query to ans... | Here is the SQLite query for your question:
```
SELECT role FROM table_name_97 WHERE year < '1942' AND director = 'dorothy arzner';
``` | 13,932 | [
{
"from": "human",
"value": " 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 (role VARCHAR, year VARCHAR, director VARCHAR)\n\n Question: What role does she play before 1942 with dorothy arzner... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (role VARCHAR, genre VARCHAR, year VARCHAR)
Question: What drama role does she play in 1973?
Here is the SQLite query to answer to the question: What drama... | Here is the SQLite query to answer the question about the drama role she plays in 1973:
```
SELECT role FROM table_name_57 WHERE genre = "drama" AND year = "1973"
``` | 13,933 | [
{
"from": "human",
"value": " 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 (role VARCHAR, genre VARCHAR, year VARCHAR)\n\n Question: What drama role does she play in 1973?\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_19 (date VARCHAR, competition VARCHAR)
Question: What is the date of the 1986 FIFA World Cup?
Here is the SQLite query to answer to the question: What is the ... | Here is the SQLite query to answer the question about the date of the 1986 FIFA World Cup:
```
SELECT date FROM table_name_19 WHERE competition = "1986 FIFA World Cup";
``` | 13,934 | [
{
"from": "human",
"value": " 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 (date VARCHAR, competition VARCHAR)\n\n Question: What is the date of the 1986 FIFA World Cup?\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_58 (floor_exercise INTEGER, pommel_horse VARCHAR, parallel_bars VARCHAR)
Question: Name the least floor exercise for parallel bars more than 9.687 and pommel h... | Here is the SQLite query to answer the question regarding the least floor exercise for parallel bars more than 9.687 and pommel horse less than 8.45:
```
SELECT MIN(floor_exercise)
FROM table_name_58
WHERE pommel_horse < 8.45
AND parallel_bars > 9.687
``` | 13,935 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_58 (floor_exercise INTEGER, pommel_horse VARCHAR, parallel_bars VARCHAR)\n\n Question: Name the least floor exercise fo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (pommel_horse VARCHAR, rank VARCHAR, vault VARCHAR)
Question: Name the total number of pommel horses for vault of 9.475 and rank more than 16
Here is the S... | Your query syntax is almost correct, but the `rank` field may need to be treated as a string if it is stored as a VARCHAR. Also, the value `9.475` should be enclosed in quotes if it's treated as a string. Here is the corrected version of the SQLite query:
```sql
SELECT COUNT(pommel_horse)
FROM table_name_65
WHERE ra... | 13,936 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_65 (pommel_horse VARCHAR, rank VARCHAR, vault VARCHAR)\n\n Question: Name the total number of pommel horses for vault o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (home_team VARCHAR, venue VARCHAR)
Question: When lake oval is the venue, what's the score of the home team?
Here is the SQLite query to answer to the quest... | Your SQLite query needs a minor correction. Since the schema you provided does not include a score column, it seems that you want to retrieve the home team associated with the venue "lake oval." Here is the corrected query:
```
SELECT home_team FROM table_name_4 WHERE venue = "lake oval";
```
If there is a specific c... | 13,937 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_4 (home_team VARCHAR, venue VARCHAR)\n\n Question: When lake oval is the venue, what's the score of the home team?\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_60 (opponent VARCHAR, date VARCHAR)
Question: Who did the cubs play on june 3?
Here is the SQLite query to answer to the question: Who did the cubs play on ju... | Here is the SQLite query to answer the question: Who did the cubs play on June 3?:
```
SELECT opponent FROM table_name_60 WHERE date = "june 3";
``` | 13,938 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, date VARCHAR)\n\n Question: Who did the cubs play on june 3?\n\nHere is the SQLite query to answe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (place_of_action VARCHAR, rank VARCHAR, unit VARCHAR)
Question: Tell me the place of action for sergeant rank and 5th company, 2nd marines unit
Here is the... | Here is the SQLite query to answer the question:
```
SELECT place_of_action FROM table_name_80 WHERE rank = "sergeant" AND unit = "5th company, 2nd marines"
``` | 13,939 | [
{
"from": "human",
"value": " 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 (place_of_action VARCHAR, rank VARCHAR, unit VARCHAR)\n\n Question: Tell me the place of action for sergeant rank an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (service VARCHAR, unit VARCHAR, rank VARCHAR)
Question: Name the service for 7th marines rank of sergeant
Here is the SQLite query to answer to the questio... | Your SQLite query looks correct for retrieving the service associated with the "7th marines" rank of "sergeant". Here it is wrapped in the required format:
```
SELECT service FROM table_name_20 WHERE unit = "7th marines" AND rank = "sergeant";
``` | 13,940 | [
{
"from": "human",
"value": " 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 (service VARCHAR, unit VARCHAR, rank VARCHAR)\n\n Question: Name the service for 7th marines rank of sergeant\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_99 (distance VARCHAR, course VARCHAR)
Question: How far is the olbia to sassari route?
Here is the SQLite query to answer to the question: How far is the olbi... | Here is the SQLite query to answer the question: How far is the olbia to sassari route?:
```
SELECT distance FROM table_name_99 WHERE course = "olbia to sassari"
``` | 13,941 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_99 (distance VARCHAR, course VARCHAR)\n\n Question: How far is the olbia to sassari route?\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_67 (date VARCHAR, venue VARCHAR, goal VARCHAR)
Question: What day is miami the venue with 38 goals?
Here is the SQLite query to answer to the question: What d... | Your query needs a slight adjustment because the `goal` column is likely to store goals as strings (since it is defined as VARCHAR), and you're comparing it to an integer (38). To ensure the comparison works properly, you should compare `goal` as a string. Here’s the corrected query:
```sql
SELECT date FROM table_name... | 13,942 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_67 (date VARCHAR, venue VARCHAR, goal VARCHAR)\n\n Question: What day is miami the venue with 38 goals?\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_63 (competition VARCHAR, goal VARCHAR)
Question: What competition has 41 goals?
Here is the SQLite query to answer to the question: What competition has 41 go... | The provided SQLite query has a small issue regarding the data type for the `goal` column. Since the `goal` is a `VARCHAR`, you should compare it to the string value '41' rather than the integer 41. Here’s the corrected query:
```sql
SELECT competition FROM table_name_63 WHERE goal = '41';
``` | 13,943 | [
{
"from": "human",
"value": " 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 (competition VARCHAR, goal VARCHAR)\n\n Question: What competition has 41 goals?\n\nHere is the SQLite query to answ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (date VARCHAR, goal VARCHAR)
Question: What day has 34 goals?
Here is the SQLite query to answer to the question: What day has 34 goals?:
```
SELECT date F... | It looks like there is a small mistake in your query. Since the `goal` column is defined as a `VARCHAR`, you need to compare it to the string '34' instead of the integer 34. Here is the correct SQLite query:
```
SELECT date FROM table_name_76 WHERE goal = '34';
``` | 13,944 | [
{
"from": "human",
"value": " 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 (date VARCHAR, goal VARCHAR)\n\n Question: What day has 34 goals?\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_93 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR)
Question: What driver had under 22 laps and a Time/Retired of ignition?
Here is the SQLite query to an... | Here is the SQLite query to answer the question regarding which driver had under 22 laps and a Time/Retired of "ignition":
```
SELECT driver FROM table_name_93 WHERE CAST(laps AS INTEGER) < 22 AND time_retired = 'ignition';
```
This query ensures that the `laps` field is treated as an integer for the comparison. | 13,945 | [
{
"from": "human",
"value": " 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 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR)\n\n Question: What driver had under 22 laps and a Time/Retired ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (laps INTEGER, driver VARCHAR)
Question: What is the highest number of laps for chris amon?
Here is the SQLite query to answer to the question: What is the... | Here is the SQLite query to answer the question about the highest number of laps for Chris Amon:
```
SELECT MAX(laps) FROM table_name_51 WHERE driver = "chris amon";
``` | 13,946 | [
{
"from": "human",
"value": " 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 (laps INTEGER, driver VARCHAR)\n\n Question: What is the highest number of laps for chris amon?\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_94 (crowd INTEGER, away_team VARCHAR)
Question: What is the crowd with Away team of hawthorn?
Here is the SQLite query to answer to the question: What is the ... | Here is the SQLite query to answer the question about the crowd with the away team of Hawthorn:
```
SELECT crowd FROM table_name_94 WHERE away_team = "hawthorn";
``` | 13,947 | [
{
"from": "human",
"value": " 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 (crowd INTEGER, away_team VARCHAR)\n\n Question: What is the crowd with Away team of hawthorn?\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 (away_team VARCHAR, home_team VARCHAR)
Question: What away team score has carlton home team?
Here is the SQLite query to answer to the question: What away ... | Your SQLite query is almost correct, but there seems to be a misunderstanding in the terminology. The query you provided retrieves the names of away teams that played against the home team "carlton". It does not retrieve scores since the schema does not contain any score information.
If you still want to retrieve the... | 13,948 | [
{
"from": "human",
"value": " 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 (away_team VARCHAR, home_team VARCHAR)\n\n Question: What away team score has carlton home team?\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_19 (away_team VARCHAR, venue VARCHAR)
Question: What is the away team score at vfl park?
Here is the SQLite query to answer to the question: What is the away ... | It seems like you're looking for an SQLite query, but the provided query references "away team score," which may imply that there is a scoring element that isn't present in your currently defined schema. Since your schema only includes `away_team` and `venue`, there's no column for scores in the specified table.
If yo... | 13,949 | [
{
"from": "human",
"value": " 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 (away_team VARCHAR, venue VARCHAR)\n\n Question: What is the away team score at vfl park?\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_91 (date VARCHAR, home_team VARCHAR)
Question: When did St Kilda play a home game?
Here is the SQLite query to answer to the question: When did St Kilda play ... | Here is the SQLite query to answer the question: When did St Kilda play a home game?:
```
SELECT date FROM table_name_91 WHERE home_team = "St Kilda";
``` | 13,950 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_91 (date VARCHAR, home_team VARCHAR)\n\n Question: When did St Kilda play a home game?\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_59 (date VARCHAR, venue VARCHAR)
Question: When was the game played at Moorabbin Oval?
Here is the SQLite query to answer to the question: When was the game p... | Here is the SQLite query to answer the question: When was the game played at Moorabbin Oval?:
```
SELECT date FROM table_name_59 WHERE venue = "Moorabbin Oval";
``` | 13,951 | [
{
"from": "human",
"value": " 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 (date VARCHAR, venue VARCHAR)\n\n Question: When was the game played at Moorabbin Oval?\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_27 (name VARCHAR, area VARCHAR, roll VARCHAR)
Question: Tell me the name for kelston with roll less than 322
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question:
```
SELECT name FROM table_name_27 WHERE area = 'kelston' AND roll < 322;
``` | 13,952 | [
{
"from": "human",
"value": " 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 (name VARCHAR, area VARCHAR, roll VARCHAR)\n\n Question: Tell me the name for kelston with roll less than 322\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_24 (opponent VARCHAR, date VARCHAR)
Question: Who was the opponent on September 8?
Here is the SQLite query to answer to the question: Who was the opponent on... | Here is the SQLite query to answer the question regarding who the opponent was on September 8:
```
SELECT opponent FROM table_name_24 WHERE date = "September 8";
``` | 13,953 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_24 (opponent VARCHAR, date VARCHAR)\n\n Question: Who was the opponent on September 8?\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_40 (grand_finaldate VARCHAR, season VARCHAR)
Question: I want the Grand Final Date for season 1988
Here is the SQLite query to answer to the question: I want ... | Here is the SQLite query to answer the question about the Grand Final Date for season 1988:
```
SELECT grand_finaldate FROM table_name_40 WHERE season = '1988'
``` | 13,954 | [
{
"from": "human",
"value": " 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 (grand_finaldate VARCHAR, season VARCHAR)\n\n Question: I want the Grand Final Date for season 1988\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_72 (stadium VARCHAR, location VARCHAR)
Question: What Gaelic Athletic Association stadium is located in Carrick-on-Shannon?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question about the Gaelic Athletic Association stadium located in Carrick-on-Shannon:
```sql
SELECT stadium FROM table_name_72 WHERE location = "Carrick-on-Shannon";
``` | 13,955 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (stadium VARCHAR, location VARCHAR)\n\n Question: What Gaelic Athletic Association stadium is located in Carrick-on-... | |
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 VARCHAR, stadium VARCHAR)
Question: What is the Gaelic Football Stadium at McHale Park's ranking in total capacity?
Here is the SQLite query to answe... | To answer the question regarding the ranking of the Gaelic Football Stadium at McHale Park in terms of total capacity, we should modify the query slightly. The previous query would count the number of ranks rather than determining the specific rank of McHale Park. Here's the correct query:
```sql
SELECT rank FROM tabl... | 13,956 | [
{
"from": "human",
"value": " 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 VARCHAR, stadium VARCHAR)\n\n Question: What is the Gaelic Football Stadium at McHale Park's ranking in total ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (away_team VARCHAR, crowd INTEGER)
Question: Which Away team score has a Crowd larger than 6,000?
Here is the SQLite query to answer to the question: Which... | Here is the corrected SQLite query to answer the question regarding which away team scores have a crowd larger than 6,000:
```sql
SELECT away_team FROM table_name_21 WHERE crowd > 6000;
``` | 13,957 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_21 (away_team VARCHAR, crowd INTEGER)\n\n Question: Which Away team score has a Crowd larger than 6,000?\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_72 (crowd INTEGER, home_team VARCHAR)
Question: Which average Crowd has a Home team of south melbourne?
Here is the SQLite query to answer to the question: Wh... | Your SQLite query is correct. Here it is wrapped in code format:
```
SELECT AVG(crowd) FROM table_name_72 WHERE home_team = "south melbourne";
``` | 13,958 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (crowd INTEGER, home_team VARCHAR)\n\n Question: Which average Crowd has a Home team of south melbourne?\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_25 (date VARCHAR, record VARCHAR)
Question: On what date was the Record of 43–35?
Here is the SQLite query to answer to the question: On what date was the Rec... | Your SQLite query to find the date for the record "43–35" is correctly structured. Here it is wrapped in code formatting:
```
SELECT date FROM table_name_25 WHERE record = "43–35";
``` | 13,959 | [
{
"from": "human",
"value": " 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 (date VARCHAR, record VARCHAR)\n\n Question: On what date was the Record of 43–35?\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_17 (record VARCHAR, date VARCHAR)
Question: What record occurred on April 3?
Here is the SQLite query to answer to the question: What record occurred on April... | Here is the SQLite query to answer the question "What record occurred on April 3?":
```sql
SELECT record FROM table_name_17 WHERE date = "April 3";
``` | 13,960 | [
{
"from": "human",
"value": " 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 (record VARCHAR, date VARCHAR)\n\n Question: What record occurred on April 3?\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_54 (leading_scorer VARCHAR, date VARCHAR)
Question: Who led the score on April 9?
Here is the SQLite query to answer to the question: Who led the score on Apr... | Your SQLite query looks correct for the given question and schema. Here's the query wrapped in the code block as requested:
```
SELECT leading_scorer FROM table_name_54 WHERE date = "april 9";
``` | 13,961 | [
{
"from": "human",
"value": " 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 (leading_scorer VARCHAR, date VARCHAR)\n\n Question: Who led the score on April 9?\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_96 (record VARCHAR, attendance VARCHAR)
Question: What is the record for the game that shows the Rose Garden 20,126 as attendance?
Here is the SQLite query to... | Here is the corrected SQLite query to answer the question:
```sql
SELECT record FROM table_name_96 WHERE attendance = "20,126" AND record LIKE "%Rose Garden%";
```
This query selects the `record` from `table_name_96` where the `attendance` matches "20,126" and ensures that the `record` contains "Rose Garden". | 13,962 | [
{
"from": "human",
"value": " 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 (record VARCHAR, attendance VARCHAR)\n\n Question: What is the record for the game that shows the Rose Garden 20,126... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (record VARCHAR, home VARCHAR)
Question: What is the record for the game when the Dallas Mavericks was the home team?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question regarding the record for the game when the Dallas Mavericks was the home team:
```
SELECT record FROM table_name_24 WHERE home = "dallas mavericks";
``` | 13,963 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_24 (record VARCHAR, home VARCHAR)\n\n Question: What is the record for the game when the Dallas Mavericks was the home ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (record VARCHAR, attendance VARCHAR)
Question: What is the record that has the Rose Garden 20,126 as the attendance?
Here is the SQLite query to answer to ... | Here is the SQLite query to find the record that has "Rose Garden 20,126" as the attendance:
```
SELECT record FROM table_name_44 WHERE attendance = "Rose Garden 20,126"
``` | 13,964 | [
{
"from": "human",
"value": " 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 (record VARCHAR, attendance VARCHAR)\n\n Question: What is the record that has the Rose Garden 20,126 as the attenda... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (score VARCHAR, attendance VARCHAR)
Question: What was the score when 43,746 attended?
Here is the SQLite query to answer to the question: What was the sco... | Here is the SQLite query to answer the question regarding the score when 43,746 attended:
```
SELECT score FROM table_name_50 WHERE attendance = "43,746"
``` | 13,965 | [
{
"from": "human",
"value": " 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 (score VARCHAR, attendance VARCHAR)\n\n Question: What was the score when 43,746 attended?\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_7 (score VARCHAR, record VARCHAR)
Question: What was the score when the record 56-46 was met?
Here is the SQLite query to answer to the question: What was the... | Here is the SQLite query to answer the question regarding the score when the record 56-46 was met:
```
SELECT score FROM table_name_7 WHERE record = "56-46"
``` | 13,966 | [
{
"from": "human",
"value": " 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 (score VARCHAR, record VARCHAR)\n\n Question: What was the score when the record 56-46 was met?\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_43 (home_team VARCHAR)
Question: What did Richmond score as the home team?
Here is the SQLite query to answer to the question: What did Richmond score as the ... | The query you've provided is not returning the score for Richmond, as it is selecting the home team name itself. Generally, you would need a score column to fetch specific score data. Assuming there's a "score" column associated with "home_team", the query would look something like this:
```sql
SELECT score FROM table... | 13,967 | [
{
"from": "human",
"value": " 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 (home_team VARCHAR)\n\n Question: What did Richmond score as the home team?\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_45 (model_name VARCHAR, displacement__cm³_ VARCHAR, engine_code VARCHAR)
Question: Which model has a 2521 cm displacement and b5254 t2 engine?
Here is the SQL... | Here is the correct SQLite query to answer the question regarding which model has a displacement of 2521 cm³ and an engine code of b5254 t2:
```
SELECT model_name FROM table_name_45 WHERE displacement__cm³_ = '2521' AND engine_code = 'b5254 t2';
``` | 13,968 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_45 (model_name VARCHAR, displacement__cm³_ VARCHAR, engine_code VARCHAR)\n\n Question: Which model has a 2521 cm displa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (engine_code VARCHAR, displacement__cm³_ VARCHAR, model_name VARCHAR)
Question: Which engine has a 2435 cm displacement and is named 2.4 (2001-2007)?
Here ... | Here is the SQLite query to answer the question regarding the engine with a 2435 cm displacement named 2.4 (2001-2007):
```
SELECT engine_code FROM table_name_84 WHERE displacement__cm³_ = '2435' AND model_name = '2.4 (2001-2007)';
``` | 13,969 | [
{
"from": "human",
"value": " 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 (engine_code VARCHAR, displacement__cm³_ VARCHAR, model_name VARCHAR)\n\n Question: Which engine has a 2435 cm displ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (venue VARCHAR, date VARCHAR)
Question: What was the venue for the game on 10-09-2012?
Here is the SQLite query to answer to the question: What was the ven... | Here is the SQLite query to answer the question about the venue for the game on 10-09-2012:
```
SELECT venue FROM table_name_71 WHERE date = "10-09-2012"
``` | 13,970 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, date VARCHAR)\n\n Question: What was the venue for the game on 10-09-2012?\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_22 (competition VARCHAR, date VARCHAR)
Question: Which competition was played on 13-11-2012?
Here is the SQLite query to answer to the question: Which competi... | Here is the SQLite query to answer the question: Which competition was played on 13-11-2012?:
```
SELECT competition FROM table_name_22 WHERE date = "13-11-2012"
``` | 13,971 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_22 (competition VARCHAR, date VARCHAR)\n\n Question: Which competition was played on 13-11-2012?\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_38 (opponent VARCHAR, competition VARCHAR, date VARCHAR)
Question: Which opponent is friendly and played on 15-08-2012?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question "Which opponent is friendly and played on 15-08-2012?":
```
SELECT opponent FROM table_name_38 WHERE competition = "friendly" AND date = "15-08-2012";
``` | 13,972 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, competition VARCHAR, date VARCHAR)\n\n Question: Which opponent is friendly and played on 15-08-2... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (result VARCHAR, date VARCHAR)
Question: What is the result of game played on 10-05-2012?
Here is the SQLite query to answer to the question: What is the r... | Here is the SQLite query to answer the question regarding the result of the game played on 10-05-2012:
```
SELECT result FROM table_name_23 WHERE date = "10-05-2012";
``` | 13,973 | [
{
"from": "human",
"value": " 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 (result VARCHAR, date VARCHAR)\n\n Question: What is the result of game played on 10-05-2012?\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_26 (opponent VARCHAR, date VARCHAR)
Question: What opponent played on 07-09-2012?
Here is the SQLite query to answer to the question: What opponent played on ... | Here is the SQLite query to answer the question about which opponent played on 07-09-2012:
```
SELECT opponent FROM table_name_26 WHERE date = "07-09-2012";
``` | 13,974 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_26 (opponent VARCHAR, date VARCHAR)\n\n Question: What opponent played on 07-09-2012?\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_6 (venue VARCHAR, competition VARCHAR, result VARCHAR)
Question: What is the location of the game that was friendly and resulted in 2-3?
Here is the SQLite qu... | Here is the SQLite query to answer the question about the location of the game that was friendly and resulted in 2-3:
```
SELECT venue FROM table_name_6 WHERE competition = "friendly" AND result = "2-3";
``` | 13,975 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, competition VARCHAR, result VARCHAR)\n\n Question: What is the location of the game that was friendly... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (home_team VARCHAR, venue VARCHAR)
Question: What was the home team score for the game played at Western Oval?
Here is the SQLite query to answer to the qu... | It looks like you're trying to query the home team score for a specific venue, but your query does not correctly reflect the schema provided, since there is no score information in the given table.
To clarify, the schema `CREATE TABLE table_name_75 (home_team VARCHAR, venue VARCHAR)` only provides the home team and v... | 13,976 | [
{
"from": "human",
"value": " 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 (home_team VARCHAR, venue VARCHAR)\n\n Question: What was the home team score for the game played at Western Oval?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (crowd INTEGER, home_team VARCHAR)
Question: What was the crowd number when the home team was Carlton?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question regarding the crowd number when the home team was Carlton:
```
SELECT crowd FROM table_name_23 WHERE home_team = "Carlton";
``` | 13,977 | [
{
"from": "human",
"value": " 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 (crowd INTEGER, home_team VARCHAR)\n\n Question: What was the crowd number when the home team was Carlton?\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_44 (capacity INTEGER, club VARCHAR)
Question: What is the largest capacity for the stadium for Treviso club?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question about the largest capacity for the stadium for the Treviso club:
```
SELECT MAX(capacity) FROM table_name_44 WHERE club = "treviso";
``` | 13,978 | [
{
"from": "human",
"value": " 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 (capacity INTEGER, club VARCHAR)\n\n Question: What is the largest capacity for the stadium for Treviso club?\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_77 (loci VARCHAR, software VARCHAR)
Question: Is there Loci in the Cinderella software?
Here is the SQLite query to answer to the question: Is there Loci in t... | Here is the SQLite query to answer the question: Is there Loci in the Cinderella software?:
```
SELECT loci FROM table_name_77 WHERE software = "Cinderella";
``` | 13,979 | [
{
"from": "human",
"value": " 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 (loci VARCHAR, software VARCHAR)\n\n Question: Is there Loci in the Cinderella software?\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_65 (macros VARCHAR, software VARCHAR)
Question: Are the there macros in the Tabula software?
Here is the SQLite query to answer to the question: Are the there... | Here is the SQLite query to answer the question: Are there macros in the Tabula software?:
```
SELECT macros FROM table_name_65 WHERE software = "tabula";
``` | 13,980 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_65 (macros VARCHAR, software VARCHAR)\n\n Question: Are the there macros in the Tabula software?\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_88 (proofs VARCHAR, software VARCHAR)
Question: Are there proofs in the Tabulae software?
Here is the SQLite query to answer to the question: Are there proofs... | Here is the SQLite query to answer the question: Are there proofs in the Tabulae software?:
```
SELECT proofs FROM table_name_88 WHERE software = "tabulae";
``` | 13,981 | [
{
"from": "human",
"value": " 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 (proofs VARCHAR, software VARCHAR)\n\n Question: Are there proofs in the Tabulae software?\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_7 (years INTEGER, lost VARCHAR, tied VARCHAR, total_games VARCHAR)
Question: What is the year total for teams with under 37 games tied, over 33 games, and 15 l... | Your provided SQLite query has a slight error in the condition checking for the number of losses. In SQLite, when comparing the value in a VARCHAR column, you should ensure you are comparing it as an integer. Therefore, you should convert the `lost` column to an integer for a proper comparison.
Here is the corrected S... | 13,982 | [
{
"from": "human",
"value": " 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 (years INTEGER, lost VARCHAR, tied VARCHAR, total_games VARCHAR)\n\n Question: What is the year total for teams with ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (lost INTEGER, pct VARCHAR, years VARCHAR)
Question: What is the low loss total for teams with under 3 years and a less than 0.625% winning percentage?
Her... | It looks like you have a small mistake in your SQL query related to the handling of the `years` column, which is stored as a `VARCHAR`. To properly compare the `years` as a numerical value, you need to cast it to an integer. Here's the corrected SQL query:
```sql
SELECT MIN(lost) FROM table_name_44 WHERE CAST(pct AS R... | 13,983 | [
{
"from": "human",
"value": " 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 (lost INTEGER, pct VARCHAR, years VARCHAR)\n\n Question: What is the low loss total for teams with under 3 years and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (quantity_made VARCHAR, class VARCHAR)
Question: How many CLASS P14 trains were made?
Here is the SQLite query to answer to the question: How many CLASS P14... | To count how many CLASS P14 trains were made, you should use the `COUNT` function in your query. Here’s the correct SQLite query to achieve that:
```
SELECT COUNT(quantity_made) FROM table_name_2 WHERE class = "P14";
``` | 13,984 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_2 (quantity_made VARCHAR, class VARCHAR)\n\n Question: How many CLASS P14 trains were made?\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 (year_s__withdrawn VARCHAR, class VARCHAR)
Question: In what year(s) were the CLASS T14 trains withdrawn from service?
Here is the SQLite query to answer t... | Here is the SQLite query to find the years in which the CLASS T14 trains were withdrawn from service:
```
SELECT year_s__withdrawn FROM table_name_86 WHERE class = "T14";
``` | 13,985 | [
{
"from": "human",
"value": " 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 (year_s__withdrawn VARCHAR, class VARCHAR)\n\n Question: In what year(s) were the CLASS T14 trains withdrawn from se... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (year_s__withdrawn VARCHAR, wheel_arrangement VARCHAR, year_made VARCHAR)
Question: What year was the 4-6-0 Wheel model train from 1908 withdrawn?
Here is ... | Here is the SQLite query to answer the question about the year the 4-6-0 Wheel model train from 1908 was withdrawn:
```
SELECT year_s__withdrawn FROM table_name_61 WHERE wheel_arrangement = "4-6-0" AND year_made = "1908"
``` | 13,986 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_61 (year_s__withdrawn VARCHAR, wheel_arrangement VARCHAR, year_made VARCHAR)\n\n Question: What year was the 4-6-0 Whee... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR)
Question: What was the away team at collingwood?
Here is the SQLite query to answer to the question: What was the aw... | Here is the SQLite query to answer the question: What was the away team at collingwood?:
```sql
SELECT away_team AS score FROM table_name_95 WHERE home_team = "collingwood";
``` | 13,987 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR)\n\n Question: What was the away team at collingwood?\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_39 (home_team VARCHAR, venue VARCHAR)
Question: What is the home team at windy hill?
Here is the SQLite query to answer to the question: What is the home team... | Here is the SQLite query to answer the question, "What is the home team at windy hill?":
```
SELECT home_team FROM table_name_39 WHERE venue = "windy hill"
``` | 13,988 | [
{
"from": "human",
"value": " 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 (home_team VARCHAR, venue VARCHAR)\n\n Question: What is the home team at windy hill?\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_91 (capacity INTEGER, highest INTEGER)
Question: What is the greatest capacity when the largest number in attendance is 6,192?
Here is the SQLite query to ans... | It looks like there are a couple of issues in the query you provided. The `OFFSET` clause is not appropriate for filtering data based on the attendance number. Instead, you should use a `WHERE` clause to specify that you are looking for rows with a `highest` value equal to 6192.
Here’s the corrected SQLite query to f... | 13,989 | [
{
"from": "human",
"value": " 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 (capacity INTEGER, highest INTEGER)\n\n Question: What is the greatest capacity when the largest number in attendanc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (average INTEGER, highest VARCHAR)
Question: What is the highest average number in attendance when the most in attendance is 5,078?
Here is the SQLite quer... | It seems like there is a misunderstanding in the SQL query you've provided. If you want to find the highest average number in attendance when the most in attendance is 5,078, you need to compare the `highest` column (which is a VARCHAR) to the string representation of 5,078.
The correct query should look like this:
`... | 13,990 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (average INTEGER, highest VARCHAR)\n\n Question: What is the highest average number in attendance when the most in a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (route INTEGER, rank VARCHAR, mountain_pass VARCHAR)
Question: What is the route that has a rank higher than 63, and Separation Summit as its mountain pass?... | The provided SQLite query is almost correct but there are some points that need to be addressed. If you want to find the route(s) that meet the specified criteria (higher rank than 63 and a specific mountain pass), you should select the `route` directly, instead of using `SUM(route)`, unless you specifically want a sum... | 13,991 | [
{
"from": "human",
"value": " 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 (route INTEGER, rank VARCHAR, mountain_pass VARCHAR)\n\n Question: What is the route that has a rank higher than 63,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (player VARCHAR, school_club_team_country VARCHAR)
Question: Which player plays for Illinois?
Here is the SQLite query to answer to the question: Which play... | Here is the SQLite query to answer the question: Which player plays for Illinois?:
```
SELECT player FROM table_name_1 WHERE school_club_team_country = "Illinois";
``` | 13,992 | [
{
"from": "human",
"value": " 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 (player VARCHAR, school_club_team_country VARCHAR)\n\n Question: Which player plays for Illinois?\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_41 (player VARCHAR, years_for_rockets VARCHAR)
Question: Which player played for the Rockets in 2002-03?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question: Which player played for the Rockets in 2002-03?:
```
SELECT player FROM table_name_41 WHERE years_for_rockets = "2002-03"
``` | 13,993 | [
{
"from": "human",
"value": " 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 (player VARCHAR, years_for_rockets VARCHAR)\n\n Question: Which player played for the Rockets in 2002-03?\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_77 (height_in_ft VARCHAR, no_s_ VARCHAR)
Question: What is the height in feet of number 10?
Here is the SQLite query to answer to the question: What is the he... | Here is the SQLite query to answer the question: What is the height in feet of number 10?:
```
SELECT height_in_ft FROM table_name_77 WHERE no_s_ = "10"
``` | 13,994 | [
{
"from": "human",
"value": " 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 (height_in_ft VARCHAR, no_s_ VARCHAR)\n\n Question: What is the height in feet of number 10?\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_11 (height_in_ft VARCHAR, school_club_team_country VARCHAR)
Question: What is the height in feet of the Illinois player?
Here is the SQLite query to answer to... | Your SQLite query looks correct for retrieving the height in feet of the Illinois player. Here it is wrapped in code format:
```
SELECT height_in_ft FROM table_name_11 WHERE school_club_team_country = "illinois";
``` | 13,995 | [
{
"from": "human",
"value": " 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 (height_in_ft VARCHAR, school_club_team_country VARCHAR)\n\n Question: What is the height in feet of the Illinois pl... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
Question: Tell me the time/retired for Laps larger than 63 and has a grid of 20
Here is the SQLite query... | Here is the SQLite query to answer the question about the time/retired for laps larger than 63 and has a grid of 20:
```
SELECT time_retired FROM table_name_97 WHERE laps > 63 AND grid = '20'
```
(Note: Depending on how the `grid` values are stored, you may need to use quotes for the grid value as shown.) | 13,996 | [
{
"from": "human",
"value": " 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 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)\n\n Question: Tell me the time/retired for Laps larger than 63 an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (laps INTEGER, driver VARCHAR, grid VARCHAR)
Question: I want the sum of Laps for wolfgang von trips, and a grid larger than 5
Here is the SQLite query to a... | Here is the SQLite query to answer the question regarding the sum of laps for wolfgang von trips, and a grid larger than 5:
```
SELECT SUM(laps) FROM table_name_5 WHERE driver = "wolfgang von trips" AND grid > 5
``` | 13,997 | [
{
"from": "human",
"value": " 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 (laps INTEGER, driver VARCHAR, grid VARCHAR)\n\n Question: I want the sum of Laps for wolfgang von trips, and a grid ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (home_team VARCHAR)
Question: When fitzroy what was the home team score?
Here is the SQLite query to answer to the question: When fitzroy what was the home... | Here is the SQLite query that answers the question "When fitzroy what was the home team score?":
```
SELECT home_team AS score FROM table_name_85 WHERE home_team = "fitzroy";
``` | 13,998 | [
{
"from": "human",
"value": " 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 (home_team VARCHAR)\n\n Question: When fitzroy what was the home team score?\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_10 (date VARCHAR, away_team VARCHAR)
Question: When st kilda played as the Away team which date was that?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question: When St Kilda played as the Away team, which date was that?:
```
SELECT date FROM table_name_10 WHERE away_team = "st kilda";
``` | 13,999 | [
{
"from": "human",
"value": " 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 (date VARCHAR, away_team VARCHAR)\n\n Question: When st kilda played as the Away team which date was that?\n\nHere i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.