text
stringlengths 354
1.06k
|
---|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (date VARCHAR, constructor VARCHAR, fastest_lap VARCHAR)
Question: What is the date that Stirling Moss had his fastest lap in a Maserati?
[/INST]
Here is the SQLite query to answer to the question: What is the date that Stirling Moss had his fastest lap in a Maserati?:
```
SELECT date FROM table_name_28 WHERE constructor = "maserati" AND fastest_lap = "stirling moss"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (player VARCHAR, round VARCHAR, college_junior_club_team__league_ VARCHAR)
Question: Which Player has a Round smaller than 4, and a College/junior/club team (league) of usa u-18?
[/INST]
Here is the SQLite query to answer to the question: Which Player has a Round smaller than 4, and a College/junior/club team (league) of usa u-18?:
```
SELECT player FROM table_name_48 WHERE round < 4 AND college_junior_club_team__league_ = "usa u-18"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (chassis VARCHAR, entrant VARCHAR, points VARCHAR)
Question: What was the chassis when the entrant was Lavazza March, and the points were 0.5?
[/INST]
Here is the SQLite query to answer to the question: What was the chassis when the entrant was Lavazza March, and the points were 0.5?:
```
SELECT chassis FROM table_name_75 WHERE entrant = "lavazza march" AND points = 0.5
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (record VARCHAR, game_site VARCHAR)
Question: What was their record when they played at Riverfront Stadium?
[/INST]
Here is the SQLite query to answer to the question: What was their record when they played at Riverfront Stadium?:
```
SELECT record FROM table_name_25 WHERE game_site = "riverfront stadium"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22824312_1 (class VARCHAR, player VARCHAR)
Question: What class was ren alde?
[/INST]
Here is the SQLite query to answer to the question: What class was ren alde?:
```
SELECT class FROM table_22824312_1 WHERE player = "Ren Alde"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_14594528_6 (losses VARCHAR, games VARCHAR)
Question: How many losses for the coach that coached 19 games?
[/INST]
Here is the SQLite query to answer to the question: How many losses for the coach that coached 19 games?:
```
SELECT losses FROM table_14594528_6 WHERE games = 19
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (role VARCHAR, broadcaster VARCHAR)
Question: What was the role for BBC1?
[/INST]
Here is the SQLite query to answer to the question: What was the role for BBC1?:
```
SELECT role FROM table_name_20 WHERE broadcaster = "bbc1"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (away VARCHAR, result VARCHAR)
Question: Who was the Away team on the result of 1-5 aet?
[/INST]
Here is the SQLite query to answer to the question: Who was the Away team on the result of 1-5 aet?:
```
SELECT away FROM table_name_61 WHERE result = "1-5 aet"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28190363_1 (network VARCHAR, judges VARCHAR)
Question: How many networks are there that include the judges pete goffe-wood andrew atkinson benny masekwameng?
[/INST]
Here is the SQLite query to answer to the question: How many networks are there that include the judges pete goffe-wood andrew atkinson benny masekwameng?:
```
SELECT COUNT(network) FROM table_28190363_1 WHERE judges = "Pete Goffe-Wood Andrew Atkinson Benny Masekwameng"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (pct INTEGER, years VARCHAR, wins VARCHAR)
Question: Which Pct has Years of 1957–1970, and Wins smaller than 78?
[/INST]
Here is the SQLite query to answer to the question: Which Pct has Years of 1957–1970, and Wins smaller than 78?:
```
SELECT SUM(pct) FROM table_name_89 WHERE years = "1957–1970" AND wins < 78
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_23117208_5 (no_in_series VARCHAR, directed_by VARCHAR)
Question: For the episode directed by Matthew Penn, what is the total number in the series?
[/INST]
Here is the SQLite query to answer to the question: For the episode directed by Matthew Penn, what is the total number in the series?:
```
SELECT no_in_series FROM table_23117208_5 WHERE directed_by = "Matthew Penn"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE TRACK (Milliseconds INTEGER)
Question: What are the durations of the longest and the shortest tracks in milliseconds?
[/INST]
Here is the SQLite query to answer to the question: What are the durations of the longest and the shortest tracks in milliseconds?:
```
SELECT MAX(Milliseconds), MIN(Milliseconds) FROM TRACK
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_14903491_1 (year VARCHAR, womens_doubles VARCHAR)
Question: Name the year for victoria hristova neli nedialkova
[/INST]
Here is the SQLite query to answer to the question: Name the year for victoria hristova neli nedialkova:
```
SELECT year FROM table_14903491_1 WHERE womens_doubles = "Victoria Hristova Neli Nedialkova"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_24501530_1 (candidate VARCHAR, hometown VARCHAR)
Question: What is the name of the player from Maylands, Western Australia?
[/INST]
Here is the SQLite query to answer to the question: What is the name of the player from Maylands, Western Australia?:
```
SELECT candidate FROM table_24501530_1 WHERE hometown = "Maylands, Western Australia"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (unit VARCHAR, location VARCHAR)
Question: What unit is in Mongolia?
[/INST]
Here is the SQLite query to answer to the question: What unit is in Mongolia?:
```
SELECT unit FROM table_name_29 WHERE location = "mongolia"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (away_team VARCHAR, venue VARCHAR)
Question: Which Away team has a Venue of arden street oval?
[/INST]
Here is the SQLite query to answer to the question: Which Away team has a Venue of arden street oval?:
```
SELECT away_team FROM table_name_32 WHERE venue = "arden street oval"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (to_par VARCHAR, country VARCHAR)
Question: How many to par in England?
[/INST]
Here is the SQLite query to answer to the question: How many to par in England?:
```
SELECT to_par FROM table_name_93 WHERE country = "england"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2570269_2 (cast VARCHAR, episode__number VARCHAR)
Question: For episode number 2-03, what are the names of the cast?
[/INST]
Here is the SQLite query to answer to the question: For episode number 2-03, what are the names of the cast?:
```
SELECT cast FROM table_2570269_2 WHERE episode__number = "2-03"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (total INTEGER, bronze VARCHAR, gold VARCHAR)
Question: What is the average total for teams with over 3 bronzes and over 8 golds?
[/INST]
Here is the SQLite query to answer to the question: What is the average total for teams with over 3 bronzes and over 8 golds?:
```
SELECT AVG(total) FROM table_name_33 WHERE bronze > 3 AND gold > 8
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_14984078_1 (week VARCHAR, date VARCHAR)
Question: What week of the season did the date December 2, 1962 fall on?
[/INST]
Here is the SQLite query to answer to the question: What week of the season did the date December 2, 1962 fall on?:
```
SELECT week FROM table_14984078_1 WHERE date = "December 2, 1962"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (sydney VARCHAR, gold_coast VARCHAR, melbourne VARCHAR, perth VARCHAR, adelaide VARCHAR)
Question: Name the sydney with perth of no, adelaide of no with melbourne of yes and gold coast of yes
[/INST]
Here is the SQLite query to answer to the question: Name the sydney with perth of no, adelaide of no with melbourne of yes and gold coast of yes:
```
SELECT sydney FROM table_name_53 WHERE perth = "no" AND adelaide = "no" AND melbourne = "yes" AND gold_coast = "yes"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28051859_3 (tenure VARCHAR, school VARCHAR)
Question: When were the members tenured in the Field school?
[/INST]
Here is the SQLite query to answer to the question: When were the members tenured in the Field school?:
```
SELECT tenure FROM table_28051859_3 WHERE school = "Field"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (trainer VARCHAR, year VARCHAR, time VARCHAR)
Question: Which trainer had a time of 1:10.09 with a year less than 2009?
[/INST]
Here is the SQLite query to answer to the question: Which trainer had a time of 1:10.09 with a year less than 2009?:
```
SELECT trainer FROM table_name_34 WHERE year < 2009 AND time = "1:10.09"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (bronze VARCHAR, rank VARCHAR, silver VARCHAR, nation VARCHAR)
Question: How much Bronze has a Silver larger than 2, and a Nation of mixed team, and a Rank larger than 4?
[/INST]
Here is the SQLite query to answer to the question: How much Bronze has a Silver larger than 2, and a Nation of mixed team, and a Rank larger than 4?:
```
SELECT COUNT(bronze) FROM table_name_70 WHERE silver > 2 AND nation = "mixed team" AND rank > 4
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (score VARCHAR, to_par VARCHAR, player VARCHAR)
Question: Which Score has a To par of –3, and a Player of santiago luna?
[/INST]
Here is the SQLite query to answer to the question: Which Score has a To par of –3, and a Player of santiago luna?:
```
SELECT score FROM table_name_69 WHERE to_par = "–3" AND player = "santiago luna"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_26200568_16 (points_for INTEGER, club VARCHAR)
Question: How many points did the Toronto Downtown Dingos score?
[/INST]
Here is the SQLite query to answer to the question: How many points did the Toronto Downtown Dingos score?:
```
SELECT MIN(points_for) FROM table_26200568_16 WHERE club = "Toronto Downtown Dingos"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_27734286_1 (record VARCHAR, high_points VARCHAR)
Question: What record has c. j. miles (20) in the high points?
[/INST]
Here is the SQLite query to answer to the question: What record has c. j. miles (20) in the high points?:
```
SELECT record FROM table_27734286_1 WHERE high_points = "C. J. Miles (20)"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_11734041_16 (player VARCHAR, years_for_rockets VARCHAR)
Question: what is the total amount of players for the rockets in 1998 only?
[/INST]
Here is the SQLite query to answer to the question: what is the total amount of players for the rockets in 1998 only?:
```
SELECT COUNT(player) FROM table_11734041_16 WHERE years_for_rockets = "1998"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (population__2011_ INTEGER, land_area__km²_ VARCHAR, population_density__per_km²_ VARCHAR)
Question: How much Population (2011) has a Land area (km²) larger than 15.69, and a Population density (per km²) larger than 57.3?
[/INST]
Here is the SQLite query to answer to the question: How much Population (2011) has a Land area (km²) larger than 15.69, and a Population density (per km²) larger than 57.3?:
```
SELECT SUM(population__2011_) FROM table_name_28 WHERE land_area__km²_ > 15.69 AND population_density__per_km²_ > 57.3
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_14 (party VARCHAR, took_office VARCHAR)
Question: What is Party, when Took Office is 1998?
[/INST]
Here is the SQLite query to answer to the question: What is Party, when Took Office is 1998?:
```
SELECT party FROM table_name_14 WHERE took_office = "1998"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (average INTEGER, state VARCHAR, evening_gown VARCHAR)
Question: What is the highest average of the contestant from Texas with an evening gown larger than 8.875?
[/INST]
Here is the SQLite query to answer to the question: What is the highest average of the contestant from Texas with an evening gown larger than 8.875?:
```
SELECT MAX(average) FROM table_name_57 WHERE state = "texas" AND evening_gown > 8.875
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE scientists (Id VARCHAR)
Question: Find the total number of scientists.
[/INST]
Here is the SQLite query to answer to the question: Find the total number of scientists.:
```
SELECT COUNT(*) FROM scientists
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_3005450_1 (metlink_code VARCHAR, opened VARCHAR)
Question: what is the metlink code that opened in 1908?
[/INST]
Here is the SQLite query to answer to the question: what is the metlink code that opened in 1908?:
```
SELECT metlink_code FROM table_3005450_1 WHERE opened = "1908"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (lost INTEGER, points VARCHAR, drawn VARCHAR)
Question: How many losses have points less than 3, with a drawn greater than 0?
[/INST]
Here is the SQLite query to answer to the question: How many losses have points less than 3, with a drawn greater than 0?:
```
SELECT SUM(lost) FROM table_name_20 WHERE points < 3 AND drawn > 0
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (objectnumber VARCHAR, location VARCHAR, wheels VARCHAR)
Question: What is the Object Number for the item with wheels 4-4-0 and a location of Barrow Hill?
[/INST]
Here is the SQLite query to answer to the question: What is the Object Number for the item with wheels 4-4-0 and a location of Barrow Hill?:
```
SELECT objectnumber FROM table_name_95 WHERE location = "barrow hill" AND wheels = "4-4-0"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (venue VARCHAR, competition VARCHAR, position VARCHAR)
Question: Which Venue has a Competition of european championships, and a Position of 7th?
[/INST]
Here is the SQLite query to answer to the question: Which Venue has a Competition of european championships, and a Position of 7th?:
```
SELECT venue FROM table_name_22 WHERE competition = "european championships" AND position = "7th"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28715942_6 (original_artist VARCHAR, vocal_percussionist VARCHAR)
Question: Who is the artist where the vocal percussionist is Benjamin Holder?
[/INST]
Here is the SQLite query to answer to the question: Who is the artist where the vocal percussionist is Benjamin Holder?:
```
SELECT original_artist FROM table_28715942_6 WHERE vocal_percussionist = "Benjamin Holder"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_27877656_7 (opponent VARCHAR, edition VARCHAR, opponent_team VARCHAR)
Question: For armenia as opponent team and edition is 2009 europe/africa group iiib mention all the opponent
[/INST]
Here is the SQLite query to answer to the question: For armenia as opponent team and edition is 2009 europe/africa group iiib mention all the opponent:
```
SELECT opponent FROM table_27877656_7 WHERE edition = "2009 Europe/Africa Group IIIB" AND opponent_team = "Armenia"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2668336_17 (district VARCHAR, incumbent VARCHAR)
Question: In what district is the incumbent Charles Fisher?
[/INST]
Here is the SQLite query to answer to the question: In what district is the incumbent Charles Fisher?:
```
SELECT district FROM table_2668336_17 WHERE incumbent = "Charles Fisher"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (avg VARCHAR, player VARCHAR)
Question: What is Domenik Hixon's average rush?
[/INST]
Here is the SQLite query to answer to the question: What is Domenik Hixon's average rush?:
```
SELECT avg FROM table_name_76 WHERE player = "domenik hixon"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (opponent VARCHAR, date VARCHAR, type VARCHAR, round VARCHAR)
Question: Which Opponent has a Type of ud and a Round of 10 on 2008-06-11?
[/INST]
Here is the SQLite query to answer to the question: Which Opponent has a Type of ud and a Round of 10 on 2008-06-11?:
```
SELECT opponent FROM table_name_65 WHERE type = "ud" AND round = "10" AND date = "2008-06-11"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (competition VARCHAR, venue VARCHAR)
Question: Which competition was held in Arles, France?
[/INST]
Here is the SQLite query to answer to the question: Which competition was held in Arles, France?:
```
SELECT competition FROM table_name_87 WHERE venue = "arles, france"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (reign VARCHAR, date_of_birth VARCHAR)
Question: What was the Reign of the person whose Date of Birth was 22 March 1459?
[/INST]
Here is the SQLite query to answer to the question: What was the Reign of the person whose Date of Birth was 22 March 1459?:
```
SELECT reign FROM table_name_25 WHERE date_of_birth = "22 march 1459"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (team VARCHAR, year_entered_league VARCHAR, location VARCHAR)
Question: Which team had a year entering the league under 2009, located in Bath?
[/INST]
Here is the SQLite query to answer to the question: Which team had a year entering the league under 2009, located in Bath?:
```
SELECT team FROM table_name_21 WHERE year_entered_league < 2009 AND location = "bath"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (date VARCHAR, result VARCHAR)
Question: What date had a result of 8-0?
[/INST]
Here is the SQLite query to answer to the question: What date had a result of 8-0?:
```
SELECT date FROM table_name_40 WHERE result = "8-0"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (license_plate_code VARCHAR, area__sqmi_ VARCHAR)
Question: What is the license plate code for the country with an area of 784?
[/INST]
Here is the SQLite query to answer to the question: What is the license plate code for the country with an area of 784?:
```
SELECT license_plate_code FROM table_name_52 WHERE area__sqmi_ = 784
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (score VARCHAR, date VARCHAR)
Question: What is the Score for the Date of April 23?
[/INST]
Here is the SQLite query to answer to the question: What is the Score for the Date of April 23?:
```
SELECT score FROM table_name_69 WHERE date = "april 23"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (catalogue VARCHAR, song_title VARCHAR)
Question: Name the catalogue with song title of love me tonight
[/INST]
Here is the SQLite query to answer to the question: Name the catalogue with song title of love me tonight:
```
SELECT catalogue FROM table_name_33 WHERE song_title = "love me tonight"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (player VARCHAR, position VARCHAR, caps VARCHAR)
Question: What player is a lock with 1 cap?
[/INST]
Here is the SQLite query to answer to the question: What player is a lock with 1 cap?:
```
SELECT player FROM table_name_16 WHERE position = "lock" AND caps = 1
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (record VARCHAR, date VARCHAR)
Question: What is the record of the game on 5 February 2008?
[/INST]
Here is the SQLite query to answer to the question: What is the record of the game on 5 February 2008?:
```
SELECT record FROM table_name_87 WHERE date = "5 february 2008"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (silver INTEGER, bronze VARCHAR, gold VARCHAR)
Question: How many silver medals did the team that had 5 bronze and less than 16 gold have?
[/INST]
Here is the SQLite query to answer to the question: How many silver medals did the team that had 5 bronze and less than 16 gold have?:
```
SELECT SUM(silver) FROM table_name_93 WHERE bronze > 5 AND gold < 16
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_14649522_1 (nfl_team VARCHAR, college VARCHAR)
Question: Which team picked from South Carolina college?
[/INST]
Here is the SQLite query to answer to the question: Which team picked from South Carolina college?:
```
SELECT nfl_team FROM table_14649522_1 WHERE college = "South Carolina"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (rank INTEGER, sport VARCHAR, city VARCHAR)
Question: What is the highest rank for the boys swimming team in Albuquerque?
[/INST]
Here is the SQLite query to answer to the question: What is the highest rank for the boys swimming team in Albuquerque?:
```
SELECT MAX(rank) FROM table_name_72 WHERE sport = "boys swimming" AND city = "albuquerque"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_11220799_2 (episode_titles VARCHAR, first_air_date VARCHAR)
Question: How many episodes had their first air date on March 6, 2008?
[/INST]
Here is the SQLite query to answer to the question: How many episodes had their first air date on March 6, 2008?:
```
SELECT COUNT(episode_titles) FROM table_11220799_2 WHERE first_air_date = "March 6, 2008"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (date VARCHAR, round VARCHAR)
Question: What is the date of the 2nd round 2nd leg?
[/INST]
Here is the SQLite query to answer to the question: What is the date of the 2nd round 2nd leg?:
```
SELECT date FROM table_name_63 WHERE round = "2nd round 2nd leg"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (games INTEGER, name VARCHAR, rank VARCHAR)
Question: How many Games has a Name of stéphane dumas and a Rank larger than 5?
[/INST]
Here is the SQLite query to answer to the question: How many Games has a Name of stéphane dumas and a Rank larger than 5?:
```
SELECT AVG(games) FROM table_name_3 WHERE name = "stéphane dumas" AND rank > 5
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (grid VARCHAR, driver VARCHAR, laps VARCHAR)
Question: What was the grid for anthony davidson when the laps were less than 8?
[/INST]
Here is the SQLite query to answer to the question: What was the grid for anthony davidson when the laps were less than 8?:
```
SELECT COUNT(grid) FROM table_name_86 WHERE driver = "anthony davidson" AND laps < 8
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (player VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)
Question: What player placed t6 for the United States with a score of 67-69=136?
[/INST]
Here is the SQLite query to answer to the question: What player placed t6 for the United States with a score of 67-69=136?:
```
SELECT player FROM table_name_71 WHERE country = "united states" AND place = "t6" AND score = 67 - 69 = 136
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (total_points VARCHAR, points_average VARCHAR)
Question: What is the points total for the team with points average more than 34, 1984 score more than 37 and N/A in 1982?
[/INST]
Here is the SQLite query to answer to the question: What is the points total for the team with points average more than 34, 1984 score more than 37 and N/A in 1982?:
```
SELECT COUNT(total_points) FROM table_name_99 WHERE 1982 = "n/a" AND points_average > 34 AND 1984 > 37
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (constructor VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
Question: When grid is less than 7, laps are greater than 17, and time/retired is + 1:35.6, who is the constructor?
[/INST]
Here is the SQLite query to answer to the question: When grid is less than 7, laps are greater than 17, and time/retired is + 1:35.6, who is the constructor?:
```
SELECT constructor FROM table_name_84 WHERE laps > 17 AND grid < 7 AND time_retired = "+ 1:35.6"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22815568_7 (population VARCHAR, county VARCHAR)
Question: What is the population of the country of McDowell?
[/INST]
Here is the SQLite query to answer to the question: What is the population of the country of McDowell?:
```
SELECT population FROM table_22815568_7 WHERE county = "McDowell"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_15869204_6 (score VARCHAR, game VARCHAR)
Question: WHAT WAS THE SCORE FOR GAME 31?
[/INST]
Here is the SQLite query to answer to the question: WHAT WAS THE SCORE FOR GAME 31?:
```
SELECT score FROM table_15869204_6 WHERE game = 31
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16278349_1 (un_region VARCHAR, population VARCHAR)
Question: Name the un region for 3314000 population
[/INST]
Here is the SQLite query to answer to the question: Name the un region for 3314000 population:
```
SELECT un_region FROM table_16278349_1 WHERE population = 3314000
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (result VARCHAR, attendance VARCHAR)
Question: What was the result of the game played in front of 65,473?
[/INST]
Here is the SQLite query to answer to the question: What was the result of the game played in front of 65,473?:
```
SELECT result FROM table_name_19 WHERE attendance = "65,473"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (stage__winner_ VARCHAR, points_classification VARCHAR, general_classification VARCHAR, team_classification VARCHAR)
Question: Which Stage (Winner) has a Vladimir Karpets General classification and a Team classification of relax-gam, and a Points classification of Denis Menchov?
[/INST]
Here is the SQLite query to answer to the question: Which Stage (Winner) has a Vladimir Karpets General classification and a Team classification of relax-gam, and a Points classification of Denis Menchov?:
```
SELECT stage__winner_ FROM table_name_17 WHERE general_classification = "vladimir karpets" AND team_classification = "relax-gam" AND points_classification = "denis menchov"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (team_2 VARCHAR, team_1 VARCHAR)
Question: Tell me the team 2 for team 1 being la nuova piovese (veneto a)
[/INST]
Here is the SQLite query to answer to the question: Tell me the team 2 for team 1 being la nuova piovese (veneto a):
```
SELECT team_2 FROM table_name_46 WHERE team_1 = "la nuova piovese (veneto a)"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (competition VARCHAR, event VARCHAR, time VARCHAR)
Question: What Competition has an Event of 4x100 m relay and has the Time of 38.89?
[/INST]
Here is the SQLite query to answer to the question: What Competition has an Event of 4x100 m relay and has the Time of 38.89?:
```
SELECT competition FROM table_name_77 WHERE event = "4x100 m relay" AND time = "38.89"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (assists VARCHAR, opponent VARCHAR, team VARCHAR, competition VARCHAR, total_gs VARCHAR)
Question: How many assists were in the k-league competition, which has more than 20 total Gs, the pohang steelers team, and chunnam dragons as the opponent?
[/INST]
Here is the SQLite query to answer to the question: How many assists were in the k-league competition, which has more than 20 total Gs, the pohang steelers team, and chunnam dragons as the opponent?:
```
SELECT assists FROM table_name_90 WHERE competition = "k-league" AND total_gs > 20 AND team = "pohang steelers" AND opponent = "chunnam dragons"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (bronze INTEGER, nation VARCHAR, silver VARCHAR)
Question: What is the highest number of bronze for the United States with more than 1 silver?
[/INST]
Here is the SQLite query to answer to the question: What is the highest number of bronze for the United States with more than 1 silver?:
```
SELECT MAX(bronze) FROM table_name_13 WHERE nation = "united states" AND silver > 1
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (engine VARCHAR, entrant VARCHAR, chassis VARCHAR)
Question: Which engine did Marlboro Team Alfa Romeo used with a chassis of alfa romeo 179?
[/INST]
Here is the SQLite query to answer to the question: Which engine did Marlboro Team Alfa Romeo used with a chassis of alfa romeo 179?:
```
SELECT engine FROM table_name_99 WHERE entrant = "marlboro team alfa romeo" AND chassis = "alfa romeo 179"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_26533354_8 (position VARCHAR, player VARCHAR)
Question: Name the position for stanley havili
[/INST]
Here is the SQLite query to answer to the question: Name the position for stanley havili:
```
SELECT position FROM table_26533354_8 WHERE player = "Stanley Havili"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1507806_1 (year VARCHAR, winning_score VARCHAR)
Question: HOW MANY YEARS WAS IT FOR THE SCORE (76-73-79-72=300)?
[/INST]
Here is the SQLite query to answer to the question: HOW MANY YEARS WAS IT FOR THE SCORE (76-73-79-72=300)?:
```
SELECT COUNT(year) FROM table_1507806_1 WHERE winning_score = (76 - 73 - 79 - 72 = 300)
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (date VARCHAR, attendance VARCHAR)
Question: On what Date was the Attendance 73,405?
[/INST]
Here is the SQLite query to answer to the question: On what Date was the Attendance 73,405?:
```
SELECT date FROM table_name_32 WHERE attendance = "73,405"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE Person (job VARCHAR, age INTEGER)
Question: What is average age for different job title?
[/INST]
Here is the SQLite query to answer to the question: What is average age for different job title?:
```
SELECT AVG(age), job FROM Person GROUP BY job
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_23286223_5 (date VARCHAR, high_assists VARCHAR)
Question: When was the game in which Deron Williams (13) did the high assists played?
[/INST]
Here is the SQLite query to answer to the question: When was the game in which Deron Williams (13) did the high assists played?:
```
SELECT date FROM table_23286223_5 WHERE high_assists = "Deron Williams (13)"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (visitor VARCHAR, score VARCHAR)
Question: Who was the visiting team at the Cavaliers game that had a score of 121–85?
[/INST]
Here is the SQLite query to answer to the question: Who was the visiting team at the Cavaliers game that had a score of 121–85?:
```
SELECT visitor FROM table_name_29 WHERE score = "121–85"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (power_rpm VARCHAR, model_engine VARCHAR)
Question: Name the power for 1.8 duratorq
[/INST]
Here is the SQLite query to answer to the question: Name the power for 1.8 duratorq:
```
SELECT power_rpm FROM table_name_91 WHERE model_engine = "1.8 duratorq"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (game_site VARCHAR, opponent VARCHAR)
Question: Where does CF Pachuca play?
[/INST]
Here is the SQLite query to answer to the question: Where does CF Pachuca play?:
```
SELECT game_site FROM table_name_64 WHERE opponent = "cf pachuca"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (attendance INTEGER, date VARCHAR)
Question: What was the average attendance on October 30, 1938?
[/INST]
Here is the SQLite query to answer to the question: What was the average attendance on October 30, 1938?:
```
SELECT AVG(attendance) FROM table_name_33 WHERE date = "october 30, 1938"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (score VARCHAR, tournament VARCHAR, opponent_in_the_final VARCHAR)
Question: What is the Score of the Rabat Tournament with Opponent in the final of Frederico Gil?
[/INST]
Here is the SQLite query to answer to the question: What is the Score of the Rabat Tournament with Opponent in the final of Frederico Gil?:
```
SELECT score FROM table_name_56 WHERE tournament = "rabat" AND opponent_in_the_final = "frederico gil"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (declination___j2000__ VARCHAR, right_ascension___j2000__ VARCHAR, constellation VARCHAR, apparent_magnitude VARCHAR)
Question: Tell me the declination for consellaion of ophiuchus and apparent magnitude less than 8.6 with right ascension of 16h47m14.5s
[/INST]
Here is the SQLite query to answer to the question: Tell me the declination for consellaion of ophiuchus and apparent magnitude less than 8.6 with right ascension of 16h47m14.5s:
```
SELECT declination___j2000__ FROM table_name_55 WHERE constellation = "ophiuchus" AND apparent_magnitude < 8.6 AND right_ascension___j2000__ = "16h47m14.5s"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22815568_2 (county VARCHAR, unemployment_rate VARCHAR)
Question: Which county had a 3.6% unemployment rate?
[/INST]
Here is the SQLite query to answer to the question: Which county had a 3.6% unemployment rate?:
```
SELECT county FROM table_22815568_2 WHERE unemployment_rate = "3.6%"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20124413_3 (original_title VARCHAR, production_code VARCHAR)
Question: What was the original title of 3.19?
[/INST]
Here is the SQLite query to answer to the question: What was the original title of 3.19?:
```
SELECT original_title FROM table_20124413_3 WHERE production_code = "3.19"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (wins INTEGER, byes INTEGER)
Question: Which Wins has a Byes larger than 0?
[/INST]
Here is the SQLite query to answer to the question: Which Wins has a Byes larger than 0?:
```
SELECT MAX(wins) FROM table_name_65 WHERE byes > 0
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_207795_1 (type_of_work VARCHAR, published_in_english VARCHAR, published_in_russian VARCHAR)
Question: when it published in english is n/a and published in russian is 1986, what is the type of work?
[/INST]
Here is the SQLite query to answer to the question: when it published in english is n/a and published in russian is 1986, what is the type of work?:
```
SELECT type_of_work FROM table_207795_1 WHERE published_in_english = "N/A" AND published_in_russian = "1986"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (year INTEGER, rider VARCHAR, final_position___giro VARCHAR, final_position___tour VARCHAR, final_position___vuelta VARCHAR)
Question: What is the earliest year of Valdimir Poelnikov, who has a final position-tour bigger than 72, a final position-vuelta less than 77, and a final position-giro less than 57?
[/INST]
Here is the SQLite query to answer to the question: What is the earliest year of Valdimir Poelnikov, who has a final position-tour bigger than 72, a final position-vuelta less than 77, and a final position-giro less than 57?:
```
SELECT MIN(year) FROM table_name_67 WHERE final_position___tour > 72 AND final_position___vuelta < 77 AND final_position___giro < 57 AND rider = "valdimir poelnikov"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_13663434_1 (na__350_ VARCHAR, title_and_source VARCHAR)
Question: what's the na -350- with title and source being paper wars: cannon fodder
[/INST]
Here is the SQLite query to answer to the question: what's the na -350- with title and source being paper wars: cannon fodder:
```
SELECT na__350_ FROM table_13663434_1 WHERE title_and_source = "Paper Wars: Cannon Fodder"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_26355116_1 (enrollment INTEGER)
Question: What is the maximum enrollment of the schools?
[/INST]
Here is the SQLite query to answer to the question: What is the maximum enrollment of the schools?:
```
SELECT MAX(enrollment) FROM table_26355116_1
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (bronze INTEGER, rank VARCHAR, silver VARCHAR)
Question: Which Bronze is the lowest one that has a Rank of 3, and a Silver smaller than 2?
[/INST]
Here is the SQLite query to answer to the question: Which Bronze is the lowest one that has a Rank of 3, and a Silver smaller than 2?:
```
SELECT MIN(bronze) FROM table_name_7 WHERE rank = "3" AND silver < 2
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_14 (digital_psip VARCHAR, broadcast_channel VARCHAR, call_sign VARCHAR)
Question: What is the Digital PSIP for channels over 15 with callsign CFTU-DT?
[/INST]
Here is the SQLite query to answer to the question: What is the Digital PSIP for channels over 15 with callsign CFTU-DT?:
```
SELECT digital_psip FROM table_name_14 WHERE broadcast_channel > 15 AND call_sign = "cftu-dt"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (long INTEGER, car VARCHAR)
Question: Who has the highest Long with 59 Car?
[/INST]
Here is the SQLite query to answer to the question: Who has the highest Long with 59 Car?:
```
SELECT MAX(long) FROM table_name_91 WHERE car = 59
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (date VARCHAR, tournament VARCHAR, opponent VARCHAR)
Question: What date was the Izmir Cup in which İlhan played against Somdev Devvarman?
[/INST]
Here is the SQLite query to answer to the question: What date was the Izmir Cup in which İlhan played against Somdev Devvarman?:
```
SELECT date FROM table_name_35 WHERE tournament = "izmir cup" AND opponent = "somdev devvarman"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_17115950_2 (replaced_by VARCHAR, team VARCHAR)
Question: Who replaced the manager on Team Cfr Cluj?
[/INST]
Here is the SQLite query to answer to the question: Who replaced the manager on Team Cfr Cluj?:
```
SELECT replaced_by FROM table_17115950_2 WHERE team = "CFR Cluj"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR)
Question: Show the names of students who have at least 2 likes.
[/INST]
Here is the SQLite query to answer to the question: Show the names of students who have at least 2 likes.:
```
SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING COUNT(*) >= 2
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (director VARCHAR, primary_language_s_ VARCHAR, original_title VARCHAR)
Question: What is Director, when Primary Language(s) is "Azerbaijani", and when Original Title is "Buta"?
[/INST]
Here is the SQLite query to answer to the question: What is Director, when Primary Language(s) is "Azerbaijani", and when Original Title is "Buta"?:
```
SELECT director FROM table_name_90 WHERE primary_language_s_ = "azerbaijani" AND original_title = "buta"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (_number_of_bids INTEGER, conference VARCHAR)
Question: What is the lowest number of bids in the Missouri Valley conference?
[/INST]
Here is the SQLite query to answer to the question: What is the lowest number of bids in the Missouri Valley conference?:
```
SELECT MIN(_number_of_bids) FROM table_name_47 WHERE conference = "missouri valley"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_17325580_10 (record VARCHAR, team VARCHAR)
Question: What was the record when the team played Boston?
[/INST]
Here is the SQLite query to answer to the question: What was the record when the team played Boston?:
```
SELECT record FROM table_17325580_10 WHERE team = "Boston"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (player VARCHAR, score VARCHAR)
Question: Name the player with score of 73-69-74-71=287
[/INST]
Here is the SQLite query to answer to the question: Name the player with score of 73-69-74-71=287:
```
SELECT player FROM table_name_12 WHERE score = 73 - 69 - 74 - 71 = 287
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE products (product_name VARCHAR, product_price VARCHAR, product_id VARCHAR); CREATE TABLE regular_order_products (product_id VARCHAR)
Question: Find the name and price of the product that has been ordered the greatest number of times.
[/INST]
Here is the SQLite query to answer to the question: Find the name and price of the product that has been ordered the greatest number of times.:
```
SELECT t1.product_name, t1.product_price FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id GROUP BY t2.product_id ORDER BY COUNT(*) DESC LIMIT 1
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2417345_3 (vacator VARCHAR, date_of_successors_formal_installation VARCHAR)
Question: Who was the vacator when the successor was formally installed on February 1, 1871?
[/INST]
Here is the SQLite query to answer to the question: Who was the vacator when the successor was formally installed on February 1, 1871?:
```
SELECT vacator FROM table_2417345_3 WHERE date_of_successors_formal_installation = "February 1, 1871"
``` |