answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT AVG("Points") FROM table_36201 WHERE "Game" > '25' AND "Opponent" = 'dallas stars'
Which Points have a Game larger than 25, and an Opponent of dallas stars?
CREATE TABLE table_36201 ( "Game" real, "December" real, "Opponent" text, "Score" text, "Record" text, "Points" real )
SELECT hometown FROM table_name_43 WHERE college = "wisconsin"
What is the hometown for a college in Wisconsin?
CREATE TABLE table_name_43 (hometown VARCHAR, college VARCHAR)
SELECT MAX(population__2000_) FROM table_2004733_2 WHERE area__in_km_2__ = "1.2530"
How many people lived in the city which has 1.2530 km² in the year 2000?
CREATE TABLE table_2004733_2 (population__2000_ INTEGER, area__in_km_2__ VARCHAR)
SELECT "Label" FROM table_52129 WHERE "Date" = '14 november 2003' AND "Catalogue" = 'tojp 60121-22'
What is the Label for Date of 14 November 2003, and Catalogue tojp 60121-22?
CREATE TABLE table_52129 ( "Country" text, "Date" text, "Label" text, "Format" text, "Catalogue" text )
SELECT college FROM table_name_92 WHERE position = "linebacker" AND school = "lessburg high school"
Which college has a linebacker from Lessburg High School?
CREATE TABLE table_name_92 (college VARCHAR, position VARCHAR, school VARCHAR)
SELECT COUNT(population__2000_) FROM table_2004733_2 WHERE barangay = "San Gabriel"
How many people lived in san gabriel in the year 2000?
CREATE TABLE table_2004733_2 (population__2000_ VARCHAR, barangay VARCHAR)
SELECT date, zip_code FROM weather WHERE max_temperature_f >= 80
What zip codes have a station with a max temperature greater than or equal to 80 and when did it reach that temperature?
CREATE TABLE station ( id number, name text, lat number, long number, dock_count number, city text, installation_date text ) CREATE TABLE trip ( id number, duration number, start_date text, start_station_name text, start_station_id number, end_date text, end_stat...
SELECT opponent FROM table_name_49 WHERE week = 11
Which opponent has a week of 11?
CREATE TABLE table_name_49 (opponent VARCHAR, week VARCHAR)
SELECT COUNT(title) FROM table_20065425_1 WHERE termination_of_mission = "August 5, 1984"
How many different titles does the representative whose mission was terminated on August 5, 1984 have?
CREATE TABLE table_20065425_1 (title VARCHAR, termination_of_mission VARCHAR)
SELECT "Population" FROM table_21372 WHERE "Area km 2" = '715.58'
What is the population that has an area of 715.58?
CREATE TABLE table_21372 ( "Official Name" text, "Status" text, "Area km 2" text, "Population" real, "Census Ranking" text )
SELECT MIN(week) FROM table_name_46 WHERE date = "december 4, 1976" AND attendance < 57 OFFSET 366
Which December 4, 1976 week has an attendance less than 57,366?
CREATE TABLE table_name_46 (week INTEGER, date VARCHAR, attendance VARCHAR)
SELECT state FROM table_20065425_1 WHERE termination_of_mission = "November 29, 1973"
What state does the representative whose mission was terminated on November 29, 1973 represent?
CREATE TABLE table_20065425_1 (state VARCHAR, termination_of_mission VARCHAR)
SELECT "Location" FROM table_20799 WHERE "Established" = '1923'
What is the location of the school established in 1923
CREATE TABLE table_20799 ( "Institution" text, "Location" text, "Nickname" text, "Enrollment" real, "Established" real )
SELECT comune FROM table_name_52 WHERE total__km²_ > 70.99
Who has a larger than 70.99 km2?
CREATE TABLE table_name_52 (comune VARCHAR, total__km²_ INTEGER)
SELECT training FROM table_20065425_1 WHERE presentation_of_credentials = "February 24, 1950"
Who trained the representative whose presentation of credentials happened on February 24, 1950?
CREATE TABLE table_20065425_1 (training VARCHAR, presentation_of_credentials VARCHAR)
SELECT county FROM table_name_17 WHERE school = "merrillville"
In what county is the school of Merrillville?
CREATE TABLE table_name_17 ( county VARCHAR, school VARCHAR )
SELECT MIN(area__km²_) FROM table_name_26 WHERE province = "napoli" AND comune = "piano di sorrento" AND total__km²_ < 121.14
What is the Piano di Sorrento, Napoli lowest km2 with a total smaller than 121.14 km2?
CREATE TABLE table_name_26 (area__km²_ INTEGER, total__km²_ VARCHAR, province VARCHAR, comune VARCHAR)
SELECT year__ceremony_ FROM table_20061872_1 WHERE original_title = "Här har du ditt liv"
When was the film Här har du ditt liv used in nomination?
CREATE TABLE table_20061872_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
SELECT "Population (2010-11-01)" FROM table_35851 WHERE "Hanzi" = '延寿县'
What is the population for the area that has a Hanzi of ?
CREATE TABLE table_35851 ( "Name" text, "Hanzi" text, "Hanyu Pinyin" text, "Population (2010-11-01)" text, "Area (km\u00b2)" text, "Density (/km\u00b2)" text )
SELECT writer FROM table_name_85 WHERE producer_executive_producer = "dka, jl, as"
Which writer had a producer DKA, JL, AS?
CREATE TABLE table_name_85 (writer VARCHAR, producer_executive_producer VARCHAR)
SELECT original_title FROM table_20061872_1 WHERE film_title_used_in_nomination = "Zozo"
What's the original title of the film Zozo?
CREATE TABLE table_20061872_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT MAX(losses) FROM table_name_28 WHERE draws > 0
Which Losses have Draws larger than 0?
CREATE TABLE table_name_28 ( losses INTEGER, draws INTEGER )
SELECT film_title FROM table_name_68 WHERE director = "lu"
Name the film that Lu directed.
CREATE TABLE table_name_68 (film_title VARCHAR, director VARCHAR)
SELECT original_title FROM table_20061872_1 WHERE film_title_used_in_nomination = "The New Land"
What's the original title of The New Land?
CREATE TABLE table_20061872_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT "Bullet" FROM table_33692 WHERE "Shoulder" = '12.5 (.491)'
What bullet does the gun with a shoulder measurement of 12.5 (.491)?
CREATE TABLE table_33692 ( "Name" text, "Bullet" text, "Length" text, "Base" text, "Shoulder" text, "Neck" text )
SELECT writer FROM table_name_22 WHERE film_title = "toy story"
Who wrote Toy Story?
CREATE TABLE table_name_22 (writer VARCHAR, film_title VARCHAR)
SELECT COUNT(championship) FROM table_2009095_2 WHERE outcome = "Winner" AND opponents = "Judy Tegart Dalton Lesley Turner Bowrey"
Name the championship for winner and judy tegart dalton lesley turner bowrey
CREATE TABLE table_2009095_2 (championship VARCHAR, outcome VARCHAR, opponents VARCHAR)
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'aspirin 325 mg ec tab' AND DATETIME(medication.drug...
for patients who were prescribed with aspirin 325 mg ec tab since 6 years ago, what are the top five most common drugs that followed within the same month?
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 intakeoutput ( in...
SELECT writer FROM table_name_13 WHERE voiced_character_s_ = "jdr, bb, tn, lr, ps"
Which writer had voice characters of JDR, BB, TN, LR, PS?
CREATE TABLE table_name_13 (writer VARCHAR, voiced_character_s_ VARCHAR)
SELECT outcome FROM table_2009095_2 WHERE championship = "Wimbledon"
Name the outcome for wimbledon
CREATE TABLE table_2009095_2 (outcome VARCHAR, championship VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.short_title = "Venous cath NEC"
give me the number of patients whose death status is 0 and procedure short title is venous cath nec?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, ...
SELECT sound FROM table_name_77 WHERE producer_executive_producer = "jl"
Who was the sound producer that worked under Executive Producer JL?
CREATE TABLE table_name_77 (sound VARCHAR, producer_executive_producer VARCHAR)
SELECT opponents FROM table_2009095_2 WHERE score = "6–4, 3–6, 6–2"
Name the opponets for 6–4, 3–6, 6–2
CREATE TABLE table_2009095_2 (opponents VARCHAR, score VARCHAR)
SELECT DISTINCT paper.venueid FROM author, paper, writes WHERE author.authorname = 'Yejin Kim' AND writes.authorid = author.authorid AND writes.paperid = paper.paperid
What conferences does Yejin Kim submit to ?
CREATE TABLE field ( fieldid int ) CREATE TABLE journal ( journalid int, journalname varchar ) CREATE TABLE paperdataset ( paperid int, datasetid int ) CREATE TABLE cite ( citingpaperid int, citedpaperid int ) CREATE TABLE paper ( paperid int, title varchar, venueid int, ...
SELECT away_team FROM table_name_44 WHERE venue = "mcg"
What was the away team at mcg?
CREATE TABLE table_name_44 (away_team VARCHAR, venue VARCHAR)
SELECT MIN(year) FROM table_2009095_2 WHERE opponents = "Evonne Goolagong Helen Gourlay"
Name the least year for evonne goolagong helen gourlay
CREATE TABLE table_2009095_2 (year INTEGER, opponents VARCHAR)
SELECT demographic.religion FROM demographic WHERE demographic.name = "Josette Orr"
specify the religion of patient josette orr
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, ...
SELECT name FROM table_name_17 WHERE country = "nga"
What is the name of the player from NGA?
CREATE TABLE table_name_17 (name VARCHAR, country VARCHAR)
SELECT surface FROM table_2009095_2 WHERE championship = "Australian Open" AND outcome = "Winner"
Name the surface for australian open for winner
CREATE TABLE table_2009095_2 (surface VARCHAR, championship VARCHAR, outcome VARCHAR)
SELECT "Director" FROM table_62778 WHERE "Production Number" = '9368'
Who is the director of the production number 9368?
CREATE TABLE table_62778 ( "Title" text, "Series" text, "Director" text, "Production Number" text, "Release date" text )
SELECT moving_to FROM table_name_64 WHERE transfer_fee = "undisclosed" AND name = "odjidja-ofoe"
Where is Odjidja-Ofoe, with an undisclosed transfer fee, moving to?
CREATE TABLE table_name_64 (moving_to VARCHAR, transfer_fee VARCHAR, name VARCHAR)
SELECT highest_scoring_team FROM table_20079931_4 WHERE circuit_location = "Ring Knutstorp" AND winning_team = "Polestar Racing"
What's the highest scoring team in the round in Ring Knutstorp in which Polestar Racing is the winning team?
CREATE TABLE table_20079931_4 (highest_scoring_team VARCHAR, circuit_location VARCHAR, winning_team VARCHAR)
SELECT AVG("Serie A") FROM table_61335 WHERE "Coppa Italia" = '5'
What's the Serie A when the coppa italia was 5?
CREATE TABLE table_61335 ( "Name" text, "Serie A" real, "Champions League" real, "Coppa Italia" real, "Total" real )
SELECT country FROM table_name_96 WHERE transfer_fee = "undisclosed" AND moving_to = "nacional"
What country is the player, with an undisclosed transfer fee and moving to Nacional, from?
CREATE TABLE table_name_96 (country VARCHAR, transfer_fee VARCHAR, moving_to VARCHAR)
SELECT COUNT(round) FROM table_20079931_4 WHERE circuit_location = "Karlskoga Motorstadion" AND pole_position = "Roger Eriksson"
How many rounds were there in Karlskoga Motorstadion with Roger Eriksson at the pole position?
CREATE TABLE table_20079931_4 (round VARCHAR, circuit_location VARCHAR, pole_position VARCHAR)
SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.ethnicity = "UNKNOWN/NOT SPECIFIED"
what is maximum age of patients whose marital status is single and ethnicity is unknown/not specified?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
SELECT transfer_fee FROM table_name_82 WHERE name = "odjidja-ofoe"
What is Odjidja-Ofoe's transfer fee?
CREATE TABLE table_name_82 (transfer_fee VARCHAR, name VARCHAR)
SELECT first_leg FROM table_20086138_1 WHERE opposition = "Norchi Dinamoeli"
What was the first leg result in the round against Norchi Dinamoeli?
CREATE TABLE table_20086138_1 (first_leg VARCHAR, opposition VARCHAR)
SELECT "air date" FROM table_203_784 GROUP BY "air date" ORDER BY COUNT("performer") DESC LIMIT 1
which month had the most performers ?
CREATE TABLE table_203_784 ( id number, "no. in\nseries" number, "no. in\nseason" number, "performer" text, "appearance" text, "air date" text )
SELECT name FROM table_name_2 WHERE country = "cod"
What is the name of the player from Cod?
CREATE TABLE table_name_2 (name VARCHAR, country VARCHAR)
SELECT vehicle FROM table_20090682_4 WHERE best_time_of_day = "1:17.17"
which vehicles got best time of day 1:17.17
CREATE TABLE table_20090682_4 (vehicle VARCHAR, best_time_of_day VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "OVERDOSE" AND procedures.short_title = "Contr cerebr arteriogram"
what number of patients with primary disease as overdose had procedure called contr cerebr arteriogram?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
SELECT country FROM table_name_36 WHERE moving_to = "hamburger sv"
What country is the player moving to Hamburger SV from?
CREATE TABLE table_name_36 (country VARCHAR, moving_to VARCHAR)
SELECT COUNT(driver) FROM table_20090682_4 WHERE vehicle = "Toyota Corolla"
how many drivers driving toyota corolla
CREATE TABLE table_20090682_4 (driver VARCHAR, vehicle VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADELPHIA' AND date_day.day_number = 26 AND date_day.month_number = 7...
show me all flights from DENVER to PHILADELPHIA which leave next saturday afternoon
CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE fare ( fare_id int, from_airport varchar, to_airport varchar, fare_basis_code text, fare_airline text, restriction_code text, one_direction_cost int, round_trip_cost int, r...
SELECT driver FROM table_name_25 WHERE entrant = "arrows racing team" AND rounds = "1-3"
Which Driver has an Entrant of Arrows Racing Team and Rounds 1-3?
CREATE TABLE table_name_25 (driver VARCHAR, entrant VARCHAR, rounds VARCHAR)
SELECT MAX(pos) FROM table_20090682_4 WHERE driver = "Brendan Sole"
what is the lowest position of brendan sole
CREATE TABLE table_20090682_4 (pos INTEGER, driver VARCHAR)
SELECT "Country" FROM table_66482 WHERE "Notes" = 'fa' AND "Athlete" = 'ekaterina karsten'
What country did ekaterina karsten row for with fa listed under notes?
CREATE TABLE table_66482 ( "Rank" real, "Athlete" text, "Country" text, "Time" text, "Notes" text )
SELECT constructor FROM table_name_50 WHERE rounds = "all" AND driver = "bruno giacomelli"
Which Constructor has Rounds, All and Driver, Bruno Giacomelli?
CREATE TABLE table_name_50 (constructor VARCHAR, rounds VARCHAR, driver VARCHAR)
SELECT COUNT(vehicle) FROM table_20090682_4 WHERE top_13_time = "1:18.72"
how many vehicles where top 13 time is 1:18.72
CREATE TABLE table_20090682_4 (vehicle VARCHAR, top_13_time VARCHAR)
SELECT Ends AS won FROM table_25107064_2 WHERE blank_ends = 0
Name the ends won for blank ends for 0
CREATE TABLE table_25107064_2 ( Ends VARCHAR, blank_ends VARCHAR )
SELECT winning_score FROM table_name_39 WHERE runner_s__up = "damien mcgrane"
What was the winning score when Damien McGrane was runner-up?
CREATE TABLE table_name_39 (winning_score VARCHAR, runner_s__up VARCHAR)
SELECT driver FROM table_20090682_4 WHERE best_time_of_day = "1:16.93"
which driver got best time of day 1:16.93
CREATE TABLE table_20090682_4 (driver VARCHAR, best_time_of_day VARCHAR)
SELECT normal_total FROM table_name_62 WHERE que = "24"
Name the normal with que of 24
CREATE TABLE table_name_62 ( normal_total VARCHAR, que VARCHAR )
SELECT runner_s__up FROM table_name_97 WHERE tournament = "alfred dunhill links championship"
Who were the runners-up at the Alfred Dunhill Links Championship?
CREATE TABLE table_name_97 (runner_s__up VARCHAR, tournament VARCHAR)
SELECT assists FROM table_20107762_1 WHERE mins = "744:27"
What is the amount of assists when mins is 744:27?
CREATE TABLE table_20107762_1 (assists VARCHAR, mins VARCHAR)
SELECT apt_type_code, MIN(room_count) FROM Apartments GROUP BY apt_type_code ORDER BY MIN(room_count)
Bar graph to show minimal room count from different apt type code, and order in ascending by the Y-axis.
CREATE TABLE Apartment_Facilities ( apt_id INTEGER, facility_code CHAR(15) ) CREATE TABLE View_Unit_Status ( apt_id INTEGER, apt_booking_id INTEGER, status_date DATETIME, available_yn BIT ) CREATE TABLE Apartment_Buildings ( building_id INTEGER, building_short_name CHAR(15), buildi...
SELECT MAX(grid) FROM table_name_89 WHERE laps > 137 AND rank < 8
Name the highest grid for Laps more than 137 and rank is less than 8
CREATE TABLE table_name_89 (grid INTEGER, laps VARCHAR, rank VARCHAR)
SELECT MIN(games) FROM table_20107762_1 WHERE mins = "385:33"
What is the game number with 385:33 mins?
CREATE TABLE table_20107762_1 (games INTEGER, mins VARCHAR)
SELECT AVG(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'diagnostic ultrasound of heart - transthorac...
what is the average total hospital cost, that includes diagnostic ultrasound of heart - transthoracic echocardiography in 2105?
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 diagnosis ( diagn...
SELECT COUNT(rank) FROM table_name_73 WHERE grid < 20 AND driver = "dick rathmann" AND qual > 130.92
I want the total number of rank for Grid less than 20 and dick rathmann and Qual more than 130.92
CREATE TABLE table_name_73 (rank VARCHAR, qual VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT points FROM table_20107762_1 WHERE rebounds = "4.4"
What is the points number when rebounds is 4.4?
CREATE TABLE table_20107762_1 (points VARCHAR, rebounds VARCHAR)
SELECT volume FROM table_name_38 WHERE isbn = "978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)"
What volume number has the ISBN of 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)?
CREATE TABLE table_name_38 ( volume VARCHAR, isbn VARCHAR )
SELECT nation FROM table_name_70 WHERE gold = "1" AND bronze = "1" AND total = 2
Which nation won 1 gold medal and 1 bronze, for a total of 2 medals?
CREATE TABLE table_name_70 (nation VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT team FROM table_20107762_1 WHERE ft_percentage = "77.6"
Who is the team with the ft% of 77.6?
CREATE TABLE table_20107762_1 (team VARCHAR, ft_percentage VARCHAR)
SELECT revenues FROM table_name_81 WHERE courtesy_title = "ukyo-daiyu"
What is the Revenues of Ukyo-Daiyu?
CREATE TABLE table_name_81 ( revenues VARCHAR, courtesy_title VARCHAR )
SELECT leading_scorer FROM table_name_61 WHERE home = "trail blazers"
What is the name of the Leading scorer when the Home was the Trail blazers?
CREATE TABLE table_name_61 (leading_scorer VARCHAR, home VARCHAR)
SELECT year FROM table_2011349_2 WHERE third_place = "Austin Austin TX"
When did Austin Austin TX get the third place?
CREATE TABLE table_2011349_2 (year VARCHAR, third_place VARCHAR)
SELECT COUNT("ERP W") FROM table_66821 WHERE "Call sign" = 'w217bf'
Name the total number of ERP W when the call sign is w217bf
CREATE TABLE table_66821 ( "Call sign" text, "Frequency MHz" real, "City of license" text, "ERP W" real, "FCC info" text )
SELECT SUM(ngc_number) FROM table_name_31 WHERE object_type = "spiral galaxy" AND right_ascension___j2000__ = "08h14m40.4s"
I want the sum of NGC number for spiral galaxy and right acension of 08h14m40.4s
CREATE TABLE table_name_31 (ngc_number INTEGER, object_type VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT representative FROM table_20098199_2 WHERE religion = "United Methodist" AND prior_background = "Congressional aide"
Who has a religion of United Methodist and a prior background of a Congressional Aide?
CREATE TABLE table_20098199_2 (representative VARCHAR, religion VARCHAR, prior_background VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2133.0" AND procedures.icd9_code = "3142"
give me the number of patients whose year of death is less than or equal to 2133 and procedure icd9 code is 3142?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) 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 ) C...
SELECT right_ascension___j2000__ FROM table_name_59 WHERE object_type = "open cluster" AND ngc_number > 2547
Tell me the right ascension for open cluster and NGC number more than 2547
CREATE TABLE table_name_59 (right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR)
SELECT name FROM table_20095300_1 WHERE number = 25
What horse has the number 25?
CREATE TABLE table_20095300_1 (name VARCHAR, number VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "POSTERIOR COMMUNICATING ANEURYSM/SDA" AND demographic.age < "79"
give me the number of patients less than 79 years who are suffering from posterior communicating aneurysm/sda primary disease.
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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) C...
SELECT constellation FROM table_name_56 WHERE declination___j2000__ = "°45′" AND right_ascension___j2000__ = "07h58m"
I want the constellation for declination for °45′ and right ascension of 07h58m
CREATE TABLE table_name_56 (constellation VARCHAR, declination___j2000__ VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT weight__st, _lb_ FROM table_20095300_1 WHERE name = "Point Barrow"
How much does Point Barrow weight?
CREATE TABLE table_20095300_1 (weight__st VARCHAR, _lb_ VARCHAR, name VARCHAR)
SELECT 10 * (answer_count / 10) AS answer_count, 100 * SUM(accepted_answer_count) / SUM(answer_count) AS accepted_percent FROM (SELECT Users.Id, COUNT(*) AS answer_count, SUM(CASE WHEN questions.AcceptedAnswerId = answers.Id THEN 1 ELSE 0 END) AS accepted_answer_count FROM Posts AS answers INNER JOIN Users AS users ON ...
Accept rate of answers vs total answers written.
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 Rev...
SELECT ngc_number FROM table_name_92 WHERE right_ascension___j2000__ = "08h11m13.6s"
I want the NGC number for right ascension of 08h11m13.6s
CREATE TABLE table_name_92 (ngc_number VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT colours FROM table_20095300_1 WHERE jockey = "Andrew McNamara"
What are Andrew McNamara's colors?
CREATE TABLE table_20095300_1 (colours VARCHAR, jockey VARCHAR)
SELECT COUNT("College") FROM table_1163 WHERE "Pick" = '57'
How many colleges did the player picked 57 attend?
CREATE TABLE table_1163 ( "Rnd" real, "Pick" real, "Player name" text, "Position" text, "College" text, "Height" text, "Weight" text )
SELECT AVG(crowd) FROM table_name_31 WHERE home_team = "north melbourne"
What is the average crowd when the home team is north melbourne?
CREATE TABLE table_name_31 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(number) FROM table_20095300_1 WHERE trainer = "Kim Bailey"
What's the number of the horse whose trainer is Kim Bailey?
CREATE TABLE table_20095300_1 (number INTEGER, trainer VARCHAR)
SELECT MIN("Enrollment") FROM table_2316 WHERE "Location(s)" = 'Springfield'
How much would you expect the enrollment to be in Springfield?
CREATE TABLE table_2316 ( "School" text, "Location(s)" text, "Control" text, "Type" text, "Enrollment" real, "Founded" real )
SELECT COUNT(crowd) FROM table_name_45 WHERE venue = "mcg"
What is the crowd total at mcg?
CREATE TABLE table_name_45 (crowd VARCHAR, venue VARCHAR)
SELECT written_by FROM table_20098479_1 WHERE no_in_series = 48
Who wrote episode number 48
CREATE TABLE table_20098479_1 (written_by VARCHAR, no_in_series VARCHAR)
SELECT "To par" FROM table_62156 WHERE "Place" = '1'
What is the To par of the Place 1 Player?
CREATE TABLE table_62156 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" real )
SELECT AVG(mintage) FROM table_name_42 WHERE animal = "red breasted nuthatch" AND year < 2007
How many Red Breasted Nuthatch coins created before 2007 were minted, on average?
CREATE TABLE table_name_42 (mintage INTEGER, animal VARCHAR, year VARCHAR)
SELECT MIN(production_code) FROM table_20098479_1
What is the lowest production code
CREATE TABLE table_20098479_1 (production_code INTEGER)
SELECT date FROM table_name_87 WHERE city = "punta del este"
What is Date, when City is 'Punta Del Este'?
CREATE TABLE table_name_87 ( date VARCHAR, city VARCHAR )