answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT uci_points FROM table_name_88 WHERE team = "rabobank"
How many UCI points did Rabobank score?
CREATE TABLE table_name_88 (uci_points VARCHAR, team VARCHAR)
SELECT COUNT(game) FROM table_23211041_5 WHERE team = "Houston"
How many games were played against houston?
CREATE TABLE table_23211041_5 (game VARCHAR, team VARCHAR)
SELECT "Date" FROM table_75607 WHERE "Loss" = 'carman (3-12)'
Name the date with loss of carman (3-12)
CREATE TABLE table_75607 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Save" text )
SELECT team FROM table_name_81 WHERE country = "france" AND uci_points = "15"
What team in France had 15 UCi points?
CREATE TABLE table_name_81 (team VARCHAR, country VARCHAR, uci_points VARCHAR)
SELECT team FROM table_23211041_5 WHERE date = "November 24"
What team was played on november 24?
CREATE TABLE table_23211041_5 (team VARCHAR, date VARCHAR)
SELECT "Position" FROM table_31543 WHERE "Pick" = '47'
Tell me the position for pick of 47
CREATE TABLE table_31543 ( "Pick" text, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text )
SELECT country FROM table_name_24 WHERE assets_us$billion = "x" AND inception = "2007" AND abbreviation = "adic"
Which country has assets of x, an inception of 2007, and an abbreviation of adic?
CREATE TABLE table_name_24 (country VARCHAR, abbreviation VARCHAR, assets_us$billion VARCHAR, inception VARCHAR)
SELECT high_points FROM table_23211041_5 WHERE game = 4
Who had the most points in game 4?
CREATE TABLE table_23211041_5 (high_points VARCHAR, game VARCHAR)
SELECT "Player" FROM table_68114 WHERE "Figures" = '4/14'
Which player has figures of 4/14?
CREATE TABLE table_68114 ( "Player" text, "Overs" real, "Figures" text, "Opponent" text, "Ground" text )
SELECT abbreviation FROM table_name_88 WHERE country = "libya"
What's the abbreviation for libya?
CREATE TABLE table_name_88 (abbreviation VARCHAR, country VARCHAR)
SELECT high_points FROM table_23211041_5 WHERE team = "New York"
Who had the highest points against new york?
CREATE TABLE table_23211041_5 (high_points VARCHAR, team VARCHAR)
SELECT "Third" FROM table_76523 WHERE "Second" = 'scott pfeifer'
Which Third has a Second of scott pfeifer?
CREATE TABLE table_76523 ( "Season" text, "Skip" text, "Third" text, "Second" text, "Lead" text )
SELECT origin FROM table_name_1 WHERE abbreviation = "atf"
What's the origin for the country abbreviated atf?
CREATE TABLE table_name_1 (origin VARCHAR, abbreviation VARCHAR)
SELECT syrian_christians FROM table_23214055_2 WHERE district = "Thiruvananthapuram"
Name the syrian christians for thiruvananthapuram
CREATE TABLE table_23214055_2 (syrian_christians VARCHAR, district VARCHAR)
SELECT COUNT("Points") FROM table_14108 WHERE "Driver" = 'enrique bernoldi (r)'
What is the total number of points of driver enrique bernoldi (r)?
CREATE TABLE table_14108 ( "Driver" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real, "Points" real )
SELECT inception FROM table_name_47 WHERE assets_us$billion = "25.5" AND abbreviation = "psf"
What's the inception for the country with 25.5 billion USD in assets and an abbreviation of psf?
CREATE TABLE table_name_47 (inception VARCHAR, assets_us$billion VARCHAR, abbreviation VARCHAR)
SELECT ezhavas FROM table_23214055_2 WHERE muslims = "5.4"
Name the ezhavas for muslims being 5.4
CREATE TABLE table_23214055_2 (ezhavas VARCHAR, muslims VARCHAR)
SELECT MIN(grid) FROM table_name_85 WHERE laps > 23
what is the lowest grid with laps larger than 23?
CREATE TABLE table_name_85 ( grid INTEGER, laps INTEGER )
SELECT country FROM table_name_61 WHERE abbreviation = "kia"
Which country has an abbreviation of kia?
CREATE TABLE table_name_61 (country VARCHAR, abbreviation VARCHAR)
SELECT ezhavas FROM table_23214055_2 WHERE syrian_christians = "26.2"
Name the ezhavas and syrian christians being 26.2
CREATE TABLE table_23214055_2 (ezhavas VARCHAR, syrian_christians VARCHAR)
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-74856')) AND intakeoutput.celllabel = 'urine' AND intakeoutput.cellpath LIKE '%output%' AND STRFTIME('%y-%m-%d', intakeoutput.intakeoutputtime) = '2105-09-03'
tell me the total amount of urine that patient 002-74856 has on 09/03/2105.
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time )
SELECT abbreviation FROM table_name_79 WHERE inception = "1999" AND assets_us$billion = "7.1"
What's the abbreviation for the country with an inception of 1999 and US$Billion assets of 7.1?
CREATE TABLE table_name_79 (abbreviation VARCHAR, inception VARCHAR, assets_us$billion VARCHAR)
SELECT syrian_christians FROM table_23214055_2 WHERE district = "Kollam"
Name the syrian christians for kollam
CREATE TABLE table_23214055_2 (syrian_christians VARCHAR, district VARCHAR)
SELECT "High assists" FROM table_21207 WHERE "Game" = '70'
Name the high assists for 70 game
CREATE TABLE table_21207 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT away_team FROM table_name_47 WHERE home_team = "essendon"
What was the opponent of the home team of essendon?
CREATE TABLE table_name_47 (away_team VARCHAR, home_team VARCHAR)
SELECT district FROM table_23214055_2 WHERE others = "18.3"
Name the district for others being 18.3
CREATE TABLE table_23214055_2 (district VARCHAR, others VARCHAR)
SELECT pole_position FROM table_name_82 WHERE race_name = "2006 gehl championship finale"
What pole position did 2006 gehl championship finale have?
CREATE TABLE table_name_82 ( pole_position VARCHAR, race_name VARCHAR )
SELECT cast FROM table_name_80 WHERE director = "b. reeves eason and joseph kane"
Tell me the cast for b. reeves eason and joseph kane
CREATE TABLE table_name_80 (cast VARCHAR, director VARCHAR)
SELECT district FROM table_23214055_2 WHERE nairs = "8.2"
Name the district for nairs 8.2
CREATE TABLE table_23214055_2 (district VARCHAR, nairs VARCHAR)
SELECT "Builder" FROM table_60637 WHERE "Order Year" = '2001-02'
What builder has a 2001-02 order year?
CREATE TABLE table_60637 ( "Order Year" text, "Builder" text, "Model" text, "Length (ft.)" text, "Engine/Transmission" text )
SELECT director FROM table_name_29 WHERE serial_title = "heroes of the wild"
I want the director for heroes of the wild
CREATE TABLE table_name_29 (director VARCHAR, serial_title VARCHAR)
SELECT COUNT(2005 AS _06_points) FROM table_23215145_2 WHERE total_points = 5
If the total points is 5, what is the 2005-2006 points total number?
CREATE TABLE table_23215145_2 (total_points VARCHAR)
SELECT date FROM table_name_26 WHERE home_team = "st kilda"
what is the date when the home team is st kilda?
CREATE TABLE table_name_26 ( date VARCHAR, home_team VARCHAR )
SELECT year FROM table_name_13 WHERE serial_title = "the three musketeers"
I want the year for the three musketeers
CREATE TABLE table_name_13 (year VARCHAR, serial_title VARCHAR)
SELECT MIN(2006 AS _07_points) FROM table_23215145_2 WHERE team = "Overmach Parma"
What is the 2006-2007 points minimum is the team is Overmach Parma?
CREATE TABLE table_23215145_2 (team VARCHAR)
SELECT MIN("Decile") FROM table_69790 WHERE "Years" = '1-6' AND "Area" = 'maitland'
What is the lowest decile with 1-6 years and area of Maitland?
CREATE TABLE table_69790 ( "Name" text, "Years" text, "Gender" text, "Area" text, "Authority" text, "Decile" real, "Roll" real )
SELECT cast FROM table_name_75 WHERE director = "colbert clark and armand schaefer" AND serial_title = "burn 'em up barnes"
I want the cast for director of colbert clark and armand schaefer for burn 'em up barnes
CREATE TABLE table_name_75 (cast VARCHAR, director VARCHAR, serial_title VARCHAR)
SELECT 2005 AS _06_points FROM table_23215145_2 WHERE team = "Worcester"
If the team is Worcester, what is the 2005-2006 points?
CREATE TABLE table_23215145_2 (team VARCHAR)
SELECT runner_s__up FROM table_1615980_4 WHERE tournament = "Volvo Masters Andalucia"
Who was the runner up at the Volvo Masters Andalucia?
CREATE TABLE table_1615980_4 ( runner_s__up VARCHAR, tournament VARCHAR )
SELECT SUM(crowd) FROM table_name_69 WHERE venue = "kardinia park"
How large was the crowd at the Kardinia Park venue games?
CREATE TABLE table_name_69 (crowd INTEGER, venue VARCHAR)
SELECT COUNT(2006 AS _07_points) FROM table_23215145_2 WHERE team = "Saracens"
What is the 2006-2007 points total number if the team is Saracens?
CREATE TABLE table_23215145_2 (team VARCHAR)
SELECT AllergyType, COUNT(AllergyType) FROM Allergy_Type GROUP BY AllergyType ORDER BY COUNT(AllergyType) DESC
Create a bar chart showing how many allergytype across allergytype, and list in descending by the how many allergytype.
CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Has_Allergy ( StuID INTEGER, Allergy VARCHAR(20) ) CREATE TABLE Allergy_Type ( Allergy VARCHAR(20), AllergyType VARCHAR(20) )
SELECT home_team AS score FROM table_name_3 WHERE away_team = "carlton"
What was the score of the Home team that played against Carlton's Away game?
CREATE TABLE table_name_3 (home_team VARCHAR, away_team VARCHAR)
SELECT season FROM table_23224961_1 WHERE oberpfalz = "SpVgg Vohenstrauß"
When spvgg vohenstrauß is the oberpfalz what is the season?
CREATE TABLE table_23224961_1 (season VARCHAR, oberpfalz VARCHAR)
SELECT "Semi-final television commentator" FROM table_21902 WHERE "Spokesperson" = 'Colin Berry' AND "Final television commentator" = 'Pete Murray'
Who was the semi-final television commentator when the spokesperson was Colin Berry and the final television commentator was Pete Murray?
CREATE TABLE table_21902 ( "Year(s)" real, "Final television commentator" text, "Radio commentator" text, "Spokesperson" text, "Semi-final television commentator" text, "Semi-final second television commentator" text )
SELECT pick FROM table_name_42 WHERE player = "mark hayes"
What was the pick number when mark hayes was drafted?
CREATE TABLE table_name_42 (pick VARCHAR, player VARCHAR)
SELECT niederbayern FROM table_23224961_1 WHERE oberbayern_b = "ESV Ingolstadt"
When esv ingolstadt is the oberbayern b what is the niederbayern?
CREATE TABLE table_23224961_1 (niederbayern VARCHAR, oberbayern_b VARCHAR)
SELECT time FROM table_name_79 WHERE rank > 3 AND notes = "fd" AND athlete = "shin yeong-eun"
The Athlete Shin Yeong-eun with a rank larger than 3 and notes of FD had what time?
CREATE TABLE table_name_79 ( time VARCHAR, athlete VARCHAR, rank VARCHAR, notes VARCHAR )
SELECT school_club_team FROM table_name_93 WHERE pick = 63
Which team had a pick of 63?
CREATE TABLE table_name_93 (school_club_team VARCHAR, pick VARCHAR)
SELECT schwaben FROM table_23224961_1 WHERE oberbayern_a = "Wacker Burghausen"
When wacker burghausen is the oberbayern a what is the schwaben?
CREATE TABLE table_23224961_1 (schwaben VARCHAR, oberbayern_a VARCHAR)
SELECT "Venue" FROM table_10619 WHERE "Away team" = 'hawthorn'
Where did Hawthorn play an away game?
CREATE TABLE table_10619 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT school_club_team FROM table_name_44 WHERE position = "linebacker" AND pick < 288
Which team had a position of linebacker with a pick smaller of 288?
CREATE TABLE table_name_44 (school_club_team VARCHAR, position VARCHAR, pick VARCHAR)
SELECT oberpfalz FROM table_23224961_1 WHERE oberbayern_a = "FC Oberau"
When fc oberau is the oberbayern a what is the oberpfalz?
CREATE TABLE table_23224961_1 (oberpfalz VARCHAR, oberbayern_a VARCHAR)
SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'alcoh dep nec/nos-contin')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate, admissions.hadm_id FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE admissions.age >= 60) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND t1.hadm_id = t2.hadm_id GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 3
what are the three most frequent drugs prescribed to the patients with the age of 60 or above during the same hospital encounter after they were diagnosed with alcoh dep nec/nos-contin?
CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) 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 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 diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_labitems ( row_id number, itemid number, label 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 patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) 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 inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) 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 procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time )
SELECT player FROM table_name_70 WHERE round < 8 AND school_club_team = "louisville"
What player did louisville pick when the round was below 8?
CREATE TABLE table_name_70 (player VARCHAR, round VARCHAR, school_club_team VARCHAR)
SELECT oberbayern_b FROM table_23224961_1 WHERE oberpfalz = "TuS Rosenberg"
When tus rosenberg is the oberpfalz what is the oberbayern b?
CREATE TABLE table_23224961_1 (oberbayern_b VARCHAR, oberpfalz VARCHAR)
SELECT COUNT(pictorials) FROM table_1566848_6 WHERE date = "5-85"
Name the number of pictorials for 5-85
CREATE TABLE table_1566848_6 ( pictorials VARCHAR, date VARCHAR )
SELECT outcome FROM table_name_81 WHERE score = "3–6, 6–3, 6–0"
What was the outcome of the game that had a score of 3–6, 6–3, 6–0?
CREATE TABLE table_name_81 (outcome VARCHAR, score VARCHAR)
SELECT oberbayern_b FROM table_23224961_1 WHERE oberpfalz = "FC Schwandorf"
When fc schwandorf is the oberpfalz what is the oberbayern b?
CREATE TABLE table_23224961_1 (oberbayern_b VARCHAR, oberpfalz VARCHAR)
SELECT COUNT(outcome) FROM table_2201724_2 WHERE championship = "French championships"
How many different outcomes of the French Championships were there?
CREATE TABLE table_2201724_2 ( outcome VARCHAR, championship VARCHAR )
SELECT outcome FROM table_name_77 WHERE score = "7–5, 6–3" AND date = "27 july 2003"
On 27 July 2003 what was the outcome of the game that resulted in a score of 7–5, 6–3?
CREATE TABLE table_name_77 (outcome VARCHAR, score VARCHAR, date VARCHAR)
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 "Pick #" FROM table_73734 WHERE "Player" = 'Bruce Baldwin'
What was bruce baldwin's pick #?
CREATE TABLE table_73734 ( "Pick #" real, "NFL Team" text, "Player" text, "Position" text, "College" text )
SELECT score FROM table_name_29 WHERE opponent_in_the_final = "lenka novotná"
What was the final score of the game against Lenka Novotná?
CREATE TABLE table_name_29 (score VARCHAR, opponent_in_the_final VARCHAR)
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 Manager_Name, COUNT(Manager_Name) FROM gas_station GROUP BY Manager_Name ORDER BY COUNT(Manager_Name) DESC
How many gas stations dors each manager have? Plot a bar chart, and sort from high to low by the y-axis.
CREATE TABLE company ( Company_ID int, Rank int, Company text, Headquarters text, Main_Industry text, Sales_billion real, Profits_billion real, Assets_billion real, Market_Value real ) CREATE TABLE gas_station ( Station_ID int, Open_Year int, Location text, Manager_Name text, Vice_Manager_Name text, Representative_Name text ) CREATE TABLE station_company ( Station_ID int, Company_ID int, Rank_of_the_Year int )
SELECT opponent_in_the_final FROM table_name_23 WHERE surface = "clay" AND score = "6–4, 6–4"
In the surface of clay who was the opponent in the game resulting in a score of 6–4, 6–4?
CREATE TABLE table_name_23 (opponent_in_the_final VARCHAR, surface VARCHAR, score 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(third_year) FROM table_12148147_2 WHERE first_year = "Pag-unawa"
How many classes are taken in the third year when pag-unawa was taken in the first year?
CREATE TABLE table_12148147_2 ( third_year VARCHAR, first_year VARCHAR )
SELECT score FROM table_name_75 WHERE opponent_in_the_final = "ana ivanovic"
What was the final score of the game against opponent Ana Ivanovic?
CREATE TABLE table_name_75 (score VARCHAR, opponent_in_the_final VARCHAR)
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 MAX(rank) FROM table_name_94 WHERE location = "kingston"
What was the highest rink for Kingston?
CREATE TABLE table_name_94 ( rank INTEGER, location VARCHAR )
SELECT SUM(grid) FROM table_name_12 WHERE time_retired = "+58.182" AND laps < 67
What is the total grid number where the time/retired is +58.182 and the lap number is less than 67?
CREATE TABLE table_name_12 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
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 Users.Id, DisplayName, COUNT(Posts.Id) AS Questions, (SELECT MAX(Score) FROM (SELECT percent AS Score FROM Posts AS PU WHERE PostTypeId = 1 AND CommunityOwnedDate IS NULL AND PU.OwnerUserId = Users.Id ORDER BY Score LIMIT 50) AS t) AS MedianQuestionScore FROM Posts INNER JOIN Users ON Users.Id = OwnerUserId WHERE PostTypeId = 1 AND CommunityOwnedDate IS NULL GROUP BY Users.Id, DisplayName HAVING COUNT(Posts.Id) > 50 ORDER BY MedianQuestionScore DESC LIMIT 100
Users with highest median answer score.
CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) 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 PostHistoryTypes ( Id number, Name text ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) 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 ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) 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 ReviewTaskTypes ( 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 CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE FlagTypes ( 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 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 PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) 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 ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time )
SELECT name_of_horse FROM table_name_77 WHERE year_inducted = 2011 AND broodmare_sire = "cowboy p-12"
What horse was induced in 2011 with a sire of cowboy p-12?
CREATE TABLE table_name_77 (name_of_horse VARCHAR, year_inducted VARCHAR, broodmare_sire VARCHAR)
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 DISTINCT department, name, number FROM course WHERE (description LIKE '%Water Quality and Human the Great Lakes Basin%' OR name LIKE '%Water Quality and Human the Great Lakes Basin%') AND credits = 9
Which 9 -credit Water Quality and Human the Great Lakes Basin classes are there ?
CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req 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, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varchar ) CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varchar, test_id varchar ) 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_project varchar, has_final_exam varchar, textbook varchar, class_address varchar, allow_audit varchar ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, good_feedback int, tough_tests int, heavy_papers int, cares_for_students int, heavy_assignments int, respected int, participation int, heavy_reading int, tough_grader int, hilarious int, would_take_again int, good_lecture int, no_skip int ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_projects varchar, has_exams varchar, num_reviews int, clarity_score int, easiness_score int, helpfulness_score int ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int )
SELECT home_team FROM table_name_65 WHERE away_team = "hawthorn"
Who was the home team that played against hawthorn?
CREATE TABLE table_name_65 (home_team VARCHAR, away_team VARCHAR)
SELECT MAX(position) FROM table_23239946_3
How many positions are there in Canadian Nascar?
CREATE TABLE table_23239946_3 (position INTEGER)
SELECT "Stadium" FROM table_33633 WHERE "Attendance" = '65,677'
Which stadium held the game that 65,677 people attended?
CREATE TABLE table_33633 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Stadium" text, "Record" text, "Attendance" text )
SELECT away_team FROM table_name_15 WHERE home_team = "collingwood"
Who was the away team playing against collingwood?
CREATE TABLE table_name_15 (away_team VARCHAR, home_team VARCHAR)
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 "To par" FROM table_46403 WHERE "Score" = '72-67-68-71=278'
What is the To par when the score was 72-67-68-71=278?
CREATE TABLE table_46403 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" text )
SELECT MAX(crowd) FROM table_name_65 WHERE venue = "punt road oval"
What was the biggest crowd at punt road oval?
CREATE TABLE table_name_65 (crowd INTEGER, venue VARCHAR)
SELECT MIN(starts) FROM table_23239946_3
How many starts are there?
CREATE TABLE table_23239946_3 (starts INTEGER)
SELECT MIN(gold) FROM table_name_97 WHERE bronze < 36 AND rank = "2" AND silver < 37
What is the lowest number of Gold, when the number of Bronze is less than 36, when the Rank is 2, and when Silver is less than 37?
CREATE TABLE table_name_97 ( gold INTEGER, silver VARCHAR, bronze VARCHAR, rank VARCHAR )
SELECT home_team FROM table_name_56 WHERE venue = "windy hill"
Who is the home team based at windy hill?
CREATE TABLE table_name_56 (home_team VARCHAR, venue 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 1 AS st_ship_delivery_date FROM table_11552751_2 WHERE total_number_of_ways = "12 ways"
When was the delevery date when there were 12 ways of delivery?
CREATE TABLE table_11552751_2 ( total_number_of_ways VARCHAR )
SELECT MIN(gold) FROM table_name_45 WHERE silver < 23 AND rank > 5 AND bronze = 6
What is the low gold total for nations with under 23 silvers, ranked beloe 5, and 6 bronzes?
CREATE TABLE table_name_45 (gold INTEGER, bronze VARCHAR, silver VARCHAR, rank 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 "Date of appointment" FROM table_45977 WHERE "Team" = 'ac horsens'
WHAT IS THE APPOINTMENT DATE FOR AC HORSENS?
CREATE TABLE table_45977 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Replaced by" text, "Date of appointment" text, "Position in table" text )
SELECT MAX(silver) FROM table_name_61 WHERE gold = 3 AND bronze < 5
What is the high silver total for nations with 3 golds and under 5 bronzes?
CREATE TABLE table_name_61 (silver INTEGER, gold VARCHAR, bronze 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 "To par" FROM table_9482 WHERE "Player" = 'ben crenshaw'
Ben Crenshaw has what To par?
CREATE TABLE table_9482 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text )
SELECT COUNT(silver) FROM table_name_60 WHERE bronze < 6 AND gold > 3
How many silvers for nations with over 3 golds and under 6 bronzes?
CREATE TABLE table_name_60 (silver VARCHAR, bronze VARCHAR, gold VARCHAR)
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 CASE ReviewTaskTypeId WHEN 1 THEN 'Suggested edits' WHEN 2 THEN 'Close Votes' WHEN 3 THEN 'Low Quality Posts' WHEN 4 THEN 'First Posts' WHEN 5 THEN 'Late Answers' WHEN 6 THEN 'Reopen Votes' WHEN 7 THEN 'Community Evaluation' WHEN 8 THEN 'Link Validation' WHEN 9 THEN 'Flagged Posts' WHEN 10 THEN 'Triage' WHEN 11 THEN 'Helper' ELSE 'Unknown' END AS reviewtype, COUNT(*) AS totalreviews, SUM(CASE WHEN ReviewTaskResultTypeId = 1 THEN 1 ELSE 0 END) AS skipped, CAST(SUM(CASE WHEN ReviewTaskResultTypeId = 1 THEN 1 ELSE 0 END) AS FLOAT(18, 9)) / COUNT(*) AS skiprate FROM ReviewTaskResults AS rr INNER JOIN ReviewTasks AS rt ON rt.Id = rr.ReviewTaskId GROUP BY ReviewTaskTypeId
review stats for each review queue.
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 ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId 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 PostHistoryTypes ( Id number, Name text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) 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 ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId 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 PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId 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 Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PostTypes ( Id number, Name text ) 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 PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text )
SELECT MIN(crowd) FROM table_name_13 WHERE venue = "corio oval"
What was the smallest crowd in games at the corio oval?
CREATE TABLE table_name_13 (crowd INTEGER, venue VARCHAR)