answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT lga_name FROM table_1966992_1 WHERE census_2006_population > 425208.9417698913 AND administrative_capital = "Port Harcourt" | What is the LGA name where the 2006 census population is bigger than 425208.9417698913 and administrative capital is port harcourt? | CREATE TABLE table_1966992_1 (lga_name VARCHAR, census_2006_population VARCHAR, administrative_capital VARCHAR) |
SELECT date FROM table_name_69 WHERE outcome = "winner" AND score = "7–5, 6–4" | Which Date has an Outcome of winner, and a Score of 7 5, 6 4? | CREATE TABLE table_name_69 (
date VARCHAR,
outcome VARCHAR,
score VARCHAR
) |
SELECT ifop_5_11_09 FROM table_name_18 WHERE ifop_1_9_09 = "5%" | Name the lfop for 5/11/09 with lfop 1/9/09 of 5% | CREATE TABLE table_name_18 (ifop_5_11_09 VARCHAR, ifop_1_9_09 VARCHAR) |
SELECT administrative_capital FROM table_1966992_1 WHERE lga_name = "Akuku-Toru" | What is the administrative capital of LGA name Akuku-Toru? | CREATE TABLE table_1966992_1 (administrative_capital VARCHAR, lga_name VARCHAR) |
SELECT "Written by" FROM table_21726 WHERE "U.S. viewers (million)" = '3.96' | Who wrote the episode 'The Dream Lover', which was viewed by 3.96 million viewers? | CREATE TABLE table_21726 (
"Series #" real,
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Original airdate" text,
"Production Code" text
) |
SELECT csa_4_16_09 FROM table_name_17 WHERE opinionway_4_17_09 = "12%" | Name the csa 4/16/09 for opinionway being 4/17/09 of 12% | CREATE TABLE table_name_17 (csa_4_16_09 VARCHAR, opinionway_4_17_09 VARCHAR) |
SELECT administrative_capital FROM table_1966992_1 WHERE census_2006_population = 249425 | What is the administrative capital that has a 2006 census population of 249425? | CREATE TABLE table_1966992_1 (administrative_capital VARCHAR, census_2006_population VARCHAR) |
SELECT "Away team score" FROM table_77775 WHERE "Home team" = 'collingwood' | What did the away team score when they were playing collingwood? | CREATE TABLE table_77775 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT ipsos_3_14_09 FROM table_name_33 WHERE ifop_11_12_08 = "7%" AND opinionway_4_17_09 = "5%" | Name the lpsos 3/14/09 for opinionway of 4/17/09 of 5% and lfof 11/12/08 of 7% | CREATE TABLE table_name_33 (ipsos_3_14_09 VARCHAR, ifop_11_12_08 VARCHAR, opinionway_4_17_09 VARCHAR) |
SELECT MAX(census_2006_population) FROM table_1966992_1 WHERE lga_name = "Opobo/Nkoro" | What is the maximum 2006 census population of LGA name Opobo/Nkoro? | CREATE TABLE table_1966992_1 (census_2006_population INTEGER, lga_name VARCHAR) |
SELECT Sex, COUNT(*) FROM people WHERE Weight > 85 GROUP BY Sex ORDER BY COUNT(*) | Count the number of people of each sex who have a weight higher than 85 by a bar chart, and list y axis in ascending order. | CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate re... |
SELECT results_2004 FROM table_name_18 WHERE party = "npa" | Name the 2004 results for npa | CREATE TABLE table_name_18 (results_2004 VARCHAR, party VARCHAR) |
SELECT MIN(enrollment) FROM table_1969577_3 | What's the minimal enrollment of any of the schools? | CREATE TABLE table_1969577_3 (enrollment INTEGER) |
SELECT Sex, COUNT(*) FROM Faculty WHERE Rank = "AsstProf" GROUP BY Sex | Show the number of male and female assistant professors. | CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
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 Faculty (
FacID INTEGER,
Lname VARC... |
SELECT decision FROM table_name_14 WHERE visitor = "tampa bay" | What was the decision when Tampa Bay was the visitor? | CREATE TABLE table_name_14 (decision VARCHAR, visitor VARCHAR) |
SELECT MAX(founded) FROM table_1969577_3 WHERE nickname = "Rams" | When was the school whose students are nicknamed Rams founded? | CREATE TABLE table_1969577_3 (founded INTEGER, nickname VARCHAR) |
SELECT "Player" FROM table_43493 WHERE "College" = 'vanderbilt' | Which player went to Vanderbilt? | CREATE TABLE table_43493 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"College" text
) |
SELECT visitor FROM table_name_14 WHERE date = "february 21" | Which visitor visited on February 21? | CREATE TABLE table_name_14 (visitor VARCHAR, date VARCHAR) |
SELECT type FROM table_1969577_3 WHERE nickname = "Chargers" | What's the type of the school whose students are nicknamed Chargers? | CREATE TABLE table_1969577_3 (type VARCHAR, nickname VARCHAR) |
SELECT "BB - Blind Bear" FROM table_28265 WHERE "BA - Running Bear" = 'MF - Mountain Falcon' | what is bb - blind bear where ba - running bear is mf - mountain falcon? | CREATE TABLE table_28265 (
"AB - Angry boar" text,
"B - Bishop" text,
"BA - Running Bear" text,
"BB - Blind Bear" text,
"BC - Beast Cadet" text
) |
SELECT date FROM table_name_3 WHERE venue = "victoria park" | What date is the Victoria Park venue? | CREATE TABLE table_name_3 (date VARCHAR, venue VARCHAR) |
SELECT founded FROM table_1969577_3 WHERE location = "Philadelphia, Pennsylvania" | When was the school in Philadelphia, Pennsylvania founded? | CREATE TABLE table_1969577_3 (founded VARCHAR, location VARCHAR) |
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 away_team FROM table_name_16 WHERE home_team = "fitzroy" | What Away team is from Fitzroy? | CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR) |
SELECT MIN(total_votes) FROM table_19698421_1 WHERE year = "2005" | What was the total number of votes in the 2005 elections? | CREATE TABLE table_19698421_1 (total_votes INTEGER, year VARCHAR) |
SELECT "D\u00e9part de la main gauche" FROM table_76891 WHERE "2nd string" = 'ra' | For the 2nd string of Ra what is the Depart de la main gauche? | CREATE TABLE table_76891 (
"Mode" text,
"D\u00e9part de la main gauche" text,
"Accord du 1st string" text,
"2nd string" text,
"3rd string" text
) |
SELECT home FROM table_name_85 WHERE visitor = "lakers" | Who was the home team that played the Lakers? | CREATE TABLE table_name_85 (home VARCHAR, visitor VARCHAR) |
SELECT COUNT(change__percentage_points_) FROM table_19698421_1 WHERE average_voters_per_candidate = 1423 | How many elections had 1423 average voters per candidate? | CREATE TABLE table_19698421_1 (change__percentage_points_ VARCHAR, average_voters_per_candidate VARCHAR) |
SELECT AVG(score) FROM table_name_70 WHERE champion = "joanne carner" | What is Joanne Carner's average score in Canadian Women's Open games that she has won? | CREATE TABLE table_name_70 (
score INTEGER,
champion VARCHAR
) |
SELECT tournament FROM table_name_85 WHERE 2006 = "a" AND 2008 = "1r" | Which tournament had a 2008 result of 1R? | CREATE TABLE table_name_85 (tournament VARCHAR) |
SELECT number_of_candidates FROM table_19698421_1 WHERE year = "1987" | How many candidates were there in the year of 1987? | CREATE TABLE table_19698421_1 (number_of_candidates VARCHAR, year VARCHAR) |
SELECT college FROM table_name_87 WHERE overall > 158 AND name = "travian robertson" | Which college's overall number is more than 158 when Travian Robertson is the name? | CREATE TABLE table_name_87 (
college VARCHAR,
overall VARCHAR,
name VARCHAR
) |
SELECT 2012 FROM table_name_91 WHERE 2007 = "a" AND 2011 = "a" | Which tournament in 2012 had a 2007 and 2011 finishes of "A"? | CREATE TABLE table_name_91 (Id VARCHAR) |
SELECT COUNT(modified_torque__lb_ft_) FROM table_19704392_1 WHERE standard_hp = "n/a" | What is the modified torque (lb/ft) when the standard hp n/a? | CREATE TABLE table_19704392_1 (modified_torque__lb_ft_ VARCHAR, standard_hp VARCHAR) |
SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 27172) AND STRFTIME('%y-%m', prescriptions.startdate) >= '2105-04' ORDER BY prescriptions.startdate LIMIT 1 | since 04/2105, when was patient 27172 prescribed for the first time for a drug? | 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... |
SELECT 2013 FROM table_name_44 WHERE 2006 = "a" AND 2010 = "1r" | Which tournament in 2013 had a 2010 finish of 1R? | CREATE TABLE table_name_44 (Id VARCHAR) |
SELECT MIN(rpm) FROM table_19704392_1 WHERE standard_speed__6th_gear_ = "114" | When the standard speed (6th gear) is 114, what is the minimum rpm? | CREATE TABLE table_19704392_1 (rpm INTEGER, standard_speed__6th_gear_ VARCHAR) |
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hypotension' AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-3 year')) AS t1 JOIN (SELEC... | until 3 years ago how many patients received therapeutic antibacterials - fourth generation cephalosporin during the same month after the diagnosis of hypotension. | 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,
... |
SELECT home_team AS score FROM table_name_71 WHERE away_team = "melbourne" | Which home team score has an Away team of melbourne? | CREATE TABLE table_name_71 (home_team VARCHAR, away_team VARCHAR) |
SELECT rpm FROM table_19704392_1 WHERE standard_speed__6th_gear_ = "88" | when standard speed (6th gear) is 88, what is the rpm? | CREATE TABLE table_19704392_1 (rpm VARCHAR, standard_speed__6th_gear_ VARCHAR) |
SELECT result FROM table_name_64 WHERE home_team = "philadelphia" AND date = "april 16" | What was the result of the game played on April 16 with Philadelphia as home team? | CREATE TABLE table_name_64 (
result VARCHAR,
home_team VARCHAR,
date VARCHAR
) |
SELECT MAX(crowd) FROM table_name_47 WHERE home_team = "geelong" | What is the highest crowd for Home team of geelong? | CREATE TABLE table_name_47 (crowd INTEGER, home_team VARCHAR) |
SELECT modified_speed__6th_gear_ FROM table_19704392_1 WHERE standard_torque__lb_ft_ = "10.3" AND modified_torque__lb_ft_ = "8.75" | What is the modified speed (6th gear) when standard torque (lb/ft) is 10.3 and modified torque (lb/ft) is 8.75? | CREATE TABLE table_19704392_1 (modified_speed__6th_gear_ VARCHAR, standard_torque__lb_ft_ VARCHAR, modified_torque__lb_ft_ VARCHAR) |
SELECT Reputation, COUNT(Id) FROM Users WHERE LastAccessDate > DATEADD(month, '##maxMonthsInactive:int?3##' * -1, CURRENT_TIMESTAMP()) AND Reputation >= '##minReputation:int?2##' GROUP BY Reputation ORDER BY Reputation | Number (count) of active users by reputation. | CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConce... |
SELECT COUNT(year) FROM table_name_85 WHERE performance = "60.73m" AND age__years_ > 45 | What is the year when the performance is 60.73m and the age (years) is more than 45? | CREATE TABLE table_name_85 (year VARCHAR, performance VARCHAR, age__years_ VARCHAR) |
SELECT MAX(modified_speed__6th_gear_) FROM table_19704392_1 WHERE standard_speed__6th_gear_ = "98" | when the max speed for modified speed (6th gear) where standard speed (6th gear) is 98 | CREATE TABLE table_19704392_1 (modified_speed__6th_gear_ INTEGER, standard_speed__6th_gear_ VARCHAR) |
SELECT MAX("Gold") FROM table_7332 WHERE "Total" > '13' AND "Silver" > '9' AND "Bronze" = '7' | What is the highest amount of gold medals awarded to a team with more than 9 silver, 7 bronze and more than 13 medals total? | CREATE TABLE table_7332 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT MAX(age__years_) FROM table_name_45 WHERE place = "1st" AND performance = "62.20m" | What is the highest age (years) that the 1st place had a performance of 62.20m? | CREATE TABLE table_name_45 (age__years_ INTEGER, place VARCHAR, performance VARCHAR) |
SELECT modified_hp FROM table_19704392_1 WHERE standard_torque__lb_ft_ = "11.53" | When the standard torque (lb/ft) is 11.53 how much does more is the modified hp? | CREATE TABLE table_19704392_1 (modified_hp VARCHAR, standard_torque__lb_ft_ VARCHAR) |
SELECT COUNT(*) > 0 FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'osteoarthros nos-unspec') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 13528) AND DATETIME(diagnoses... | did patient 13528 have osteoarthros nos-unspec diagnosed since 2 years ago? | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
... |
SELECT place FROM table_name_65 WHERE performance = "60.73m" | What is the place when the performance is 60.73m? | CREATE TABLE table_name_65 (place VARCHAR, performance VARCHAR) |
SELECT assists FROM table_19722233_5 WHERE minutes = 195 | how many assists did the player who played 195 minutes make | CREATE TABLE table_19722233_5 (assists VARCHAR, minutes VARCHAR) |
SELECT to_par FROM table_name_79 WHERE player = "mike weir" | What is Mike Weir's To par? | CREATE TABLE table_name_79 (
to_par VARCHAR,
player VARCHAR
) |
SELECT kaz_hayashi FROM table_name_47 WHERE block_a = "shuji kondo" | Name the kaz hayashi with block A of Shuji Kondo | CREATE TABLE table_name_47 (kaz_hayashi VARCHAR, block_a VARCHAR) |
SELECT MIN(blocks) FROM table_19722233_5 | what is the lowest number of blocks | CREATE TABLE table_19722233_5 (blocks INTEGER) |
SELECT "10:00" FROM table_35757 WHERE "9:30" = 'party of five' | What 10:00 has party of five as 9:30? | CREATE TABLE table_35757 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text,
"10:30" text
) |
SELECT block_a FROM table_name_93 WHERE toshizo = "shuji kondo" | Name the block A for shuji kondo | CREATE TABLE table_name_93 (block_a VARCHAR, toshizo VARCHAR) |
SELECT MIN(points) FROM table_19722233_5 WHERE blocks = 21 | what is the lowest points scored by a player who blocked 21 times | CREATE TABLE table_19722233_5 (points INTEGER, blocks VARCHAR) |
SELECT t1.drug FROM (SELECT prescriptions.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM prescriptions WHERE STRFTIME('%y', prescriptions.startdate) >= '2105' GROUP BY prescriptions.drug) AS t1 WHERE t1.c1 <= 3 | what were the three most frequently prescribed drugs since 2105? | CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit te... |
SELECT nosawa_rongai FROM table_name_97 WHERE block_a = "petey williams" | Name the NOSAWA Rongai for petey williams | CREATE TABLE table_name_97 (nosawa_rongai VARCHAR, block_a VARCHAR) |
SELECT blocks FROM table_19722233_5 WHERE player = "Debbie Black" | how many times did debbie black block | CREATE TABLE table_19722233_5 (blocks VARCHAR, player VARCHAR) |
SELECT t3.culturesite FROM (SELECT t2.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'insulin' ... | what are the five most frequently ordered microbiology tests for patients who received insulin earlier in the same hospital visit until 2101? | 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 t... |
SELECT score FROM table_name_61 WHERE champion = "nannette hill" | What was the score when Nannette Hill was the champion? | CREATE TABLE table_name_61 (score VARCHAR, champion VARCHAR) |
SELECT MAX(field_goals) FROM table_19722233_5 WHERE assists = 27 | what is the highest number of goals did the player with 27 asists score | CREATE TABLE table_19722233_5 (field_goals INTEGER, assists VARCHAR) |
SELECT AVG(founded) FROM table_name_96 WHERE team = "baton rouge blaze" | What is the mean Founded number when the team is the Baton Rouge Blaze? | CREATE TABLE table_name_96 (
founded INTEGER,
team VARCHAR
) |
SELECT home_team AS score FROM table_name_74 WHERE away_team = "melbourne" | What score did the opposing home team have against Melbourne | CREATE TABLE table_name_74 (home_team VARCHAR, away_team VARCHAR) |
SELECT assists FROM table_19722233_5 WHERE points = 251 | how many assists did the player who scored 251 points make | CREATE TABLE table_19722233_5 (assists VARCHAR, points VARCHAR) |
SELECT SUM(year) FROM table_name_80 WHERE competition = "european indoor championships" AND venue = "budapest , hungary" | Which Year has a Competition of european indoor championships, and a Venue of budapest , hungary? | CREATE TABLE table_name_80 (
year INTEGER,
competition VARCHAR,
venue VARCHAR
) |
SELECT venue FROM table_name_76 WHERE away_team = "st kilda" | Name the venue where St Kilda was the opposing away team | CREATE TABLE table_name_76 (venue VARCHAR, away_team VARCHAR) |
SELECT prod__number FROM table_1971734_1 WHERE filmed = "Aug/Sept 1968" | What was the production number of the episode filmed in aug/sept 1968? | CREATE TABLE table_1971734_1 (prod__number VARCHAR, filmed VARCHAR) |
SELECT country FROM table_name_16 WHERE year > 1978 AND score = "295" AND venue = "lindrick golf club" | Which Country has a Year larger than 1978, and a Score of 295, and a Venue of lindrick golf club? | CREATE TABLE table_name_16 (
country VARCHAR,
venue VARCHAR,
year VARCHAR,
score VARCHAR
) |
SELECT date FROM table_name_36 WHERE venue = "lake oval" | Which Date has a Venue of lake oval? | CREATE TABLE table_name_36 (date VARCHAR, venue VARCHAR) |
SELECT MAX(enrollment) FROM table_1971074_1 | What's the highest enrollment among the schools? | CREATE TABLE table_1971074_1 (enrollment INTEGER) |
SELECT males FROM table_name_82 WHERE percentage___percentage_ = "80.62" | How many males have a percentage of 80.62? | CREATE TABLE table_name_82 (
males VARCHAR,
percentage___percentage_ VARCHAR
) |
SELECT SUM(crowd) FROM table_name_79 WHERE away_team = "collingwood" | Which Crowd has an Away team of collingwood? | CREATE TABLE table_name_79 (crowd INTEGER, away_team VARCHAR) |
SELECT joined FROM table_1971074_1 WHERE location = "Logan Township, Pennsylvania" | When did the school from Logan Township, Pennsylvania join the Conference? | CREATE TABLE table_1971074_1 (joined VARCHAR, location VARCHAR) |
SELECT record FROM table_name_1 WHERE date = "december 4" | What was their record on December 4? | CREATE TABLE table_name_1 (
record VARCHAR,
date VARCHAR
) |
SELECT AVG(rd__number) FROM table_name_82 WHERE player = "steve hazlett" AND pl_gp < 0 | When Steve Hazlett is the Player, and the PI GP is under 0, what is the average Rd #? | CREATE TABLE table_name_82 (rd__number INTEGER, player VARCHAR, pl_gp VARCHAR) |
SELECT founded FROM table_1971074_1 WHERE type = "Private/Non-sectarian" | When was the private/non-sectarian school founded? | CREATE TABLE table_1971074_1 (founded VARCHAR, type VARCHAR) |
SELECT "2004" FROM table_50386 WHERE "2005" = 'a' AND "2009" = 'q1' | What is the result for 2004 when A is the result for 2005, and the result of q1 when 2009? | CREATE TABLE table_50386 (
"Tournament" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) |
SELECT player FROM table_name_71 WHERE pl_gp > 0 AND rd__number = 1 | Which Player has a PI GP over 0 and a Rd # of 1? | CREATE TABLE table_name_71 (player VARCHAR, pl_gp VARCHAR, rd__number VARCHAR) |
SELECT location FROM table_1971074_1 WHERE nickname = "Panthers" | Where is the school whose students are nicknamed Panthers located? | CREATE TABLE table_1971074_1 (location VARCHAR, nickname VARCHAR) |
SELECT "Club/province" FROM table_78299 WHERE "Caps" = '74' AND "Player" = 'girvan dempsey' | What is the club or province of Girvan Dempsey, who has 74 caps? | CREATE TABLE table_78299 (
"Player" text,
"Position" text,
"Date of Birth (Age)" text,
"Caps" real,
"Club/province" text
) |
SELECT MAX(pick__number) FROM table_name_9 WHERE rd__number < 1 | Which Pick # is the highest and has the Rd # is under 1? | CREATE TABLE table_name_9 (pick__number INTEGER, rd__number INTEGER) |
SELECT COUNT(enrollment) FROM table_1971074_1 WHERE nickname = "Barons" | How many different enrollment numbers are there for the school whose students are nicknamed Barons? | CREATE TABLE table_1971074_1 (enrollment VARCHAR, nickname VARCHAR) |
SELECT PHONE_NUMBER, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of phone_number and salary . | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
... |
SELECT MIN(pl_gp) FROM table_name_53 WHERE reg_gp = 1 AND player = "murray bannerman" AND pick__number < 58 | What is the lowest PI GP when the Reg GP is 1, Murray Bannerman is the Player, and the Pick # is under 58? | CREATE TABLE table_name_53 (pl_gp INTEGER, pick__number VARCHAR, reg_gp VARCHAR, player VARCHAR) |
SELECT COUNT(joined) FROM table_1971074_1 WHERE location = "Logan Township, Pennsylvania" | In how many different years did schools located in Logan Township, Pennsylvania join the Conference? | CREATE TABLE table_1971074_1 (joined VARCHAR, location VARCHAR) |
SELECT Location, COUNT(Location) FROM performance GROUP BY Location ORDER BY COUNT(Location) | Compare the total number of locations in each location using a bar graph, and order by the Y-axis from low to high. | CREATE TABLE member (
Member_ID text,
Name text,
Nationality text,
Role text
)
CREATE TABLE member_attendance (
Member_ID int,
Performance_ID int,
Num_of_Pieces int
)
CREATE TABLE performance (
Performance_ID real,
Date text,
Host text,
Location text,
Attendance int
) |
SELECT AVG(top_25) FROM table_name_33 WHERE events = 5 AND cuts_made < 3 | Tell me the average top 25 with events of 5 and cuts madde less than 3 | CREATE TABLE table_name_33 (top_25 INTEGER, events VARCHAR, cuts_made VARCHAR) |
SELECT COUNT(isolation) FROM table_19716903_1 WHERE mountain_peak = "Jack Mountain" | How many different isolation numbers does the Jack Mountain peak have? | CREATE TABLE table_19716903_1 (isolation VARCHAR, mountain_peak VARCHAR) |
SELECT Hardware_Model_name, Company_name FROM phone WHERE Accreditation_type LIKE 'Full' | Find all phones that have word 'Full' in their accreditation types. List the Hardware Model name and Company name. | CREATE TABLE phone (
Hardware_Model_name VARCHAR,
Company_name VARCHAR,
Accreditation_type VARCHAR
) |
SELECT MAX(cuts_made) FROM table_name_5 WHERE wins > 1 | Tell me the highest cuts made with wins more than 1 | CREATE TABLE table_name_5 (cuts_made INTEGER, wins INTEGER) |
SELECT steals FROM table_19722664_5 WHERE player = "Nicole Levandusky" | How many steals did Nicole Levandusky make? | CREATE TABLE table_19722664_5 (steals VARCHAR, player VARCHAR) |
SELECT attendance FROM table_name_16 WHERE date = "october 26" | What is the attendance of the match on October 26? | CREATE TABLE table_name_16 (
attendance VARCHAR,
date VARCHAR
) |
SELECT MAX(wins) FROM table_name_71 WHERE cuts_made > 5 | I want to know the highest wins for cuts made more than 5 | CREATE TABLE table_name_71 (wins INTEGER, cuts_made INTEGER) |
SELECT MAX(rebounds) FROM table_19722664_5 WHERE player = "Rhonda Mapp" | How many rebounds did Rhonda Mapp make? | CREATE TABLE table_19722664_5 (rebounds INTEGER, player VARCHAR) |
SELECT 2010 FROM table_27146868_1 WHERE 2003 = "5.6" | What is 2010 when 2003 is 5.6? | CREATE TABLE table_27146868_1 (
Id VARCHAR
) |
SELECT SUM(top_5) FROM table_name_98 WHERE events < 12 AND top_25 < 0 | Tell me the sum of top 5 with events less than 12 and top 25 less than 0 | CREATE TABLE table_name_98 (top_5 INTEGER, events VARCHAR, top_25 VARCHAR) |
SELECT MAX(assists) FROM table_19722664_5 WHERE player = "Nicole Levandusky" | What is the largest amount of assists that Nicole Levandusky made? | CREATE TABLE table_19722664_5 (assists INTEGER, player VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.