answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT score_in_the_final FROM table_23235546_1 WHERE outcome = "Winner" AND year = 1989
What was the score in the final when the outcome was winner in 1989?
CREATE TABLE table_23235546_1 (score_in_the_final VARCHAR, outcome VARCHAR, year VARCHAR)
SELECT MAX(poles) FROM table_2190919_3
What was the maximum amount of the poles?
CREATE TABLE table_2190919_3 (poles INTEGER)
SELECT "Wins" FROM table_42341 WHERE "Matches" = '6'
what was the win for the 6 matches?
CREATE TABLE table_42341 ( "Year" text, "Matches" text, "Wins" text, "Losses" text, "No Result" text, "Success Rate" text )
SELECT score_in_the_final FROM table_23235546_1 WHERE championship = "Australian Open" AND opponent_in_the_final = "Mats Wilander"
What was the score in the final when Mats Wilander was the opponent in the Australian Open?
CREATE TABLE table_23235546_1 (score_in_the_final VARCHAR, championship VARCHAR, opponent_in_the_final VARCHAR)
SELECT team_s_ FROM table_2190919_3 WHERE avg_start = "11.8"
If the average start is 11.8, what was the team name?
CREATE TABLE table_2190919_3 (team_s_ VARCHAR, avg_start VARCHAR)
SELECT show FROM table_169766_13 WHERE new_returning_same_network = "Syndication"
Which show was sent to syndication for its new/returning/same network.
CREATE TABLE table_169766_13 ( show VARCHAR, new_returning_same_network VARCHAR )
SELECT original_air_date FROM table_23225927_1 WHERE no_in_season = 22
If the number in the season is 22, what is the original air date?
CREATE TABLE table_23225927_1 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT COUNT(top_5) FROM table_2190919_3 WHERE winnings = "$250,667"
If the winnings was $250,667, what is the top 5 total number?
CREATE TABLE table_2190919_3 (top_5 VARCHAR, winnings VARCHAR)
SELECT COUNT("wrestler") FROM table_203_277 WHERE "time" = '06:47'
how many wrestlers had a time of 6:47 ?
CREATE TABLE table_203_277 ( id number, "entered" number, "wrestler" text, "place" text, "eliminated by" text, "time" text )
SELECT MAX(no_in_season) FROM table_23225927_1 WHERE written_by = "Jonathan Greene"
What is the maximum season number for the episode written by Jonathan Greene?
CREATE TABLE table_23225927_1 (no_in_season INTEGER, written_by VARCHAR)
SELECT avg_start FROM table_2190919_3 WHERE avg_finish = "29.0"
With an average finish of 29.0, what was the average start?
CREATE TABLE table_2190919_3 (avg_start VARCHAR, avg_finish VARCHAR)
SELECT Country, COUNT(Country) FROM artist GROUP BY Country ORDER BY Country DESC
What is the number of countries in the artist table?, I want to order from high to low by the x-axis.
CREATE TABLE artist ( Artist_ID int, Name text, Country text, Year_Join int, Age int ) CREATE TABLE exhibition_record ( Exhibition_ID int, Date text, Attendance int ) CREATE TABLE exhibition ( Exhibition_ID int, Year int, Theme text, Artist_ID int, Ticket_Price real )
SELECT original_air_dates FROM table_2322716_2 WHERE prod_code = 201
Name the original air date for prod code 201
CREATE TABLE table_2322716_2 (original_air_dates VARCHAR, prod_code VARCHAR)
SELECT COUNT(reason_for_change) FROM table_2192067_4 WHERE date_successor_seated = "June 8, 1876"
what is the total number of reasons for change where the date the successor was seated is june 8, 1876?
CREATE TABLE table_2192067_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR)
SELECT "Week #" FROM table_40292 WHERE "Original artist" = 'the beatles' AND "Order #" < '10'
On which week was the beatles the original artist and the order # smaller than 10?
CREATE TABLE table_40292 ( "Week #" text, "Theme" text, "Song choice" text, "Original artist" text, "Order #" real, "Result" text )
SELECT written_by FROM table_2322716_2 WHERE prod_code = 206
Name the written by for prod code being 206
CREATE TABLE table_2322716_2 (written_by VARCHAR, prod_code VARCHAR)
SELECT reason_for_change FROM table_2192067_4 WHERE date_successor_seated = "July 28, 1876"
what is the reason for change where the date the successor was seated was july 28, 1876?
CREATE TABLE table_2192067_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR)
SELECT "Games" FROM table_52202 WHERE "Name" = 'bud eley'
Which game did was Bud Eley a player in?
CREATE TABLE table_52202 ( "Rank" real, "Name" text, "Team" text, "Games" real, "Rebounds" real )
SELECT MAX(position) FROM table_23239946_3
How many positions are there in Canadian Nascar?
CREATE TABLE table_23239946_3 (position INTEGER)
SELECT district FROM table_2192067_4 WHERE vacator = "Vacant"
what is the district where the vacator is vacant?
CREATE TABLE table_2192067_4 (district VARCHAR, vacator VARCHAR)
SELECT "Tournament" FROM table_54432 WHERE "2011" = '1r'
Which tournament has a 2011 of 1r?
CREATE TABLE table_54432 ( "Tournament" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text )
SELECT COUNT(driver) FROM table_23239946_3 WHERE points = 1942
How many drivers have 1942 points?
CREATE TABLE table_23239946_3 (driver VARCHAR, points VARCHAR)
SELECT manufacturer FROM table_2196127_1 WHERE driver = "Matt Kenseth" AND date = "March 7"
Who was the manufacturer for Matt Kenseth on March 7?
CREATE TABLE table_2196127_1 (manufacturer VARCHAR, driver VARCHAR, date VARCHAR)
SELECT COUNT("Family/families") FROM table_23409 WHERE "No. overall" = 'UK30'
Name the number of families for uk30
CREATE TABLE table_23409 ( "No. overall" text, "No. in series" real, "Family/families" text, "Location(s)" text, "Original air date" text )
SELECT MIN(starts) FROM table_23239946_3
How many starts are there?
CREATE TABLE table_23239946_3 (starts INTEGER)
SELECT average_speed__mph_ FROM table_2196127_1 WHERE race_time = "3:08:08"
What was the average speed for a racetime of 3:08:08?
CREATE TABLE table_2196127_1 (average_speed__mph_ VARCHAR, race_time VARCHAR)
SELECT place FROM table_name_33 WHERE performance = "14:11.15"
What place had 14:11.15 as the performance?
CREATE TABLE table_name_33 ( place VARCHAR, performance VARCHAR )
SELECT COUNT(wins) FROM table_23239946_3 WHERE driver = "Andrew Ranger"
How many wins did Andrew Ranger have?
CREATE TABLE table_23239946_3 (wins VARCHAR, driver VARCHAR)
SELECT laps FROM table_2196127_1 WHERE year = "2002"
How many laps were there in 2002?
CREATE TABLE table_2196127_1 (laps VARCHAR, year VARCHAR)
SELECT purpose FROM table_name_18 WHERE band = "am" AND frequency = "0 846"
Band of am, and a Frequency of 0 846 has what purpose?
CREATE TABLE table_name_18 ( purpose VARCHAR, band VARCHAR, frequency VARCHAR )
SELECT MAX(winnings__) AS $_ FROM table_23239946_3 WHERE position = 7
What are the winnings for position 7?
CREATE TABLE table_23239946_3 (winnings__ INTEGER, position VARCHAR)
SELECT COUNT(miles__km_) FROM table_2196127_1 WHERE race_time = "3:00:46"
How many numbers were recorded under miles for the 3:00:46 race time?
CREATE TABLE table_2196127_1 (miles__km_ VARCHAR, race_time VARCHAR)
SELECT current_club FROM table_23670057_5 WHERE height__m_ = "2.14"
Which clubs have players with height 2.14m?
CREATE TABLE table_23670057_5 ( current_club VARCHAR, height__m_ VARCHAR )
SELECT no_in_series FROM table_23242958_1 WHERE written_by = "David Zuckerman"
What number episode in the series was written by David Zuckerman?
CREATE TABLE table_23242958_1 (no_in_series VARCHAR, written_by VARCHAR)
SELECT race_time FROM table_2196127_1 WHERE driver = "Jeff Gordon"
What was the race time for Jeff Gordon?
CREATE TABLE table_2196127_1 (race_time VARCHAR, driver VARCHAR)
SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' INTERSECT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room'
What is the name of the dorm with both a TV Lounge and Study Room listed as amenities?
CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CREATE TABLE dorm_amenity ( amenid number, amenity_name text ) CREATE TABLE dorm ( dormid number, dorm_name text, student_capacity number, gender text ) CREATE TABLE has_amenity ( dormid number, amenid number ) CREATE TABLE lives_in ( stuid number, dormid number, room_number number )
SELECT original_air_date FROM table_23242958_1 WHERE written_by = "David Zuckerman"
What is the original air date of the episode written by David Zuckerman?
CREATE TABLE table_23242958_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT MAX(year) FROM table_2199290_1
What is the latest year?
CREATE TABLE table_2199290_1 (year INTEGER)
SELECT clubs FROM table_name_3 WHERE number_of_fixtures = 4
What is the Clubs when there are 4 for the number of fixtures?
CREATE TABLE table_name_3 ( clubs VARCHAR, number_of_fixtures VARCHAR )
SELECT title FROM table_23242958_1 WHERE directed_by = "Rodney Clouden"
What is the title of the episode directed by Rodney Clouden?
CREATE TABLE table_23242958_1 (title VARCHAR, directed_by VARCHAR)
SELECT total FROM table_21995420_6 WHERE school = "University of the Cordilleras UC Dance Squad"
What is every total for the University of the Cordilleras UC Dance Squad?
CREATE TABLE table_21995420_6 (total VARCHAR, school VARCHAR)
SELECT name FROM people WHERE height < (SELECT AVG(height) FROM people)
find the name of people whose height is lower than the average.
CREATE TABLE people ( name VARCHAR, height INTEGER )
SELECT us_viewers__millions_ FROM table_23242958_1 WHERE production_code = "3AJN01"
How many millions of U.S. viewers watched the episode with the production code of 3AJN01?
CREATE TABLE table_23242958_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR)
SELECT school FROM table_21995420_6 WHERE basic_elements = 52
What is every school with basic elements of 52?
CREATE TABLE table_21995420_6 (school VARCHAR, basic_elements VARCHAR)
SELECT winner FROM table_28211103_1 WHERE st_kilda_score = "13.10.88"
Who is the winner when the st kilda score is 13.10.88?
CREATE TABLE table_28211103_1 ( winner VARCHAR, st_kilda_score VARCHAR )
SELECT directed_by FROM table_23242968_1 WHERE us_viewers__millions_ = "6.76"
Who directed the episode that had 6.76 million U.S. viewers?
CREATE TABLE table_23242968_1 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT COUNT(stunts) FROM table_21995420_6 WHERE total = "201.5"
How many stunts have a total of 201.5?
CREATE TABLE table_21995420_6 (stunts VARCHAR, total VARCHAR)
SELECT name FROM table_1157867_2 WHERE notes = "Ex-industrial" AND builder = "Manning Wardle"
Which locomotives 12' x 17' are both ex-industrial and built by Manning Wardle?
CREATE TABLE table_1157867_2 ( name VARCHAR, notes VARCHAR, builder VARCHAR )
SELECT MAX(no_in_season) FROM table_23242968_1 WHERE no_in_series = 75
What episode number of the season was also number 75 in the series?
CREATE TABLE table_23242968_1 (no_in_season INTEGER, no_in_series VARCHAR)
SELECT school FROM table_21995420_6 WHERE stunts = "48"
What is every school with stunts of 48?
CREATE TABLE table_21995420_6 (school VARCHAR, stunts VARCHAR)
SELECT COUNT(*) FROM employee AS T1 JOIN class AS T2 ON T1.emp_num = T2.prof_num WHERE T1.emp_lname = 'Graztevski'
How many classes are professor whose last name is Graztevski has?
CREATE TABLE course ( crs_code text, dept_code text, crs_description text, crs_credit number ) CREATE TABLE department ( dept_code text, dept_name text, school_code text, emp_num number, dept_address text, dept_extension text ) CREATE TABLE employee ( emp_num number, emp_lname text, emp_fname text, emp_initial text, emp_jobcode text, emp_hiredate time, emp_dob time ) CREATE TABLE student ( stu_num number, stu_lname text, stu_fname text, stu_init text, stu_dob time, stu_hrs number, stu_class text, stu_gpa number, stu_transfer number, dept_code text, stu_phone text, prof_num number ) CREATE TABLE class ( class_code text, crs_code text, class_section text, class_time text, class_room text, prof_num number ) CREATE TABLE professor ( emp_num number, dept_code text, prof_office text, prof_extension text, prof_high_degree text ) CREATE TABLE enroll ( class_code text, stu_num number, enroll_grade text )
SELECT written_by FROM table_23242968_1 WHERE production_code = "3AJN20"
Who wrote the episode that had a production code of 3ajn20?
CREATE TABLE table_23242968_1 (written_by VARCHAR, production_code VARCHAR)
SELECT deductions FROM table_21995420_6 WHERE pyramids = "49"
What is every deduction for pyramids of 49?
CREATE TABLE table_21995420_6 (deductions VARCHAR, pyramids VARCHAR)
SELECT "High points" FROM table_2730 WHERE "Game" = '5'
Who had highest points in game 5?
CREATE TABLE table_2730 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT directed_by FROM table_23242968_1 WHERE written_by = "Jonathan Fener"
Who directed the episode that was written by Jonathan Fener?
CREATE TABLE table_23242968_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT MAX(year) FROM table_2199290_2 WHERE partner = "Wesley Moodie"
In what year was the partner Wesley Moodie?
CREATE TABLE table_2199290_2 (year INTEGER, partner VARCHAR)
SELECT record FROM table_name_26 WHERE location_attendance = "air canada centre 19,800"
What was the season record when the location attendance was Air Canada Centre 19,800?
CREATE TABLE table_name_26 ( record VARCHAR, location_attendance VARCHAR )
SELECT title FROM table_23242968_1 WHERE production_code = "3AJN20"
What was the name of the episode with a production code of 3ajn20?
CREATE TABLE table_23242968_1 (title VARCHAR, production_code VARCHAR)
SELECT outcome FROM table_2199290_2 WHERE score_in_the_final = "7–6(9), 7–6(1)"
What was the outcome when the final score was 7–6(9), 7–6(1)?
CREATE TABLE table_2199290_2 (outcome VARCHAR, score_in_the_final VARCHAR)
SELECT specific_orbital_energy FROM table_name_73 WHERE orbital_period = "89 to 128 min"
Orbital period of 89 to 128 min has what specific orbital energy?
CREATE TABLE table_name_73 ( specific_orbital_energy VARCHAR, orbital_period VARCHAR )
SELECT written_by FROM table_23242933_2 WHERE production_code = "1AJN05"
Who wrote the episode with production code 1AJN05?
CREATE TABLE table_23242933_2 (written_by VARCHAR, production_code VARCHAR)
SELECT score_in_the_final FROM table_2201724_1 WHERE opponent_in_the_final = "Tony Roche"
What are the scores in matches against Tony Roche?
CREATE TABLE table_2201724_1 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "DMII oth uncntrld" AND prescriptions.route = "PR"
count the number of patients whose diagnoses short title is dmii oth uncntrld and drug route is pr?
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, label text, fluid text ) 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 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 text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT COUNT(no_in_series) FROM table_23242933_2 WHERE us_viewers__millions_ = "7.84"
How many different series numbers are there for the episode seen by 7.84 million people in the US?
CREATE TABLE table_23242933_2 (no_in_series VARCHAR, us_viewers__millions_ VARCHAR)
SELECT championship FROM table_2201724_1 WHERE score_in_the_final = "3–6, 4–6, 2–6"
Which championship has a final score of 3–6, 4–6, 2–6?
CREATE TABLE table_2201724_1 (championship VARCHAR, score_in_the_final VARCHAR)
SELECT "Current Club" FROM table_62126 WHERE "Player" = 'bassem balaa'
Which Current Club has a Player of bassem balaa?
CREATE TABLE table_62126 ( "Player" text, "Height" real, "Position" text, "Year born (Age)" text, "Current Club" text )
SELECT MAX(no_in_series) FROM table_23242933_2 WHERE written_by = "Dan Vebber"
What's the series number of the episode written by Dan Vebber?
CREATE TABLE table_23242933_2 (no_in_series INTEGER, written_by VARCHAR)
SELECT MAX(year) FROM table_2201724_1
What is Fred Stolle's final year of competing in a championship?
CREATE TABLE table_2201724_1 (year INTEGER)
SELECT AVG(popular_votes) FROM table_name_2 WHERE office = "us representative 4" AND percentage = "1.59%" AND year > 1992
How many votes for the candidate after 1992, 1.59% of the vote, and the office of us representative 4?
CREATE TABLE table_name_2 ( popular_votes INTEGER, year VARCHAR, office VARCHAR, percentage VARCHAR )
SELECT COUNT(title) FROM table_23242933_2 WHERE us_viewers__millions_ = "7.84"
How many different titles are there of episodes that have been seen by 7.84 million people in the US/
CREATE TABLE table_23242933_2 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT COUNT(year) FROM table_2201724_1 WHERE score_in_the_final = "3–6, 4–6, 2–6"
List the total number of years that have a score of 3–6, 4–6, 2–6.
CREATE TABLE table_2201724_1 (year VARCHAR, score_in_the_final VARCHAR)
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, COUNT(*) AS c1 FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'esophagoscopy nec') AND STRFTIME('%y', procedures_icd.charttime) = '2102' GROUP BY admissions.subject_id) AS t1 WHERE t1.c1 >= 2
count the number of patients who have already received the esophagoscopy nec two or more times in 2102.
CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number )
SELECT original_air_date FROM table_23242933_2 WHERE us_viewers__millions_ = "6.09"
When did 6.09 million people in the US see the original airing of an episode of the show?
CREATE TABLE table_23242933_2 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT score_in_the_final FROM table_2201724_1 WHERE championship = "Wimbledon (2/2)"
List the final score of Wimbledon (2/2).
CREATE TABLE table_2201724_1 (score_in_the_final VARCHAR, championship VARCHAR)
SELECT "Attendance" FROM table_67944 WHERE "Date" = '4 january 2004'
Name the attendance for 4 january 2004
CREATE TABLE table_67944 ( "Date" text, "Round" text, "Opponents" text, "Result F\u2013A" text, "Attendance" real )
SELECT MIN(no_in_season) FROM table_23242950_1 WHERE us_viewers__millions_ = "6.64"
What's the season number of the episode originally seen by 6.64 million people in the US?
CREATE TABLE table_23242950_1 (no_in_season INTEGER, us_viewers__millions_ VARCHAR)
SELECT winner FROM table_22050544_1 WHERE event__number = "15H"
What is the winner in event number 15h?
CREATE TABLE table_22050544_1 (winner VARCHAR, event__number VARCHAR)
SELECT "Cost per capita" FROM table_17627 WHERE "Municipality" = 'Courtenay'
What is the cost per capita in the Courtenay municipality?
CREATE TABLE table_17627 ( "Municipality" text, "Population" real, "Police officers" real, "Residents per officer" real, "Total costs (2005)" text, "Cost per capita" text, "Case burden" real, "Crime rate per 1,000 people" real, "Police force" text )
SELECT production_code FROM table_23242950_1 WHERE us_viewers__millions_ = "7.49"
What's the production code of the episode seen by 7.49 million people in the US?
CREATE TABLE table_23242950_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR)
SELECT winner FROM table_22050544_1 WHERE elapsed_time = "12 h 42 min"
Who is the winner with an elapsed time of 12 h 42 min?
CREATE TABLE table_22050544_1 (winner VARCHAR, elapsed_time VARCHAR)
SELECT MAX("November") FROM table_74129 WHERE "Game" = '20'
What is the highest entry in November for the game 20?
CREATE TABLE table_74129 ( "Game" real, "November" real, "Opponent" text, "Score" text, "Location/Attendance" text, "Record" text, "Points" real )
SELECT opponent FROM table_23243769_4 WHERE opp_points = 44
What opponent got 44 points in their game?
CREATE TABLE table_23243769_4 (opponent VARCHAR, opp_points VARCHAR)
SELECT prize FROM table_22050544_1 WHERE elapsed_time = "10 h 10 min"
What is the prize for the elapsed time of 10 h 10 min?
CREATE TABLE table_22050544_1 (prize VARCHAR, elapsed_time VARCHAR)
SELECT result FROM table_1341663_11 WHERE incumbent = "Billy Lee Evans"
In the race involving Billy Lee Evans as the seated Representative, was he elected again?
CREATE TABLE table_1341663_11 ( result VARCHAR, incumbent VARCHAR )
SELECT location FROM table_23243769_4 WHERE record = "4-1"
Where was the game with a 4-1 record played?
CREATE TABLE table_23243769_4 (location VARCHAR, record VARCHAR)
SELECT winner FROM table_22050544_1 WHERE dateca = "Apr 2" AND event__number = "1H"
Who is the winner of event # 1h and dateca is Apr 2?
CREATE TABLE table_22050544_1 (winner VARCHAR, dateca VARCHAR, event__number VARCHAR)
SELECT score FROM table_name_52 WHERE home = "quebec nordiques" AND visitor = "vancouver blazers" AND date = "february 28"
Which Score has a Home of quebec nordiques, and a Visitor of vancouver blazers on february 28?
CREATE TABLE table_name_52 ( score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR )
SELECT high_rebounds FROM table_23248869_6 WHERE high_points = "Larry Hughes (21)"
Who did the high rebounds in the game where Larry Hughes (21) did the high ponts?
CREATE TABLE table_23248869_6 (high_rebounds VARCHAR, high_points VARCHAR)
SELECT event__number FROM table_22050544_1 WHERE winner = "what is 7x6"
What is the event # when the winner is what is 7x6?
CREATE TABLE table_22050544_1 (event__number VARCHAR, winner VARCHAR)
SELECT "Authors" FROM table_40087 WHERE "Location" = 'mexico'
Which author is located in Mexico?
CREATE TABLE table_40087 ( "Name" text, "Status" text, "Authors" text, "Unit" text, "Location" text )
SELECT COUNT(high_assists) FROM table_23248869_6 WHERE date = "December 11"
How many different people did different scores of high assists during the December 11 game?
CREATE TABLE table_23248869_6 (high_assists VARCHAR, date VARCHAR)
SELECT position FROM table_22056184_1 WHERE poles = 2
Which positions are the poles 2?
CREATE TABLE table_22056184_1 (position VARCHAR, poles VARCHAR)
SELECT date FROM table_17001658_10 WHERE team = "Philadelphia"
On what date was the team Philadelphia?
CREATE TABLE table_17001658_10 ( date VARCHAR, team VARCHAR )
SELECT high_assists FROM table_23248869_6 WHERE team = "Portland"
Who did the high assists in the game against Portland?
CREATE TABLE table_23248869_6 (high_assists VARCHAR, team VARCHAR)
SELECT COUNT(position) FROM table_22056184_1 WHERE f_laps = 1 AND series = "British Formula Three"
How many positions have f/laps of 1 and british formula three series?
CREATE TABLE table_22056184_1 (position VARCHAR, f_laps VARCHAR, series VARCHAR)
SELECT Q.Id, Q.AcceptedAnswerId, Q.CreationDate, Q.Score, Q.Body AS "Question Body", Q.Title AS "Question Title", A.Body AS "Answer Body", Q.Tags FROM Posts AS Q INNER JOIN Posts AS A ON Q.AcceptedAnswerId = A.Id WHERE Q.Tags = '<##tag?java##>' AND Q.CreationDate BETWEEN '2018-01-01' AND '2018-01-31' AND Q.Score >= 0 ORDER BY Q.Id
Retrieve Answered Questions Tagged as 'Java' Created In The Month of January 2018.
CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE VoteTypes ( Id number, Name text ) 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 ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDate time, ApprovalModeratorId number, DeactivationDate time, DeactivationModeratorId number ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text )
SELECT score FROM table_23248869_10 WHERE location_attendance = "Madison Square Garden 19,763" AND game < 80.0
What is every score for location attendance of Madison Square Garden 19,763 and game less than 80.0?
CREATE TABLE table_23248869_10 (score VARCHAR, location_attendance VARCHAR, game VARCHAR)
SELECT position FROM table_22056184_1 WHERE podiums = 9
Which position has 9 podiums?
CREATE TABLE table_22056184_1 (position VARCHAR, podiums VARCHAR)
SELECT TOP(200) AS TagName, ROUND(10 * MIN(merit) * (AVG(merit) - STDEVP(merit)) / (AVG(merit) + STDEVP(merit)), 0) AS affinity_index, MAX(merit) AS mx, MIN(merit) AS mn FROM (SELECT Posts.OwnerUserId AS userId, TagName, ROUND(SQRT(COUNT(*)), 0) AS merit FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.ParentId = PostTags.PostId INNER JOIN Votes ON Votes.PostId = Posts.Id AND VoteTypeId = 2 WHERE Posts.OwnerUserId = @UserId1 OR Posts.OwnerUserId = @UserId2 GROUP BY Posts.OwnerUserId, TagName) AS t GROUP BY TagName HAVING COUNT(*) > 1 ORDER BY affinity_index DESC, TagName
Interest groups, user affinity Tagvector.
CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) 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 ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDate time, ApprovalModeratorId number, DeactivationDate time, DeactivationModeratorId number ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text )
SELECT record FROM table_23248869_10 WHERE team = "Boston"
What is every record for the team Boston?
CREATE TABLE table_23248869_10 (record VARCHAR, team VARCHAR)