answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT name FROM table_16799784_11 WHERE latitude = "10.0S"
Which name is at latitude 10.0s?
CREATE TABLE table_16799784_11 (name VARCHAR, latitude VARCHAR)
SELECT result FROM table_name_19 WHERE opponent = "rochester royals"
What is Result, when Opponent is 'Rochester Royals'?
CREATE TABLE table_name_19 ( result VARCHAR, opponent VARCHAR )
SELECT AVG(bronze) FROM table_name_82 WHERE gold < 0
Which Bronze has a Gold smaller than 0?
CREATE TABLE table_name_82 (bronze INTEGER, gold INTEGER)
SELECT latitude FROM table_16799784_11 WHERE name = "Yuzut-Arkh Fossae"
At what latitude can the name origin of yuzut-arkh fossae be found?
CREATE TABLE table_16799784_11 (latitude VARCHAR, name VARCHAR)
SELECT All_Home, SUM(Team_ID) FROM basketball_match GROUP BY All_Home ORDER BY All_Home
Visualize a bar chart about the distribution of All_Home and the sum of Team_ID , and group by attribute All_Home, and I want to show in ascending by the x axis please.
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Per...
SELECT tc FROM table_name_40 WHERE wins = 1 AND races = 21
Which T.C. has a Win of 1, and a Race of 21?
CREATE TABLE table_name_40 (tc VARCHAR, wins VARCHAR, races VARCHAR)
SELECT latitude FROM table_16799784_11 WHERE name = "Naijok Fossae"
At what latitude can the name origin of naijok fossae be found?
CREATE TABLE table_16799784_11 (latitude VARCHAR, name VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND date_day.day_number = 23 AND date_day.month_number = 4 AND ...
are there any flights on US from PITTSBURGH to ATLANTA on wednesday
CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE fare ( fare_id int, from_airport varchar, to_airport varchar, fare_basis_code text, fare_airline text, restriction_code text, one_direction_cost int, round_trip_cost int, round_trip_re...
SELECT COUNT(year) FROM table_name_67 WHERE drivers = "ben hanley" AND flaps < 0
How many years have Drivers of ben hanley, and Flaps smaller than 0?
CREATE TABLE table_name_67 (year VARCHAR, drivers VARCHAR, flaps VARCHAR)
SELECT latitude FROM table_16799784_11 WHERE diameter__km_ = "500.0"
At what latitude can you find the diameter (km) of 500.0?
CREATE TABLE table_16799784_11 (latitude VARCHAR, diameter__km_ VARCHAR)
SELECT kerry__number FROM table_13606924_1 WHERE county = "Ness county, Kansas"
what's the kerry # with county being ness county, kansas
CREATE TABLE table_13606924_1 ( kerry__number VARCHAR, county VARCHAR )
SELECT AVG(points) FROM table_name_97 WHERE drivers = "adrián vallés" AND year > 2006
How many Points have Drivers of adrián vallés, and a Year larger than 2006?
CREATE TABLE table_name_97 (points INTEGER, drivers VARCHAR, year VARCHAR)
SELECT COUNT(diameter__km_) FROM table_16799784_14 WHERE latitude = "5.0N"
How many numbers are listed under diameter with a lattitude of 5.0n?
CREATE TABLE table_16799784_14 (diameter__km_ VARCHAR, latitude VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Other anomalies of larynx, trachea, and bronchus"
how many patients are diagnosed with other anomalies of larnyx, trachea and bronchus?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, ...
SELECT SUM(poles) FROM table_name_27 WHERE drivers = "juan cruz álvarez" AND flaps > 0
How many Poles have Drivers of juan cruz álvarez, and FLaps larger than 0?
CREATE TABLE table_name_27 (poles INTEGER, drivers VARCHAR, flaps VARCHAR)
SELECT name AS origin FROM table_16799784_14 WHERE diameter__km_ = "220.0"
What is the name origin with a diameter of 220.0 kilometers?
CREATE TABLE table_16799784_14 (name VARCHAR, diameter__km_ VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicaid" AND diagnoses.long_title = "Other chronic pain"
how many patients whose insurance is medicaid and diagnoses long title is other chronic pain?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob te...
SELECT away_team FROM table_name_52 WHERE venue = "victoria park"
Who was the away team at Victoria Park?
CREATE TABLE table_name_52 (away_team VARCHAR, venue VARCHAR)
SELECT name FROM table_16799784_14 WHERE longitude = "246.0E"
What is the name of feature with a longitude 246.0e?
CREATE TABLE table_16799784_14 (name VARCHAR, longitude VARCHAR)
SELECT "Result" FROM table_55136 WHERE "Nominated work" = 'white valentine'
Did the nominated work of white valentine win an award?
CREATE TABLE table_55136 ( "Year" real, "Award" text, "Category" text, "Nominated work" text, "Result" text )
SELECT name FROM table_name_41 WHERE number < 6 AND date < 1993
What is the name of the train numbered less than 6 before 1993?
CREATE TABLE table_name_41 (name VARCHAR, number VARCHAR, date VARCHAR)
SELECT name AS origin FROM table_16799784_12 WHERE name = "Ovda Fluctus"
What is every name origin with the name Ovda Fluctus?
CREATE TABLE table_16799784_12 (name VARCHAR)
SELECT MAX("Region") FROM table_77859 WHERE "Code" < '66112' AND "Name" = 'l''île-dorval'
What is the largest region with a Code smaller than 66112, and a Name of l' le-dorval?
CREATE TABLE table_77859 ( "Code" real, "Type" text, "Name" text, "Area (km 2 )" real, "Population" real, "Regional County Municipality" text, "Metropolitan area" text, "Region" real )
SELECT name FROM table_name_31 WHERE number < 5 AND type = "bo-bodh"
What is the name of the bo-bodh train with a number less than 5?
CREATE TABLE table_name_31 (name VARCHAR, number VARCHAR, type VARCHAR)
SELECT MAX(year_named) FROM table_16799784_12 WHERE name = "Tie Fluctus"
What is the highest year named for the name Tie Fluctus?
CREATE TABLE table_16799784_12 (year_named INTEGER, name VARCHAR)
SELECT MIN("population\n(2009)") FROM table_204_381
what is the least population of 2009 ?
CREATE TABLE table_204_381 ( id number, "sum" number, "mongolian" number, "population\n(2005)" number, "population\n(2008)" number, "population\n(2009)" number, "area\nkm2" number, "density\n/km2" number, "sum centre\npopulation" number )
SELECT record FROM table_name_41 WHERE visitor = "st. louis"
Name the record when the visitor is st. louis
CREATE TABLE table_name_41 (record VARCHAR, visitor VARCHAR)
SELECT year_named FROM table_16799784_12 WHERE latitude = "66.5N"
What is every year named for the latitude of 66.5N?
CREATE TABLE table_16799784_12 (year_named VARCHAR, latitude VARCHAR)
SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE (((flight.airline_code = 'UA') AND flight.flight_number = 21) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANC...
what is the fare from BOSTON to SAN FRANCISCO on UA flight 21
CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, depart...
SELECT score FROM table_name_10 WHERE visitor = "calgary"
What was the scory when calgary was visiting?
CREATE TABLE table_name_10 (score VARCHAR, visitor VARCHAR)
SELECT name FROM table_16799784_12 WHERE longitude = "152.0E"
What is every name for longitude of 152.0E?
CREATE TABLE table_16799784_12 (name VARCHAR, longitude VARCHAR)
SELECT song_title FROM table_21500850_1 WHERE year = 2007
What is every song title for 2007?
CREATE TABLE table_21500850_1 ( song_title VARCHAR, year VARCHAR )
SELECT home FROM table_name_12 WHERE visitor = "dallas" AND date = "february 2"
Name the home when the visitor was dallas on february 2
CREATE TABLE table_name_12 (home VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT diameter__km_ FROM table_16799784_13 WHERE longitude = "8.0E"
What is the diameter of the feature with longitude 8.0e?
CREATE TABLE table_16799784_13 (diameter__km_ VARCHAR, longitude VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'CINCINNATI' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAL...
flights from CINCINNATI to SALT LAKE CITY
CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE time_zone ( time_zone_code text, time_zone...
SELECT date FROM table_name_5 WHERE decision = "turco" AND home = "st. louis"
Name the date for turco decision and home of st. louis
CREATE TABLE table_name_5 (date VARCHAR, decision VARCHAR, home VARCHAR)
SELECT name FROM table_16799784_13 WHERE latitude = "23.9S"
What feature is at latitude 23.9S?
CREATE TABLE table_16799784_13 (name VARCHAR, latitude VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "61" AND prescriptions.route = "IM"
what is the number of patients whose age is less than 61 and drug route is im?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, ...
SELECT rider FROM table_name_84 WHERE speed = "104.630mph"
Which rider had a speed of 104.630mph?
CREATE TABLE table_name_84 (rider VARCHAR, speed VARCHAR)
SELECT MAX(year_named) FROM table_16799784_13
When was the most recently named feature named?
CREATE TABLE table_16799784_13 (year_named INTEGER)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Resp prob after brth NEC"
count the number of patients who have a diagnoses of other respiratory problems after birth.
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, ...
SELECT MAX(rank) FROM table_name_59 WHERE time = "1:05.14.10"
What is the best rank with a time of 1:05.14.10?
CREATE TABLE table_name_59 (rank INTEGER, time VARCHAR)
SELECT name FROM table_16799784_2 WHERE latitude = "36.0N"
Name the name of 36.0n
CREATE TABLE table_16799784_2 (name VARCHAR, latitude VARCHAR)
SELECT name, distance FROM aircraft ORDER BY name
Show name and distance for all aircrafts Visualize by bar chart, order names from low to high order please.
CREATE TABLE certificate ( eid number(9,0), aid number(9,0) ) CREATE TABLE flight ( flno number(4,0), origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date date, arrival_date date, price number(7,2), aid number(9,0) ) CREATE TABLE employee ( ei...
SELECT stadium FROM table_name_71 WHERE final_score = "35-62"
Where was the game played when the final score was 35-62?
CREATE TABLE table_name_71 (stadium VARCHAR, final_score VARCHAR)
SELECT latitude FROM table_16799784_2 WHERE name = "Laima Tessera"
Name the latitude of laima tessera
CREATE TABLE table_16799784_2 (latitude VARCHAR, name VARCHAR)
SELECT SUM("Goals For") FROM table_57522 WHERE "Wins" < '4' AND "Losses" > '6'
How many goals for were scored for the team(s) that won fewer than 4 games and lost more than 6?
CREATE TABLE table_57522 ( "Team" text, "Games Played" real, "Wins" real, "Losses" real, "Ties" real, "Goals For" real, "Goals Against" real )
SELECT visiting_team FROM table_name_99 WHERE stadium = "candlestick park"
During the game at Candlestick Park, who was the visiting team?
CREATE TABLE table_name_99 (visiting_team VARCHAR, stadium VARCHAR)
SELECT name AS origin FROM table_16799784_2 WHERE longitude = "54.0E"
Name the name origin for 54.0e
CREATE TABLE table_16799784_2 (name VARCHAR, longitude VARCHAR)
SELECT "Result F\u2013A" FROM table_62414 WHERE "H / A" = 'h' AND "Round" = 'quarter-final first leg'
What is the Result F-A that was the quarter-final first leg round with a H/A of h?
CREATE TABLE table_62414 ( "Date" text, "Round" text, "Opponents" text, "H / A" text, "Result F\u2013A" text, "Attendance" real )
SELECT visiting_team FROM table_name_12 WHERE final_score = "14-34"
Which visiting team had a final score of 14-34?
CREATE TABLE table_name_12 (visiting_team VARCHAR, final_score VARCHAR)
SELECT longitude FROM table_16799784_4 WHERE name = "Grechukha Tholi"
Grechukha Tholi has what longitude?
CREATE TABLE table_16799784_4 (longitude VARCHAR, name VARCHAR)
SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id
Which upper elective courses can CS students take ?
CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_proje...
SELECT final_score FROM table_name_78 WHERE visiting_team = "cincinnati bengals"
What was the final score in the game against the Cincinnati Bengals?
CREATE TABLE table_name_78 (final_score VARCHAR, visiting_team VARCHAR)
SELECT name FROM table_16799784_4 WHERE longitude = "202.9E"
Where is longitude 202.9e?
CREATE TABLE table_16799784_4 (name VARCHAR, longitude VARCHAR)
SELECT "Format" FROM table_39880 WHERE "Date" = 'april 11, 2005' AND "Catalog" = 'nebt068'
In what format was the release from the Nebt068 catalog on April 11, 2005 in?
CREATE TABLE table_39880 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalog" text )
SELECT visiting_team FROM table_name_10 WHERE host_team = "dallas cowboys"
Who was the visiting team in the game against the Dallas Cowboys?
CREATE TABLE table_name_10 (visiting_team VARCHAR, host_team VARCHAR)
SELECT COUNT(year_named) FROM table_16799784_4 WHERE name = "Otafuku Tholi"
How many schools are named otafuku tholi?
CREATE TABLE table_16799784_4 (year_named VARCHAR, name VARCHAR)
SELECT "Points Classification" FROM table_67465 WHERE "Team Classification" = 'quick step-innergetic' AND "Stage" = '7'
Name the points classification for quick step-innergetic with stage 7
CREATE TABLE table_67465 ( "Stage" text, "Winner" text, "General classification" text, "Points Classification" text, "Team Classification" text )
SELECT tournament FROM table_name_93 WHERE outcome = "runner-up" AND opponent = "maša zec peškirič"
Which tournament has an Outcome of runner-up, and an Opponent of maša zec peškirič?
CREATE TABLE table_name_93 (tournament VARCHAR, outcome VARCHAR, opponent VARCHAR)
SELECT MAX(year_named) FROM table_16799784_4 WHERE name = "Norterma Tholus"
What year was Norterma Tholus created?
CREATE TABLE table_16799784_4 (year_named INTEGER, name VARCHAR)
SELECT club_province FROM table_name_93 WHERE position = "wing" AND caps < 24 AND player = "sireli bobo"
What is the club/province of Sireli Bobo, who plays wing and has less than 24 caps?
CREATE TABLE table_name_93 ( club_province VARCHAR, player VARCHAR, position VARCHAR, caps VARCHAR )
SELECT surface FROM table_name_45 WHERE score = "6–4, 6–2"
Which surface has a Score of 6–4, 6–2?
CREATE TABLE table_name_45 (surface VARCHAR, score VARCHAR)
SELECT round1 FROM table_16815824_1 WHERE team = "Great Britain"
What was Great Britain's Round 1 score?
CREATE TABLE table_16815824_1 (round1 VARCHAR, team VARCHAR)
SELECT "Date" FROM table_16936 WHERE "Tournament" = 'Ford Senior Players Championship'
what's the date with tournament value of ford senior players championship
CREATE TABLE table_16936 ( "Date" text, "Tournament" text, "Location" text, "Purse( $ )" real, "Winner" text, "Score" text, "1st Prize( $ )" real )
SELECT surface FROM table_name_57 WHERE date = "22 august 2006"
Which surface has a Date of 22 august 2006?
CREATE TABLE table_name_57 (surface VARCHAR, date VARCHAR)
SELECT MIN(round4) FROM table_16815824_1 WHERE team = "team Toshiba"
What was team Toshiba's round 4 score?
CREATE TABLE table_16815824_1 (round4 INTEGER, team VARCHAR)
SELECT viewer FROM table_1574968_1 WHERE language = "troff (typesetter runoff) , groff (GNU runoff)"
Which viewers have the language of troff (typesetter runoff) , groff (gnu runoff)?
CREATE TABLE table_1574968_1 ( viewer VARCHAR, language VARCHAR )
SELECT tournament FROM table_name_95 WHERE outcome = "runner-up" AND surface = "hard" AND score = "6–4, 6–2"
Which tournament has an Outcome of runner-up, a Surface of hard, and a Score of 6–4, 6–2?
CREATE TABLE table_name_95 (tournament VARCHAR, score VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT MAX(round2) FROM table_16815824_1
What was the highest score for round 2?
CREATE TABLE table_16815824_1 (round2 INTEGER)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Abnormal coagulation profile" AND lab."CATEGORY" = "Chemistry"
how many patients are diagnosed for abnormal coagulation profile and tested under the chemistry lab category?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
SELECT outcome FROM table_name_37 WHERE opponent = "marina erakovic"
What is the outcome with marina erakovic as opponent?
CREATE TABLE table_name_37 (outcome VARCHAR, opponent VARCHAR)
SELECT round5 FROM table_16815824_1 WHERE total_points = 212
What was the round 5 score if the team's total points where 212?
CREATE TABLE table_16815824_1 (round5 VARCHAR, total_points VARCHAR)
SELECT written_by FROM table_29920800_1 WHERE us_viewers__million_ = "2.97"
Who wrote the episode that was watched by 2.97 million U.S. viewers?
CREATE TABLE table_29920800_1 ( written_by VARCHAR, us_viewers__million_ VARCHAR )
SELECT tournament FROM table_name_53 WHERE outcome = "winner" AND opponent = "dia evtimova"
Which tournament has an Outcome of winner, and a Opponent of dia evtimova?
CREATE TABLE table_name_53 (tournament VARCHAR, outcome VARCHAR, opponent VARCHAR)
SELECT COUNT(round2) FROM table_16815824_1 WHERE team = "team Toshiba"
What is the score for round 2 for team Toshiba?
CREATE TABLE table_16815824_1 (round2 VARCHAR, team VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND date_day.day_number = 27 AND date_day.month_number =...
is there a UA flight from BALTIMORE to SAN FRANCISCO on the morning of 8 27
CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE time_zone ( time_zone_cod...
SELECT title FROM table_name_5 WHERE time = "3:22"
What title runs for 3:22?
CREATE TABLE table_name_5 (title VARCHAR, time VARCHAR)
SELECT name AS origin FROM table_16799784_9 WHERE longitude = "355.0E"
At the longitude of 355.0e, what is the name origin?
CREATE TABLE table_16799784_9 (name VARCHAR, longitude VARCHAR)
SELECT position FROM table_name_95 WHERE round = 27
What Position has a Round of 27?
CREATE TABLE table_name_95 ( position VARCHAR, round VARCHAR )
SELECT author_s_ FROM table_name_35 WHERE time = "2:22"
Who wrote the song that runs for 2:22?
CREATE TABLE table_name_35 (author_s_ VARCHAR, time VARCHAR)
SELECT name AS origin FROM table_16799784_9 WHERE name = "Morrigan Linea"
What is the name origin of Morrigan Linea?
CREATE TABLE table_16799784_9 (name VARCHAR)
SELECT SUM("Rank") FROM table_58929 WHERE "Gold" > '2' AND "Total" < '31' AND "Silver" < '5'
What is the rank of a country with more than 2 gold, less than 5 silver, and less than 31 total medals?
CREATE TABLE table_58929 ( "Rank" real, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT constructor FROM table_name_74 WHERE laps = 66
What Constructor had 66 Laps?
CREATE TABLE table_name_74 (constructor VARCHAR, laps VARCHAR)
SELECT COUNT(year_named) FROM table_16799784_9 WHERE longitude = "20.0E"
How many years have a longitude measure of 20.0e?
CREATE TABLE table_16799784_9 (year_named VARCHAR, longitude VARCHAR)
SELECT LAST_NAME, SALARY FROM employees
Show each employee's salary using a bar chart, note that use the last name of each employee.
CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0),...
SELECT MIN(grid) FROM table_name_30 WHERE laps > 78
With Laps greater than 78, what is the lowest Grid?
CREATE TABLE table_name_30 (grid INTEGER, laps INTEGER)
SELECT diameter__km_ FROM table_16799784_9 WHERE longitude = "293.0E"
At a longitude of 293.0e, what is the diameter, in km?
CREATE TABLE table_16799784_9 (diameter__km_ VARCHAR, longitude VARCHAR)
SELECT COUNT("Record") FROM table_21363 WHERE "Team" = 'Washington'
What was the record against Washington?
CREATE TABLE table_21363 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT AVG(laps) FROM table_name_71 WHERE driver = "john watson" AND grid < 11
How many Laps with a Grid smaller than 11 did John Watson have?
CREATE TABLE table_name_71 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT release_date FROM table_1681535_1 WHERE notes = "Bonus interview with Peter Purves"
What is the release date of the bonus interview with Peter Purves?
CREATE TABLE table_1681535_1 (release_date VARCHAR, notes VARCHAR)
SELECT water FROM table_name_50 WHERE wood = "green"
Which water has green wood?
CREATE TABLE table_name_50 ( water VARCHAR, wood VARCHAR )
SELECT AVG(laps) FROM table_name_42 WHERE driver = "niki lauda" AND grid < 3
How many Laps with a Grid smaller than 3 did Driver NIki Lauda have?
CREATE TABLE table_name_42 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT narrator FROM table_1681535_1 WHERE notes = "Bonus interview with Frazer Hines"
Which narrator has the bonus interview with Frazer Hines?
CREATE TABLE table_1681535_1 (narrator VARCHAR, notes VARCHAR)
SELECT DISTINCT COUNT(paper.paperid) FROM author, paper, venue, writes WHERE author.authorname = 'nicola dell' AND venue.venueid = paper.venueid AND venue.venuename = 'chi' AND writes.authorid = author.authorid AND writes.paperid = paper.paperid
how many papers does nicola dell have at chi
CREATE TABLE writes ( paperid int, authorid int ) CREATE TABLE cite ( citingpaperid int, citedpaperid int ) CREATE TABLE keyphrase ( keyphraseid int, keyphrasename varchar ) CREATE TABLE field ( fieldid int ) CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE pap...
SELECT MIN(grid) FROM table_name_21 WHERE time_retired = "steering" AND laps < 15
What is the low grid total for a retired due to steering in under 15 laps?
CREATE TABLE table_name_21 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT release_date FROM table_1681535_1 WHERE title = "Destiny of the Daleks"
What is the release date for Destiny of the Daleks?
CREATE TABLE table_1681535_1 (release_date VARCHAR, title VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "M" AND procedures.icd9_code = "9703"
how many male patients had the procedure icd9 code 9703?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
SELECT AVG(laps) FROM table_name_27 WHERE time_retired = "+5 laps"
What is the average laps that had a time/retired of +5 laps?
CREATE TABLE table_name_27 (laps INTEGER, time_retired VARCHAR)
SELECT profits__billion_$_ FROM table_1682026_3 WHERE company = "Wells Fargo"
What are the profits of Wells Fargo (in billions)?
CREATE TABLE table_1682026_3 (profits__billion_$_ VARCHAR, company VARCHAR)