answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT COUNT("Attendance") FROM table_12564 WHERE "Home team" = 'stourbridge'
What is the total attendance when Stourbridge is the home team?
CREATE TABLE table_12564 ( "Tie no" real, "Home team" text, "Score" text, "Away team" text, "Attendance" real )
SELECT COUNT(hd_designation) FROM table_1820752_1 WHERE arrival_date = "February 2070"
What is the hd designation for arrival date of February 2070?
CREATE TABLE table_1820752_1 (hd_designation VARCHAR, arrival_date VARCHAR)
SELECT account_id, account_details FROM Accounts
Show all account ids and account details.
CREATE TABLE Accounts (account_id VARCHAR, account_details VARCHAR)
SELECT original_canadian_air_date FROM table_name_98 WHERE director = "michael tolkin"
What is the Original Canadian air-date that was directed by Michael Tolkin?
CREATE TABLE table_name_98 ( original_canadian_air_date VARCHAR, director VARCHAR )
SELECT spectral_type FROM table_1820752_1 WHERE constellation = "Gemini"
If the constellation is Gemini, what is the spectral type?
CREATE TABLE table_1820752_1 (spectral_type VARCHAR, constellation VARCHAR)
SELECT COUNT(*) FROM Statements
How many statements do we have?
CREATE TABLE Statements (Id VARCHAR)
SELECT record FROM table_name_43 WHERE event = "wec 24"
What was the record at WEC 24?
CREATE TABLE table_name_43 ( record VARCHAR, event VARCHAR )
SELECT COUNT(signal_power___kw__) FROM table_1820752_1 WHERE arrival_date = "January 2059"
If the arrival date is January 2059, what is the total amount of signal power?
CREATE TABLE table_1820752_1 (signal_power___kw__ VARCHAR, arrival_date VARCHAR)
SELECT STATEMENT_ID, statement_details FROM Statements
List all statement ids and statement details.
CREATE TABLE Statements (STATEMENT_ID VARCHAR, statement_details VARCHAR)
SELECT "High assists" FROM table_8578 WHERE "Game" = '72'
Who has the highest assists in game 72?
CREATE TABLE table_8578 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT constellation FROM table_1820752_1 WHERE spectral_type = "G1V"
If the spectral type is g1v, what is the constellation?
CREATE TABLE table_1820752_1 (constellation VARCHAR, spectral_type VARCHAR)
SELECT T1.statement_id, T2.statement_details, T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id
Show statement id, statement detail, account detail for accounts.
CREATE TABLE Accounts (statement_id VARCHAR, account_details VARCHAR); CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR)
SELECT team_1 FROM table_19294812_2 WHERE team_2 = "Koper"
Who is team 1 when team 2 is koper?
CREATE TABLE table_19294812_2 ( team_1 VARCHAR, team_2 VARCHAR )
SELECT MAX(no) FROM table_18198579_2 WHERE tournament = "Evian Masters"
List the total numbers of Evian Masters tournaments.
CREATE TABLE table_18198579_2 (no INTEGER, tournament VARCHAR)
SELECT STATEMENT_ID, COUNT(*) FROM Accounts GROUP BY STATEMENT_ID
Show all statement id and the number of accounts for each statement.
CREATE TABLE Accounts (STATEMENT_ID VARCHAR)
SELECT player FROM table_name_1 WHERE country = "united states" AND score = 70 - 72 - 70 = 212
What is Player, when Country is United States, and when Score is 70-72-70=212?
CREATE TABLE table_name_1 ( player VARCHAR, country VARCHAR, score VARCHAR )
SELECT original_air_date FROM table_18217753_1 WHERE season__number = 9
What is the original air date of season 9?
CREATE TABLE table_18217753_1 (original_air_date VARCHAR, season__number VARCHAR)
SELECT T1.statement_id, T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id GROUP BY T1.statement_id ORDER BY COUNT(*) DESC LIMIT 1
Show the statement id and the statement detail for the statement with most number of accounts.
CREATE TABLE Accounts (statement_id VARCHAR); CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR)
SELECT "date of death\u2020" FROM table_16904 WHERE "name" = 'Henk Hordijk'
What was the date of Henk Hordijk's death?
CREATE TABLE table_16904 ( "number" real, "date of debut" text, "name" text, "date of birth" text, "number of caps" real, "number of goals" real, "date of death\u2020" text )
SELECT written_by FROM table_18217753_1 WHERE us_viewers__millions_ = "27.11"
Who were the writers when there were 27.11 million viewers?
CREATE TABLE table_18217753_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT COUNT(*) FROM Documents
Show the number of documents.
CREATE TABLE Documents (Id VARCHAR)
SELECT "Age" FROM table_26662 WHERE "Height" = 'm (ft 3⁄4 in)'
How old is the person with the height of m (ft 3 4 in)?
CREATE TABLE table_26662 ( "Province, Community" text, "Contestant" text, "Age" real, "Height" text, "Hometown" text, "Geographical Regions" text )
SELECT COUNT(series__number) FROM table_18217753_1 WHERE us_viewers__millions_ = "23.93"
How many series had viewers totaling 23.93 million?
CREATE TABLE table_18217753_1 (series__number VARCHAR, us_viewers__millions_ VARCHAR)
SELECT document_type_code, document_name, document_description FROM Documents WHERE document_name = 'Noel CV' OR document_name = 'King Book'
List the document type code, document name, and document description for the document with name 'Noel CV' or name 'King Book'.
CREATE TABLE Documents (document_type_code VARCHAR, document_name VARCHAR, document_description VARCHAR)
SELECT SUM("Points") FROM table_80429 WHERE "Season" = '1963' AND "Games" > '30'
What's the sum of points for the 1963 season when there are more than 30 games?
CREATE TABLE table_80429 ( "Season" text, "Team Name" text, "Games" real, "Losses" real, "Points" real )
SELECT COUNT(original_air_date) FROM table_18217753_1 WHERE us_viewers__millions_ = "26.06"
How many original air dates totaled 26.06 million viewers?
CREATE TABLE table_18217753_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT document_id, document_name FROM Documents
Show the ids and names of all documents.
CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR)
SELECT MAX("Others#") FROM table_49639 WHERE "Kerry%" = '52.1%'
What percentage of other candidates did the county which voted 52.1% for Kerry vote for?
CREATE TABLE table_49639 ( "County" text, "Kerry%" text, "Kerry#" real, "Bush%" text, "Bush#" real, "Others%" text, "Others#" real, "2000 result" text )
SELECT title FROM table_18217741_1 WHERE us_viewers__millions_ = "18.58"
What is the title when 18.58 u.s. viewers (millions) watched?
CREATE TABLE table_18217741_1 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT document_name, document_id FROM Documents WHERE document_type_code = "BK"
Find names and ids of all documents with document type code BK.
CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR, document_type_code VARCHAR)
SELECT league FROM table_name_87 WHERE school = "reed"
In what League is the Reed School?
CREATE TABLE table_name_87 ( league VARCHAR, school VARCHAR )
SELECT COUNT(digital_terrestrial_channel) FROM table_182410_10 WHERE channel = "channel 4"
How many digital terrestrial channels are there for channel 4?
CREATE TABLE table_182410_10 (digital_terrestrial_channel VARCHAR, channel VARCHAR)
SELECT COUNT(*), project_id FROM Documents WHERE document_type_code = "BK" GROUP BY project_id
How many documents are with document type code BK for each product id?
CREATE TABLE Documents (project_id VARCHAR, document_type_code VARCHAR)
SELECT date_of_birth, COUNT(date_of_birth) FROM Customers WHERE customer_status_code = 'Good Customer'
What is the date of birth of every customer whose status code is 'Good Customer', and count them by a line chart
CREATE TABLE Staff ( staff_id INTEGER, staff_address_id INTEGER, nickname VARCHAR(80), first_name VARCHAR(80), middle_name VARCHAR(80), last_name VARCHAR(80), date_of_birth DATETIME, date_joined_staff DATETIME, date_left_staff DATETIME ) CREATE TABLE Customers ( customer_id INTE...
SELECT channel FROM table_182410_10 WHERE digital_terrestrial_channel = "10"
What is the channel that is on digital terrestrial channel 10?
CREATE TABLE table_182410_10 (channel VARCHAR, digital_terrestrial_channel VARCHAR)
SELECT document_name, document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'Graph Database project'
Show the document name and the document date for all documents on project with details 'Graph Database project'.
CREATE TABLE Documents (project_id VARCHAR); CREATE TABLE projects (project_id VARCHAR, project_details VARCHAR)
SELECT COUNT("Score") FROM table_9376 WHERE "Place" = 't1' AND "Player" = 'scott simpson'
Which Score has a Place of t1, and a Player of scott simpson?
CREATE TABLE table_9376 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text )
SELECT digital_terrestrial_channel FROM table_182410_10 WHERE channel = "ITV3"
What is the digital terrestria channel number for itv3?
CREATE TABLE table_182410_10 (digital_terrestrial_channel VARCHAR, channel VARCHAR)
SELECT project_id, COUNT(*) FROM Documents GROUP BY project_id
Show project ids and the number of documents in each project.
CREATE TABLE Documents (project_id VARCHAR)
SELECT patient.hospitaldischargetime FROM patient WHERE patient.uniquepid = '018-81471' ORDER BY patient.hospitaldischargetime LIMIT 1
when was patient 018-81471 discharged from the hospital for the first time?
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 lab ( la...
SELECT position FROM table_182410_10 WHERE digital_terrestrial_channel = "5 44 (+1)"
What is the position of digital channel 5 44 (+1)?
CREATE TABLE table_182410_10 (position VARCHAR, digital_terrestrial_channel VARCHAR)
SELECT project_id FROM Documents GROUP BY project_id ORDER BY COUNT(*) LIMIT 1
What is the id of the project with least number of documents?
CREATE TABLE Documents (project_id VARCHAR)
SELECT "Denomination" FROM table_54128 WHERE "Date of Issue" = '12 april 2005'
What's the Denomination listed for the Date of Issue 12 April 2005?
CREATE TABLE table_54128 ( "Date of Issue" text, "Denomination" text, "Design" text, "Paper Type" text, "First Day Cover Cancellation" text )
SELECT delegate FROM table_1825751_14 WHERE pageant = "Elite Model Look" AND year > 1993.0
where pageant is elite model look and year is bigger than 1993.0, who is the delegate?
CREATE TABLE table_1825751_14 (delegate VARCHAR, pageant VARCHAR, year VARCHAR)
SELECT project_id FROM Documents GROUP BY project_id HAVING COUNT(*) >= 2
Show the ids for projects with at least 2 documents.
CREATE TABLE Documents (project_id VARCHAR)
SELECT COUNT(*) FROM table_203_131 WHERE "team" = 'braun racing'
the number of cars finishing in the top ten for braun racing .
CREATE TABLE table_203_131 ( id number, "pos." number, "car #" number, "driver" text, "make" text, "team" text )
SELECT COUNT(year) FROM table_1825751_14 WHERE pageant = "Miss Globe International" AND delegate = "Karen Loren Medrano Agustin"
How many years was the pageant miss globe international and delegate was karen loren medrano agustin?
CREATE TABLE table_1825751_14 (year VARCHAR, pageant VARCHAR, delegate VARCHAR)
SELECT document_type_code, COUNT(*) FROM Documents GROUP BY document_type_code
List document type codes and the number of documents in each code.
CREATE TABLE Documents (document_type_code VARCHAR)
SELECT "Avg. Finish" FROM table_2507 WHERE "Year" = '2007'
What was the average finish in 2007?
CREATE TABLE table_2507 ( "Year" real, "Starts" real, "Wins" real, "Top 5" real, "Top 10" real, "Poles" real, "Avg. Start" text, "Avg. Finish" text, "Winnings" text, "Position" text, "Team(s)" text )
SELECT COUNT(pageant) FROM table_1825751_14 WHERE hometown = "San Fernando, Pampanga"
How many pageants were in san fernando, pampanga?
CREATE TABLE table_1825751_14 (pageant VARCHAR, hometown VARCHAR)
SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY COUNT(*) DESC LIMIT 1
What is the document type code with most number of documents?
CREATE TABLE Documents (document_type_code VARCHAR)
SELECT "Written by" FROM table_25748 WHERE "Prod. code" = '206'
Name the written by for prod code being 206
CREATE TABLE table_25748 ( "#" text, "Original title" text, "Directed by" text, "Written by" text, "Original air dates" text, "Prod. code" real )
SELECT COUNT(pageant) FROM table_1825751_14 WHERE delegate = "Margaret Ann Awitan Bayot"
How many pageants were margaret ann awitan bayot the delegate of?
CREATE TABLE table_1825751_14 (pageant VARCHAR, delegate VARCHAR)
SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING COUNT(*) < 3
Show the document type code with fewer than 3 documents.
CREATE TABLE Documents (document_type_code VARCHAR)
SELECT "Music" FROM table_43108 WHERE "Team" = 'anna guzik & rafał kamiński' AND "Points jury" = '24 (7,5,6,6)'
What is the Music for Team anna guzik & rafa kami ski that has a Points Jury of 24 (7,5,6,6)?
CREATE TABLE table_43108 ( "Team" text, "Dance" text, "Music" text, "Points jury" text, "Place" text )
SELECT other_awards FROM table_1825751_14 WHERE delegate = "Milagros Gutierrez"
How many awards did milagros gutierrez win?
CREATE TABLE table_1825751_14 (other_awards VARCHAR, delegate VARCHAR)
SELECT T1.statement_details, T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id = T2.document_id WHERE T1.statement_details = 'Private Project'
Show the statement detail and the corresponding document name for the statement with detail 'Private Project'.
CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR); CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR)
SELECT "date" FROM table_203_793 ORDER BY "date" DESC LIMIT 1
what was the date of the last game ?
CREATE TABLE table_203_793 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "score" text, "result" text, "competition" text )
SELECT hometown FROM table_1825751_14 WHERE pageant = "Miss Global Teen"
Where is the miss global teen?
CREATE TABLE table_1825751_14 (hometown VARCHAR, pageant VARCHAR)
SELECT document_type_code, document_type_name, document_type_description FROM Ref_document_types
Show all document type codes, document type names, document type descriptions.
CREATE TABLE Ref_document_types (document_type_code VARCHAR, document_type_name VARCHAR, document_type_description VARCHAR)
SELECT "Opposition" FROM table_5401 WHERE "Year" < '1977' AND "City" = 'manchester'
Which Opposition has a Year smaller than 1977, and a City of manchester?
CREATE TABLE table_5401 ( "Score" real, "Opposition" text, "Venue" text, "City" text, "Year" real )
SELECT substrate FROM table_182499_1 WHERE enzyme = "ALA dehydratase"
what is the subtrate for enzyme ala dehydratase
CREATE TABLE table_182499_1 (substrate VARCHAR, enzyme VARCHAR)
SELECT document_type_description FROM Ref_document_types WHERE document_type_name = "Film"
What is the document type description for document type named Film?
CREATE TABLE Ref_document_types (document_type_description VARCHAR, document_type_name VARCHAR)
SELECT "Rating/Share (18\u201349)" FROM table_3270 WHERE "Episode" = 'Week 6, Part 1'
What is the rating/share for 18-49 for Week 6, Part 1?
CREATE TABLE table_3270 ( "Episode Number" text, "Episode" text, "Original Airdate" text, "Rating" text, "Share" text, "Rating/Share (18\u201349)" text, "Viewers (millions)" text, "Weekly Rank" real )
SELECT COUNT(porphyria) FROM table_182499_1 WHERE substrate = "δ-Aminolevulinic acid"
how many porphyria have substrate δ-aminolevulinic acid
CREATE TABLE table_182499_1 (porphyria VARCHAR, substrate VARCHAR)
SELECT T1.document_type_name, T1.document_type_description, T2.Document_date FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code = T2.document_type_code
What is the document type name and the document type description and creation date for all the documents?
CREATE TABLE Ref_document_types (document_type_name VARCHAR, document_type_description VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (Document_date VARCHAR, document_type_code VARCHAR)
SELECT "Award" FROM table_51345 WHERE "Year" < '1998' AND "Type" = 'won' AND "Category" = 'best sound' AND "Title" = 'the exorcist'
What award was won in the best sound category for the exorcist before 1998?
CREATE TABLE table_51345 ( "Year" real, "Award" text, "Category" text, "Type" text, "Title" text )
SELECT location FROM table_182499_1 WHERE substrate = "Coproporphyrinogen III"
give the location of subtrate coproporphyrinogen iii
CREATE TABLE table_182499_1 (location VARCHAR, substrate VARCHAR)
SELECT COUNT(*) FROM Projects
Show the number of projects.
CREATE TABLE Projects (Id VARCHAR)
SELECT Carrier, AVG(Memory_in_G) FROM phone GROUP BY Carrier ORDER BY Carrier DESC
Give me a histogram for what are the memories and carriers of phones?, list by the x axis in desc.
CREATE TABLE phone ( Name text, Phone_ID int, Memory_in_G int, Carrier text, Price real ) CREATE TABLE phone_market ( Market_ID int, Phone_ID text, Num_of_stock int ) CREATE TABLE market ( Market_ID int, District text, Num_of_employees int, Num_of_shops real, Rankin...
SELECT written_by FROM table_18274425_1 WHERE production_code = "3T7573"
Who were the authors of episode having production code 3t7573?
CREATE TABLE table_18274425_1 (written_by VARCHAR, production_code VARCHAR)
SELECT project_id, project_details FROM Projects
List ids and details for all projects.
CREATE TABLE Projects (project_id VARCHAR, project_details VARCHAR)
SELECT FIRST_NAME, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY MANAGER_ID
For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of first_name and manager_id , I want to rank in asc by the y-axis.
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25...
SELECT COUNT(no_in_season) FROM table_18274425_1 WHERE us_viewers__millions_ = "2.65"
How many episodes had a viewership of 2.65 million?
CREATE TABLE table_18274425_1 (no_in_season VARCHAR, us_viewers__millions_ VARCHAR)
SELECT T1.project_id, T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id HAVING COUNT(*) > 2
What is the project id and detail for the project with at least two documents?
CREATE TABLE Projects (project_id VARCHAR, project_details VARCHAR); CREATE TABLE Documents (project_id VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN DIEGO' AND CITY_2....
i need to take ten people from DENVER to SAN DIEGO with a stopover in PHOENIX please give me the flights
CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int )...
SELECT directed_by FROM table_18274425_1 WHERE written_by = "Mike Daniels"
Who were the director/s of episodes written by Mike Daniels?
CREATE TABLE table_18274425_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id WHERE T2.document_name = "King Book"
What is the project detail for the project with document "King Book"?
CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR); CREATE TABLE Documents (project_id VARCHAR, document_name VARCHAR)
SELECT MIN("Total produced") FROM table_78242 WHERE "Model" = 'fm h-15-44'
Which is the smallest Total produced with a model of FM H-15-44?
CREATE TABLE table_78242 ( "Model" text, "Build year" text, "Total produced" real, "Wheel arrangement" text, "Prime mover" text, "Power output" text )
SELECT COUNT(binibining_pilipinas_international) FROM table_1825751_4 WHERE miss_universe_philippines = "Nina Ricci Alagao"
How many winners of Binibining Pilipinas-International when Nina Ricci Alagao?
CREATE TABLE table_1825751_4 (binibining_pilipinas_international VARCHAR, miss_universe_philippines VARCHAR)
SELECT COUNT(*) FROM Ref_budget_codes
How many budget types do we have?
CREATE TABLE Ref_budget_codes (Id VARCHAR)
SELECT record FROM table_name_26 WHERE home = "ny islanders"
Can you tell me the Record that has the Home of ny islanders?
CREATE TABLE table_name_26 ( record VARCHAR, home VARCHAR )
SELECT second_runner_up FROM table_1825751_4 WHERE binibining_pilipinas_world = "Janina San Miguel"
Who was second runner up when Janina San Miguel won Binibining Pilipinas-World?
CREATE TABLE table_1825751_4 (second_runner_up VARCHAR, binibining_pilipinas_world VARCHAR)
SELECT budget_type_code, budget_type_description FROM Ref_budget_codes
List all budget type codes and descriptions.
CREATE TABLE Ref_budget_codes (budget_type_code VARCHAR, budget_type_description VARCHAR)
SELECT school FROM table_11677100_12 WHERE position = "Catcher"
What school did the catcher attend?
CREATE TABLE table_11677100_12 ( school VARCHAR, position VARCHAR )
SELECT binibining_pilipinas_international FROM table_1825751_4 WHERE miss_universe_philippines = "Gionna Cabrera"
Who was the winner of binibining pilipinas-International wheh Gionna Cabrera won Miss Universe Philippines?
CREATE TABLE table_1825751_4 (binibining_pilipinas_international VARCHAR, miss_universe_philippines VARCHAR)
SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code = "ORG"
What is the description for the budget type with code ORG?
CREATE TABLE Ref_budget_codes (budget_type_description VARCHAR, budget_type_code VARCHAR)
SELECT P.Id AS "post_link" FROM Posts AS P INNER JOIN Users AS U ON P.OwnerUserId = U.Id AND P.Body LIKE '%img src%' AND NOT P.Body LIKE '%imgur%'
Finds all posts that have embedded images, but do not contain 'imgur.com'. Finds all posts that have embedded images, but do not contain 'imgur.com'. Useful for finding old posts with images that may need uploading to imgur or are already broken. Sorted by last activity because of the Archaeologist badge.
CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostFeedback ( Id number, PostId numb...
SELECT COUNT(binibining_pilipinas_international) FROM table_1825751_4 WHERE binibining_pilipinas_world = "Maria Karla Bautista"
How many winners of binibining pilipinas-International when Maria Karla Bautista won binibining pilipinas-world?
CREATE TABLE table_1825751_4 (binibining_pilipinas_international VARCHAR, binibining_pilipinas_world VARCHAR)
SELECT COUNT(*) FROM Documents_with_expenses
How many documents have expenses?
CREATE TABLE Documents_with_expenses (Id VARCHAR)
SELECT votes FROM table_name_11 WHERE artist = "filipa batista"
What are the Votes for the Song by Artist Filipa Batista?
CREATE TABLE table_name_11 ( votes VARCHAR, artist VARCHAR )
SELECT COUNT(second_runner_up) FROM table_1825751_4 WHERE binibining_pilipinas_world = "Janina San Miguel"
Who is the second runner up when Janina San Miguel won binibining pilipinas-world?
CREATE TABLE table_1825751_4 (second_runner_up VARCHAR, binibining_pilipinas_world VARCHAR)
SELECT document_id FROM Documents_with_expenses WHERE budget_type_code = 'SF'
What are the document ids for the budget type code 'SF'?
CREATE TABLE Documents_with_expenses (document_id VARCHAR, budget_type_code VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "54" AND lab.label = "Specific Gravity"
how many patients aged below 54 years had the lab test name specific gravity?
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 COUNT(miss_universe_philippines) FROM table_1825751_4 WHERE binibining_pilipinas_international = "Margaret Ann Bayot"
When Margaret Ann Bayot won binibining pilipinas-international, how many winners of Miss Universe Philippines were there?
CREATE TABLE table_1825751_4 (miss_universe_philippines VARCHAR, binibining_pilipinas_international VARCHAR)
SELECT T2.budget_type_code, T2.budget_type_description, T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code = T2.budget_type_code
Show the budget type code and description and the corresponding document id.
CREATE TABLE Ref_budget_codes (budget_type_code VARCHAR, budget_type_description VARCHAR); CREATE TABLE Documents_with_expenses (document_id VARCHAR, budget_type_code VARCHAR)
SELECT T1.first_name, T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1
Find the full name of employee who supported the most number of customers.
CREATE TABLE employees ( first_name VARCHAR, last_name VARCHAR, id VARCHAR ) CREATE TABLE customers ( support_rep_id VARCHAR )
SELECT MIN(population_served) FROM table_18268930_1
What's the minimal number of population served?
CREATE TABLE table_18268930_1 (population_served INTEGER)
SELECT T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code = T2.Budget_Type_code WHERE T2.budget_type_Description = "Government"
Show ids for all documents with budget types described as 'Government'.
CREATE TABLE Documents_with_expenses (document_id VARCHAR, Budget_Type_code VARCHAR); CREATE TABLE Ref_Budget_Codes (Budget_Type_code VARCHAR, budget_type_Description VARCHAR)
SELECT attendance FROM table_name_32 WHERE visitor = "san jose" AND date = "may 4"
What is the attendance at the game where San Jose was the visitor on May 4?
CREATE TABLE table_name_32 ( attendance VARCHAR, visitor VARCHAR, date VARCHAR )