answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT constructor FROM table_name_21 WHERE race = "argentine grand prix" | Who was the Constructor at the Argentine Grand Prix? | CREATE TABLE table_name_21 (constructor VARCHAR, race VARCHAR) |
SELECT COUNT(fin_pos) FROM table_17330069_1 WHERE points = "15" | If the points is 15, what is the fin. pos? | CREATE TABLE table_17330069_1 (fin_pos VARCHAR, points VARCHAR) |
SELECT br_number FROM table_name_5 WHERE lms_number > 14768 | Which BR number has an LMS number over 14768? | CREATE TABLE table_name_5 (
br_number VARCHAR,
lms_number INTEGER
) |
SELECT date FROM table_name_83 WHERE circuit = "indianapolis" | What was the date of the Circuit of Indianapolis? | CREATE TABLE table_name_83 (date VARCHAR, circuit VARCHAR) |
SELECT MIN(car_no) FROM table_17330069_1 WHERE driver = "Hélio Castroneves" | What is the car number for driver Hélio Castroneves | CREATE TABLE table_17330069_1 (car_no INTEGER, driver VARCHAR) |
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31482 AND admissions.dischtime IS NULL) AND transfers.careunit = 'tsicu' ORDER BY transfers.intime DESC LIMIT 1 | how many hours have passed since patient 31482's last stay in careunit tsicu on their current hospital encounter? | CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
d... |
SELECT winning_driver FROM table_name_96 WHERE race = "argentine grand prix" | Who was the winning driver of the Argentine Grand Prix? | CREATE TABLE table_name_96 (winning_driver VARCHAR, race VARCHAR) |
SELECT MIN(fin_pos) FROM table_17330069_1 WHERE grid = 2 | If grid is 2, what is the minimum fin. pos number? | CREATE TABLE table_17330069_1 (fin_pos INTEGER, grid VARCHAR) |
SELECT venue FROM table_name_19 WHERE away_team = "collingwood" | Where was the game when Collingwood was the home team? | CREATE TABLE table_name_19 (
venue VARCHAR,
away_team VARCHAR
) |
SELECT report FROM table_name_34 WHERE pole_position = "juan manuel fangio" AND tyre = "c" | What was Juan Manuel Fangio's reported pole position and the tire of C? | CREATE TABLE table_name_34 (report VARCHAR, pole_position VARCHAR, tyre VARCHAR) |
SELECT time_retired FROM table_17330069_1 WHERE points = "28" | If there are 28 points, what is the time/retired? | CREATE TABLE table_17330069_1 (time_retired VARCHAR, points VARCHAR) |
SELECT COUNT("Gold") FROM table_77024 WHERE "Silver" = '2' AND "Total" < '7' | What is the total number of Gold, when Silver is 2, and when Total is less than 7? | CREATE TABLE table_77024 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT SUM(attendance) FROM table_name_59 WHERE home = "montreal" AND date = "march 24" | What was the Attendance when the Home team was Montreal, on the Date of March 24? | CREATE TABLE table_name_59 (attendance INTEGER, home VARCHAR, date VARCHAR) |
SELECT COUNT(winning_score) FROM table_17335602_1 WHERE tournament = "RR Donnelley LPGA Founders Cup" | How many winning scores were there in the rr donnelley lpga founders cup? | CREATE TABLE table_17335602_1 (winning_score VARCHAR, tournament VARCHAR) |
SELECT "sentence" FROM table_204_479 WHERE "defendant" IN ('vernon cassel', 'reginald shaffer') | vernon cassel and reginald shaffer was sentenced how many years ? | CREATE TABLE table_204_479 (
id number,
"defendant" text,
"arrested" text,
"charge" text,
"result" text,
"sentence" text
) |
SELECT score FROM table_name_8 WHERE date = "march 15" | What was the Score on March 15? | CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR) |
SELECT date FROM table_17335602_1 WHERE tournament = "McDonald's LPGA Championship" | When was the mcdonald's lpga championship? | CREATE TABLE table_17335602_1 (date VARCHAR, tournament VARCHAR) |
SELECT DISTINCT booking_class, class_description, rank FROM class_of_service WHERE booking_class = 'B' OR booking_class = 'Q' | what 's the difference between fare code Q and fare code B | CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number int,
from_airport varchar,
meal_code text,
stops int,... |
SELECT school_club_team FROM table_name_48 WHERE player = "dell curry" | What school does Dell Curry play for? | CREATE TABLE table_name_48 (school_club_team VARCHAR, player VARCHAR) |
SELECT MAX(winners_share___) AS $__ FROM table_17335602_1 WHERE tournament = "Wegmans LPGA Championship" | What was the winner's share in the wegmans lpga championship? | CREATE TABLE table_17335602_1 (winners_share___ INTEGER, tournament VARCHAR) |
SELECT MAX("Cars Entered") FROM table_67505 WHERE "Winning Driver" = 'rodger ward' AND "Season" < '1959' | What are the largest Cars Entered with a Winning Driver of rodger ward, and a Season smaller than 1959? | CREATE TABLE table_67505 (
"Season" real,
"Cars Entered" real,
"Winning Driver" text,
"Second Driver" text,
"Third Driver" text,
"Race Report" text
) |
SELECT school_club_team FROM table_name_35 WHERE player = "john crotty" | What school does John Crotty play for? | CREATE TABLE table_name_35 (school_club_team VARCHAR, player VARCHAR) |
SELECT kerry_number FROM table_1733457_1 WHERE others_number = 44 | Name the kerry # for others# is 44 | CREATE TABLE table_1733457_1 (kerry_number VARCHAR, others_number VARCHAR) |
SELECT Nationality, AVG(meter_100) FROM swimmer GROUP BY Nationality ORDER BY AVG(meter_100) | Find Nationality and the average of meter_100 , and group by attribute Nationality, and visualize them by a bar chart, and I want to display in ascending by the the average of meter 100. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimme... |
SELECT school_club_team FROM table_name_76 WHERE player = "wayne cooper" | What school does Wayne Cooper play for? | CREATE TABLE table_name_76 (school_club_team VARCHAR, player VARCHAR) |
SELECT MIN(kerry_number) FROM table_1733457_1 WHERE bush_percentage = "50.9%" | Name the minimum kerry # for bush % for 50.9% | CREATE TABLE table_1733457_1 (kerry_number INTEGER, bush_percentage VARCHAR) |
SELECT "Women's doubles" FROM table_69810 WHERE "Year" = '1992' | Which women's doubles has a Year of 1992? | CREATE TABLE table_69810 (
"Year" text,
"Men's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
) |
SELECT player FROM table_name_84 WHERE long > 8 AND yards = "73" | Who has greater than 8 Long and a 73 Yards? | CREATE TABLE table_name_84 (player VARCHAR, long VARCHAR, yards VARCHAR) |
SELECT others_percentage FROM table_1733457_1 WHERE county = "Johnson" | Name the others % for johnson | CREATE TABLE table_1733457_1 (others_percentage VARCHAR, county 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 = 'antibacte... | what are the four most commonly given microbiological tests for patients who had previously received antibacterials - macrolide in the same hospital encounter? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost numbe... |
SELECT MAX(long) FROM table_name_84 WHERE yards = "26" AND car < 9 | Who has a highest Long with 26 Yards and less than 9 Car? | CREATE TABLE table_name_84 (long INTEGER, yards VARCHAR, car VARCHAR) |
SELECT MAX(kerry_number) FROM table_1733457_1 WHERE others_number = 47 | Name the maximum kerry # for where others is 47 | CREATE TABLE table_1733457_1 (kerry_number INTEGER, others_number VARCHAR) |
SELECT SUM("matches played") FROM table_203_221 WHERE "nationality" = 'brazil' | what is the total number of matches played by brazilians for melbourne ? | CREATE TABLE table_203_221 (
id number,
"name" text,
"nationality" text,
"matches played" number,
"goals scored" number,
"notes" text
) |
SELECT MAX(long) FROM table_name_91 WHERE car = 59 | Who has the highest Long with 59 Car? | CREATE TABLE table_name_91 (long INTEGER, car VARCHAR) |
SELECT bush_percentage FROM table_1733457_1 WHERE others_number = 90 | Name the bush% for where others # is 90 | CREATE TABLE table_1733457_1 (bush_percentage VARCHAR, others_number VARCHAR) |
SELECT title FROM table_name_28 WHERE translation = "vesoul" | Which title has the Translation of vesoul? | CREATE TABLE table_name_28 (
title VARCHAR,
translation VARCHAR
) |
SELECT Previous AS rank FROM table_name_92 WHERE nationality = "italy" AND points > 100 | Tell me the previous rank for italy with points more than 100 | CREATE TABLE table_name_92 (Previous VARCHAR, nationality VARCHAR, points VARCHAR) |
SELECT others_percentage FROM table_1733457_1 WHERE county = "Cleveland" | Name the others % for cleveland | CREATE TABLE table_1733457_1 (others_percentage VARCHAR, county VARCHAR) |
SELECT MIN("Total") FROM table_35249 WHERE "Bronze" = '1' AND "Rank" = '8' AND "Silver" > '1' | How many Total medals for the team with a Rank of 8, 1 Bronze and more than 1 Silver? | CREATE TABLE table_35249 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT SUM(rank) FROM table_name_58 WHERE nationality = "australia" AND points < 79 | Tell me the sum of rank for australia when points are less than 79 | CREATE TABLE table_name_58 (rank INTEGER, nationality VARCHAR, points VARCHAR) |
SELECT others_percentage FROM table_1733513_1 WHERE others_number = 2286 | What is the percentage of others when the number of others is 2286? | CREATE TABLE table_1733513_1 (others_percentage VARCHAR, others_number 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, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADELPHIA' AND date_day.day_number = 23 AND date_day.month_number = 4... | list the three earliest flights from ATLANTA to PHILADELPHIA on wednesday | CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE code_description (
code varchar,
descript... |
SELECT s_motor_ship___s_naval_trawler FROM table_name_13 WHERE grand_total = 20 | How many ships for the nation with grand total of 20? | CREATE TABLE table_name_13 (s_motor_ship___s_naval_trawler VARCHAR, grand_total VARCHAR) |
SELECT others_percentage FROM table_1733513_1 WHERE bush_number = 3196 | What was the percentage of others when the number for Bush was 3196? | CREATE TABLE table_1733513_1 (others_percentage VARCHAR, bush_number VARCHAR) |
SELECT SUM(grid) FROM table_name_28 WHERE driver = "johnny herbert" AND laps > 52 | What is the number of the grid for Johnny Herbert with more than 52 laps? | CREATE TABLE table_name_28 (
grid INTEGER,
driver VARCHAR,
laps VARCHAR
) |
SELECT escorts FROM table_name_74 WHERE cruisers = "6" | How many escorts does the nation with 6 cruisers have? | CREATE TABLE table_name_74 (escorts VARCHAR, cruisers VARCHAR) |
SELECT others_percentage FROM table_1733513_1 WHERE bush_number = 1329 | What is the percentage of others when the number for Bush is 1329? | CREATE TABLE table_1733513_1 (others_percentage VARCHAR, bush_number 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, date_day, days, flight WHERE (((flight.departure_time BETWEEN 0 AND 1200) AND date_day.day_number = 23 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.day_nam... | do you have any flights from PITTSBURGH to BOSTON on wednesday of next week in the morning | CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
depart... |
SELECT street_address FROM table_name_70 WHERE floors = 44 | Which address has 44 floors? | CREATE TABLE table_name_70 (street_address VARCHAR, floors VARCHAR) |
SELECT game FROM table_17340355_6 WHERE team = "Milwaukee" | Which game was played by team milwaukee | CREATE TABLE table_17340355_6 (game VARCHAR, team VARCHAR) |
SELECT account_id, COUNT(*) FROM Financial_Transactions GROUP BY account_id | Show me a scatter plot of account id and the total number for . | CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
previous_transaction_id INTEGER,
account_id INTEGER,
card_id INTEGER,
transaction_type VARCHAR(15),
transaction_date DATETIME,
transaction_amount DOUBLE,
transaction_comment VARCHAR(255),
other_transaction_details VARCHAR(... |
SELECT AVG(total__kg_) FROM table_name_22 WHERE bodyweight = 73.28 AND snatch < 75 | What is the total for the person with 73.28 bodyweight and fewer snatches than 75? | CREATE TABLE table_name_22 (total__kg_ INTEGER, bodyweight VARCHAR, snatch VARCHAR) |
SELECT high_assists FROM table_17340355_6 WHERE score = "W 106–104 (OT)" | Who made high points on games of score w 106–104 (ot) | CREATE TABLE table_17340355_6 (high_assists VARCHAR, score VARCHAR) |
SELECT viewing_figures_millions FROM table_2501754_4 WHERE prod_code = "ICEC483X" | How many millions of people watched the episode with a production code of icec483x? | CREATE TABLE table_2501754_4 (
viewing_figures_millions VARCHAR,
prod_code VARCHAR
) |
SELECT name FROM table_name_15 WHERE bodyweight = 73.6 | Which person has a bodyweight of 73.6? | CREATE TABLE table_name_15 (name VARCHAR, bodyweight VARCHAR) |
SELECT COUNT(record) FROM table_17340355_6 WHERE high_rebounds = "Amar'e Stoudemire (11)" | What are the records of games where high rebounds is amar'e stoudemire (11) | CREATE TABLE table_17340355_6 (record VARCHAR, high_rebounds VARCHAR) |
SELECT position FROM table_name_68 WHERE hometown = "muscle shoals, alabama" | Which position does the player from Muscle Shoals, Alabama play? | CREATE TABLE table_name_68 (
position VARCHAR,
hometown VARCHAR
) |
SELECT AVG(total__kg_) FROM table_name_7 WHERE snatch > 87.5 AND bodyweight > 74.8 | What is the total for the player with more snatches than 87.5 and bodyweight more than 74.8? | CREATE TABLE table_name_7 (total__kg_ INTEGER, snatch VARCHAR, bodyweight VARCHAR) |
SELECT location_attendance FROM table_17340355_6 WHERE date = "December 10" | What is the location of the the game on december 10 | CREATE TABLE table_17340355_6 (location_attendance VARCHAR, date VARCHAR) |
SELECT "2nd leg" FROM table_61203 WHERE "Team 1" = 'union berlin' | What is the 2nd leg that Team 1 is Union Berlin? | CREATE TABLE table_61203 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) |
SELECT SUM(bodyweight) FROM table_name_91 WHERE clean_ & _jerk = 82.5 AND total__kg_ < 152.5 | What is the bodyweight for the player with a clean & jerk of 82.5 and total smaller than 152.5? | CREATE TABLE table_name_91 (bodyweight INTEGER, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR) |
SELECT score FROM table_17344582_11 WHERE high_assists = "B. Shaw (5)" | List the all the scores where the high assis is b. shaw (5) | CREATE TABLE table_17344582_11 (score VARCHAR, high_assists VARCHAR) |
SELECT "Title" FROM table_56970 WHERE "Track" = '3' | Which title has a Track of 3? | CREATE TABLE table_56970 (
"Track" real,
"Title" text,
"Translation" text,
"Composer" text,
"Recorded" text
) |
SELECT home_team AS score FROM table_name_75 WHERE away_team = "essendon" | Name the home team when the away team was essendon | CREATE TABLE table_name_75 (home_team VARCHAR, away_team VARCHAR) |
SELECT high_assists FROM table_17344582_11 WHERE high_rebounds = "K. McHale (10)" | List of high assists with high rebounds for k. mchale (10) | CREATE TABLE table_17344582_11 (high_assists VARCHAR, high_rebounds VARCHAR) |
SELECT "Season" FROM table_60117 WHERE "Club" = 'real madrid' AND "Rank" < '6' AND "Goals" < '121' | Which Season has a Club of real madrid, and a Rank smaller than 6, and less than 121 goals? | CREATE TABLE table_60117 (
"Rank" real,
"Club" text,
"Season" text,
"Goals" real,
"Apps" real
) |
SELECT away_team AS score FROM table_name_36 WHERE home_team = "university" | Name the away team score for home team of university | CREATE TABLE table_name_36 (away_team VARCHAR, home_team VARCHAR) |
SELECT location_attendance FROM table_17344582_11 WHERE series = "1-1" | List all location attendance for series 1-1. | CREATE TABLE table_17344582_11 (location_attendance VARCHAR, series VARCHAR) |
SELECT HIRE_DATE, SUM(MANAGER_ID) 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, show me about the distribution of hire_date and the sum of manager_id bin hire_date by weekday in a bar chart. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varc... |
SELECT venue FROM table_name_54 WHERE away_team = "geelong" | Name the venue for geelong away team | CREATE TABLE table_name_54 (venue VARCHAR, away_team VARCHAR) |
SELECT date FROM table_17340355_7 WHERE team = "Indiana" | What day(s) did the team play indiana? | CREATE TABLE table_17340355_7 (date VARCHAR, team 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, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND date_day.day_number = 7 AND date_day.month_number = 7 AND da... | yes what flights will be used on 7 7 in the morning from ATLANTA to BOSTON | CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_re... |
SELECT venue FROM table_name_6 WHERE away_team = "richmond" | Name the venue when the away team was richmond | CREATE TABLE table_name_6 (venue VARCHAR, away_team VARCHAR) |
SELECT high_assists FROM table_17340355_7 WHERE date = "January 2" | Who had the high assist total on january 2? | CREATE TABLE table_17340355_7 (high_assists VARCHAR, date VARCHAR) |
SELECT "Margin of victory" FROM table_66971 WHERE "Runner(s)-up" = 'isao aoki' | What was the margin of victory for Isao Aoki when he was a runner-up? | CREATE TABLE table_66971 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) |
SELECT away_team AS score FROM table_name_25 WHERE away_team = "geelong" | Name the away team score for geelong away team | CREATE TABLE table_name_25 (away_team VARCHAR) |
SELECT film_title_used_in_nomination FROM table_17350255_1 WHERE original_title = "Bābǎi zhuàngshì (八百壯士)" | What was the title used in nomination in the original Bābǎi Zhuàngshì (八百壯士)? | CREATE TABLE table_17350255_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) |
SELECT "Away team" FROM table_51673 WHERE "Home team score" = '18.12 (120)' | What Away team has a Home team score of 18.12 (120)? | CREATE TABLE table_51673 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT home_team AS score FROM table_name_32 WHERE venue = "brunswick street oval" | When the venue was brunswick street oval what was the home teams score? | CREATE TABLE table_name_32 (home_team VARCHAR, venue VARCHAR) |
SELECT year__ceremony_ FROM table_17350255_1 WHERE original_title = "Chūnqiū cháshì (春秋茶室)" | What was the year when Chūnqiū Cháshì (春秋茶室) was submitted? | CREATE TABLE table_17350255_1 (year__ceremony_ VARCHAR, original_title VARCHAR) |
SELECT MAX(total_medals) FROM table_name_27 WHERE gold_medals = 0 AND ensemble = "east 80 indoor percussion" | What is the highest Total Medals that has 0 Gold Medal and a Ensemble of east 80 indoor percussion? | CREATE TABLE table_name_27 (
total_medals INTEGER,
gold_medals VARCHAR,
ensemble VARCHAR
) |
SELECT SUM(draw) FROM table_name_18 WHERE artist = "wendy fierce" | How many draws feature artist wendy fierce? | CREATE TABLE table_name_18 (draw INTEGER, artist VARCHAR) |
SELECT year__ceremony_ FROM table_17350255_1 WHERE film_title_used_in_nomination = "Old Mo's Second Spring" | Old Mo's Second Spring was the film title used in nomination in what year? | CREATE TABLE table_17350255_1 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR) |
SELECT SUM(goals_for) FROM table_name_84 WHERE drawn > 10 | What is the total sum of the goals at competitions with more than 10 draws? | CREATE TABLE table_name_84 (
goals_for INTEGER,
drawn INTEGER
) |
SELECT song FROM table_name_77 WHERE place > 2 AND draw = 1 | What song is later than place 2 and has a draw number of 1? | CREATE TABLE table_name_77 (song VARCHAR, place VARCHAR, draw VARCHAR) |
SELECT year__ceremony_ FROM table_17350255_1 WHERE result = "Not Nominated" AND film_title_used_in_nomination = "My Mother's Teahouse" | What was the year when My Mother's Teahouse was not nominated? | CREATE TABLE table_17350255_1 (year__ceremony_ VARCHAR, result VARCHAR, film_title_used_in_nomination VARCHAR) |
SELECT MAX(year_left) FROM table_name_25 WHERE mascot = "roughriders" | What is the year that the Roughriders left the conference? | CREATE TABLE table_name_25 (
year_left INTEGER,
mascot VARCHAR
) |
SELECT date FROM table_name_64 WHERE home_team = "collingwood" | What day did Collingwood play as the home team? | CREATE TABLE table_name_64 (date VARCHAR, home_team VARCHAR) |
SELECT title FROM table_173475_1 WHERE release = 2006 | What titles were released in 2006? | CREATE TABLE table_173475_1 (title VARCHAR, release VARCHAR) |
SELECT microbiologyevents.org_name FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 23760 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND microbiologyevents.spec_type_desc = 'eye' AND NOT microbiologyeven... | what was the name of the organism to be found in the last eye test of patient 23760 during the first hospital encounter? | CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE procedures... |
SELECT away_team FROM table_name_26 WHERE venue = "princes park" | Who was the away team at Princes Park? | CREATE TABLE table_name_26 (away_team VARCHAR, venue VARCHAR) |
SELECT release FROM table_173475_1 WHERE title = "Axis & Allies: D-Day" | What year(s) was axis & allies: d-day released? | CREATE TABLE table_173475_1 (release VARCHAR, title VARCHAR) |
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, COUNT(procedures_icd.charttime) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 512... | what was the procedure which during a month before had been given to patient 51200 two times? | CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE labevents (
row_id number,
... |
SELECT away_team FROM table_name_68 WHERE home_team = "hawthorn" | Who was Hawthorn's away opponent? | CREATE TABLE table_name_68 (away_team VARCHAR, home_team VARCHAR) |
SELECT game FROM table_17355408_12 WHERE date = "May 25" | What game was on May 25? | CREATE TABLE table_17355408_12 (game VARCHAR, date VARCHAR) |
SELECT miss_maja_pilipinas FROM table_name_30 WHERE binibining_pilipinas_tourism = "not awarded" AND binibining_pilipinas_universe = "anjanette abayari" | What Miss Maja Pilipinas has a Binibining Pilipinas-Tourism of not awarded, and a Binibining Pilipinas-Universe of anjanette abayari? | CREATE TABLE table_name_30 (
miss_maja_pilipinas VARCHAR,
binibining_pilipinas_tourism VARCHAR,
binibining_pilipinas_universe VARCHAR
) |
SELECT record FROM table_name_45 WHERE streak = "l1" AND score = "l 95–111" | Name the record that has a stream of l1 and score of l 95–111 | CREATE TABLE table_name_45 (record VARCHAR, streak VARCHAR, score VARCHAR) |
SELECT COUNT(game) FROM table_17355408_12 WHERE record = "2-3" | What game was the record 2-3? | CREATE TABLE table_17355408_12 (game VARCHAR, record VARCHAR) |
SELECT until FROM table_name_76 WHERE name = "josé luis sánchez solá" | When did Jos Luis S nchez Sol end his term of coaching? | CREATE TABLE table_name_76 (
until VARCHAR,
name VARCHAR
) |
SELECT attendance FROM table_name_71 WHERE visitor = "washington wizards" | Name the attendance for when the washington wizards was visiting | CREATE TABLE table_name_71 (attendance VARCHAR, visitor VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.