answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT location_attendance FROM table_18813011_6 WHERE date = "July 11" | What was the place and how many people attended the game on July 11? | CREATE TABLE table_18813011_6 (location_attendance VARCHAR, date VARCHAR) |
SELECT SUM(overall) FROM table_name_59 WHERE college = "louisiana tech" AND pick__number > 10 | What is the overall number for Louisiana Tech college, and a pick more than 10? | CREATE TABLE table_name_59 (
overall INTEGER,
college VARCHAR,
pick__number VARCHAR
) |
SELECT margin_of_victory FROM table_name_78 WHERE winning_score = −10(71 - 65 - 68 - 70 = 274) | What is the margin of victory for the winning score of −10 (71-65-68-70=274)? | CREATE TABLE table_name_78 (margin_of_victory VARCHAR, winning_score VARCHAR) |
SELECT high_assists FROM table_18813011_6 WHERE date = "July 26" | Who had the most assist and how many on July 26? | CREATE TABLE table_18813011_6 (high_assists VARCHAR, date VARCHAR) |
SELECT COUNT(other_placings) FROM table_2305948_1 WHERE federation = "ROH, WWE" | How many times has a wrestler whose federation was roh, wwe competed in this event? | CREATE TABLE table_2305948_1 (
other_placings VARCHAR,
federation VARCHAR
) |
SELECT runner_s__up FROM table_name_65 WHERE winning_score = −3(71 - 74 - 66 - 66 = 277) | Who is the runner(s)-up for a winning score of −3 (71-74-66-66=277)? | CREATE TABLE table_name_65 (runner_s__up VARCHAR, winning_score VARCHAR) |
SELECT high_assists FROM table_18813011_6 WHERE record = "13-11" | Who had the high assist in the game where the record is 13-11? | CREATE TABLE table_18813011_6 (high_assists VARCHAR, record VARCHAR) |
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'thoracic aortic an... | how many patients have had cont inv mec ven 96+ hrs within 2 months after the diagnosis of thoracic aortic aneurysm this year? | CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
... |
SELECT venue FROM table_name_58 WHERE extra < 7.4 AND result = "4th" | What venue had less than 7.4 extra and the result of 4th? | CREATE TABLE table_name_58 (venue VARCHAR, extra VARCHAR, result VARCHAR) |
SELECT date_of_vacancy FROM table_18795125_6 WHERE position_in_table = "23rd" | At what date did the 23rd manager vacate the position? | CREATE TABLE table_18795125_6 (date_of_vacancy VARCHAR, position_in_table VARCHAR) |
SELECT "Status" FROM table_17375 WHERE "Entrant" = 'Joe Gibbs Racing' | What is the status of joe gibbs racing? | CREATE TABLE table_17375 (
"Finish" real,
"Start" real,
"Car No." real,
"Driver" text,
"Car Name" text,
"Car Make" text,
"Entrant" text,
"Laps" real,
"Status" text
) |
SELECT MAX(extra) FROM table_name_51 WHERE meeting = "all africa games" AND year < 2003 | What is the highest extra total before 2003 at the Meeting of all africa games? | CREATE TABLE table_name_51 (extra INTEGER, meeting VARCHAR, year VARCHAR) |
SELECT date_of_appointment FROM table_18795125_6 WHERE outgoing_manager = "Simon Davies" | What was the date of appointment for the manager that replaced Simon Davies? | CREATE TABLE table_18795125_6 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) |
SELECT tournament FROM table_29296103_10 WHERE runner_up = "Paul Annacone Eric Korita" | Which tournament was runner-up paul annacone eric korita? | CREATE TABLE table_29296103_10 (
tournament VARCHAR,
runner_up VARCHAR
) |
SELECT year FROM table_name_12 WHERE extra = 8 AND result = "3rd" | What year has an extra of 8, and a result of 3rd? | CREATE TABLE table_name_12 (year VARCHAR, extra VARCHAR, result VARCHAR) |
SELECT date_of_appointment FROM table_18795125_6 WHERE position_in_table = "23rd" | What was the date of appointment for the manager of the 23rd team? | CREATE TABLE table_18795125_6 (date_of_appointment VARCHAR, position_in_table VARCHAR) |
SELECT MIN(rockhampton) FROM table_12570207_1 | what is the minimum rockhampton | CREATE TABLE table_12570207_1 (
rockhampton INTEGER
) |
SELECT year FROM table_name_52 WHERE venue = "algiers, algeria" AND extra < 8.03 AND meeting = "all africa games" | What year has a venue of algiers, algeria, extra smaller than 8.03, and a Meeting of all africa games? | CREATE TABLE table_name_52 (year VARCHAR, meeting VARCHAR, venue VARCHAR, extra VARCHAR) |
SELECT COUNT(replaced_by) FROM table_18795125_6 WHERE outgoing_manager = "Alan Buckley" | How many categories for, replaced by, exist when the outgoing manager is Alan Buckley? | CREATE TABLE table_18795125_6 (replaced_by VARCHAR, outgoing_manager VARCHAR) |
SELECT name, COUNT(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid ORDER BY COUNT(*) DESC | Find the name of each user and number of tweets tweeted by each of them Visualize by bar chart, and I want to list by the total number in desc. | CREATE TABLE tweets (
id bigint(20),
uid int(11),
text char(140),
createdate datetime
)
CREATE TABLE follows (
f1 int(11),
f2 int(11)
)
CREATE TABLE user_profiles (
uid int(11),
name varchar(255),
email varchar(255),
partitionid int(11),
followers int(11)
) |
SELECT date FROM table_name_98 WHERE set_3 = "15–6" | What is the Date with a Set 3 with 15–6? | CREATE TABLE table_name_98 (date VARCHAR, set_3 VARCHAR) |
SELECT driver FROM table_18811741_15 WHERE starts = 3 | Which driver starts 3? | CREATE TABLE table_18811741_15 (driver VARCHAR, starts VARCHAR) |
SELECT first_minting FROM table_1307572_1 WHERE mass = "3.7 g" | When was the coin with the mass of 3.7 g first minted? | CREATE TABLE table_1307572_1 (
first_minting VARCHAR,
mass VARCHAR
) |
SELECT set_3 FROM table_name_7 WHERE score = "3–1" AND set_2 = "13–15" | What is the Set 3 with a Score of 3–1, and has a Set 2 of 13–15? | CREATE TABLE table_name_7 (set_3 VARCHAR, score VARCHAR, set_2 VARCHAR) |
SELECT COUNT(podiums) FROM table_18811741_15 WHERE stage_wins = 18 | How many podiums for the driver with 18 stage wins? | CREATE TABLE table_18811741_15 (podiums VARCHAR, stage_wins VARCHAR) |
SELECT demographic.days_stay FROM demographic WHERE demographic.name = "Jerry Deberry" | How many days did the patient Jerry Deberry stay in the hospital? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (... |
SELECT set_1 FROM table_name_92 WHERE score = "3–0" AND set_3 = "15–12" | What is the Set 1 with a Score of 3–0, and has a Set 3 of 15–12? | CREATE TABLE table_name_92 (set_1 VARCHAR, score VARCHAR, set_3 VARCHAR) |
SELECT MAX(pos) FROM table_18811741_15 WHERE podiums = 1 | What is the highest pos for a driver with 1 podium? | CREATE TABLE table_18811741_15 (pos INTEGER, podiums VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "DIVORCED" AND lab.label = "Vancomycin" | give me the number of patients who are divorced and had the lab test named vancomycin. | 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 set_1 FROM table_name_4 WHERE score = "3–0" AND set_3 = "15–10" | What is the Set 1 with a Score of 3–0, and has a Set 3 of 15–10? | CREATE TABLE table_name_4 (set_1 VARCHAR, score VARCHAR, set_3 VARCHAR) |
SELECT tv_network_s_ FROM table_18821196_1 WHERE weekly_schedule = "Monday to Thursday @ 11:00 pm" | What is every TV network with a weekly schedule of Monday to Thursday @ 11:00 pm? | CREATE TABLE table_18821196_1 (tv_network_s_ VARCHAR, weekly_schedule VARCHAR) |
SELECT "Surface" FROM table_48300 WHERE "Date" = '2 may 1999' | What is Surface, when Date is 2 May 1999? | CREATE TABLE table_48300 (
"Outcome" text,
"Date" text,
"Location" text,
"Surface" text,
"Opponent in final" text,
"Score" text
) |
SELECT set_2 FROM table_name_42 WHERE total = "45–12" | What is the Set 2 with a Total with 45–12? | CREATE TABLE table_name_42 (set_2 VARCHAR, total VARCHAR) |
SELECT country FROM table_18821196_1 WHERE tv_network_s_ = "AXN India" | What is every country with a TV network of AXN India? | CREATE TABLE table_18821196_1 (country VARCHAR, tv_network_s_ VARCHAR) |
SELECT "Province" FROM table_70047 WHERE "Rank" > '49' | Name the province with rank more than 49 | CREATE TABLE table_70047 (
"Rank" real,
"Mountain Peak" text,
"Province" text,
"Mountain Range" text,
"Location" text
) |
SELECT total FROM table_name_78 WHERE score = "3–0" AND date = "14 oct" AND set_1 = "15–12" | What is the Total with a Score of 3–0, and a Date of 14 oct, and has a Set 1 of 15–12? | CREATE TABLE table_name_78 (total VARCHAR, set_1 VARCHAR, score VARCHAR, date VARCHAR) |
SELECT weekly_schedule FROM table_18821196_1 WHERE country = "Norway" | What is every weekly schedule in the country of Norway? | CREATE TABLE table_18821196_1 (weekly_schedule VARCHAR, country VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'WASHINGTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN... | i would like to fly to SAN FRANCISCO from WASHINGTON | CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE code_des... |
SELECT date FROM table_name_46 WHERE home_team = "footscray" | What was the date of the footscray home game? | CREATE TABLE table_name_46 (date VARCHAR, home_team VARCHAR) |
SELECT tv_network_s_ FROM table_18821196_1 WHERE country = "Belgium" | What is every TV network in Belgium? | CREATE TABLE table_18821196_1 (tv_network_s_ VARCHAR, country VARCHAR) |
SELECT checkin.day, SUM(checkin.count) FROM business, category AS CATEGORY_0, category AS CATEGORY_1, checkin WHERE business.city = 'Los Angeles' AND CATEGORY_0.business_id = business.business_id AND CATEGORY_0.category_name = 'Moroccan' AND CATEGORY_1.business_id = business.business_id AND CATEGORY_1.category_name = '... | find the total checkins in Moroccan restaurant in ' Los Angeles ' per day | CREATE TABLE checkin (
cid int,
business_id varchar,
count int,
day varchar
)
CREATE TABLE neighborhood (
id int,
business_id varchar,
neighborhood_name varchar
)
CREATE TABLE user (
uid int,
user_id varchar,
name varchar
)
CREATE TABLE category (
id int,
business_id v... |
SELECT time FROM table_name_90 WHERE opponent = "martin kampmann" | Tell me the time for martin kampmann | CREATE TABLE table_name_90 (time VARCHAR, opponent VARCHAR) |
SELECT status FROM table_18821196_1 WHERE weekly_schedule = "Monday to Thursday @ 11:00 pm" | What is every status with a weekly schedule of Monday to Thursday @ 11:00 pm? | CREATE TABLE table_18821196_1 (status VARCHAR, weekly_schedule VARCHAR) |
SELECT SUM(place) FROM table_name_12 WHERE lost < 12 AND points < 19 | what is the place when losses is less than 12 and points is less than 19? | CREATE TABLE table_name_12 (
place INTEGER,
lost VARCHAR,
points VARCHAR
) |
SELECT SUM(round) FROM table_name_41 WHERE record = "6-3" | Tell me the sum of round for record of 6-3 | CREATE TABLE table_name_41 (round INTEGER, record VARCHAR) |
SELECT weekly_schedule FROM table_18821196_1 WHERE tv_network_s_ = "Viasat 4" | What is every weekly schedule of TV network Viasat 4? | CREATE TABLE table_18821196_1 (weekly_schedule VARCHAR, tv_network_s_ VARCHAR) |
SELECT "position" FROM table_204_159 GROUP BY "position" ORDER BY COUNT(*) LIMIT 1 | which position is listed the least amount of times on this chart ? | CREATE TABLE table_204_159 (
id number,
"name" text,
"nation" text,
"position" text,
"league apps" number,
"league goals" number,
"fa cup apps" number,
"fa cup goals" number,
"total apps" number,
"total goals" number
) |
SELECT location FROM table_name_52 WHERE res = "win" AND record = "8-5" | Tell me the location for win with record of 8-5 | CREATE TABLE table_name_52 (location VARCHAR, res VARCHAR, record VARCHAR) |
SELECT prize_fund FROM table_18828487_1 WHERE venue = "RWE-Sporthalle, Mülheim" | How much was the prize money for rwe-sporthalle, mülheim ? | CREATE TABLE table_18828487_1 (prize_fund VARCHAR, venue VARCHAR) |
SELECT "transmitter" FROM table_204_270 WHERE "bbcb" > 55 | name the only relay with a bbcb over 55 ? | CREATE TABLE table_204_270 (
id number,
"transmitter" text,
"kw" number,
"bbca" number,
"bbcb" number,
"d3&4" number,
"sdn" number,
"arqa" number,
"arqb" number,
"pol." text,
"a.g." text
) |
SELECT MIN(crowd) FROM table_name_71 WHERE away_team = "north melbourne" | In which of North Melbourne's away games was there the lowest crowd? | CREATE TABLE table_name_71 (crowd INTEGER, away_team VARCHAR) |
SELECT COUNT(runner_up) FROM table_18828487_1 WHERE year = 2009 | In 2009, how many were runner-up? | CREATE TABLE table_18828487_1 (runner_up VARCHAR, year VARCHAR) |
SELECT demographic.insurance, demographic.discharge_location FROM demographic WHERE demographic.subject_id = "15898" | specify the discharge location and insurance details of patients id 15898 | 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,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... |
SELECT build_date FROM table_name_56 WHERE prr_class = "brs24" | What is the build date of the model with PRR Class brs24? | CREATE TABLE table_name_56 (build_date VARCHAR, prr_class VARCHAR) |
SELECT champion FROM table_18828487_1 WHERE venue = "Stadthalle Dinslaken, Dinslaken" | How much does the champion get for stadthalle dinslaken, dinslaken? | CREATE TABLE table_18828487_1 (champion VARCHAR, venue VARCHAR) |
SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 18866 AND admissions.admission_location = 'emergency room admit' AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1 | on the first hospital encounter, did patient 18866 go to an er? | CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... |
SELECT SUM(total_produced) FROM table_name_13 WHERE wheel_arrangement = "b-b" AND prr_class = "bs6" AND builder’s_model = "ds-4-4-660" | How many total units were built of Model ds-4-4-660 with a b-b wheel arrangement and a PRR Class of bs6? | CREATE TABLE table_name_13 (total_produced INTEGER, builder’s_model VARCHAR, wheel_arrangement VARCHAR, prr_class VARCHAR) |
SELECT l2_cache FROM table_18823880_10 WHERE release_date = "September 2009" AND part_number_s_ = "BY80607002529AF" | When by80607002529af is the part number and september 2009 is the release date what is the l2 cache? | CREATE TABLE table_18823880_10 (l2_cache VARCHAR, release_date VARCHAR, part_number_s_ VARCHAR) |
SELECT COUNT("School Colors") FROM table_24827 WHERE "Location" = 'Naga , Camarines Sur' | How many entries are shown for school colors for the location of naga , camarines sur? | CREATE TABLE table_24827 (
"Institution" text,
"Location" text,
"Enrollment" text,
"Athletic nickname" text,
"School Colors" text,
"Founded" real
) |
SELECT build_date FROM table_name_61 WHERE prr_class = "brs24" | What is the build date of the model with a PRR Class of brs24? | CREATE TABLE table_name_61 (build_date VARCHAR, prr_class VARCHAR) |
SELECT socket FROM table_18823880_10 WHERE part_number_s_ = "BY80607002907AHBX80607I7720QM" | When by80607002907ahbx80607i7720qm is the part number what is the socket? | CREATE TABLE table_18823880_10 (socket VARCHAR, part_number_s_ VARCHAR) |
SELECT COUNT(rating) FROM table_name_7 WHERE weekly_rank = "76/88" | What is the total number of Rating(s), when Weekly Rank is 76/88? | CREATE TABLE table_name_7 (
rating VARCHAR,
weekly_rank VARCHAR
) |
SELECT COUNT(roll) FROM table_name_12 WHERE name = "te hapua school" | What is the total number of roll for Te Hapua school? | CREATE TABLE table_name_12 (roll VARCHAR, name VARCHAR) |
SELECT mult FROM table_18823880_10 WHERE sspec_number = "SLBLW(B1)" | When slblw(b1) is the sspec number what is the mult.? | CREATE TABLE table_18823880_10 (mult VARCHAR, sspec_number VARCHAR) |
SELECT "Votes" FROM table_52157 WHERE "Gender" = '♂' AND "Religion" = '☪' AND "Candidate name" = 'khalil chawka' | Khalil chawka has a gender of , a religion of , and how many votes? | CREATE TABLE table_52157 (
"Rank" real,
"List" text,
"Candidate name" text,
"Gender" text,
"Religion" text,
"Votes" real
) |
SELECT place_of_action FROM table_name_45 WHERE service = "marine corps" AND rank = "corporal" | Name the place of action for the marine corps and corporal rank | CREATE TABLE table_name_45 (place_of_action VARCHAR, service VARCHAR, rank VARCHAR) |
SELECT release_price___usd__ FROM table_18823880_10 WHERE socket = "socketG1" | When socketg1 is the socket what is the release price in dollars? | CREATE TABLE table_18823880_10 (release_price___usd__ VARCHAR, socket VARCHAR) |
SELECT demographic.religion FROM demographic WHERE demographic.subject_id = "2560" | find the religion of subject id 2560. | 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(grid) FROM table_name_51 WHERE laps > 60 AND driver = "heinz-harald frentzen" | When driver heinz-harald frentzen has a number of laps greater than 60, what is the sum of grid? | CREATE TABLE table_name_51 (grid VARCHAR, laps VARCHAR, driver VARCHAR) |
SELECT MAX(opponents) FROM table_18847456_2 WHERE date = "Dec. 19" | How many points did the opposing team score on Dec. 19, 1982? | CREATE TABLE table_18847456_2 (opponents INTEGER, date 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.icd9_code = "17" | count the number of patients whose admission type is elective and procedure icd9 code is 17? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... |
SELECT SUM(population) FROM table_name_44 WHERE name = "saint-wenceslas" AND region < 17 | What is the population total for saint-wenceslas with a region number of under 17? | CREATE TABLE table_name_44 (population INTEGER, name VARCHAR, region VARCHAR) |
SELECT bills_originally_cosponsored FROM table_18852984_2 WHERE all_amendments_cosponsored = 0 | How many bills where originally cosponsored in those years where the total of all amendments cosponsored was 0? | CREATE TABLE table_18852984_2 (bills_originally_cosponsored VARCHAR, all_amendments_cosponsored VARCHAR) |
SELECT "Player" FROM table_79873 WHERE "Position" = 'defence' AND "Pick #" = '6' | Which player has a Position of defence, and a Pick # of 6? | CREATE TABLE table_79873 (
"Pick #" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) |
SELECT MIN(code) FROM table_name_98 WHERE type = "m" AND name = "saint-sylvère" AND region < 17 | What is the smallest code associated with a type of m for a region less than 17 named, named saint-sylvère? | CREATE TABLE table_name_98 (code INTEGER, region VARCHAR, type VARCHAR, name VARCHAR) |
SELECT all_bills_cosponsored FROM table_18852984_2 WHERE bills_originally_cosponsored = 113 | How many bill cosponsored during those years where bills originally cosponsored is 113? | CREATE TABLE table_18852984_2 (all_bills_cosponsored VARCHAR, bills_originally_cosponsored VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE" AND demographic.dob_year < "2056" | how many white patients were born before the year 2056? | 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 competition FROM table_name_19 WHERE venue = "daugava stadium, riga, latvia" | What competition was at the Daugava Stadium, Riga, Latvia? | CREATE TABLE table_name_19 (competition VARCHAR, venue VARCHAR) |
SELECT MAX(all_bills_sponsored) FROM table_18852984_2 | What is the greatest number of bills sponsored in any year? | CREATE TABLE table_18852984_2 (all_bills_sponsored INTEGER) |
SELECT "Office" FROM table_23631 WHERE "Candidate" = 'Jon Huntsman' | What office is Jon Huntsman a candidate for? | CREATE TABLE table_23631 (
"Candidate" text,
"Office" text,
"Home state" text,
"Popular vote" real,
"States \u2013 first place" real,
"States \u2013 second place" real,
"States \u2013 third place" text
) |
SELECT COUNT(goal) FROM table_name_81 WHERE date = "15 november 1989" | How many total goals were made at the game on 15 November 1989? | CREATE TABLE table_name_81 (goal VARCHAR, date VARCHAR) |
SELECT MIN(cr_no) FROM table_1886270_1 | What is the lowest cr number? | CREATE TABLE table_1886270_1 (cr_no INTEGER) |
SELECT MAX(total) FROM table_name_70 WHERE silver > 19 | Name the Total which has a Silver larger than 19? | CREATE TABLE table_name_70 (
total INTEGER,
silver INTEGER
) |
SELECT captain FROM table_name_86 WHERE team = "leeds united" | What is the captain's name of team Leeds United? | CREATE TABLE table_name_86 (captain VARCHAR, team VARCHAR) |
SELECT built FROM table_1886270_1 WHERE withdrawn = "2/1939" | When 2/1939 is the withdrawn when was it built? | CREATE TABLE table_1886270_1 (built VARCHAR, withdrawn VARCHAR) |
SELECT T2.name, AVG(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY AVG(T1.age) DESC LIMIT 1 | Which person whose friends have the oldest average age? | CREATE TABLE Person (
age INTEGER,
name VARCHAR
)
CREATE TABLE PersonFriend (
name VARCHAR,
friend VARCHAR
) |
SELECT shirt_sponsor FROM table_name_10 WHERE captain = "geoff thomas" | Who is the shirt sponsor for Captain Geoff Thomas' team? | CREATE TABLE table_name_10 (shirt_sponsor VARCHAR, captain VARCHAR) |
SELECT hr_no FROM table_1886270_1 WHERE hr_name = "River Ness" | When river ness is the hr name what is the hr number? | CREATE TABLE table_1886270_1 (hr_no VARCHAR, hr_name VARCHAR) |
SELECT position FROM table_22402438_7 WHERE player = "Bernie Doan" | Which position is player bernie doan? | CREATE TABLE table_22402438_7 (
position VARCHAR,
player VARCHAR
) |
SELECT team FROM table_name_99 WHERE shirt_sponsor = "tulip computers nv" | What is the name of the team that Tulip Computers NV sponsors? | CREATE TABLE table_name_99 (team VARCHAR, shirt_sponsor VARCHAR) |
SELECT COUNT(built) FROM table_1886270_1 WHERE hr_name = "(River Garry)" | When (river garry) is the hr name how many builts are there? | CREATE TABLE table_1886270_1 (built VARCHAR, hr_name VARCHAR) |
SELECT "Incumbent" FROM table_59880 WHERE "First elected" = '1987' | Which incumbent was first elected in 1987? | CREATE TABLE table_59880 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text
) |
SELECT captain FROM table_name_49 WHERE team = "norwich city" | What is the name of the captain for team Norwich City? | CREATE TABLE table_name_49 (captain VARCHAR, team VARCHAR) |
SELECT MAX(cr_no) FROM table_1886270_1 | What is the highest cr number? | CREATE TABLE table_1886270_1 (cr_no INTEGER) |
SELECT competition FROM table_name_17 WHERE opponents = "motherwell" | Name the competition for motherwell opponents | CREATE TABLE table_name_17 (
competition VARCHAR,
opponents VARCHAR
) |
SELECT team FROM table_name_32 WHERE manager = "graeme souness" | What team does Graeme Souness manage? | CREATE TABLE table_name_32 (team VARCHAR, manager VARCHAR) |
SELECT COUNT(built) FROM table_1886270_1 WHERE hr_name = "River Ness" | When river ness is the hr name how many builts are there? | CREATE TABLE table_1886270_1 (built VARCHAR, hr_name VARCHAR) |
SELECT MAX(no_in_series) FROM table_22078972_2 WHERE written_by = "David North" | What's the series number of the episode whose writer is David North? | CREATE TABLE table_22078972_2 (
no_in_series INTEGER,
written_by VARCHAR
) |
SELECT MIN(laps) FROM table_name_45 WHERE grid < 5 AND driver = "juan manuel fangio" | what is the lowest laps when the grid is smaller than 5 and the driver is juan manuel fangio? | CREATE TABLE table_name_45 (laps INTEGER, grid VARCHAR, driver VARCHAR) |
SELECT MAX(opponents) FROM table_18847736_2 WHERE opponent = "at Minnesota Vikings" | How many opponents are at Minnesota Vikings? | CREATE TABLE table_18847736_2 (opponents INTEGER, opponent VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.