answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Intestinal abscess" AND prescriptions.drug_type = "MAIN"
how many patients whose diagnoses short title is intestinal abscess and drug type is main?
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 time_retired FROM table_name_2 WHERE laps = 42
What is the Time/Retired for the car going 42 Laps?
CREATE TABLE table_name_2 (time_retired VARCHAR, laps VARCHAR)
SELECT region FROM table_1672804_2 WHERE province = "Constitutional province of Callao"
What is the region containing the Constitutional Province of Callao?
CREATE TABLE table_1672804_2 (region VARCHAR, province VARCHAR)
SELECT MIN(wins) FROM table_name_94 WHERE points = 28 AND year < 1972
Name the lowest Wins which has Points of 28, and a Year smaller than 1972?
CREATE TABLE table_name_94 ( wins INTEGER, points VARCHAR, year VARCHAR )
SELECT COUNT(laps) FROM table_name_22 WHERE grid < 12 AND driver = "alexander wurz"
How many laps for alexander wurz with a grid under 12?
CREATE TABLE table_name_22 (laps VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT result FROM table_16729071_1 WHERE opponent = "New Orleans Saints"
How did the game end against the New Orleans Saints?
CREATE TABLE table_16729071_1 (result VARCHAR, opponent VARCHAR)
SELECT "team" FROM table_204_964 ORDER BY "losses" LIMIT 1
who has the least amount of losses ?
CREATE TABLE table_204_964 ( id number, "team" text, "seasons" number, "games" number, "wins" number, "ties" number, "losses" number, "goals\nfor" number, "goals\nagainst" number, "goal\ndiff" number, "points" number )
SELECT MIN(evening_gown) FROM table_name_17 WHERE average < 8.23 AND interview = 8.11 AND swimsuit > 7.84
What is the lowest evening gown score a contestant with an average less than 8.23, an interview score of 8.11, and a swimsuit larger than 7.84 has?
CREATE TABLE table_name_17 (evening_gown INTEGER, swimsuit VARCHAR, average VARCHAR, interview VARCHAR)
SELECT COUNT(week) FROM table_16729071_1 WHERE attendance = 60038
How many weeks had an attendance of 60038?
CREATE TABLE table_16729071_1 (week VARCHAR, attendance VARCHAR)
SELECT AVG("Losses") FROM table_67844 WHERE "Runs Allowed" < '25' AND "Wins" = '5'
What is the average number of losses the team with less than 25 runs allowed and 5 wins have?
CREATE TABLE table_67844 ( "Rank" real, "Team" text, "Wins" real, "Losses" real, "Runs Allowed" real, "Run Ratio" real )
SELECT COUNT(interview) FROM table_name_36 WHERE state = "indiana" AND average < 8.3
What is the total interview score a contestant from Indiana with an average smaller than 8.3 has?
CREATE TABLE table_name_36 (interview VARCHAR, state VARCHAR, average VARCHAR)
SELECT MIN(points) FROM table_16729457_17 WHERE driver___passenger = "Daniël Willemsen / Kenny van Gaalen"
Name the least points for daniël willemsen / kenny van gaalen
CREATE TABLE table_16729457_17 (points INTEGER, driver___passenger VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "URGENT" AND diagnoses.long_title = "Poisoning by penicillins"
count the number of patients whose admission type is urgent and diagnoses long title is poisoning by penicillins?
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 MAX(swimsuit) FROM table_name_69 WHERE average > 8.48 AND interview > 8.58 AND evening_gown > 8.82 AND state = "kansas"
What is the highest swimsuit a contestant from Kansas with an average larger than 8.48, an interview higher than 8.58, and an evening gown higher than 8.82 has?
CREATE TABLE table_name_69 (swimsuit INTEGER, state VARCHAR, evening_gown VARCHAR, average VARCHAR, interview VARCHAR)
SELECT driver___passenger FROM table_16729457_17 WHERE position = 4
Name the driver passenger for position 4
CREATE TABLE table_16729457_17 (driver___passenger VARCHAR, position VARCHAR)
SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'SAC' AND course.number = 306 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016
Next semester , is SAC 306 being offered ?
CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE student ( student_id int, lastname varchar, ...
SELECT AVG(interview) FROM table_name_29 WHERE evening_gown < 8.82 AND state = "louisiana"
What is the average interview score of a contestant from Louisiana with an evening gown smaller than 8.82?
CREATE TABLE table_name_29 (interview INTEGER, evening_gown VARCHAR, state VARCHAR)
SELECT driver___passenger FROM table_16729457_16 WHERE position = 8
Name the driver/passenger for position 8
CREATE TABLE table_16729457_16 (driver___passenger VARCHAR, position VARCHAR)
SELECT COUNT(*) FROM table_204_770 WHERE ABS("result" - "result") = 1
how many games have been won by only one point ?
CREATE TABLE table_204_770 ( id number, "season" number, "date" text, "jia-a/csl winner" text, "result" text, "fa cup winner" text, "scorers" text, "stadium" text )
SELECT prefix FROM table_name_4 WHERE chemical_class = "haloalkane"
What prefix has Haloalkane as the chemical class?
CREATE TABLE table_name_4 (prefix VARCHAR, chemical_class VARCHAR)
SELECT driver___passenger FROM table_16729457_16 WHERE position = 6
Name the driver/passenger for 6 position
CREATE TABLE table_16729457_16 (driver___passenger VARCHAR, position VARCHAR)
SELECT SUM("silver" + "bronze") FROM table_203_496
how many gold and bronze medals were achieved overall ?
CREATE TABLE table_203_496 ( id number, "pos" number, "country" text, "gold" number, "silver" number, "bronze" number, "total" number )
SELECT example FROM table_name_36 WHERE formula = "rx"
Which example has rx as the formula?
CREATE TABLE table_name_36 (example VARCHAR, formula VARCHAR)
SELECT winner FROM table_1672976_5 WHERE attendance = 16597
Who was the winner when the total attendance was 16597?
CREATE TABLE table_1672976_5 (winner VARCHAR, attendance VARCHAR)
SELECT COUNT("Year") FROM table_36006 WHERE "Position" = '11th'
In what Year was the Position 11th?
CREATE TABLE table_36006 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text )
SELECT chemical_class FROM table_name_90 WHERE example = "chloroethane (ethyl chloride)"
Which chemical class uses the example Chloroethane (ethyl chloride)?
CREATE TABLE table_name_90 (chemical_class VARCHAR, example VARCHAR)
SELECT socket FROM table_16729930_18 WHERE frequency = "1.3 GHz"
What is the socket for microprocessors with a frequency of 1.3 ghz?
CREATE TABLE table_16729930_18 (socket VARCHAR, frequency VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dod_year <= "2158.0" AND lab.itemid = "51078"
how many patients died in or before the year 2158 and were tested with lab item id 51078?
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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) ...
SELECT prefix FROM table_name_78 WHERE group = "bromo"
What prefix has Bromo as the group?
CREATE TABLE table_name_78 (prefix VARCHAR, group VARCHAR)
SELECT tdp FROM table_16729930_18 WHERE release_price___usd__ = "$72"
For a release price of $72, what is the TDP of the microprocessor?
CREATE TABLE table_16729930_18 (tdp VARCHAR, release_price___usd__ VARCHAR)
SELECT notes FROM table_191323_2 WHERE nssdc_id_no = "1959-002A"
What are the notes of the satellite whose nssdc id number is 1959-002a?
CREATE TABLE table_191323_2 ( notes VARCHAR, nssdc_id_no VARCHAR )
SELECT chemical_class FROM table_name_33 WHERE formula = "ri"
What is the chemical class for ri?
CREATE TABLE table_name_33 (chemical_class VARCHAR, formula VARCHAR)
SELECT gpu_frequency FROM table_16729930_18 WHERE tdp = "3.6 W" AND part_number_s_ = "CY80632007221AB"
For a processor with part number cy80632007221ab and TDP of 3.6 W, What are the available GPU frequencies?
CREATE TABLE table_16729930_18 (gpu_frequency VARCHAR, tdp VARCHAR, part_number_s_ VARCHAR)
SELECT ACC_Regular_Season, School_ID FROM basketball_match ORDER BY School_ID DESC
Visualize a bar chart about the distribution of ACC_Regular_Season and School_ID , and display Y-axis in desc order please.
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Per...
SELECT prefix FROM table_name_73 WHERE chemical_class = "iodoalkane"
What prefix has chemical class Iodoalkane?
CREATE TABLE table_name_73 (prefix VARCHAR, chemical_class VARCHAR)
SELECT sspec_number FROM table_16729930_18 WHERE tdp = "3.6 W" AND model_number = "Atom E665C"
For a processor with model number atom e665c and a TDP of 3.6 W, what is the sSpec number?
CREATE TABLE table_16729930_18 (sspec_number VARCHAR, tdp VARCHAR, model_number VARCHAR)
SELECT "Visiting Team" FROM table_68802 WHERE "Stadium" = 'rca dome'
Who was the visiting team at the matchup at the RCA Dome?
CREATE TABLE table_68802 ( "Date" text, "Visiting Team" text, "Final Score" text, "Host Team" text, "Stadium" text )
SELECT SUM(rank) FROM table_name_89 WHERE player = "lee trevino" AND wins < 27
What is the rank of Lee Trevino, who had less than 27 wins?
CREATE TABLE table_name_89 (rank INTEGER, player VARCHAR, wins VARCHAR)
SELECT release_price___usd__ FROM table_16729930_18 WHERE part_number_s_ = "CY80632007227AB"
What is the release price for a processor with part number cy80632007227ab?
CREATE TABLE table_16729930_18 (release_price___usd__ VARCHAR, part_number_s_ VARCHAR)
SELECT Grape, COUNT(*) FROM wine GROUP BY Grape ORDER BY Grape DESC
what are the numbers of wines for different grapes?, and show x-axis from high to low order.
CREATE TABLE grapes ( ID INTEGER, Grape TEXT, Color TEXT ) CREATE TABLE appellations ( No INTEGER, Appelation TEXT, County TEXT, State TEXT, Area TEXT, isAVA TEXT ) CREATE TABLE wine ( No INTEGER, Grape TEXT, Winery TEXT, Appelation TEXT, State TEXT, Name TE...
SELECT original_air_date FROM table_name_14 WHERE series_no > 40 AND production_code < 213 AND season_no > 11
What date did the show with a series larger than 40, production code smaller than 213, and a season number larger than 11 air?
CREATE TABLE table_name_14 (original_air_date VARCHAR, season_no VARCHAR, series_no VARCHAR, production_code VARCHAR)
SELECT fsb FROM table_16729930_11 WHERE model_number = "Atom Z540"
Name the fsb for atom z540
CREATE TABLE table_16729930_11 (fsb VARCHAR, model_number VARCHAR)
SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'monte carlo simulation' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND paper.year > 2011
are there any monte carlo simulation papers since 2011 ?
CREATE TABLE paperkeyphrase ( paperid int, keyphraseid int ) CREATE TABLE cite ( citingpaperid int, citedpaperid int ) CREATE TABLE author ( authorid int, authorname varchar ) CREATE TABLE field ( fieldid int ) CREATE TABLE dataset ( datasetid int, datasetname varchar ) CREATE T...
SELECT written_by FROM table_name_27 WHERE season_no > 4 AND series_no = 49
Who wrote the series number 49 with a season larger than 4?
CREATE TABLE table_name_27 (written_by VARCHAR, season_no VARCHAR, series_no VARCHAR)
SELECT frequency FROM table_16729930_11 WHERE part_number_s_ = "AC80566UE041DW"
Name the frequency for part number of ac80566ue041dw
CREATE TABLE table_16729930_11 (frequency VARCHAR, part_number_s_ VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.admityear < "2178"
what is the number of patients whose marital status is single and admission year is less than 2178?
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 prescriptions ( subject_id text, hadm_id...
SELECT COUNT(nett_gross) FROM table_name_90 WHERE year = 1957
What is the total count of net gross in 1957?
CREATE TABLE table_name_90 (nett_gross VARCHAR, year VARCHAR)
SELECT memory FROM table_16729930_17 WHERE part_number_s_ = "CT80618003201AA"
Name the memory for part number of ct80618003201aa
CREATE TABLE table_16729930_17 (memory VARCHAR, part_number_s_ VARCHAR)
SELECT pts_game FROM table_name_78 WHERE games = 5 AND name = "charlotte barras"
what is the pts/game for Charlotte barras and the games is 5?
CREATE TABLE table_name_78 ( pts_game VARCHAR, games VARCHAR, name VARCHAR )
SELECT SUM(end_term) FROM table_name_88 WHERE title = "prince regent of bavaria"
What is the total End term with a Title of prince regent of bavaria?
CREATE TABLE table_name_88 (end_term INTEGER, title VARCHAR)
SELECT memory FROM table_16729930_17 WHERE model_number = "Atom E640T"
Name the memory for meodel number for atom e640t
CREATE TABLE table_16729930_17 (memory VARCHAR, model_number VARCHAR)
SELECT "First elected" FROM table_728 WHERE "Incumbent" = 'Edwin E. Willis'
What's the year of the first election of the district whose incumbent is Edwin E. Willis?
CREATE TABLE table_728 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT MIN(end_term) FROM table_name_39 WHERE start_term = 1913 AND name = "ludwig iii"
What is the smallest End term with a Start term of 1913, and a Name of ludwig iii?
CREATE TABLE table_name_39 (end_term INTEGER, start_term VARCHAR, name VARCHAR)
SELECT memory FROM table_16729930_17 WHERE frequency = "1.6 GHz"
Name the memory for frequency of 1.6 ghz
CREATE TABLE table_16729930_17 (memory VARCHAR, frequency VARCHAR)
SELECT swimsuit FROM table_17088705_2 WHERE preliminary = "8.847"
Give swimsuit scores of participants 8.847 in preliminary
CREATE TABLE table_17088705_2 ( swimsuit VARCHAR, preliminary VARCHAR )
SELECT title FROM table_name_78 WHERE end_term = 1825
Which Title has an 1825 end term?
CREATE TABLE table_name_78 (title VARCHAR, end_term VARCHAR)
SELECT winner FROM table_1672976_6 WHERE challenge_leader = "ACC (2-1)"
Who won the game where the Challenge Leader is ACC (2-1)?
CREATE TABLE table_1672976_6 (winner VARCHAR, challenge_leader VARCHAR)
SELECT "Opening Film" FROM table_72992 WHERE "Date (Opening)" = 'August 23'
Which opening film has the opening date of august 23?
CREATE TABLE table_72992 ( "Year" real, "Date (Opening)" text, "Date (Closing)" text, "Opening Film" text, "Number of Screening" text, "Award-Winning Film" text )
SELECT AVG(start_term) FROM table_name_58 WHERE end_term = 1912
What is the average Start term with a 1912 end term?
CREATE TABLE table_name_58 (start_term INTEGER, end_term VARCHAR)
SELECT television FROM table_1672976_6 WHERE time = "9:00PM"
What station aired a game at 9:00pm?
CREATE TABLE table_1672976_6 (television VARCHAR, time VARCHAR)
SELECT 'bacon', COUNT(*) FROM Posts WHERE Body LIKE '%bacon%' UNION ALL SELECT 'butter', COUNT(*) FROM Posts WHERE Body LIKE '%butter%'
Is butter or bacon better?.
CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDispl...
SELECT date FROM table_name_74 WHERE high_rebounds = "evans (14)"
What date were the high rebounds Evans (14)?
CREATE TABLE table_name_74 (date VARCHAR, high_rebounds VARCHAR)
SELECT MIN(rnd) FROM table_16732659_2 WHERE date = "June 11"
ON JUNE 11, WHAT WAS THE NUMBER OF RNDS ?
CREATE TABLE table_16732659_2 (rnd INTEGER, date VARCHAR)
SELECT "Score" FROM table_66119 WHERE "Competition" = '1996 asian cup qualification' AND "Date" = 'june 29, 1996'
What is the Score of the 1996 Asian Cup Qualification on June 29, 1996?
CREATE TABLE table_66119 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
SELECT MAX(game) FROM table_name_11 WHERE high_rebounds = "evans (7)" AND high_assists = "evans, ollie (3)"
Which game has a high rebound of Evans (7) and a high assist of Evans, Ollie (3)?
CREATE TABLE table_name_11 (game INTEGER, high_rebounds VARCHAR, high_assists VARCHAR)
SELECT MAX(rnd) FROM table_16732659_2 WHERE date = "August 13"
FOR AUGUST 13 WHAT IS THE RND ?
CREATE TABLE table_16732659_2 (rnd INTEGER, date VARCHAR)
SELECT "artist" FROM table_204_680 GROUP BY "artist" HAVING COUNT(*) >= 5
which artist has released at least 5 albums ?
CREATE TABLE table_204_680 ( id number, "released" text, "title" text, "artist" text, "format" text, "language" text )
SELECT MAX(fa_cup_goals) FROM table_name_85 WHERE total_apps__sub_ = "52" AND total_goals < 5
What division has the highest FA Cup Goals, but a Total Goal score less than 5, and a Total Apps of 52?
CREATE TABLE table_name_85 (fa_cup_goals INTEGER, total_apps__sub_ VARCHAR, total_goals VARCHAR)
SELECT race_name FROM table_16732659_2 WHERE rnd = 13
PLEASE LIST ALL RACES WHERE THE RND IS 13.
CREATE TABLE table_16732659_2 (race_name VARCHAR, rnd VARCHAR)
SELECT name FROM table_name_51 WHERE points > 167.5
Who has points larger than 167.5?
CREATE TABLE table_name_51 ( name VARCHAR, points INTEGER )
SELECT AVG(fl_cup_apps__sub_) FROM table_name_93 WHERE fl_cup_goals > 0 AND other_apps < 0
What is the average FL Cup Apps, with a FL Cup Goals greater than 0, but a Other Apps less than 0?
CREATE TABLE table_name_93 (fl_cup_apps__sub_ INTEGER, fl_cup_goals VARCHAR, other_apps VARCHAR)
SELECT COUNT(rank_07_11) FROM table_167354_2 WHERE world_ranking = "4"
How many figures are there for Rank 07-11 when the world ranking is 4?
CREATE TABLE table_167354_2 (rank_07_11 VARCHAR, world_ranking VARCHAR)
SELECT original_artist FROM table_15796072_1 WHERE order__number = "9"
Who was the original artist when the order number is 9?
CREATE TABLE table_15796072_1 ( original_artist VARCHAR, order__number VARCHAR )
SELECT COUNT(fl_cup_goals) FROM table_name_28 WHERE division = "one" AND other_apps > 3 AND fa_cup_goals > 0
What is Division One's total number of FL Cup Goals, with an Other Apps greater than 3, and a FA Cup Goals greater than 0?
CREATE TABLE table_name_28 (fl_cup_goals VARCHAR, fa_cup_goals VARCHAR, division VARCHAR, other_apps VARCHAR)
SELECT COUNT(pubs_2011) FROM table_167354_2 WHERE location = "Chennai"
How many figures are given for pubs 2011 in Chennai?
CREATE TABLE table_167354_2 (pubs_2011 VARCHAR, location VARCHAR)
SELECT MAX(district) FROM table_26131768_4 WHERE representative = "Barbara Sears"
If the Representative is Barbara sears, what is the district number?
CREATE TABLE table_26131768_4 ( district INTEGER, representative VARCHAR )
SELECT AVG(other_apps) FROM table_name_76 WHERE division = "one" AND league_goals < 1
What is Division One's average Other Apps, with a League Goal less than 1?
CREATE TABLE table_name_76 (other_apps INTEGER, division VARCHAR, league_goals VARCHAR)
SELECT COUNT(location) FROM table_16734640_1 WHERE institution = "Georgia Perimeter College"
Name the number location of georgia perimeter college
CREATE TABLE table_16734640_1 (location VARCHAR, institution VARCHAR)
SELECT "GT2 Winning Team" FROM table_27150 WHERE "LMP1 Winning Team" = 'Greg Mansell Leo Mansell'
Who was the GT2 Winning Team if Greg Mansell Leo Mansell was the LMP1 Winning Team?
CREATE TABLE table_27150 ( "Rnd." real, "Circuit" text, "LMP1 Winning Team" text, "LMP2 Winning Team" text, "FLM Winning Team" text, "GT1 Winning Team" text, "GT2 Winning Team" text, "Results" text )
SELECT away_team FROM table_name_14 WHERE venue = "victoria park"
Who plays at Victoria Park?
CREATE TABLE table_name_14 (away_team VARCHAR, venue VARCHAR)
SELECT location FROM table_16734640_1 WHERE institution = "Chattahoochee Technical College"
Name the location for chattahoochee technical college
CREATE TABLE table_16734640_1 (location VARCHAR, institution VARCHAR)
SELECT demographic.admission_type FROM demographic WHERE demographic.name = "Betty Campbell"
what is admission type of subject name betty campbell?
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 score FROM table_name_76 WHERE game > 2 AND opponent = "indians"
What is the score against the indians after game 2?
CREATE TABLE table_name_76 (score VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT location FROM table_16734640_1 WHERE institution = "Abraham Baldwin Agricultural College"
Name the location for abraham baldwin agricultural college
CREATE TABLE table_16734640_1 (location VARCHAR, institution VARCHAR)
SELECT COUNT(background) FROM table_1289860_2 WHERE hometown = "Memphis, Tennessee"
How many backgrounds are there represented from Memphis, Tennessee?
CREATE TABLE table_1289860_2 ( background VARCHAR, hometown VARCHAR )
SELECT AVG(grid) FROM table_name_96 WHERE driver = "piers courage"
What is the average grid for piers courage?
CREATE TABLE table_name_96 (grid INTEGER, driver VARCHAR)
SELECT COUNT(nickname) FROM table_16734640_1 WHERE institution = "Andrew College"
Name the total number of nicknames for andrew college
CREATE TABLE table_16734640_1 (nickname VARCHAR, institution VARCHAR)
SELECT winner_and_score FROM table_name_70 WHERE finalist = "aaron krickstein"
Which Winner and score has a Finalist of aaron krickstein?
CREATE TABLE table_name_70 ( winner_and_score VARCHAR, finalist VARCHAR )
SELECT driver FROM table_name_66 WHERE laps = 53
Who drove 53 laps?
CREATE TABLE table_name_66 (driver VARCHAR, laps VARCHAR)
SELECT MAX(enrollment) FROM table_16734640_1 WHERE nickname = "Hawks"
Name the most enrollment when nickname is hawks
CREATE TABLE table_16734640_1 (enrollment INTEGER, nickname VARCHAR)
SELECT MAX(matches) FROM table_name_78 WHERE points < 8 AND place > 13 AND drawn < 1
What is the highest Matches were the points were smaller than 8, the place was larger than 13, and the drawn is less than 1?
CREATE TABLE table_name_78 ( matches INTEGER, drawn VARCHAR, points VARCHAR, place VARCHAR )
SELECT SUM(laps) FROM table_name_72 WHERE time_retired = "gearbox" AND driver = "george eaton" AND grid < 17
What is the lap total for george eaton, with a grid under 17 retiring due to gearbox?
CREATE TABLE table_name_72 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT surface FROM table_16741821_8 WHERE opponent = "George Khrikadze"
WHAT WAS THE SURFACE MADE OF WHEN THE OPPONENT WAS GEORGE KHRIKADZE?
CREATE TABLE table_16741821_8 (surface VARCHAR, opponent VARCHAR)
SELECT SUM("Total Rebounds") FROM table_32466 WHERE "Player" = 'peter woolfolk'
What was Peter Woolfolk's Total Rebound average?
CREATE TABLE table_32466 ( "Rank" real, "Player" text, "Years" text, "Games" real, "Reb. Avg." real, "Total Rebounds" real )
SELECT SUM(laps) FROM table_name_13 WHERE driver = "denny hulme" AND grid < 4
How many laps for denny hulme with under 4 on the grid?
CREATE TABLE table_name_13 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT result FROM table_16741821_8 WHERE surface = "Clay" AND against = "Lithuania"
WHAT WERE ALL OF THE RESULTS WHEN THEY PLAYED AGAINST LITHUANIA AND THE SURFACE WAS MADE OF CLAY?
CREATE TABLE table_16741821_8 (result VARCHAR, surface VARCHAR, against VARCHAR)
SELECT "passed" FROM table_27922 WHERE "description" = 'Bus and Truck Operating License Bill'
What was the passing result for the measure with a description of bus and truck operating license bill?
CREATE TABLE table_27922 ( "meas. num" real, "passed" text, "YES votes" real, "NO votes" real, "% YES" text, "Const. Amd.?" text, "type" text, "description" text )
SELECT home_team AS score FROM table_name_39 WHERE crowd > 5 OFFSET 500
What was the score of the home team when there were more than 5,500 people in the crowd?
CREATE TABLE table_name_39 (home_team VARCHAR, crowd INTEGER)
SELECT republican AS :_steve_sauerberg FROM table_16751596_2 WHERE dates_administered = "September 15-September 18, 2008"
Name the republican steve sauerberg where dates administered september 15-september 18, 2008
CREATE TABLE table_16751596_2 (republican VARCHAR, dates_administered VARCHAR)
SELECT "Lost" FROM table_46094 WHERE "Points" = '86'
What lost has 86 points?
CREATE TABLE table_46094 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Tries for" text, "Tries against" text, "Try bonus" text, "Losing bonus" text, "Points" text )