sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT COUNT("High points") FROM table_3858 WHERE "Team" = 'Oklahoma City'
CREATE TABLE INST, Here is a database schema( table schema);
how many times is the team oklahoma city?It is not neccessary to use all the tables.
SELECT la_crescenta__montrose FROM table_name_64 WHERE glendale = "$57,112"
CREATE TABLE INST, Here is a database schema( table schema);
What is the figure for La Crescenta-Montrose when Gelndale is $57112?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Runs = 270
CREATE TABLE INST, Here is a database schema( table schema);
Which player's runs are 270?.It is not neccessary to use all the tables.
SELECT listed FROM table_name_88 WHERE built = "1896, 1914"
CREATE TABLE INST, Here is a database schema( table schema);
What is the list date of the historic place that was built 1896 1914?It is not neccessary to use all the tables.
SELECT last_name, COUNT(last_name) FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id GROUP BY skill_description, last_name ORDER BY last_name
CREATE TABLE INST, Here is a database schema( table schema);
List the number of enginners in a stacked bar chart The x-axis is last name and group by skill description, rank bars from low to high order.It is not neccessary to use all the tables.
SELECT High points FROM table WHERE Score = L 92–100 (OT)
CREATE TABLE INST, Here is a database schema( table schema);
Name the high points for score being l 92–100 (ot).It is not neccessary to use all the tables.
SELECT catalog FROM table_name_44 WHERE date = "24 march 2006"
CREATE TABLE INST, Here is a database schema( table schema);
Which catalog has a date of 24 march 2006?It is not neccessary to use all the tables.
SELECT "Box Score" FROM table_49868 WHERE "Home team" = 'melbourne tigers'
CREATE TABLE INST, Here is a database schema( table schema);
What was the box core for the Melbourne Tigers?It is not neccessary to use all the tables.
SELECT MAX Total FROM table WHERE Sport = shooting AND Bronze < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Shooting Total with a Bronze less than 0?.It is not neccessary to use all the tables.
SELECT school FROM table_name_96 WHERE location = "wabash" AND mascot = "knights"
CREATE TABLE INST, Here is a database schema( table schema);
Which School in Wabash has a Mascot of knights?It is not neccessary to use all the tables.
SELECT time FROM table_name_27 WHERE notes = "sc/d" AND rank > 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the time for the rank after 5 with sc/d notes?It is not neccessary to use all the tables.
SELECT MAX District FROM table WHERE Party = democratic AND Senator = steve carriker AND Took Office > 1988
CREATE TABLE INST, Here is a database schema( table schema);
What is the district where Steve Carriker is the Democratic Senator and he took office later than 1988?.It is not neccessary to use all the tables.
SELECT player FROM table_name_78 WHERE matches = "9"
CREATE TABLE INST, Here is a database schema( table schema);
what player matched up with 9It is not neccessary to use all the tables.
SELECT MIN Silver FROM table WHERE Bronze = 1 AND Total < 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Silver, when Bronze is 1, and when Total is less than 3?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_11 WHERE round = 20
CREATE TABLE INST, Here is a database schema( table schema);
What venue was round 20 held at?It is not neccessary to use all the tables.
SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ((flight.airline_code = 'DL') AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND flight.airline_code = airline.airline_code AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
CREATE TABLE INST, Here is a database schema( table schema);
i'm trying to make a connection between DENVER and SAN FRANCISCO does DL fly between those twoIt is not neccessary to use all the tables.
SELECT SUM Crowd FROM table WHERE Venue = glenferrie oval
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of people that attended the glenferrie oval venue?.It is not neccessary to use all the tables.
SELECT Type FROM table WHERE Characters = 廣利
CREATE TABLE INST, Here is a database schema( table schema);
What type has the characters 廣利?.It is not neccessary to use all the tables.
SELECT segment_d FROM table_name_60 WHERE segment_a = "umbrellas"
CREATE TABLE INST, Here is a database schema( table schema);
Name the segment D for umbrellasIt is not neccessary to use all the tables.
SELECT AVG Place FROM table WHERE Units sold in the UK = 321,000
CREATE TABLE INST, Here is a database schema( table schema);
Of the games that sold 321,000 units in the UK, what is their average place?.It is not neccessary to use all the tables.
SELECT First Leg FROM table WHERE Opposition = Norchi Dinamoeli
CREATE TABLE INST, Here is a database schema( table schema);
What was the first leg result in the round against Norchi Dinamoeli?.It is not neccessary to use all the tables.
SELECT icao FROM table_name_75 WHERE airport = "simferopol international airport"
CREATE TABLE INST, Here is a database schema( table schema);
What is the ICAO for simferopol international airport?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Date = february 12
CREATE TABLE INST, Here is a database schema( table schema);
which opponent is from February 12?.It is not neccessary to use all the tables.
SELECT result FROM table_name_40 WHERE date = "october 2, 1966"
CREATE TABLE INST, Here is a database schema( table schema);
The game played on October 2 1966 had what result?It is not neccessary to use all the tables.
SELECT MIN(losses) FROM table_name_39 WHERE wins < 6 AND south_west_dfl = "sandford"
CREATE TABLE INST, Here is a database schema( table schema);
Which Losses have Wins smaller than 6, and a South West DFL of sandford?It is not neccessary to use all the tables.
SELECT Stage FROM table WHERE Rally leader = Sébastien Loeb AND Name = Tempo 2
CREATE TABLE INST, Here is a database schema( table schema);
In which special stage named Tempo 2 was Sébastien Loeb the leader?.It is not neccessary to use all the tables.
SELECT driver FROM table_name_14 WHERE laps < 18 AND grid < 16
CREATE TABLE INST, Here is a database schema( table schema);
What driver has less than 18 laps and a grid number under 16?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Pick = 5 AND Round < 25 AND Position = ot AND College = boston college
CREATE TABLE INST, Here is a database schema( table schema);
What name has 5 as the pick, a round less than 25, ot as the position, at boston college?.It is not neccessary to use all the tables.
SELECT team FROM table_name_31 WHERE time = "1:14.51.73"
CREATE TABLE INST, Here is a database schema( table schema);
Which Team has a Time of 1:14.51.73?It is not neccessary to use all the tables.
SELECT COUNT(losing_bonus) FROM table_13758945_3 WHERE won = "10" AND points_against = "283"
CREATE TABLE INST, Here is a database schema( table schema);
how many losing bonus with won being 10 and points against being 283It is not neccessary to use all the tables.
SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the phone number of the customer who has filed the most recent complaint?It is not neccessary to use all the tables.
SELECT "Game site" FROM table_26866 WHERE "Attendance" = '29753'
CREATE TABLE INST, Here is a database schema( table schema);
At which location did 29753 fans show up to watch the game?It is not neccessary to use all the tables.
SELECT document_id FROM Documents WHERE document_status_code = "done" AND document_type_code = "Paper" INTERSECT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = "USPS"
CREATE TABLE INST, Here is a database schema( table schema);
List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS.It is not neccessary to use all the tables.
SELECT writer_s_ FROM table_10953197_4 WHERE production_code = "2395114"
CREATE TABLE INST, Here is a database schema( table schema);
Who's the writer for the episode with a production code 2395114?It is not neccessary to use all the tables.
SELECT v_band FROM table_186468_1 WHERE k_band = "2"
CREATE TABLE INST, Here is a database schema( table schema);
When 2 is the k-band what is the v-band?It is not neccessary to use all the tables.
SELECT type FROM table_name_49 WHERE transfer_fee = "£120,000"
CREATE TABLE INST, Here is a database schema( table schema);
What is the type when £120000 is the transfer fee?It is not neccessary to use all the tables.
SELECT COUNT Rank FROM table WHERE Assets (billion $) < 248.44 AND Industry = oil and gas AND Headquarters = france AND Market Value (billion $) > 152.62
CREATE TABLE INST, Here is a database schema( table schema);
What is the total rank of the company with less than 248.44 billion in assets, an industry of oil and gas, headquarters in France, and a market value greater than 152.62 billions?.It is not neccessary to use all the tables.
SELECT AVG Week FROM table WHERE Result = w 17–13
CREATE TABLE INST, Here is a database schema( table schema);
How many Weeks have a Result of w 17–13?.It is not neccessary to use all the tables.
SELECT attendance FROM table_name_10 WHERE week = 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the attendance of the game on week 4?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Competition = pl AND Score = 1-1 AND Opponents = kelantan
CREATE TABLE INST, Here is a database schema( table schema);
Competition of pl, and a Score of 1-1, and a Opponents of kelantan had what date?.It is not neccessary to use all the tables.
SELECT points AS defending FROM table_24431264_17 WHERE player = "Caroline Wozniacki"
CREATE TABLE INST, Here is a database schema( table schema);
List the total number of defense points for caroline wozniacki.It is not neccessary to use all the tables.
SELECT Points classification FROM table WHERE General classification = bernard hinault AND Trofeo Fast Team = bianchi AND Winner = urs freuler AND Stage = 4
CREATE TABLE INST, Here is a database schema( table schema);
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?.It is not neccessary to use all the tables.
SELECT Name origin FROM table WHERE Name = Morrigan Linea
CREATE TABLE INST, Here is a database schema( table schema);
What is the name origin of Morrigan Linea?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Date = may 5
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the game played on May 5?.It is not neccessary to use all the tables.
SELECT DISTINCT customer_id FROM customer_orders WHERE order_date > (SELECT MIN(order_date) FROM customer_orders WHERE order_status_code = "Cancelled")
CREATE TABLE INST, Here is a database schema( table schema);
Find the ids of all distinct customers who made order after some orders that were Cancelled.It is not neccessary to use all the tables.
SELECT date_of_death FROM table_name_4 WHERE name = "charles iii"
CREATE TABLE INST, Here is a database schema( table schema);
When did Charles III die?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Date = march 11, 1999
CREATE TABLE INST, Here is a database schema( table schema);
Where was the game on March 11, 1999 played?.It is not neccessary to use all the tables.
SELECT MIN Rank FROM table WHERE Earnings( $ ) = 24,920,665
CREATE TABLE INST, Here is a database schema( table schema);
What was the lowest rank which earned 24,920,665?.It is not neccessary to use all the tables.
SELECT cm_winning_team FROM table_29225103_2 WHERE fm_winning_team = "#17 Elva - Ford"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the CM winning team when the FM winning team was #17 Elva - Ford?It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Away team = geelong
CREATE TABLE INST, Here is a database schema( table schema);
What was Geelong's score when they were the away team?.It is not neccessary to use all the tables.
SELECT SUM(division_titles) FROM table_name_87 WHERE playoff_appearances = 23 AND conference_titles > 1
CREATE TABLE INST, Here is a database schema( table schema);
How many division titles does the team with 23 playoff appearances and more than 1 conference titles have?It is not neccessary to use all the tables.
SELECT Road Team FROM table WHERE Result = 74-71
CREATE TABLE INST, Here is a database schema( table schema);
What is Road Team, when Result is "74-71"?.It is not neccessary to use all the tables.
SELECT MAX(zone) FROM table_15366849_1
CREATE TABLE INST, Here is a database schema( table schema);
What's the biggest zone?It is not neccessary to use all the tables.
SELECT size FROM table_name_61 WHERE year_joined < 1974 AND ihsaa_class = "aa" AND _number___county = "89 wayne" AND school = "centerville"
CREATE TABLE INST, Here is a database schema( table schema);
What's the size of Centerville in 89 Wayne county with an IHSAA class of AA in the year before 1974?It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Against = Monaco
CREATE TABLE INST, Here is a database schema( table schema);
Name the surface against monaco.It is not neccessary to use all the tables.
SELECT team FROM table_name_5 WHERE replaced_by = "omar arellano"
CREATE TABLE INST, Here is a database schema( table schema);
What is Team when Replaced By is "Omar Arellano"?It is not neccessary to use all the tables.
SELECT MIN(league) FROM table_name_13 WHERE club = "aldershot town" AND play_offs < 0
CREATE TABLE INST, Here is a database schema( table schema);
Which of the lowest leagues had Aldershot town as a club when the play-offs number was less than 0?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Home team score = 6.12 (48)
CREATE TABLE INST, Here is a database schema( table schema);
What venue hosted a home team with a score of 6.12 (48)?.It is not neccessary to use all the tables.
SELECT opponent FROM table_27537870_6 WHERE record = "22-21-5"
CREATE TABLE INST, Here is a database schema( table schema);
If the record was 22-21-5 who was the opponent?It is not neccessary to use all the tables.
SELECT "Circuit" FROM table_57912 WHERE "Fastest lap" = 'lorenzo bandini' AND "Pole position" = 'lorenzo bandini'
CREATE TABLE INST, Here is a database schema( table schema);
On which circuit does lorenzo bandini have the fastest lap as well as the pole position?It is not neccessary to use all the tables.
SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.firstname = "Marianne"
CREATE TABLE INST, Here is a database schema( table schema);
Find all the songs produced by artists with first name 'Marianne'.It is not neccessary to use all the tables.
SELECT COUNT Frequency FROM table WHERE Model number = Core i5-655K
CREATE TABLE INST, Here is a database schema( table schema);
How many frequencies have a model number of core i5-655k?.It is not neccessary to use all the tables.
SELECT MIN 5wi FROM table
CREATE TABLE INST, Here is a database schema( table schema);
what is the minimumfor 5wi?.It is not neccessary to use all the tables.
SELECT Station Type FROM table WHERE Callsign = DWZM-TV
CREATE TABLE INST, Here is a database schema( table schema);
What is the station type of DWZM-TV?.It is not neccessary to use all the tables.
SELECT Match Report FROM table WHERE Venue = westfalenstadion , dortmund
CREATE TABLE INST, Here is a database schema( table schema);
What is Match Report, when Venue is "Westfalenstadion , Dortmund"?.It is not neccessary to use all the tables.
SELECT AVG(attendance) FROM table_name_32 WHERE opponent = "pittsburgh pirates" AND date = "may 5"
CREATE TABLE INST, Here is a database schema( table schema);
Which Attendance has an Opponent of pittsburgh pirates and a Date of may 5?It is not neccessary to use all the tables.
SELECT venue FROM table_name_60 WHERE runs = "332"
CREATE TABLE INST, Here is a database schema( table schema);
During runs 332, what was the venue?It is not neccessary to use all the tables.
SELECT mountains_classification FROM table_22941863_19 WHERE winner = "Bernhard Eisel"
CREATE TABLE INST, Here is a database schema( table schema);
What is the mountain classification name if the winner is Bernhard Eisel?It is not neccessary to use all the tables.
SELECT MAX Total FROM table WHERE Bronze = 1 AND Rank = 7 AND Gold > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest total for a team with 1 bronze, 0 gold medals and ranking of 7?.It is not neccessary to use all the tables.
SELECT Writer(s) FROM table WHERE Prod.Code = 30-17
CREATE TABLE INST, Here is a database schema( table schema);
who is the writer of the episode with prod.code 30-17.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Opponent = queensland
CREATE TABLE INST, Here is a database schema( table schema);
which athlete played against Queensland?.It is not neccessary to use all the tables.
SELECT COUNT(candidates) FROM table_1341423_20 WHERE incumbent = "Wayne Gilchrest"
CREATE TABLE INST, Here is a database schema( table schema);
How many candidates ran in the election where Wayne Gilchrest was the incumbent?It is not neccessary to use all the tables.
SELECT AVG Byes FROM table WHERE Draws = 1 AND Mininera DFL = smw rovers AND Wins > 6
CREATE TABLE INST, Here is a database schema( table schema);
WHAT ARE THE BYES WITH A DRAWS OF 1, SMW ROVERS, AND WINS LARGER THAN 6?.It is not neccessary to use all the tables.
SELECT SUM(grant_amount), organisation_id FROM Grants GROUP BY organisation_id
CREATE TABLE INST, Here is a database schema( table schema);
What is the total amount of grants given by each organisations? Also list the organisation id.It is not neccessary to use all the tables.
SELECT COUNT("Engine") FROM table_23970 WHERE "Model Designation" = '97G00'
CREATE TABLE INST, Here is a database schema( table schema);
How many different engines are there for the model with model designation 97G00?It is not neccessary to use all the tables.
SELECT notes FROM table_name_3 WHERE silver = "jarkko huovila"
CREATE TABLE INST, Here is a database schema( table schema);
What is Notes, when Silver is 'Jarkko Huovila'?It is not neccessary to use all the tables.
SELECT meas. num. FROM table WHERE description = Obscenity and sexual conduct bill
CREATE TABLE INST, Here is a database schema( table schema);
What is the measure number for the bill described as obscenity and sexual conduct bill? .It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE Production code = 2ARG01
CREATE TABLE INST, Here is a database schema( table schema);
when was the episode with production code "2arg01" originally aired?.It is not neccessary to use all the tables.
SELECT MIN Year FROM table WHERE Label-Nr = st-43
CREATE TABLE INST, Here is a database schema( table schema);
What is the earliest year with a label-Nr of st-43?.It is not neccessary to use all the tables.
SELECT Wins FROM table WHERE Conference = — AND Division = western AND Season = 1967–68
CREATE TABLE INST, Here is a database schema( table schema);
What shows for Wins when there was a Conference of —, western division, in the 1967–68 season?.It is not neccessary to use all the tables.
SELECT method FROM table_name_77 WHERE result = "win" AND opponent = "ed mahone"
CREATE TABLE INST, Here is a database schema( table schema);
Which method resulting in a win against Ed Mahone?It is not neccessary to use all the tables.
SELECT AVG Fastest Laps FROM table WHERE Poles < 0
CREATE TABLE INST, Here is a database schema( table schema);
What was the average number of fastest laps with less than 0 poles?.It is not neccessary to use all the tables.
SELECT demographic.admission_type, demographic.diagnosis FROM demographic WHERE demographic.name = "Cynthia Gomez"
CREATE TABLE INST, Here is a database schema( table schema);
let me know the primary disease and type of admission for patient cynthia gomez.It is not neccessary to use all the tables.
SELECT COUNT To par FROM table WHERE Year won < 1993 AND Player = jeff sluman AND Total > 154
CREATE TABLE INST, Here is a database schema( table schema);
What is the total to par of player jeff sluman, who won before 1993 and has a total greater than 154?.It is not neccessary to use all the tables.
SELECT T1.FIRST_NAME, T1.MANAGER_ID FROM employees AS T1 JOIN departments AS T2 ON T1.DEPARTMENT_ID = T2.DEPARTMENT_ID WHERE T1.EMPLOYEE_ID = T2.MANAGER_ID ORDER BY T1.FIRST_NAME
CREATE TABLE INST, Here is a database schema( table schema);
Just show the first name and the manager id with a bar chart, and list by the bar in asc please.It is not neccessary to use all the tables.
SELECT Nation FROM table WHERE Sport = weightlifting AND Pinyin = kùkè qúndǎo
CREATE TABLE INST, Here is a database schema( table schema);
What nation has a sport of weightlifting and a pinyin of kùkè qúndǎo?.It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Crowd > 6,872
CREATE TABLE INST, Here is a database schema( table schema);
What did the away team score when the crowd was larger than 6,872?.It is not neccessary to use all the tables.
SELECT try_bonus FROM table_name_98 WHERE tries_for = "39"
CREATE TABLE INST, Here is a database schema( table schema);
What is Try Bonus when Tries For is "39"?It is not neccessary to use all the tables.
SELECT Ranking FROM table WHERE Nationality = spain AND Goals = 26
CREATE TABLE INST, Here is a database schema( table schema);
What ranking has the nationality of spain and the goals of 26?.It is not neccessary to use all the tables.
SELECT score FROM table_name_16 WHERE decision = "legace" AND home = "dallas"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the home Dallas game that had a decision of Legace?It is not neccessary to use all the tables.
SELECT score FROM table_name_93 WHERE surface = "hard" AND championship = "new haven , usa"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Score when there was a hard surface and the Championship is new haven usa?It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course_offering.friday = 'N' AND course_offering.monday = 'Y' AND course_offering.thursday = 'N' AND course_offering.tuesday = 'N' AND course_offering.wednesday = 'Y' AND course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 503 AND semester.semester = 'WN' AND semester.semester_id = course_offering.semester AND semester.year = 2016
CREATE TABLE INST, Here is a database schema( table schema);
Could I take 503 Mondays and Wednesdays ?It is not neccessary to use all the tables.
SELECT COUNT Blank Ends FROM table WHERE Stolen Ends = 17 AND Skip = jennifer jones AND Shot Pct. > 83
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of blank ends when the stolen ends were 17 and Jennifer Jones was skipped with a more than 83 shot pct?.It is not neccessary to use all the tables.
SELECT "Year" FROM table_24630 WHERE "Team(s)" = 'Donlavey Racing Bill Davis Racing'
CREATE TABLE INST, Here is a database schema( table schema);
Name the year for donlavey racing bill davis racingIt is not neccessary to use all the tables.
SELECT _percentage_2001 FROM table_1939405_2 WHERE _percentage_2011 = "0.2%"
CREATE TABLE INST, Here is a database schema( table schema);
What are the percentages in 2001 in all the provinces where the percentage in 2011 is 0.2%?It is not neccessary to use all the tables.
SELECT driver FROM table_name_85 WHERE nor_1 = "22"
CREATE TABLE INST, Here is a database schema( table schema);
What driver has 22 as nor 1?It is not neccessary to use all the tables.
SELECT Nickname FROM table WHERE Institution = Linfield College
CREATE TABLE INST, Here is a database schema( table schema);
What is the nickname of Linfield College?.It is not neccessary to use all the tables.
SELECT product_name, product_price FROM Product_Suppliers AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3
CREATE TABLE INST, Here is a database schema( table schema);
Show the price of each product supplied by supplier id 3 in a pie chart.It is not neccessary to use all the tables.
SELECT class AS pos FROM table_name_53 WHERE year > 2002
CREATE TABLE INST, Here is a database schema( table schema);
For a year that is later than 2002 what is the class position?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.icd9_code = "V4987"
CREATE TABLE INST, Here is a database schema( table schema);
give the number of patients whose diagnosis icd9 code is v4987.It is not neccessary to use all the tables.