answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT "League Cup Apps" FROM table_46958 WHERE "Position" = 'mf' AND "League Goals" > '3' AND "Total Apps" = '30 (2)'
What is the league cup apps when the league goals are greater than 3, there are 30 (2) total apps, and has a position of mf?
CREATE TABLE table_46958 ( "Squad No." real, "Name" text, "Position" text, "League Apps" text, "League Goals" real, "FA Cup Apps" text, "FA Cup Goals" real, "League Cup Apps" text, "League Cup Goals" real, "Total Apps" text, "Total Goals" real )
SELECT title FROM table_name_72 WHERE frequency = "monthly"
What titles come out monthly?
CREATE TABLE table_name_72 (title VARCHAR, frequency VARCHAR)
SELECT 1 AS st__m_ FROM table_14407512_9 WHERE points = "272.7"
What is the 1st(m) score for the Person who had a total points of 272.7
CREATE TABLE table_14407512_9 (points VARCHAR)
SELECT MAX(year) FROM table_name_37 WHERE event = "fila world championships" AND venue = "toledo, united states" AND weight_class__kg_ < 97
What is the highest year that has fila world championships as the event, with toledo, united states as the venue, and a weight class (kg) less than 97?
CREATE TABLE table_name_37 ( year INTEGER, weight_class__kg_ VARCHAR, event VARCHAR, venue VARCHAR )
SELECT parent_magazine FROM table_name_42 WHERE title = "dengeki 5pb."
What is the parent magazine for Dengeki 5pb.?
CREATE TABLE table_name_42 (parent_magazine VARCHAR, title VARCHAR)
SELECT opponent FROM table_14418812_1 WHERE week = 12
Name the opponent for week 12
CREATE TABLE table_14418812_1 (opponent VARCHAR, week VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND procedures.short_title = "Ureteral catheterization"
what is the number of elective hospital admission patients who had urethral catheterization?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, ...
SELECT magazine_type FROM table_name_94 WHERE magazine_run = "march 3, 2009–february 5, 2010"
What is the magazine type that ran from March 3, 2009–February 5, 2010?
CREATE TABLE table_name_94 (magazine_type VARCHAR, magazine_run VARCHAR)
SELECT COUNT(date) FROM table_14418812_1 WHERE game_site = "Shea Stadium"
Name the number of date for shea stadium
CREATE TABLE table_14418812_1 (date VARCHAR, game_site VARCHAR)
SELECT COUNT(viewers) FROM table_16072430_1 WHERE share = 7 AND weekly_rank = "64"
What is the total number of viewers where the share is 7 and the week rank is 64?
CREATE TABLE table_16072430_1 ( viewers VARCHAR, share VARCHAR, weekly_rank VARCHAR )
SELECT frequency FROM table_name_62 WHERE magazine_run = "september 2, 2010"
What is the frequency for the magazine that runs September 2, 2010?
CREATE TABLE table_name_62 (frequency VARCHAR, magazine_run VARCHAR)
SELECT opponent FROM table_14418812_1 WHERE game_site = "Astrodome"
Name the opponent for astrodome
CREATE TABLE table_14418812_1 (opponent VARCHAR, game_site VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.diagnosis = "ABDOMINAL ABSCESS"
give the number of patients whose admission type is elective and primary disease is abdominal abscess.
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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob te...
SELECT MAX(laps) FROM table_name_98 WHERE time_retired = "+1:23.297" AND grid > 4
What is the highest number of laps with a +1:23.297 time/retired and a grid larger than 4?
CREATE TABLE table_name_98 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT COUNT(home_team) AS score FROM table_14425454_1 WHERE time = "4:40 PM"
How many home team scores have a time of 4:40 PM?
CREATE TABLE table_14425454_1 (home_team VARCHAR, time VARCHAR)
SELECT t3.treatmentname FROM (SELECT t2.treatmentname, 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 = 'antic...
what are the four most commonly ordered procedures for patients who had previously received anticonvulsant - levetiracetam in the same hospital visit, in 2105?
CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE diagnosis ( diagnosisid number, ...
SELECT time_retired FROM table_name_93 WHERE constructor = "toyota" AND grid = 5
What is the time/retired with a toyota constructor and a 5 grid?
CREATE TABLE table_name_93 (time_retired VARCHAR, constructor VARCHAR, grid VARCHAR)
SELECT ground FROM table_14425454_1 WHERE crowd = "8,256"
What stadiums had an attendance of 8,256?
CREATE TABLE table_14425454_1 (ground VARCHAR, crowd VARCHAR)
SELECT high_points FROM table_22879323_10 WHERE high_rebounds = "Terrence Williams (8)"
What was the high points when rebounds were Terrence Williams (8)?
CREATE TABLE table_22879323_10 ( high_points VARCHAR, high_rebounds VARCHAR )
SELECT AVG(laps) FROM table_name_54 WHERE grid = 16
What is the average number of laps with 16 grids?
CREATE TABLE table_name_54 (laps INTEGER, grid VARCHAR)
SELECT COUNT(crowd) FROM table_14425454_1 WHERE home_team = "Port Adelaide"
What is the total number of attendees where the home team was Port Adelaide?
CREATE TABLE table_14425454_1 (crowd VARCHAR, home_team VARCHAR)
SELECT COUNT(director) FROM table_25800134_12 WHERE airdate = "February 5, 1968"
How many people directed the episode that aired on February 5, 1968?
CREATE TABLE table_25800134_12 ( director VARCHAR, airdate VARCHAR )
SELECT endowment_as_of_2008 FROM table_name_55 WHERE established = 1961
What was the endowment in 2008 of the college that was established in 1961?
CREATE TABLE table_name_55 (endowment_as_of_2008 VARCHAR, established VARCHAR)
SELECT opponent FROM table_14423274_3 WHERE game_site = "Rich Stadium"
Which team did they play at Rich Stadium?
CREATE TABLE table_14423274_3 (opponent VARCHAR, game_site VARCHAR)
SELECT SUM("Goals Scored") FROM table_72005 WHERE "Points" < '27' AND "Team" = 'c.d. atlético balboa'
What's the total of Goals Scored with Points that's smaller than 27, and a Team of C.D. Atl tico Balboa?
CREATE TABLE table_72005 ( "Place" real, "Team" text, "Played" real, "Draw" real, "Lost" real, "Goals Scored" real, "Goals Conceded" real, "Points" real )
SELECT attendance FROM table_name_84 WHERE tie_no = "40"
On what day was the attendance that had a Tie value of 40?
CREATE TABLE table_name_84 (attendance VARCHAR, tie_no VARCHAR)
SELECT date FROM table_14423274_3 WHERE game_site = "Cleveland Municipal Stadium"
What date did they play in Cleveland Municipal Stadium?
CREATE TABLE table_14423274_3 (date VARCHAR, game_site VARCHAR)
SELECT "lifetime" - "lifetime" FROM table_204_698 WHERE "name" = 'pierre vallieres'
how old was pierre vallieres before he died ?
CREATE TABLE table_204_698 ( id number, "name" text, "lifetime" text, "nationality" text, "notable as" text, "notes" text )
SELECT home_team FROM table_name_6 WHERE away_team = "canvey island"
Who was the home team for the away game that Canvey Island played?
CREATE TABLE table_name_6 (home_team VARCHAR, away_team VARCHAR)
SELECT year_model FROM table_1444201_1 WHERE engine = "4-cyl Straight engine DOHC 16V" AND model = "1.5 CRDi"
Name the year model for 4-cyl straight engine dohc 16v and 1.5 crdi
CREATE TABLE table_1444201_1 (year_model VARCHAR, engine VARCHAR, model VARCHAR)
SELECT COUNT(dismissals) FROM table_23316034_23 WHERE player = "Adam Gilchrist"
Name the number of dismissals for adam gilchrist
CREATE TABLE table_23316034_23 ( dismissals VARCHAR, player VARCHAR )
SELECT attendance FROM table_name_4 WHERE home_team = "gillingham"
On what day was there a Home game for Gillingham?
CREATE TABLE table_name_4 (attendance VARCHAR, home_team VARCHAR)
SELECT year_model FROM table_1444201_1 WHERE model = "1.3"
Name the year model for 1.3
CREATE TABLE table_1444201_1 (year_model VARCHAR, model VARCHAR)
SELECT MIN(Age), MAX(Age), Major FROM Student GROUP BY Major
Scatter plot to show min(age) on x axis and maximal age on y axis for different majors.
CREATE TABLE Plays_Games ( StuID INTEGER, GameID INTEGER, Hours_Played INTEGER ) CREATE TABLE SportsInfo ( StuID INTEGER, SportName VARCHAR(32), HoursPerWeek INTEGER, GamesPlayed INTEGER, OnScholarship VARCHAR(1) ) CREATE TABLE Video_Games ( GameID INTEGER, GName VARCHAR(40), ...
SELECT MAX(pick) FROM table_name_21 WHERE overall > 308 AND position = "rb"
Which Pick has an Overall larger than 308, and a Position of rb?
CREATE TABLE table_name_21 (pick INTEGER, overall VARCHAR, position VARCHAR)
SELECT MIN(pos) FROM table_14460937_2 WHERE clubs = "16"
what is the minimum pos with clubs being 16
CREATE TABLE table_14460937_2 (pos INTEGER, clubs VARCHAR)
SELECT T2.address_id, T1.zip_postcode FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id ORDER BY monthly_rental DESC LIMIT 1
What are the id and zip code of the address with the highest monthly rental?
CREATE TABLE Addresses ( zip_postcode VARCHAR, address_id VARCHAR ) CREATE TABLE Student_Addresses ( address_id VARCHAR )
SELECT SUM(overall) FROM table_name_86 WHERE position = "wr" AND college = "alberta"
How much Overall has a Position of wr, and a College of alberta?
CREATE TABLE table_name_86 (overall INTEGER, position VARCHAR, college VARCHAR)
SELECT MAX(afc_cup) FROM table_14460937_2
what is the maximum value for afc cup
CREATE TABLE table_14460937_2 (afc_cup INTEGER)
SELECT "Finish" FROM table_6322 WHERE "Team" = 'chip ganassi racing' AND "Year" > '2010' AND "Start" = '17'
What is the finish for the chip ganassi racing team that was later than 2010 and a Start of 17?
CREATE TABLE table_6322 ( "Year" real, "Chassis" text, "Engine" text, "Start" text, "Finish" text, "Team" text )
SELECT AVG(pick) FROM table_name_51 WHERE college = "indiana"
What is indiana college's average pick?
CREATE TABLE table_name_51 (pick INTEGER, college VARCHAR)
SELECT COUNT(pos) FROM table_14460937_2 WHERE member_association = "China PR"
how many pos with member association being china pr
CREATE TABLE table_14460937_2 (pos VARCHAR, member_association VARCHAR)
SELECT t3.diagnosisname FROM (SELECT t2.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'cardioversion' AND DATETIME(treatment.tr...
tell me the top four most frequent diagnoses that patients were diagnosed with within 2 months after receiving cardioversion in the previous year.
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, ...
SELECT college FROM table_name_46 WHERE overall = 308
Which College has an Overall of 308?
CREATE TABLE table_name_46 (college VARCHAR, overall VARCHAR)
SELECT COUNT(points__total_500_) FROM table_14460937_2 WHERE pos = 11
how many points (total 500) with pos being 11
CREATE TABLE table_14460937_2 (points__total_500_ VARCHAR, pos VARCHAR)
SELECT SUM("Gross Tonnage") FROM table_52907 WHERE "Material" = 'wood' AND "Date Commissioned" > '1846' AND "Ship" = 'esk'
Name the sum of gross tonnage for wood on date more tahn 1846 for comissioned and ship of esk
CREATE TABLE table_52907 ( "Ship" text, "Date Commissioned" real, "Gross Tonnage" real, "Propulsion" text, "Material" text )
SELECT surface FROM table_name_3 WHERE opponent = "marcos baghdatis"
What was the surface for the opponent Marcos Baghdatis?
CREATE TABLE table_name_3 (surface VARCHAR, opponent VARCHAR)
SELECT 1987 AS _88 FROM table_14460085_3 WHERE team = "Racing de Córdoba"
How many points in 87/88 for racing de córdoba?
CREATE TABLE table_14460085_3 (team VARCHAR)
SELECT MAX("Season #") FROM table_16971 WHERE "Series #" = '61'
What was the season number for the episode with the series number 61?
CREATE TABLE table_16971 ( "Series #" real, "Season #" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real )
SELECT eighth FROM table_name_61 WHERE seventh = "audio bullys"
WHAT IS THE 8TH THAT HAS A 7TH OF AUDIO BULLYS?
CREATE TABLE table_name_61 (eighth VARCHAR, seventh VARCHAR)
SELECT MIN(played) FROM table_14460085_3 WHERE team = "Deportivo Español"
What is the lowest number of games played for deportivo español?
CREATE TABLE table_14460085_3 (played INTEGER, team VARCHAR)
SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-15837' AND patient.hospitaldischargetime IS NULL)) AND lab.labname = '-monos' O...
when was the last time that was patient 007-15837 had the maximum -monos in the current hospital encounter?
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 ( medi...
SELECT poll_year FROM table_name_34 WHERE third = "the ting tings"
WHAT IS THE POLL YEAR WITH A THIRD OF THE TING TINGS?
CREATE TABLE table_name_34 (poll_year VARCHAR, third VARCHAR)
SELECT COUNT(points) FROM table_14460085_3 WHERE team = "San Lorenzo"
How many points total for san lorenzo?
CREATE TABLE table_14460085_3 (points VARCHAR, team VARCHAR)
SELECT name, headquarter FROM manufacturers ORDER BY revenue DESC
What are the names and headquarters of all manufacturers, ordered by revenue descending?
CREATE TABLE products ( code number, name text, price number, manufacturer number ) CREATE TABLE manufacturers ( code number, name text, headquarter text, founder text, revenue number )
SELECT sixth FROM table_name_66 WHERE second = "white lies"
WHAT IS THE SIXTH WITH A SECOND OF WHITE LIES?
CREATE TABLE table_name_66 (sixth VARCHAR, second VARCHAR)
SELECT telephone__052_ FROM table_14465924_1 WHERE area__km_2__ = "5.42"
Name the telephone 052 for area km2 being 5.42
CREATE TABLE table_14465924_1 (telephone__052_ VARCHAR, area__km_2__ VARCHAR)
SELECT "Date" FROM table_41437 WHERE "Runner-up" = 'sofía mulánovich ( per )'
What is Date when Runner-up is Sof a Mul novich ( per )?
CREATE TABLE table_41437 ( "Date" text, "Location" text, "Country" text, "Event" text, "Winner" text, "Runner-up" text )
SELECT winner FROM table_name_97 WHERE fifth = "joss stone"
WHAT IS THE WINNER WITH A FIFTH OF JOSS STONE?
CREATE TABLE table_name_97 (winner VARCHAR, fifth VARCHAR)
SELECT population__people_ FROM table_14465924_1 WHERE area__km_2__ = "24.35"
Name the population of people for area being 24.35
CREATE TABLE table_14465924_1 (population__people_ VARCHAR, area__km_2__ VARCHAR)
SELECT demographic.admission_location, demographic.discharge_location FROM demographic WHERE demographic.name = "Elizabeth Bateman"
Provide the admission location as well as discharge location of Elizabeth Bateman.
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 second FROM table_name_65 WHERE tenth = "dan black"
WHAT IS THE SECOND WITH A TENTH OF DAN BLACK?
CREATE TABLE table_name_65 (second VARCHAR, tenth VARCHAR)
SELECT COUNT(telephone__052_) FROM table_14465924_1 WHERE area__km_2__ = "362.81"
Name the total number of telephone 052 for 362.81
CREATE TABLE table_14465924_1 (telephone__052_ VARCHAR, area__km_2__ VARCHAR)
SELECT "Location" FROM table_46147 WHERE "Res." = 'win' AND "Event" = 'superbrawl 16'
In which location did he win the Superbrawl 16 event?
CREATE TABLE table_46147 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" text, "Location" text )
SELECT AVG(game) FROM table_name_45 WHERE date = "january 30"
What average game has January 30 as the date?
CREATE TABLE table_name_45 (game INTEGER, date VARCHAR)
SELECT name_of_administrative_unit FROM table_14465924_1 WHERE number = 4
Name the number of administrative unit for number 4
CREATE TABLE table_14465924_1 (name_of_administrative_unit VARCHAR, number VARCHAR)
SELECT MAX(pick__number) FROM table_name_43 WHERE rd__number < 6 AND player = "bob dailey" AND reg_gp > 257
What is the highest Pick number that had a road number that was less than 6, featured Bob Dailey as a player, and which had a Reg GP bigger than 257?
CREATE TABLE table_name_43 ( pick__number INTEGER, reg_gp VARCHAR, rd__number VARCHAR, player VARCHAR )
SELECT score FROM table_name_65 WHERE date = "january 19"
What score has january 19 as the date?
CREATE TABLE table_name_65 (score VARCHAR, date VARCHAR)
SELECT name_of_administrative_unit FROM table_14465924_1 WHERE population__people_ = 3464
Name the name of administrative unit for 3464 people
CREATE TABLE table_14465924_1 (name_of_administrative_unit VARCHAR, population__people_ VARCHAR)
SELECT Sex, SUM(Height) FROM people GROUP BY Sex ORDER BY Sex DESC
Show me about the distribution of Sex and the sum of Height , and group by attribute Sex in a bar chart, and list X in descending 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 location_attendance FROM table_name_24 WHERE game > 35 AND date = "january 30"
What is the loaction attendance that has a game greater than 35, with January 30 as the date?
CREATE TABLE table_name_24 (location_attendance VARCHAR, game VARCHAR, date VARCHAR)
SELECT COUNT(cmdlets) FROM table_14465871_2 WHERE version = "2008"
How many of the cmdlets are the 2008 version?
CREATE TABLE table_14465871_2 (cmdlets VARCHAR, version VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SHORT TERM HOSPITAL" AND demographic.age < "74"
how many of the patients aged below 74 were discharged after short term hospital care?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, ...
SELECT MAX(game) FROM table_name_99 WHERE date = "january 5"
What is the highest game that has January 5 as the date?
CREATE TABLE table_name_99 (game INTEGER, date VARCHAR)
SELECT provider FROM table_14465871_2 WHERE application = "Exchange Server"
Which providers use exchange server?
CREATE TABLE table_14465871_2 (provider VARCHAR, application VARCHAR)
SELECT MIN(demographic.age) FROM demographic WHERE demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" AND demographic.admityear >= "2187"
Among patients admitted in the year or after 2187, calculate the minimum age of patients with brain mass intracranial hemorrhage as their primary disease
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, ...
SELECT high_rebounds FROM table_name_58 WHERE location_attendance = "conseco fieldhouse 11,964"
What is the highest rebounds that has conseco fieldhouse 11,964 as the location attendance?
CREATE TABLE table_name_58 (high_rebounds VARCHAR, location_attendance VARCHAR)
SELECT provider FROM table_14465871_2 WHERE version = "2008"
Which providers use version 2008?
CREATE TABLE table_14465871_2 (provider VARCHAR, version VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "27" AND diagnoses.long_title = "Hypoxemia"
how many patients less than 27 years of age have been diagnosed with hypoxemia?
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 MAX(lane) FROM table_name_82 WHERE mark = "2:02.27 nr" AND heat < 2
What is the highest lane value for a mark of 2:02.27 NR, with heats under 2?
CREATE TABLE table_name_82 (lane INTEGER, mark VARCHAR, heat VARCHAR)
SELECT 1986 AS _87 FROM table_14489821_1 WHERE team = "Argentinos Juniors"
how many points did the argentinos juniors team score during the 1986-87 season?
CREATE TABLE table_14489821_1 (team VARCHAR)
SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating > 8 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating < 5
Find the titles of items that received both a rating higher than 8 and a rating below 5.
CREATE TABLE item ( title VARCHAR, i_id VARCHAR ) CREATE TABLE review ( i_id VARCHAR, rating INTEGER )
SELECT mark FROM table_name_8 WHERE country = "mozambique"
What is the mark for the runner from Mozambique?
CREATE TABLE table_name_8 (mark VARCHAR, country VARCHAR)
SELECT MAX(played) FROM table_14489821_1
what is the maximum number of matches played by a team?
CREATE TABLE table_14489821_1 (played INTEGER)
SELECT date FROM table_name_50 WHERE venue = "sabina park"
What dates had matches at the venue Sabina Park?
CREATE TABLE table_name_50 ( date VARCHAR, venue VARCHAR )
SELECT name FROM table_name_84 WHERE lane = 6 AND mark = "2:05.58 sb"
Who was in lane 6 with a mark of 2:05.58 SB?
CREATE TABLE table_name_84 (name VARCHAR, lane VARCHAR, mark VARCHAR)
SELECT 1986 AS _87 FROM table_14489821_1 WHERE average = "1.079"
list the number of matches played by the teams that got an average of 1.079
CREATE TABLE table_14489821_1 (average VARCHAR)
SELECT COUNT(*) FROM table_204_854 WHERE "wrestlers" = 'miracle man'
what is the number of times that miracle man has held the belt ?
CREATE TABLE table_204_854 ( id number, "#" number, "wrestlers" text, "reign" number, "date" text, "days\nheld" number, "location" text, "notes" text )
SELECT MAX(round) FROM table_name_54 WHERE player = "ken irvin"
What round was Ken Irvin drafted?
CREATE TABLE table_name_54 (round INTEGER, player VARCHAR)
SELECT womens_singles FROM table_14496232_2 WHERE tour = "Korea Open Super Series"
Name the womens singles for korea open super series
CREATE TABLE table_14496232_2 (womens_singles VARCHAR, tour VARCHAR)
SELECT opponent FROM table_name_76 WHERE attendance = "bye"
Which Opponent has an Attendance of bye?
CREATE TABLE table_name_76 ( opponent VARCHAR, attendance VARCHAR )
SELECT MAX(round) FROM table_name_54 WHERE school_club_team = "michigan"
In what round was a player from Michigan selected?
CREATE TABLE table_name_54 (round INTEGER, school_club_team VARCHAR)
SELECT tour FROM table_14496232_2 WHERE mens_singles = "Chen Jin" AND womens_doubles = "Zhang Yawen Zhao Tingting"
Name the tour when mens singles is chen jin and womens doubles is zhang yawen zhao tingting
CREATE TABLE table_14496232_2 (tour VARCHAR, mens_singles VARCHAR, womens_doubles VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2138" AND diagnoses.long_title = "Unspecified schizophrenia, unspecified"
count the number of patients whose admission year is less than 2138 and diagnoses long title is unspecified schizophrenia, unspecified?
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 opponent FROM table_name_49 WHERE week < 8 AND result = "l 28-17"
Who was the opponent before week 8 when the result was l 28-17?
CREATE TABLE table_name_49 (opponent VARCHAR, week VARCHAR, result VARCHAR)
SELECT womens_doubles FROM table_14496232_2 WHERE tour = "Malaysia Super Series"
Name the womens doubles when tour is malaysia super series
CREATE TABLE table_14496232_2 (womens_doubles VARCHAR, tour VARCHAR)
SELECT DISTINCT venueid FROM paper WHERE year = 2013
conferences in 2013
CREATE TABLE paperdataset ( paperid int, datasetid int ) CREATE TABLE writes ( paperid int, authorid int ) CREATE TABLE paper ( paperid int, title varchar, venueid int, year int, numciting int, numcitedby int, journalid int ) CREATE TABLE venue ( venueid int, venue...
SELECT COUNT(week) FROM table_name_15 WHERE date = "october 12, 1975" AND attendance > 44 OFFSET 043
In which week was the game played on October 12, 1975 and the crowd was larger than 44,043?
CREATE TABLE table_name_15 (week VARCHAR, date VARCHAR, attendance VARCHAR)
SELECT mens_singles FROM table_14496232_2 WHERE womens_singles = "Wang Lin" AND mixed_doubles = "Joachim Fischer Nielsen Christinna Pedersen"
Name the mens singles when womens singles is wang lin and mixed doubles is joachim fischer nielsen christinna pedersen
CREATE TABLE table_14496232_2 (mens_singles VARCHAR, womens_singles VARCHAR, mixed_doubles VARCHAR)
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(MANAGER_ID)
For all employees who have the letters D or S in their first name, give me the comparison about the average of manager_id over the hire_date bin hire_date by weekday by a bar chart, and show by the y axis in ascending.
CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), ...