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_10 (market_value___usd_million_ VARCHAR, industry VARCHAR)
Question: What is the market value of the automotive industry?
[/INST]
Here is the SQLite query to answer to the question: What is the market value of the automotive industry?:
```
SELECT COUNT(market_value___usd_million_) FROM table_name_10 WHERE industry = "automotive"
``` |
[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 (rank VARCHAR, class VARCHAR, points VARCHAR, chassis VARCHAR)
Question: What is the rank with more than 123 points, an audi r8 chassis, and a lmp900 class?
[/INST]
Here is the SQLite query to answer to the question: What is the rank with more than 123 points, an audi r8 chassis, and a lmp900 class?:
```
SELECT rank FROM table_name_75 WHERE points > 123 AND chassis = "audi r8" AND class = "lmp900"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE candidate (poll_source VARCHAR)
Question: Which poll resource provided the most number of candidate information?
[/INST]
Here is the SQLite query to answer to the question: Which poll resource provided the most number of candidate information?:
```
SELECT poll_source FROM candidate GROUP BY poll_source 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_name_26 (accompaniment VARCHAR, title VARCHAR)
Question: what is the accompaniment when the title is stormy seas blues?
[/INST]
Here is the SQLite query to answer to the question: what is the accompaniment when the title is stormy seas blues?:
```
SELECT accompaniment FROM table_name_26 WHERE title = "stormy seas blues"
``` |
[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 (team VARCHAR, race_title VARCHAR)
Question: What was the team that held the race title of Mallala?
[/INST]
Here is the SQLite query to answer to the question: What was the team that held the race title of Mallala?:
```
SELECT team FROM table_name_47 WHERE race_title = "mallala"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_14752049_1 (rank INTEGER, country VARCHAR)
Question: What rank is associated with Germany?
[/INST]
Here is the SQLite query to answer to the question: What rank is associated with Germany?:
```
SELECT MAX(rank) FROM table_14752049_1 WHERE country = "Germany"
``` |
[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 (circuit VARCHAR, winning_driver VARCHAR)
Question: What was the circuit when Jochen Rindt won?
[/INST]
Here is the SQLite query to answer to the question: What was the circuit when Jochen Rindt won?:
```
SELECT circuit FROM table_name_28 WHERE winning_driver = "jochen rindt"
``` |
[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 (match VARCHAR, competition VARCHAR, location VARCHAR)
Question: Which Match played in a Location of San Francisco has a Competition of Semifinal?
[/INST]
Here is the SQLite query to answer to the question: Which Match played in a Location of San Francisco has a Competition of Semifinal?:
```
SELECT match FROM table_name_19 WHERE competition = "semifinal" AND location = "san francisco"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_26847237_3 (home_team VARCHAR, opposition VARCHAR)
Question: what is the home team when the opposition is east coast?
[/INST]
Here is the SQLite query to answer to the question: what is the home team when the opposition is east coast?:
```
SELECT home_team FROM table_26847237_3 WHERE opposition = "East Coast"
``` |
[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 (lane INTEGER, time VARCHAR)
Question: What lane has a time of 1:57.71?
[/INST]
Here is the SQLite query to answer to the question: What lane has a time of 1:57.71?:
```
SELECT SUM(lane) FROM table_name_95 WHERE time = "1:57.71"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (pregame_host VARCHAR, network VARCHAR)
Question: What is the name of the pregame host when Bold was the network?
[/INST]
Here is the SQLite query to answer to the question: What is the name of the pregame host when Bold was the network?:
```
SELECT pregame_host FROM table_name_98 WHERE network = "bold"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE campuses (campus VARCHAR, id VARCHAR, county VARCHAR); CREATE TABLE faculty (campus VARCHAR, year VARCHAR)
Question: Find the names of the campus which has more faculties in 2002 than every campus in Orange county.
[/INST]
Here is the SQLite query to answer to the question: Find the names of the campus which has more faculties in 2002 than every campus in Orange county.:
```
SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT MAX(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = "Orange")
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2668387_18 (incumbent VARCHAR, district VARCHAR)
Question: Name the incumbent for virginia 4
[/INST]
Here is the SQLite query to answer to the question: Name the incumbent for virginia 4:
```
SELECT incumbent FROM table_2668387_18 WHERE district = "Virginia 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_56 (grid INTEGER, constructor VARCHAR, laps VARCHAR)
Question: What is the high grid for osella - alfa romeo, and a Laps larger than 61?
[/INST]
Here is the SQLite query to answer to the question: What is the high grid for osella - alfa romeo, and a Laps larger than 61?:
```
SELECT MAX(grid) FROM table_name_56 WHERE constructor = "osella - alfa romeo" AND laps > 61
``` |
[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 (goals VARCHAR, name VARCHAR, debut_year VARCHAR)
Question: How many goals occurred with Diego Milito in a debut year later than 2008?
[/INST]
Here is the SQLite query to answer to the question: How many goals occurred with Diego Milito in a debut year later than 2008?:
```
SELECT COUNT(goals) FROM table_name_40 WHERE name = "diego milito" AND debut_year > 2008
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1134091_4 (vacator VARCHAR, date_successor_seated VARCHAR)
Question: Who was the vacator when the date successor seated was august 21, 1973?
[/INST]
Here is the SQLite query to answer to the question: Who was the vacator when the date successor seated was august 21, 1973?:
```
SELECT vacator FROM table_1134091_4 WHERE date_successor_seated = "August 21, 1973"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (erp_w INTEGER, call_sign VARCHAR)
Question: What is the average ERP W when the call sign is whre?
[/INST]
Here is the SQLite query to answer to the question: What is the average ERP W when the call sign is whre?:
```
SELECT AVG(erp_w) FROM table_name_15 WHERE call_sign = "whre"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_14286908_1 (school VARCHAR, year_of_last_win VARCHAR)
Question: What the name of the school where the last win in 2007-08?
[/INST]
Here is the SQLite query to answer to the question: What the name of the school where the last win in 2007-08?:
```
SELECT school FROM table_14286908_1 WHERE year_of_last_win = "2007-08"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28846752_4 (average VARCHAR, highest_score VARCHAR)
Question: What is the average when the highest score is 151?
[/INST]
Here is the SQLite query to answer to the question: What is the average when the highest score is 151?:
```
SELECT average FROM table_28846752_4 WHERE highest_score = "151"
``` |
[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 (uni_number INTEGER, surname VARCHAR)
Question: What is the uniform number of the player whose last name is Wiltshire?
[/INST]
Here is the SQLite query to answer to the question: What is the uniform number of the player whose last name is Wiltshire?:
```
SELECT MIN(uni_number) FROM table_name_25 WHERE surname = "wiltshire"
``` |
[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 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)
Question: What is the attendance in the bye week after week 5?
[/INST]
Here is the SQLite query to answer to the question: What is the attendance in the bye week after week 5?:
```
SELECT attendance FROM table_name_40 WHERE week > 5 AND opponent = "bye"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (first_elected INTEGER, results VARCHAR, incumbent VARCHAR)
Question: What is re-elected Incumbent Jerry Costello's First elected date?
[/INST]
Here is the SQLite query to answer to the question: What is re-elected Incumbent Jerry Costello's First elected date?:
```
SELECT MIN(first_elected) FROM table_name_36 WHERE results = "re-elected" AND incumbent = "jerry costello"
``` |
[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 (laps VARCHAR, manufacturer VARCHAR, grid VARCHAR)
Question: How many laps did the driver with the yamaha manufacturer go on grid 3?
[/INST]
Here is the SQLite query to answer to the question: How many laps did the driver with the yamaha manufacturer go on grid 3?:
```
SELECT laps FROM table_name_61 WHERE manufacturer = "yamaha" AND grid = 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_37 (record VARCHAR, date VARCHAR)
Question: What is Record, when Date is October 31?
[/INST]
Here is the SQLite query to answer to the question: What is Record, when Date is October 31?:
```
SELECT record FROM table_name_37 WHERE date = "october 31"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (points INTEGER, year VARCHAR)
Question: What is the total point for the year listed in 1988?
[/INST]
Here is the SQLite query to answer to the question: What is the total point for the year listed in 1988?:
```
SELECT SUM(points) FROM table_name_58 WHERE year = 1988
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (year INTEGER, delegate VARCHAR)
Question: Which Year jennifer tarol barrientos is in?
[/INST]
Here is the SQLite query to answer to the question: Which Year jennifer tarol barrientos is in?:
```
SELECT MAX(year) FROM table_name_50 WHERE delegate = "jennifer tarol barrientos"
``` |
[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 (geust VARCHAR, result VARCHAR)
Question: What is the geust with a 0:1 result?
[/INST]
Here is the SQLite query to answer to the question: What is the geust with a 0:1 result?:
```
SELECT geust FROM table_name_65 WHERE result = "0:1"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22875514_3 (player VARCHAR, field_goals VARCHAR)
Question: Which player has 18-50 .360 field goals?
[/INST]
Here is the SQLite query to answer to the question: Which player has 18-50 .360 field goals?:
```
SELECT player FROM table_22875514_3 WHERE field_goals = "18-50 .360"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_19744915_22 (judges INTEGER, rank VARCHAR)
Question: How many judges points did the couple ranked at number 5 have?
[/INST]
Here is the SQLite query to answer to the question: How many judges points did the couple ranked at number 5 have?:
```
SELECT MAX(judges) FROM table_19744915_22 WHERE 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_55 (total VARCHAR, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
Question: What is the total having a bronze value over 1, silver under 5, and ranked 9?
[/INST]
Here is the SQLite query to answer to the question: What is the total having a bronze value over 1, silver under 5, and ranked 9?:
```
SELECT total FROM table_name_55 WHERE bronze > 1 AND silver < 5 AND rank = "9"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (start INTEGER, lost VARCHAR, tries VARCHAR)
Question: What is the number of starts for the player who lost fewer than 22 and has more than 4 tries?
[/INST]
Here is the SQLite query to answer to the question: What is the number of starts for the player who lost fewer than 22 and has more than 4 tries?:
```
SELECT AVG(start) FROM table_name_11 WHERE lost < 22 AND tries > 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_79 (points INTEGER, drawn VARCHAR, position VARCHAR)
Question: What is the sum of points for a position over 5 with more than 2 draws?
[/INST]
Here is the SQLite query to answer to the question: What is the sum of points for a position over 5 with more than 2 draws?:
```
SELECT SUM(points) FROM table_name_79 WHERE drawn > 2 AND position > 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_87 (laps VARCHAR, time_retired VARCHAR)
Question: How many laps have a Time/Retired of +12.5 secs?
[/INST]
Here is the SQLite query to answer to the question: How many laps have a Time/Retired of +12.5 secs?:
```
SELECT COUNT(laps) FROM table_name_87 WHERE time_retired = "+12.5 secs"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (year INTEGER, position VARCHAR, wnba_team VARCHAR)
Question: What is the earliest year that includes a Seattle Storm guard?
[/INST]
Here is the SQLite query to answer to the question: What is the earliest year that includes a Seattle Storm guard?:
```
SELECT MIN(year) FROM table_name_54 WHERE position = "guard" AND wnba_team = "seattle storm"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1161065_28 (up_down VARCHAR, hosted VARCHAR)
Question: What is the up/down at the venue that hosted 7 games?
[/INST]
Here is the SQLite query to answer to the question: What is the up/down at the venue that hosted 7 games?:
```
SELECT up_down FROM table_1161065_28 WHERE hosted = 7
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12261714_2 (general_classification VARCHAR, stage VARCHAR)
Question: Who's leading in the general classification in stage 1a?
[/INST]
Here is the SQLite query to answer to the question: Who's leading in the general classification in stage 1a?:
```
SELECT general_classification FROM table_12261714_2 WHERE stage = "1a"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_229059_2 (country VARCHAR, champion VARCHAR)
Question: How many different countries did the champion Se Ri Pak (2) represent?
[/INST]
Here is the SQLite query to answer to the question: How many different countries did the champion Se Ri Pak (2) represent?:
```
SELECT COUNT(country) FROM table_229059_2 WHERE champion = "Se Ri Pak (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_75 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
Question: What was the time/retired for the driver with fewer than 23 laps and grid larger than 23?
[/INST]
Here is the SQLite query to answer to the question: What was the time/retired for the driver with fewer than 23 laps and grid larger than 23?:
```
SELECT time_retired FROM table_name_75 WHERE laps < 23 AND grid > 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_44 (club_province VARCHAR, caps VARCHAR, player VARCHAR)
Question: Which club/province has more than 9 caps and Ben Franks as a player?
[/INST]
Here is the SQLite query to answer to the question: Which club/province has more than 9 caps and Ben Franks as a player?:
```
SELECT club_province FROM table_name_44 WHERE caps > 9 AND player = "ben franks"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (set_2 VARCHAR, set_4 VARCHAR)
Question: What set 2 has a set 4 of 21-25?
[/INST]
Here is the SQLite query to answer to the question: What set 2 has a set 4 of 21-25?:
```
SELECT set_2 FROM table_name_74 WHERE set_4 = "21-25"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (rider VARCHAR, time VARCHAR, bike VARCHAR, laps VARCHAR)
Question: Who rode a Honda CBR1000rr, had fewer than 22 laps, and a time of +2 laps?
[/INST]
Here is the SQLite query to answer to the question: Who rode a Honda CBR1000rr, had fewer than 22 laps, and a time of +2 laps?:
```
SELECT rider FROM table_name_43 WHERE bike = "honda cbr1000rr" AND laps < 22 AND time = "+2 laps"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (year INTEGER, inglewood INTEGER)
Question: What is the average year that had a value less than 2,575 in Inglewood?
[/INST]
Here is the SQLite query to answer to the question: What is the average year that had a value less than 2,575 in Inglewood?:
```
SELECT AVG(year) FROM table_name_27 WHERE inglewood < 2 OFFSET 575
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (method VARCHAR, weight_class VARCHAR, card VARCHAR)
Question: Which method was used in the welterweight class with a preliminary card?
[/INST]
Here is the SQLite query to answer to the question: Which method was used in the welterweight class with a preliminary card?:
```
SELECT method FROM table_name_58 WHERE weight_class = "welterweight" AND card = "preliminary"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (date VARCHAR, opponent VARCHAR, result VARCHAR)
Question: What is the date of the game against the Lizards with a result of w 18-17?
[/INST]
Here is the SQLite query to answer to the question: What is the date of the game against the Lizards with a result of w 18-17?:
```
SELECT date FROM table_name_18 WHERE opponent = "lizards" AND result = "w 18-17"
``` |
[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 (finalist VARCHAR, tournament VARCHAR)
Question: Who was the finalist in Miami?
[/INST]
Here is the SQLite query to answer to the question: Who was the finalist in Miami?:
```
SELECT finalist FROM table_name_7 WHERE tournament = "miami"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2402209_1 (no_of_barangays VARCHAR, population__2010_ VARCHAR)
Question: How many different counts of tue number of Barangays are there for the municipality with 13824 citizens in 2010?
[/INST]
Here is the SQLite query to answer to the question: How many different counts of tue number of Barangays are there for the municipality with 13824 citizens in 2010?:
```
SELECT COUNT(no_of_barangays) FROM table_2402209_1 WHERE population__2010_ = 13824
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2293510_1 (_percentage_of_eu_average_gdp__ppp_ VARCHAR, €_per_capita__2005_ VARCHAR)
Question: What's the percentage of EU average GDP (PPP) in the region where € per capita is 2519
[/INST]
Here is the SQLite query to answer to the question: What's the percentage of EU average GDP (PPP) in the region where € per capita is 2519:
```
SELECT _percentage_of_eu_average_gdp__ppp_ FROM table_2293510_1 WHERE €_per_capita__2005_ = 2519
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_25229283_4 (points_for VARCHAR, percentage___percentage_ VARCHAR)
Question: How many data are on points for if the percentage is 94.29?
[/INST]
Here is the SQLite query to answer to the question: How many data are on points for if the percentage is 94.29?:
```
SELECT COUNT(points_for) FROM table_25229283_4 WHERE percentage___percentage_ = "94.29"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_11677100_18 (school VARCHAR, hometown VARCHAR)
Question: What is the school of the player from Lake Charles, LA?
[/INST]
Here is the SQLite query to answer to the question: What is the school of the player from Lake Charles, LA?:
```
SELECT school FROM table_11677100_18 WHERE hometown = "Lake Charles, LA"
``` |
[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 (lost INTEGER, drawn VARCHAR, played VARCHAR)
Question: Which Lost is the highest one that has a Drawn smaller than 4, and a Played smaller than 9?
[/INST]
Here is the SQLite query to answer to the question: Which Lost is the highest one that has a Drawn smaller than 4, and a Played smaller than 9?:
```
SELECT MAX(lost) FROM table_name_93 WHERE drawn < 4 AND played < 9
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (week INTEGER, date VARCHAR)
Question: What week has a Date of October 4, 1992?
[/INST]
Here is the SQLite query to answer to the question: What week has a Date of October 4, 1992?:
```
SELECT SUM(week) FROM table_name_78 WHERE date = "october 4, 1992"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (country VARCHAR, player VARCHAR)
Question: WHAT IS THE COUNTRY WITH DAVE BARR?
[/INST]
Here is the SQLite query to answer to the question: WHAT IS THE COUNTRY WITH DAVE BARR?:
```
SELECT country FROM table_name_26 WHERE player = "dave barr"
``` |
[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 (college VARCHAR, pick VARCHAR, name VARCHAR)
Question: What is the college of dave adams, who has a pick greater than 7?
[/INST]
Here is the SQLite query to answer to the question: What is the college of dave adams, who has a pick greater than 7?:
```
SELECT college FROM table_name_63 WHERE pick > 7 AND name = "dave adams"
``` |
[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 (weight VARCHAR, number VARCHAR, position VARCHAR, player VARCHAR)
Question: What is the total number of Weight, when Position is "Forward/Center", when Player is "Othella Harrington", and when Number is less than 32?
[/INST]
Here is the SQLite query to answer to the question: What is the total number of Weight, when Position is "Forward/Center", when Player is "Othella Harrington", and when Number is less than 32?:
```
SELECT COUNT(weight) FROM table_name_90 WHERE position = "forward/center" AND player = "othella harrington" AND number < 32
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (date VARCHAR, score_f_a VARCHAR, opponents VARCHAR)
Question: Score F–A of 2–0, and a Opponents of walsall has what date?
[/INST]
Here is the SQLite query to answer to the question: Score F–A of 2–0, and a Opponents of walsall has what date?:
```
SELECT date FROM table_name_49 WHERE score_f_a = "2–0" AND opponents = "walsall"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_174266_6 (two_years INTEGER, unknown INTEGER)
Question: If unknown is larger than 1.0, what is the maximum two year amount?
[/INST]
Here is the SQLite query to answer to the question: If unknown is larger than 1.0, what is the maximum two year amount?:
```
SELECT MAX(two_years) FROM table_174266_6 WHERE unknown > 1.0
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_11734041_7 (height_in_ft VARCHAR, school_club_team_country VARCHAR)
Question: What is the height of the school club team members in clemson?
[/INST]
Here is the SQLite query to answer to the question: What is the height of the school club team members in clemson?:
```
SELECT height_in_ft FROM table_11734041_7 WHERE school_club_team_country = "Clemson"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (rifle VARCHAR, german_gewehr_98 VARCHAR)
Question: What is the Rifle when the German Gewehr 98 is 74cm?
[/INST]
Here is the SQLite query to answer to the question: What is the Rifle when the German Gewehr 98 is 74cm?:
```
SELECT rifle FROM table_name_94 WHERE german_gewehr_98 = "74cm"
``` |
[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 (score VARCHAR, opponents_in_the_final VARCHAR)
Question: What was the score for the match were the opponent in the final was james cerretani todd perry?
[/INST]
Here is the SQLite query to answer to the question: What was the score for the match were the opponent in the final was james cerretani todd perry?:
```
SELECT score FROM table_name_95 WHERE opponents_in_the_final = "james cerretani todd perry"
``` |
[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 (decile INTEGER, name VARCHAR)
Question: What is the average decile for te puru school?
[/INST]
Here is the SQLite query to answer to the question: What is the average decile for te puru school?:
```
SELECT AVG(decile) FROM table_name_84 WHERE name = "te puru school"
``` |
[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 (attendance INTEGER, record VARCHAR)
Question: On the game that put the team at 34-44, what was the attendance?
[/INST]
Here is the SQLite query to answer to the question: On the game that put the team at 34-44, what was the attendance?:
```
SELECT SUM(attendance) FROM table_name_95 WHERE record = "34-44"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (top_5 INTEGER, cuts_made VARCHAR)
Question: What is the average for the top five having a number of 42 cuts made.
[/INST]
Here is the SQLite query to answer to the question: What is the average for the top five having a number of 42 cuts made.:
```
SELECT AVG(top_5) FROM table_name_79 WHERE cuts_made = 42
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28744929_2 (overall_record VARCHAR, head_coach VARCHAR)
Question: How many values reflect the overall record of the team coached by Frank Beamer?
[/INST]
Here is the SQLite query to answer to the question: How many values reflect the overall record of the team coached by Frank Beamer?:
```
SELECT COUNT(overall_record) FROM table_28744929_2 WHERE head_coach = "Frank Beamer"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (score INTEGER, opposition VARCHAR, city VARCHAR)
Question: What was the score when the opposition was sussex in liverpool?
[/INST]
Here is the SQLite query to answer to the question: What was the score when the opposition was sussex in liverpool?:
```
SELECT SUM(score) FROM table_name_96 WHERE opposition = "sussex" AND city = "liverpool"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_27450976_1 (title VARCHAR, production_code VARCHAR)
Question: What is the title of the episode with a production code of 2j5504?
[/INST]
Here is the SQLite query to answer to the question: What is the title of the episode with a production code of 2j5504?:
```
SELECT title FROM table_27450976_1 WHERE production_code = "2J5504"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
Question: What is the highest attendance that has oakland raiders as the opponent, with a week greater than 9?
[/INST]
Here is the SQLite query to answer to the question: What is the highest attendance that has oakland raiders as the opponent, with a week greater than 9?:
```
SELECT MAX(attendance) FROM table_name_83 WHERE opponent = "oakland raiders" AND week > 9
``` |
[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 (game_site VARCHAR, opponent VARCHAR)
Question: Where did the team play the Detroit Lions?
[/INST]
Here is the SQLite query to answer to the question: Where did the team play the Detroit Lions?:
```
SELECT game_site FROM table_14984078_1 WHERE opponent = "Detroit Lions"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (college VARCHAR, round VARCHAR, player VARCHAR)
Question: WHAT COLLEGE HAS A ROUND LARGER THAN 9, WITH BUTCH WEBSTER?
[/INST]
Here is the SQLite query to answer to the question: WHAT COLLEGE HAS A ROUND LARGER THAN 9, WITH BUTCH WEBSTER?:
```
SELECT college FROM table_name_74 WHERE round > 9 AND player = "butch webster"
``` |
[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 (bowling VARCHAR, player VARCHAR)
Question: What was Min Patel's bowling?
[/INST]
Here is the SQLite query to answer to the question: What was Min Patel's bowling?:
```
SELECT bowling FROM table_name_7 WHERE player = "min patel"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16864968_8 (score VARCHAR, date VARCHAR)
Question: What was the score on March 21, 2009?
[/INST]
Here is the SQLite query to answer to the question: What was the score on March 21, 2009?:
```
SELECT score FROM table_16864968_8 WHERE date = "March 21, 2009"
``` |
[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 (country VARCHAR, score VARCHAR)
Question: What is the country of the player whose score is 71-69-70-69=279?
[/INST]
Here is the SQLite query to answer to the question: What is the country of the player whose score is 71-69-70-69=279?:
```
SELECT country FROM table_name_21 WHERE score = 71 - 69 - 70 - 69 = 279
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (college VARCHAR, name VARCHAR)
Question: What college did Ray Graves attend?
[/INST]
Here is the SQLite query to answer to the question: What college did Ray Graves attend?:
```
SELECT college FROM table_name_2 WHERE name = "ray graves"
``` |
[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 (class VARCHAR, frequency VARCHAR)
Question: What is the class when the frequency is 560 AM?
[/INST]
Here is the SQLite query to answer to the question: What is the class when the frequency is 560 AM?:
```
SELECT class FROM table_name_57 WHERE frequency = "560 am"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1942366_9 (category VARCHAR, low VARCHAR)
Question: In how many different categories is the value of C_{low} 35.5?
[/INST]
Here is the SQLite query to answer to the question: In how many different categories is the value of C_{low} 35.5?:
```
SELECT COUNT(category) FROM table_1942366_9 WHERE STRUCT(low) = "35.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_83 (time VARCHAR, event VARCHAR)
Question: What was the time of the NJKF Titans Neo X event?
[/INST]
Here is the SQLite query to answer to the question: What was the time of the NJKF Titans Neo X event?:
```
SELECT time FROM table_name_83 WHERE event = "njkf titans neo x"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (race_2 VARCHAR, driver VARCHAR)
Question: What is Race 2, when Driver is "Paul Radisich"?
[/INST]
Here is the SQLite query to answer to the question: What is Race 2, when Driver is "Paul Radisich"?:
```
SELECT race_2 FROM table_name_5 WHERE driver = "paul radisich"
``` |
[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 (player VARCHAR, jersey_number_s_ VARCHAR)
Question: Who has a Jersey number of 31?
[/INST]
Here is the SQLite query to answer to the question: Who has a Jersey number of 31?:
```
SELECT player FROM table_name_84 WHERE jersey_number_s_ = "31"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (entrant VARCHAR, points INTEGER)
Question: Which entrant scored less than 2 points?
[/INST]
Here is the SQLite query to answer to the question: Which entrant scored less than 2 points?:
```
SELECT entrant FROM table_name_96 WHERE points < 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_65 (date VARCHAR, team VARCHAR, venue VARCHAR)
Question: What was the date of the home game against Accrington?
[/INST]
Here is the SQLite query to answer to the question: What was the date of the home game against Accrington?:
```
SELECT date FROM table_name_65 WHERE team = "accrington" AND venue = "home"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28298589_4 (site VARCHAR, home_team VARCHAR)
Question: In what facility was Pittsburgh's home game played?
[/INST]
Here is the SQLite query to answer to the question: In what facility was Pittsburgh's home game played?:
```
SELECT site FROM table_28298589_4 WHERE home_team = "Pittsburgh"
``` |
[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 (laps INTEGER, grid VARCHAR, rider VARCHAR)
Question: Tell me the highest Laps for grid less than 22 and riderS of ruben xaus
[/INST]
Here is the SQLite query to answer to the question: Tell me the highest Laps for grid less than 22 and riderS of ruben xaus:
```
SELECT MAX(laps) FROM table_name_40 WHERE grid < 22 AND rider = "ruben xaus"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (loss VARCHAR, record VARCHAR)
Question: What was the loss of the game with a record of 77-65?
[/INST]
Here is the SQLite query to answer to the question: What was the loss of the game with a record of 77-65?:
```
SELECT loss FROM table_name_96 WHERE record = "77-65"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2668378_5 (first_elected VARCHAR, district VARCHAR)
Question: Name the first elected for kentucky 1
[/INST]
Here is the SQLite query to answer to the question: Name the first elected for kentucky 1:
```
SELECT first_elected FROM table_2668378_5 WHERE district = "Kentucky 1"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_15327489_1 (riders VARCHAR, team_name VARCHAR)
Question: Name the rdiers for jir team scot motogp
[/INST]
Here is the SQLite query to answer to the question: Name the rdiers for jir team scot motogp:
```
SELECT riders FROM table_15327489_1 WHERE team_name = "JiR Team Scot MotoGP"
``` |
[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 (points_classification VARCHAR, stage VARCHAR, winner VARCHAR, general_classification VARCHAR, trofeo_fast_team VARCHAR)
Question: Which points classification shares a general classification of Bernard Hinault, a Trofeo Fast Tem of Bianchi, was won by Urs Freuler, and was stage 4?
[/INST]
Here is the SQLite query to answer to the question: Which points classification shares a general classification of Bernard Hinault, a Trofeo Fast Tem of Bianchi, was won by Urs Freuler, and was stage 4?:
```
SELECT points_classification FROM table_name_7 WHERE general_classification = "bernard hinault" AND trofeo_fast_team = "bianchi" AND winner = "urs freuler" AND stage = "4"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_29002641_1 (Serial INTEGER, scrapped VARCHAR)
Question: Name the most serial number for feb 1994
[/INST]
Here is the SQLite query to answer to the question: Name the most serial number for feb 1994:
```
SELECT MAX(Serial) AS number FROM table_29002641_1 WHERE scrapped = "Feb 1994"
``` |
[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 (associate_professors INTEGER, assistant_professors VARCHAR, professors VARCHAR)
Question: What is the maximum number of associate professors when there are more than 5 assistant professors and fewer than 14 professors?
[/INST]
Here is the SQLite query to answer to the question: What is the maximum number of associate professors when there are more than 5 assistant professors and fewer than 14 professors?:
```
SELECT MAX(associate_professors) FROM table_name_29 WHERE assistant_professors > 5 AND professors < 14
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_30 (year__ceremony_ VARCHAR, result VARCHAR, actor_actress VARCHAR)
Question: What year was holly hunter a nominee?
[/INST]
Here is the SQLite query to answer to the question: What year was holly hunter a nominee?:
```
SELECT year__ceremony_ FROM table_name_30 WHERE result = "nominee" AND actor_actress = "holly hunter"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (retitled_as_same VARCHAR, show VARCHAR)
Question: Which retitled network has a Show of supermarket sweep?
[/INST]
Here is the SQLite query to answer to the question: Which retitled network has a Show of supermarket sweep?:
```
SELECT retitled_as_same FROM table_name_92 WHERE show = "supermarket sweep"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_25401_15 (latin VARCHAR, catalan VARCHAR)
Question: What is every entry for Latin when Catalan is Mar?
[/INST]
Here is the SQLite query to answer to the question: What is every entry for Latin when Catalan is Mar?:
```
SELECT latin FROM table_25401_15 WHERE catalan = "mar"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_26847237_1 (score VARCHAR, round__number VARCHAR)
Question: What was the score in round 7?
[/INST]
Here is the SQLite query to answer to the question: What was the score in round 7?:
```
SELECT score FROM table_26847237_1 WHERE round__number = "Round 7"
``` |
[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 (Id VARCHAR)
Question: What is the 2011 value that has ATP Masters Series in 2007?
[/INST]
Here is the SQLite query to answer to the question: What is the 2011 value that has ATP Masters Series in 2007?:
```
SELECT 2011 FROM table_name_34 WHERE 2007 = "atp masters series"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE Has_allergy (fname VARCHAR, major VARCHAR, StuID VARCHAR, Allergy VARCHAR); CREATE TABLE Student (fname VARCHAR, major VARCHAR, StuID VARCHAR, Allergy VARCHAR)
Question: Find the first name and major of the students who are not allegry to soy.
[/INST]
Here is the SQLite query to answer to the question: Find the first name and major of the students who are not allegry to soy.:
```
SELECT fname, major FROM Student WHERE NOT StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Soy")
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_17927935_1 (date VARCHAR, week VARCHAR)
Question: What was the date of the week 4 game?
[/INST]
Here is the SQLite query to answer to the question: What was the date of the week 4 game?:
```
SELECT date FROM table_17927935_1 WHERE week = 4
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE journalist (Nationality VARCHAR)
Question: Show the different nationalities and the number of journalists of each nationality.
[/INST]
Here is the SQLite query to answer to the question: Show the different nationalities and the number of journalists of each nationality.:
```
SELECT Nationality, COUNT(*) FROM journalist GROUP BY Nationality
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (rec INTEGER, yards VARCHAR, avg VARCHAR)
Question: How many receptions for players with over 647 yards and an under 14 yard average?
[/INST]
Here is the SQLite query to answer to the question: How many receptions for players with over 647 yards and an under 14 yard average?:
```
SELECT MIN(rec) FROM table_name_83 WHERE yards > 647 AND avg < 14
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (away_team VARCHAR, crowd INTEGER)
Question: What is the score of the away team when the crowd was larger than 8,000?
[/INST]
Here is the SQLite query to answer to the question: What is the score of the away team when the crowd was larger than 8,000?:
```
SELECT away_team AS score FROM table_name_83 WHERE crowd > 8 OFFSET 000
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (tournament VARCHAR)
Question: What's the tournament when 1992 is A?
[/INST]
Here is the SQLite query to answer to the question: What's the tournament when 1992 is A?:
```
SELECT tournament FROM table_name_6 WHERE 1992 = "a"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1682026_6 (profits__billion_$_ VARCHAR, market_value__billion_$_ VARCHAR)
Question: what is the amount of profits in billions for companies with a market value of 204.9 billion?
[/INST]
Here is the SQLite query to answer to the question: what is the amount of profits in billions for companies with a market value of 204.9 billion? :
```
SELECT profits__billion_$_ FROM table_1682026_6 WHERE market_value__billion_$_ = "204.9"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_23385853_20 (finishes INTEGER)
Question: What is the finishes maximum number?
[/INST]
Here is the SQLite query to answer to the question: What is the finishes maximum number?:
```
SELECT MAX(finishes) FROM table_23385853_20
``` |