answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT not_out FROM table_20367820_16 WHERE average = "43.70"
How many no outs are there for an average of 43.70?
CREATE TABLE table_20367820_16 ( not_out VARCHAR, average VARCHAR )
SELECT MAX(presidency) FROM table_name_8 WHERE left_office = "1998" AND took_office > 1974
What is the highest Presidency that Took Office after 1974 and Left Office in 1998?
CREATE TABLE table_name_8 (presidency INTEGER, left_office VARCHAR, took_office VARCHAR)
SELECT stroke FROM table_21021796_1 WHERE applications = "1999 W210 E-Class , 2000 W203 C-Class"
For the 1999 w210 e-class , 2000 w203 c-class, what is the stroke?
CREATE TABLE table_21021796_1 (stroke VARCHAR, applications VARCHAR)
SELECT COUNT(crowd) FROM table_name_15 WHERE away_team = "st kilda"
How many times is st kilda the away team?
CREATE TABLE table_name_15 ( crowd VARCHAR, away_team VARCHAR )
SELECT SUM(took_office) FROM table_name_42 WHERE left_office = "incumbent"
What is the Took Office Date of the Presidency that Left Office Incumbent?
CREATE TABLE table_name_42 (took_office INTEGER, left_office VARCHAR)
SELECT displacement FROM table_21021796_1 WHERE torque = "N·m (lb·ft) @1500 rpm"
What is the displacement for torque of n·m (lb·ft) @1500 rpm?
CREATE TABLE table_21021796_1 (displacement VARCHAR, torque VARCHAR)
SELECT demographic.religion FROM demographic WHERE demographic.subject_id = "3343"
which religious background does the patient with patient id 3343 belong to?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id t...
SELECT MAX(took_office) FROM table_name_22 WHERE left_office = "1998"
What was the greatest Took Office dates that Left Office in 1998?
CREATE TABLE table_name_22 (took_office INTEGER, left_office VARCHAR)
SELECT power FROM table_21021796_1 WHERE torque = "N·m (lb·ft) @1600–2400 rpm" AND applications = "2000 W90x Sprinter"
If torque is n·m (lb·ft) @1600–2400 rpm and applications is 2000 w90x sprinter, what is the power?
CREATE TABLE table_21021796_1 (power VARCHAR, torque VARCHAR, applications VARCHAR)
SELECT class FROM table_name_90 WHERE livery = "wessex trains pink"
What is the Class when Wessex Trains Pink is the Livery?
CREATE TABLE table_name_90 ( class VARCHAR, livery VARCHAR )
SELECT AVG(laps) FROM table_name_76 WHERE driver = "andrea de cesaris"
What is the average Laps for andrea de cesaris?
CREATE TABLE table_name_76 (laps INTEGER, driver VARCHAR)
SELECT torque FROM table_21021796_1 WHERE stroke = "88.4mm"
List the torque possible when the stroke is 88.4mm?
CREATE TABLE table_21021796_1 (torque VARCHAR, stroke VARCHAR)
SELECT "Income inequality 1994\u20132011 (latest available)" FROM table_33325 WHERE "Country" = 'seychelles'
What is the current income inequality for the country of Seychelles?
CREATE TABLE table_33325 ( "Country" text, "Area (km\u00b2) 2010" text, "Population 2011" text, "GDP (PPP) ( Intl. $ ) 2011" text, "GDP (PPP) per capita ( Intl. $ ) 2011" text, "Income inequality 1994\u20132011 (latest available)" text, "HDI 2011" text, "FSI 2012" text, "CPI 2011" te...
SELECT MIN(grid) FROM table_name_81 WHERE laps > 51 AND driver = "jj lehto"
What is the lowest Grid for jj lehto with over 51 laps?
CREATE TABLE table_name_81 (grid INTEGER, laps VARCHAR, driver VARCHAR)
SELECT opponent FROM table_21007907_1 WHERE record = "7-1-0"
Name the opponent for 7-1-0
CREATE TABLE table_21007907_1 (opponent VARCHAR, record VARCHAR)
SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY AVG(MANAGER_ID) DESC
For those employees who did not have any job in the past, visualize a bar chart about the distribution of job_id and the average of manager_id , and group by attribute job_id, and could you list in descending by the Y?
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), CO...
SELECT AVG(grid) FROM table_name_83 WHERE time_retired = "+2 laps" AND laps < 51
What is the average Grid that has a Time/Retired of +2 laps, and under 51 laps?
CREATE TABLE table_name_83 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT episode FROM table_2102782_1 WHERE run_time = "25:05"
Name the episode for run time 25:05
CREATE TABLE table_2102782_1 (episode VARCHAR, run_time VARCHAR)
SELECT tie_no FROM table_name_56 WHERE home_team = "sheffield wednesday"
What was the tie resulting from Sheffield Wednesday's game?
CREATE TABLE table_name_56 ( tie_no VARCHAR, home_team VARCHAR )
SELECT home_team FROM table_name_48 WHERE venue = "victoria park"
What's the Home teams Venue near Victoria Park?
CREATE TABLE table_name_48 (home_team VARCHAR, venue VARCHAR)
SELECT broadcast_date FROM table_2102782_1 WHERE run_time = "25:04"
Name the broadcast date for run timke of 25:04
CREATE TABLE table_2102782_1 (broadcast_date VARCHAR, run_time VARCHAR)
SELECT MAX("Crowd") FROM table_56253 WHERE "Away team" = 'st kilda'
What is the largest crowd for an Away team of st kilda?
CREATE TABLE table_56253 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT crowd FROM table_name_33 WHERE home_team = "footscray"
What is the Home team with a crowd relevant to footscray?
CREATE TABLE table_name_33 (crowd VARCHAR, home_team VARCHAR)
SELECT archive FROM table_2102782_1 WHERE run_time = "23:55"
Name the archive for run time of 23:55
CREATE TABLE table_2102782_1 (archive VARCHAR, run_time VARCHAR)
SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'MUSED' AND course.number = 371 AND semester.semester = 'Spring' AND semester.semester_id = course_offering.semester
Was MUSED 371 ever offered in the Spring ?
CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varch...
SELECT record FROM table_name_91 WHERE home = "nashville"
What is the team's record when they play nashville at home?
CREATE TABLE table_name_91 (record VARCHAR, home VARCHAR)
SELECT broadcast_date FROM table_2102782_1 WHERE viewers__in_millions_ = "7.4"
Name the broadcast date for 7.4 viewers
CREATE TABLE table_2102782_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR)
SELECT COUNT(rank) FROM table_name_98 WHERE attendance = 93 OFFSET 039
What is the Rank of the game with an Attendance of 93,039?
CREATE TABLE table_name_98 ( rank VARCHAR, attendance VARCHAR )
SELECT decision FROM table_name_22 WHERE visitor = "phoenix"
What is the decision when they're at phoenix?
CREATE TABLE table_name_22 (decision VARCHAR, visitor VARCHAR)
SELECT broadcast_date FROM table_2102782_1 WHERE viewers__in_millions_ = "6.0"
Name the broadcast date for 6.0 viewers
CREATE TABLE table_2102782_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR)
SELECT DISTINCT name, number FROM course WHERE credits = 11 AND department = 'EECS'
Courses worth 11 credits ?
CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar...
SELECT score FROM table_name_66 WHERE tournament = "frankfurt"
What was the score in the Tournament of Frankfurt?
CREATE TABLE table_name_66 (score VARCHAR, tournament VARCHAR)
SELECT COUNT(episode_no) FROM table_21025437_2 WHERE written_by = "Kirstie Falkous & John Regier"
How many episodes were written by Kirstie Falkous & John Regier?
CREATE TABLE table_21025437_2 (episode_no VARCHAR, written_by VARCHAR)
SELECT high_points FROM table_23286112_7 WHERE location_attendance = "Verizon Center 17,152"
Who has high points when verizon center 17,152 is location attendance?
CREATE TABLE table_23286112_7 ( high_points VARCHAR, location_attendance VARCHAR )
SELECT winner FROM table_name_56 WHERE tournament = "graz-seiersberg"
Who was the winner in the Tournament of Graz-Seiersberg?
CREATE TABLE table_name_56 (winner VARCHAR, tournament VARCHAR)
SELECT episode FROM table_2102714_1 WHERE viewers__in_millions_ = "9.7"
What episode had 9.7 million viewers?
CREATE TABLE table_2102714_1 (episode VARCHAR, viewers__in_millions_ VARCHAR)
SELECT DISTINCT airport.airport_code FROM airport, flight WHERE flight.airline_code = 'CP' AND flight.to_airport = airport.airport_code
where does CP fly to
CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE aircraft ( aircraft_code varchar, aircraft_description varchar, manufacturer varchar, basic_type varchar, engines int, propul...
SELECT third_place FROM table_name_68 WHERE winner = "paul haarhuis"
Who earned third place when the winner was Paul Haarhuis?
CREATE TABLE table_name_68 (third_place VARCHAR, winner VARCHAR)
SELECT broadcast_date FROM table_2102714_1 WHERE run_time = "24:40"
What date was an episode broadcasted on that had a run time of 24:40?
CREATE TABLE table_2102714_1 (broadcast_date VARCHAR, run_time VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "MORBID OBESITY/SDA" AND lab.fluid = "Ascites"
give me the number of patients whose primary disease is morbid obesity/sda and lab test fluid is ascites?
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 lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text,...
SELECT MAX(laps) FROM table_name_35 WHERE time_retired = "differential" AND grid > 2
what is the most laps with the time/retired is differential and the grid is more than 2?
CREATE TABLE table_name_35 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT episode FROM table_2102714_1 WHERE run_time = "24:53"
What episode had a run time of 24:53?
CREATE TABLE table_2102714_1 (episode VARCHAR, run_time VARCHAR)
SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'tracheostomy - performed during current admission for ventilatory support'
calculate the number of tracheostomy - performed during current admission for ventilatory support cases.
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospit...
SELECT MIN(laps) FROM table_name_94 WHERE grid = 5
what is the least laps when the grid is 5?
CREATE TABLE table_name_94 (laps INTEGER, grid VARCHAR)
SELECT archive FROM table_2102714_1 WHERE run_time = "25:24"
What was the archive for the episode with a run time of 25:24?
CREATE TABLE table_2102714_1 (archive VARCHAR, run_time VARCHAR)
SELECT MIN(week) FROM table_name_60 WHERE month = "august" AND offensive = "andrew combs"
What was the lowest week in the month of August against Andrew Combs?
CREATE TABLE table_name_60 ( week INTEGER, month VARCHAR, offensive VARCHAR )
SELECT deleted FROM table_name_8 WHERE name = "anniston army depot (se industrial area)"
On what date was Anniston Army Depot (SE Industrial Area) deleted?
CREATE TABLE table_name_8 (deleted VARCHAR, name VARCHAR)
SELECT archive FROM table_2102714_1 WHERE run_time = "24:05"
What is he archive for the episode with a run time of 24:05?
CREATE TABLE table_2102714_1 (archive VARCHAR, run_time VARCHAR)
SELECT class FROM table_name_4 WHERE frequency_mhz < 103.1 AND city_of_license = "morro bay, california"
What class has a MHZ frequency under 103.1 licensed in morro bay, california?
CREATE TABLE table_name_4 ( class VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR )
SELECT county FROM table_name_68 WHERE listed = "09/21/1984" AND construction_completed = "07/19/2000"
In what county is the entry that has a Construction Completed date of 07/19/2000 and a Listed date of 09/21/1984 located?
CREATE TABLE table_name_68 (county VARCHAR, listed VARCHAR, construction_completed VARCHAR)
SELECT directed_by FROM table_21025437_6 WHERE episode_no = 23
Who directed episode number 23?
CREATE TABLE table_21025437_6 (directed_by VARCHAR, episode_no VARCHAR)
SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < "1989-09-03" OR invoice_date > "2007-12-25"
What are the distinct details of invoices created before 1989-09-03 or after 2007-12-25?
CREATE TABLE orders ( order_id number, customer_id number, order_status text, date_order_placed time, order_details text ) CREATE TABLE shipment_items ( shipment_id number, order_item_id number ) CREATE TABLE products ( product_id number, product_name text, product_details text...
SELECT deleted FROM table_name_35 WHERE listed = "09/21/1984" AND name = "stauffer chemical company (lemoyne plant)"
On what date was Stauffer Chemical Company (Lemoyne Plant), which was listed on 09/21/1984, deleted?
CREATE TABLE table_name_35 (deleted VARCHAR, listed VARCHAR, name VARCHAR)
SELECT MAX(game) FROM table_21034801_1 WHERE record = "4-0"
What was the numer of the game when the record was 4-0?
CREATE TABLE table_21034801_1 (game INTEGER, record VARCHAR)
SELECT CONCAT(YEAR(P.CreationDate), '-', MONTH(P.CreationDate)) AS YearMonth, COUNT(*) AS PostCount FROM Posts AS P GROUP BY YEAR(P.CreationDate), MONTH(P.CreationDate) ORDER BY YEAR(P.CreationDate) DESC, MONTH(P.CreationDate) DESC
DBA - Total Posts per Month.
CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number ) CRE...
SELECT proposed FROM table_name_56 WHERE cerclis_id = "al0001058056"
What was the Proposed date of the entry that has a CERCLIS ID of al0001058056?
CREATE TABLE table_name_56 (proposed VARCHAR, cerclis_id VARCHAR)
SELECT COUNT(opponent) FROM table_21034801_1 WHERE record = "7-0"
How many opponents led to an exactly 7-0 record?
CREATE TABLE table_21034801_1 (opponent VARCHAR, record VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.expire_flag = "0" AND lab.label = "Phosphate, Urine"
Give the number of patients that survived and had a lab test name of phosphate, urine.
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( ...
SELECT first_appearance FROM table_name_60 WHERE year = 1966 AND name = "x-2-y"
What first appeared in 1966 in the comic X-2-Y?
CREATE TABLE table_name_60 (first_appearance VARCHAR, year VARCHAR, name VARCHAR)
SELECT game FROM table_21034801_1 WHERE opponent = "Kansas State"
What number was the game against Kansas State?
CREATE TABLE table_21034801_1 (game VARCHAR, opponent VARCHAR)
SELECT fri_3_june FROM table_29218221_3 WHERE thurs_2_june = "20' 50.45 108.623mph"
What was the Friday June 3 practice time of the rider who did 20' 50.45 108.623mph on Thursday, June 2?
CREATE TABLE table_29218221_3 ( fri_3_june VARCHAR, thurs_2_june VARCHAR )
SELECT team FROM table_name_75 WHERE sport = "baseball" AND class = "aaa"
Which baseball team is class AAA?
CREATE TABLE table_name_75 (team VARCHAR, sport VARCHAR, class VARCHAR)
SELECT COUNT(episode) FROM table_2102898_1 WHERE run_time = "24:33"
How many episodes ran 24:33?
CREATE TABLE table_2102898_1 (episode VARCHAR, run_time VARCHAR)
SELECT YEAR(p.LastActivityDate) AS "recent", p.Title, YEAR(p.CreationDate) AS "initial" FROM Posts AS p WHERE p.Tags LIKE '<linear-algebra>' AND p.Score > 0
timeline for linear algebra.
CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, ...
SELECT venue FROM table_name_55 WHERE away_team = "collingwood"
Where does Collingwood play their games?
CREATE TABLE table_name_55 (venue VARCHAR, away_team VARCHAR)
SELECT viewers__in_millions_ FROM table_2102898_1 WHERE broadcast_date = "25April1970"
On broadcast date is 25april1970, how many people tuned in?
CREATE TABLE table_2102898_1 (viewers__in_millions_ VARCHAR, broadcast_date VARCHAR)
SELECT MAX(league_cup_goals) FROM table_name_6 WHERE club = "hartlepool"
What is the highest number of League Cup goals that were scored by Hartlepool?
CREATE TABLE table_name_6 ( league_cup_goals INTEGER, club VARCHAR )
SELECT position FROM table_name_20 WHERE player = "robert nkemdiche"
Which position does Robert Nkemdiche play?
CREATE TABLE table_name_20 (position VARCHAR, player VARCHAR)
SELECT viewers__in_millions_ FROM table_2102898_1 WHERE broadcast_date = "28March1970"
On broadcast date is 28march1970, how many people tuned in?
CREATE TABLE table_2102898_1 (viewers__in_millions_ VARCHAR, broadcast_date VARCHAR)
SELECT "Population (2011)" FROM table_1789 WHERE "Country" = 'Luxembourg'
Name the population 2011 for luxembourg
CREATE TABLE table_1789 ( "Country" text, "Population (2011)" real, "GDP (nominal) (2010, US$ millions)" real, "Military expenditures (2011, US$ millions)" real, "Military expenditures (2011, % of GDP)" text, "Defence expenditures, (2011, per capita)" real, "Deployable military (2011, thousa...
SELECT college FROM table_name_59 WHERE player = "reuben foster"
What is Reuben Foster's college?
CREATE TABLE table_name_59 (college VARCHAR, player VARCHAR)
SELECT COUNT(viewers__in_millions_) FROM table_2102898_1 WHERE broadcast_date = "21March1970"
On broadcast date is 21march1970, how many people tuned in?
CREATE TABLE table_2102898_1 (viewers__in_millions_ VARCHAR, broadcast_date VARCHAR)
SELECT "Position" FROM table_27377 WHERE "College" = 'Langston'
What position was the draft pick that came from Langston?
CREATE TABLE table_27377 ( "Pick #" real, "NFL Team" text, "Player" text, "Position" text, "College" text )
SELECT position FROM table_name_68 WHERE hometown = "muscle shoals, alabama"
Which position does the player from Muscle Shoals, Alabama play?
CREATE TABLE table_name_68 (position VARCHAR, hometown VARCHAR)
SELECT archive FROM table_2102898_1 WHERE broadcast_date = "18April1970"
What is the archive of the show that aired on 18april1970?
CREATE TABLE table_2102898_1 (archive VARCHAR, broadcast_date VARCHAR)
SELECT "Constructor" FROM table_57124 WHERE "Chassis" = '196'
Who is the constructor of the 196 chassis?
CREATE TABLE table_57124 ( "Entrant" text, "Constructor" text, "Chassis" text, "Engine" text, "Tyre" text, "Driver" text, "Rounds" text )
SELECT player FROM table_name_43 WHERE college = "virginia"
Which player is attending college at Virginia?
CREATE TABLE table_name_43 (player VARCHAR, college VARCHAR)
SELECT MIN(golden_bears_points) FROM table_21035326_1 WHERE opponents = 15
What was the least amount of points scored by the golden bears when the opponent scored 15 points?
CREATE TABLE table_21035326_1 (golden_bears_points INTEGER, opponents VARCHAR)
SELECT "1913 Class" FROM table_7562 WHERE "1st built" < '494' AND "W.A." = '4-4-0t'
What is the 1913 class of locomotive that has a 1st built value under 494 and WA of 4-4-0t?
CREATE TABLE table_7562 ( "1st built" real, "1913 Class" text, "W.A." text, "No. Built" real, "Builder" text, "Date" text, "LNER Class" text )
SELECT player FROM table_name_94 WHERE school = "hoover high school"
Which player attended Hoover High School?
CREATE TABLE table_name_94 (player VARCHAR, school VARCHAR)
SELECT COUNT(opponents) FROM table_21035326_1 WHERE game = 4
What is the total number of opponents played against the bears in game 4?
CREATE TABLE table_21035326_1 (opponents VARCHAR, game VARCHAR)
SELECT "team" FROM table_204_722 WHERE "team" <> 'carlin motorsport' AND "season" = 2011
the two teams who raced in 2011 are carlin motorsport and what other team ?
CREATE TABLE table_204_722 ( id number, "season" text, "series" text, "team" text, "races" number, "wins" number, "poles" number, "f/lap" number, "podiums" number, "points" number, "position" text )
SELECT record FROM table_name_58 WHERE opponent = "giants" AND date = "may 12"
What is the team's record on may 12 when they play the giants?
CREATE TABLE table_name_58 (record VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_21035326_1 WHERE golden_bears_points = 3
What opponent was playing against the Golden Bears when they scored 3 points?
CREATE TABLE table_21035326_1 (opponent VARCHAR, golden_bears_points VARCHAR)
SELECT "McCain%" FROM table_23818 WHERE "Obama%" = '36.47%'
What are McCain's Percent when Obama has 36.47%?
CREATE TABLE table_23818 ( "County" text, "Obama%" text, "Obama#" real, "McCain%" text, "McCain#" real )
SELECT attendance FROM table_name_32 WHERE visitor = "san jose" AND date = "may 4"
What is the attendance at the game where San Jose was the visitor on May 4?
CREATE TABLE table_name_32 (attendance VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT medal_of_honor FROM table_2104176_1 WHERE air_force_cross = "Army Distinguished Service Medal"
What is the Medal of Honor with Army Distinguished Service Medal?
CREATE TABLE table_2104176_1 (medal_of_honor VARCHAR, air_force_cross VARCHAR)
SELECT frequency FROM table_name_99 WHERE model_number = "c3 850"
What is the Frequency for Model Number c3 850?
CREATE TABLE table_name_99 ( frequency VARCHAR, model_number VARCHAR )
SELECT home FROM table_name_30 WHERE date = "may 2"
Who was the home team on the May 2 game?
CREATE TABLE table_name_30 (home VARCHAR, date VARCHAR)
SELECT homeland_security_distinguished_service_medal FROM table_2104176_1 WHERE medal_of_honor = "Coast Guard Medal"
WHat is the Homeland security distinguished service medal when the medal of honor is Coast guard Medal?
CREATE TABLE table_2104176_1 (homeland_security_distinguished_service_medal VARCHAR, medal_of_honor VARCHAR)
SELECT date_to, COUNT(date_to) FROM Customer_Address_History AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id JOIN Addresses AS T3 ON T1.address_id = T3.address_id GROUP BY date_to ORDER BY date_to
Show the number of customer address history in each day and group by date to with a line chart, and I want to list in ascending by the x axis.
CREATE TABLE Contacts ( contact_id INTEGER, customer_id INTEGER, gender VARCHAR(1), first_name VARCHAR(80), last_name VARCHAR(50), contact_phone VARCHAR(80) ) CREATE TABLE Addresses ( address_id INTEGER, line_1_number_building VARCHAR(80), city VARCHAR(50), zip_postcode VARCHAR(...
SELECT date FROM table_name_56 WHERE crowd > 20 OFFSET 000
What date is the crowd larger than 20,000?
CREATE TABLE table_name_56 (date VARCHAR, crowd INTEGER)
SELECT distinguished_service_cross FROM table_2104176_1 WHERE navy_cross = "Coast Guard Commendation Medal"
What is the distinguished service cross when the navy cross is Coast Guard commendation medal?
CREATE TABLE table_2104176_1 (distinguished_service_cross VARCHAR, navy_cross VARCHAR)
SELECT MAX("Juries") FROM table_30215 WHERE "Artist" = 'Brolle'
How many juries are there for Brolle?
CREATE TABLE table_30215 ( "Draw" real, "Artist" text, "Song (English translation)" text, "Lyrics (l) / Music (m)" text, "Juries" real, "Viewers" real, "Total" real, "Place" real )
SELECT record FROM table_name_85 WHERE score = "11-10"
What was the record when the score was 11-10?
CREATE TABLE table_name_85 (record VARCHAR, score VARCHAR)
SELECT air_force_cross FROM table_2104176_1 WHERE homeland_security_distinguished_service_medal = "Aerial Achievement Medal"
What is the air force cross when you recieve the Aerial achievement medal?
CREATE TABLE table_2104176_1 (air_force_cross VARCHAR, homeland_security_distinguished_service_medal VARCHAR)
SELECT "Tournament" FROM table_33890 WHERE "Date" = 'august 11, 1984'
What tournament was being played on August 11, 1984?
CREATE TABLE table_33890 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text )
SELECT record FROM table_name_9 WHERE attendance = "22,713"
What was the record when the attendance was 22,713?
CREATE TABLE table_name_9 (record VARCHAR, attendance VARCHAR)
SELECT coast_guard_cross FROM table_2104176_1 WHERE distinguished_service_cross = "Navy Distinguished Service Medal"
What is the coast guard cross when you recieve the navy distinguished service medal?
CREATE TABLE table_2104176_1 (coast_guard_cross VARCHAR, distinguished_service_cross VARCHAR)
SELECT Team_ID, School_ID FROM basketball_match GROUP BY All_Home
Give me a scatter chart that groups by all home, the x-axis is team id and the y-axis is school id.
CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text ) CREATE TABLE university ( Scho...