answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT played FROM table_name_76 WHERE try_bonus = "6" AND drawn = "0" | Name the played with try bonus of 6 and drawn of 0 | CREATE TABLE table_name_76 (
played VARCHAR,
try_bonus VARCHAR,
drawn VARCHAR
) |
SELECT tries FROM table_name_16 WHERE date = "06/07/1996" | How many tries took place on 06/07/1996? | CREATE TABLE table_name_16 (tries VARCHAR, date VARCHAR) |
SELECT bout_1 FROM table_19398910_4 WHERE bout_5 = "Andreev ( RUS ) W 5-2" | Which were the bout 1 when the bout 5 was andreev ( rus ) w 5-2? | CREATE TABLE table_19398910_4 (bout_1 VARCHAR, bout_5 VARCHAR) |
SELECT score FROM table_name_92 WHERE date = "8 sep 1990" | What is the score of the game on 8 Sep 1990? | CREATE TABLE table_name_92 (
score VARCHAR,
date VARCHAR
) |
SELECT player FROM table_name_41 WHERE date = "07/06/1997" | Which player played on 07/06/1997? | CREATE TABLE table_name_41 (player VARCHAR, date VARCHAR) |
SELECT class FROM table_19398910_4 WHERE bout_6 = "Sanchez ( ESP ) W 5-0" | when Sanchez ( esp ) w 5-0 were the bout 6, which were the class? | CREATE TABLE table_19398910_4 (class VARCHAR, bout_6 VARCHAR) |
SELECT "Location" FROM table_37223 WHERE "Date" = '1916' | Where was the disaster located that took place on 1916? | CREATE TABLE table_37223 (
"Disaster" text,
"Type" text,
"Location" text,
"Deaths" text,
"Date" text
) |
SELECT venue FROM table_name_74 WHERE away_team = "melbourne" | When the Away team is melbourne, what venue do they play at? | CREATE TABLE table_name_74 (venue VARCHAR, away_team VARCHAR) |
SELECT MIN(attempts) FROM table_19418696_3 WHERE name = "Bobby Layne" | How many attempts for Bobby Layne? | CREATE TABLE table_19418696_3 (attempts INTEGER, name VARCHAR) |
SELECT AVG(hexadecimal) FROM table_name_62 WHERE decimal < 53 AND octal < 61 AND glyph > 0 | What is the average hexadecimal with a decimal less than 53, an octal less than 61, and a glyph greater than 0? | CREATE TABLE table_name_62 (
hexadecimal INTEGER,
glyph VARCHAR,
decimal VARCHAR,
octal VARCHAR
) |
SELECT MIN(interview) FROM table_name_86 WHERE state = "texas" AND average > 9.531 | What is the lowest interview of Texas, with an average larger than 9.531? | CREATE TABLE table_name_86 (interview INTEGER, state VARCHAR, average VARCHAR) |
SELECT MAX(interceptions) FROM table_19418696_3 | What is the highest number of interceptions? | CREATE TABLE table_19418696_3 (interceptions INTEGER) |
SELECT FIRST_NAME, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about salary over the first_name . | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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 varchar(2)
)
CREATE TABLE employees (
EMPLOYEE_I... |
SELECT COUNT(interview) FROM table_name_23 WHERE state = "iowa" AND evening_gown < 9.625 | What is the total interviews of Iowa, and with an evening gown smaller than 9.625? | CREATE TABLE table_name_23 (interview VARCHAR, state VARCHAR, evening_gown VARCHAR) |
SELECT MAX(yards) FROM table_19418696_3 WHERE name = "Bobby Layne" | How many total yards for Bobby Layne? | CREATE TABLE table_19418696_3 (yards INTEGER, name VARCHAR) |
SELECT Date_of_Birth, Weight FROM people ORDER BY Weight | Show me about the distribution of Date_of_Birth and Weight in a bar chart, and could you rank by the y axis from low to high? | 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 SUM(average) FROM table_name_26 WHERE state = "hawaii" AND interview > 9.636 | What is the sum of the average of Hawaii, with an interviewer larger than 9.636? | CREATE TABLE table_name_26 (average INTEGER, state VARCHAR, interview VARCHAR) |
SELECT name FROM table_19418696_3 WHERE qb_rating = "72.3" | Which QB had a rating of 72.3? | CREATE TABLE table_19418696_3 (name VARCHAR, qb_rating VARCHAR) |
SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, fare_basis, flight, flight_fare WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND fare_basis.class_type = 'B... | what airlines have BUSINESS class service between BOSTON and SAN FRANCISCO | CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE fare (
fare... |
SELECT MAX(evening_gown) FROM table_name_8 WHERE average = 9.531 AND swimsuit < 9.449 | What is the highest evening gown with an average of 9.531 and swimsuit smaller than 9.449? | CREATE TABLE table_name_8 (evening_gown INTEGER, average VARCHAR, swimsuit VARCHAR) |
SELECT COUNT(qb_rating) FROM table_19418696_3 WHERE completions = 1069 | How many QB ratings for the player with 1069 completions? | CREATE TABLE table_19418696_3 (qb_rating VARCHAR, completions VARCHAR) |
SELECT "pga" FROM table_204_396 WHERE "country" = 'zimbabwe' | what are the number of pga winning golfers that zimbabwe has ? | CREATE TABLE table_204_396 (
id number,
"country" text,
"masters" number,
"u.s. open" number,
"the open" number,
"pga" number,
"total" number
) |
SELECT SUM(swimsuit) FROM table_name_82 WHERE evening_gown = 9.773 AND average > 9.674 | What is the sum of swimsuit with an evening gown of 9.773 and average larger than 9.674? | CREATE TABLE table_name_82 (swimsuit INTEGER, evening_gown VARCHAR, average VARCHAR) |
SELECT COUNT(yards) FROM table_19418696_3 WHERE qb_rating = "72.3" | How many yardage figures for the player with 72.3 QB rating? | CREATE TABLE table_19418696_3 (yards VARCHAR, qb_rating VARCHAR) |
SELECT "Game Status" FROM table_34428 WHERE "Occupation" = 'utility worker on-air talent' | When the occupation was utility worker on-air talent, what was the game status? | CREATE TABLE table_34428 (
"Player" text,
"Hometown" text,
"Occupation" text,
"Education" text,
"Game Status" text
) |
SELECT AVG(average) FROM table_name_34 WHERE swimsuit < 9.545 AND state = "iowa" AND evening_gown > 9.625 | What is the average of the swimsuit smaller than 9.545 , of Iowa, with an evening gown larger than 9.625? | CREATE TABLE table_name_34 (average INTEGER, evening_gown VARCHAR, swimsuit VARCHAR, state VARCHAR) |
SELECT COUNT(game_site) FROM table_1941183_2 WHERE opponent = "Barcelona Dragons" | In how many locations was the game against Barcelona Dragons played? | CREATE TABLE table_1941183_2 (game_site VARCHAR, opponent VARCHAR) |
SELECT DISTINCT ground_service.ground_fare FROM airport, airport_service, city, ground_service WHERE airport.airport_code = airport_service.airport_code AND city.city_code = airport_service.city_code AND city.city_name = 'BOSTON' AND ground_service.airport_code = airport.airport_code AND ground_service.transport_type =... | what is the cost of LIMOUSINE service at BOSTON airport | CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
econom... |
SELECT leading_scorer FROM table_name_82 WHERE date = "1 april 2008" | Name the leading scorer for 1 april 2008 | CREATE TABLE table_name_82 (leading_scorer VARCHAR, date VARCHAR) |
SELECT COUNT(pos) FROM table_19412902_1 WHERE member_association = "Saudi Arabia" | how many posiitions did saudi arabia land on | CREATE TABLE table_19412902_1 (pos VARCHAR, member_association VARCHAR) |
SELECT T2.title, AVG(MIN(T1.stars)) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.title ORDER BY AVG(MIN(T1.stars)) DESC | Visualize the average smallest rating of different movie title using a bar chart, and order by the total number in desc. | CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
) |
SELECT home FROM table_name_11 WHERE date = "16 april 2008" | Name the home for 16 april 2008 | CREATE TABLE table_name_11 (home VARCHAR, date VARCHAR) |
SELECT play_off FROM table_19412902_1 WHERE group_stage = 4 AND clubs = 12 | what is the play-off in group stage 4 and clubs is 12 | CREATE TABLE table_19412902_1 (play_off VARCHAR, group_stage VARCHAR, clubs VARCHAR) |
SELECT rank__timeslot_ FROM table_28980706_4 WHERE share__18_49_ = 13 | When 13 is the share (18-49) what is the rank (timeslot)? | CREATE TABLE table_28980706_4 (
rank__timeslot_ VARCHAR,
share__18_49_ VARCHAR
) |
SELECT score FROM table_name_56 WHERE visitor = "bucks" AND home = "timberwolves" | Name the score for bucks with timberwolves | CREATE TABLE table_name_56 (score VARCHAR, visitor VARCHAR, home VARCHAR) |
SELECT COUNT(group_stage) FROM table_19412902_1 WHERE play_off = 0 AND clubs = 12 | which group stage was there 0 play-offs and 12 clubs played in it | CREATE TABLE table_19412902_1 (group_stage VARCHAR, play_off VARCHAR, clubs VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.short_title = "Left heart cardiac cath" | how many of the patients with left heart cardiac cath have unspecified death status? | 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 sail FROM table_name_96 WHERE syndicate = "america 3 foundation" AND yacht = "america 3" | Which sail is in the America 3 Foundation syndicate on the America 3 yacht? | CREATE TABLE table_name_96 (sail VARCHAR, syndicate VARCHAR, yacht VARCHAR) |
SELECT clubs FROM table_19412902_1 WHERE group_stage = 4 AND member_association = "Iran" | which club in group stage 4 had member association iran | CREATE TABLE table_19412902_1 (clubs VARCHAR, group_stage VARCHAR, member_association VARCHAR) |
SELECT COUNT(week) FROM table_name_51 WHERE date = "september 21, 1969" AND attendance < 26 OFFSET 243 | On what week were there 26,243 in attendance on September 21, 1969? | CREATE TABLE table_name_51 (
week VARCHAR,
date VARCHAR,
attendance VARCHAR
) |
SELECT syndicate FROM table_name_8 WHERE yacht = "stars & stripes" | Which syndicate is associated with the stars & stripes yacht? | CREATE TABLE table_name_8 (syndicate VARCHAR, yacht VARCHAR) |
SELECT written_by FROM table_19417244_2 WHERE us_viewers__millions_ = "14.39" | who write the episode that have 14.39 million viewers | CREATE TABLE table_19417244_2 (written_by VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT Left_office, COUNT(Left_office) FROM party GROUP BY Minister ORDER BY COUNT(Left_office) | Stacked bar chart of the number of left office for with each Minister in each left office, could you display in asc by the y-axis? | CREATE TABLE region (
Region_ID int,
Region_name text,
Date text,
Label text,
Format text,
Catalogue text
)
CREATE TABLE party_events (
Event_ID int,
Event_Name text,
Party_ID int,
Member_in_charge_ID int
)
CREATE TABLE party (
Party_ID int,
Minister text,
Took_offi... |
SELECT yacht AS Club FROM table_name_84 WHERE syndicate = "america 3 foundation" AND yacht = "america 3" | Which Yacht Club is part of the America 3 Foundation syndicate on the America 3 yacht? | CREATE TABLE table_name_84 (yacht VARCHAR, syndicate VARCHAR) |
SELECT directed_by FROM table_19417244_2 WHERE us_viewers__millions_ = "14.59" | who directed the episode that have 14.59 million viewers | CREATE TABLE table_19417244_2 (directed_by VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT "TV season" FROM table_15943 WHERE "Season" = '12' | What is the year of the season that was 12? | CREATE TABLE table_15943 (
"Season" real,
"Timeslot ( ET )" text,
"Season premiere" text,
"Season finale" text,
"TV season" text,
"Rank" text,
"Viewers (millions)" text
) |
SELECT nation FROM table_name_81 WHERE syndicate = "america 3 foundation" AND yacht = "jayhawk" | Which nation has the America 3 Foundation syndicate and the jayhawk yacht? | CREATE TABLE table_name_81 (nation VARCHAR, syndicate VARCHAR, yacht VARCHAR) |
SELECT written_by FROM table_19417244_2 WHERE no_in_season = 5 | who write the episode 5 in no. in season | CREATE TABLE table_19417244_2 (written_by VARCHAR, no_in_season VARCHAR) |
SELECT report FROM table_name_68 WHERE winning_team = "penske racing" AND pole_position = "rick mears" | What is the Report of Winning Team Penske Racing, and what was Rick Mears' Pole position? | CREATE TABLE table_name_68 (
report VARCHAR,
winning_team VARCHAR,
pole_position VARCHAR
) |
SELECT nation FROM table_name_91 WHERE sail = "usa-18" | Which Nation has the USA-18 sail? | CREATE TABLE table_name_91 (nation VARCHAR, sail VARCHAR) |
SELECT clubs FROM table_19412902_2 WHERE member_association = "Korea Republic" | How many clubs are there in the Korea Republic? | CREATE TABLE table_19412902_2 (clubs VARCHAR, member_association VARCHAR) |
SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(MANAGER_ID) | For those employees who did not have any job in the past, return a bar chart about the distribution of hire_date and the sum of manager_id bin hire_date by time, order from low to high by the Y-axis please. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID... |
SELECT COUNT(crowd) FROM table_name_46 WHERE away_team = "collingwood" | How big was the crowd when collingwood visited? | CREATE TABLE table_name_46 (crowd VARCHAR, away_team VARCHAR) |
SELECT MIN(pos) FROM table_19412902_2 WHERE points__total_500_ = 279 | At what position is the association with 279 points? | CREATE TABLE table_19412902_2 (pos INTEGER, points__total_500_ VARCHAR) |
SELECT "Club" FROM table_46501 WHERE "Years" = '1995–1996' | What is the Club during the Years 1995 1996? | CREATE TABLE table_46501 (
"Name" text,
"Club" text,
"Position" text,
"Years" text,
"Current status" text
) |
SELECT away_team FROM table_name_19 WHERE venue = "moorabbin oval" | What away team is based in moorabbin oval? | CREATE TABLE table_name_19 (away_team VARCHAR, venue VARCHAR) |
SELECT MAX(pos) FROM table_19412902_2 | What is the lowest position? | CREATE TABLE table_19412902_2 (pos INTEGER) |
SELECT COUNT(paula_radcliffe___gbr__) FROM table_23619492_3 WHERE world_record = "African record" | Name the total number of african record | CREATE TABLE table_23619492_3 (
paula_radcliffe___gbr__ VARCHAR,
world_record VARCHAR
) |
SELECT date FROM table_name_40 WHERE player = "af giles" | What date did af giles play? | CREATE TABLE table_name_40 (date VARCHAR, player VARCHAR) |
SELECT MIN(year_opened) FROM table_1942683_1 | What is the earliest year a house opened? | CREATE TABLE table_1942683_1 (year_opened INTEGER) |
SELECT SUM("Grid") FROM table_58524 WHERE "Driver" = 'giancarlo fisichella' | Tell me the sum of Grid for giancarlo fisichella | CREATE TABLE table_58524 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) |
SELECT catches FROM table_name_59 WHERE player = "hh dippenaar" | How many catches does hh dippenaar have? | CREATE TABLE table_name_59 (catches VARCHAR, player VARCHAR) |
SELECT COUNT(house_colour) FROM table_1942683_1 WHERE house_name = "Hillary" | How many house colours are associated with house names of Hillary? | CREATE TABLE table_1942683_1 (house_colour VARCHAR, house_name VARCHAR) |
SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'levothyroxine sodium 50 mcg po tabs') | cost of levothyroxine sodium 50 mcg po tabs and how much does it cost. | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREAT... |
SELECT player FROM table_name_98 WHERE date = "12-02-2003" | What player has a date of 12-02-2003? | CREATE TABLE table_name_98 (player VARCHAR, date VARCHAR) |
SELECT house_colour FROM table_1942683_1 WHERE house_name = "Kupe" | What is the house colour associated with the house name of Kupe? | CREATE TABLE table_1942683_1 (house_colour VARCHAR, house_name VARCHAR) |
SELECT writer_s_ FROM table_25800134_1 WHERE series__number = 56 | Who wrote the episode with series number 56? | CREATE TABLE table_25800134_1 (
writer_s_ VARCHAR,
series__number VARCHAR
) |
SELECT player FROM table_name_18 WHERE versus = "sri lanka" | Who had a versus of sri lanka? | CREATE TABLE table_name_18 (player VARCHAR, versus VARCHAR) |
SELECT COUNT(house_mascot) FROM table_1942683_1 WHERE house_colour = "Yellow" | How many house mascots are associated with yellow house colours? | CREATE TABLE table_1942683_1 (house_mascot VARCHAR, house_colour 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 = 'DALLAS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILAD... | what flights does AA fly from PHILADELPHIA to DALLAS | CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE restriction (
restriction_code text,
advance_purc... |
SELECT player FROM table_name_23 WHERE date = "19-02-2003" | Who had a date of 19-02-2003? | CREATE TABLE table_name_23 (player VARCHAR, date VARCHAR) |
SELECT title__french_____english_ FROM table_19485888_1 WHERE b_b_ = _corresponds_to_tf1s_broadcast_schedule = 20 / 16 | what is the title of the episode where b b is 20/16 | CREATE TABLE table_19485888_1 (title__french_____english_ VARCHAR, b_b_ VARCHAR, _corresponds_to_tf1s_broadcast_schedule VARCHAR) |
SELECT place FROM table_name_22 WHERE to_par = "+2" AND score = 70 - 72 - 73 = 215 | What is the Place of the Player with a To par of +2 and a Score of 70-72-73=215? | CREATE TABLE table_name_22 (
place VARCHAR,
to_par VARCHAR,
score VARCHAR
) |
SELECT date FROM table_name_93 WHERE versus = "source: cricinfo.com" | What date had a versus of source: cricinfo.com? | CREATE TABLE table_name_93 (date VARCHAR, versus VARCHAR) |
SELECT MIN(losses) FROM table_19451173_1 WHERE team = "Kansas City Chiefs" | What is the minimum losses for the Kansas City Chiefs? | CREATE TABLE table_19451173_1 (losses INTEGER, team VARCHAR) |
SELECT tournament FROM table_name_82 WHERE date = "6 october 2008" | What is Tournament, when Date is '6 October 2008'? | CREATE TABLE table_name_82 (
tournament VARCHAR,
date VARCHAR
) |
SELECT away_team FROM table_name_53 WHERE home_team = "south melbourne" | When south Melbourne was the home team, what was the away team? | CREATE TABLE table_name_53 (away_team VARCHAR, home_team VARCHAR) |
SELECT division_titles FROM table_19451173_1 WHERE win_pct = ".558" | How many division titles are there when the win pc is .558? | CREATE TABLE table_19451173_1 (division_titles VARCHAR, win_pct VARCHAR) |
SELECT "definition" FROM table_203_51 ORDER BY id DESC LIMIT 1 | what is the definition of the last channel ? | CREATE TABLE table_203_51 (
id number,
"channel" text,
"definition" text,
"organisation" text,
"ownership" text,
"notes" text
) |
SELECT MIN(crowd) FROM table_name_25 WHERE away_team = "st kilda" | What was the smallest crowd size for away team st kilda? | CREATE TABLE table_name_25 (crowd INTEGER, away_team VARCHAR) |
SELECT villages FROM table_19457_1 WHERE state_region = "Magway Region" | How many villages are there in the Magway region? | CREATE TABLE table_19457_1 (villages VARCHAR, state_region VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/HAITIAN" AND demographic.admityear < "2124" | provide me the number of black/haitian patients who were admitted before the year 2124. | 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 score FROM table_name_9 WHERE visitor = "milwaukee" | What was the score of the game against Milwaukee? | CREATE TABLE table_name_9 (score VARCHAR, visitor VARCHAR) |
SELECT MAX(town_ships) FROM table_19457_1 WHERE no = 2 | How many townships are there in region number 2? | CREATE TABLE table_19457_1 (town_ships INTEGER, no VARCHAR) |
SELECT date_of_transaction, COUNT(date_of_transaction) FROM Transactions WHERE share_count < 10 ORDER BY date_of_transaction DESC | For the transaction dates if share count is smaller than 10, bin the dates into the year interval, and count them using a line chart, could you sort X from high to low order? | CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Ref_Transaction_Types (
transaction_type_code VARCHAR(10),
transaction_type_description VARCHAR(80)
)
CREATE TABLE Purchases (
purchase_transaction_id INTEGER,
purchase_details VARCHAR(255)
)
CREATE T... |
SELECT winner FROM table_name_87 WHERE third_place = "yannick noah" | Was the third place winner Yannick Noah? | CREATE TABLE table_name_87 (winner VARCHAR, third_place VARCHAR) |
SELECT MAX(town_ships) FROM table_19457_1 WHERE village_groups = 376 | How many townships are there in the region with 376 village groups? | CREATE TABLE table_19457_1 (town_ships INTEGER, village_groups VARCHAR) |
SELECT term_of_office FROM table_name_1 WHERE member = "noel beaton" | What was the term of office for noel beaton? | CREATE TABLE table_name_1 (
term_of_office VARCHAR,
member VARCHAR
) |
SELECT away_team AS score FROM table_name_63 WHERE home_team = "essendon" | What was the away team score when the home team essendon was playing? | CREATE TABLE table_name_63 (away_team VARCHAR, home_team VARCHAR) |
SELECT MAX(poles) FROM table_19487922_1 WHERE country = "Netherlands" | How many poles for the Netherlands? | CREATE TABLE table_19487922_1 (poles INTEGER, country VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2175" AND diagnoses.long_title = "Aspergillosis" | how many patients were admitted before the year 2175 with aspergillosis as the diagnosis long title? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... |
SELECT record_set FROM table_name_9 WHERE superlative = "youngest nominee" | Who set the record for youngest nominee? | CREATE TABLE table_name_9 (record_set VARCHAR, superlative VARCHAR) |
SELECT seasons FROM table_19487922_1 WHERE country = "Monaco" | How many seasons for Monaco? | CREATE TABLE table_19487922_1 (seasons VARCHAR, country VARCHAR) |
SELECT constituency_number FROM table_name_94 WHERE reserved_for___sc___st__none_ = "none" AND district = "seoni" | What's the constituency number of the Seoni district and has none reserved? | CREATE TABLE table_name_94 (
constituency_number VARCHAR,
reserved_for___sc___st__none_ VARCHAR,
district VARCHAR
) |
SELECT record_set FROM table_name_24 WHERE year > 2011 AND superlative = "youngest nominee" | After the year 2011, who was the youngest nominee? | CREATE TABLE table_name_24 (record_set VARCHAR, year VARCHAR, superlative VARCHAR) |
SELECT name FROM table_19487922_1 WHERE country = "France" AND race_entries__starts_ = "10" | Who is the competitor from France with 10 starts? | CREATE TABLE table_19487922_1 (name VARCHAR, country VARCHAR, race_entries__starts_ VARCHAR) |
SELECT keyword.keyword FROM journal, keyword, publication, publication_keyword WHERE journal.name = 'PVLDB' AND publication_keyword.kid = keyword.kid AND publication.jid = journal.jid AND publication.pid = publication_keyword.pid | return me the keywords in PVLDB . | CREATE TABLE domain_author (
aid int,
did int
)
CREATE TABLE keyword (
keyword varchar,
kid int
)
CREATE TABLE publication (
abstract varchar,
cid int,
citation_num int,
jid int,
pid int,
reference_num int,
title varchar,
year int
)
CREATE TABLE author (
aid int,
... |
SELECT MIN(year) FROM table_name_76 WHERE actress = "quvenzhané wallis" | When did Quvenzhané Wallis first win? | CREATE TABLE table_name_76 (year INTEGER, actress VARCHAR) |
SELECT COUNT(call_sign) FROM table_1949746_1 WHERE frequency = "1180 AM" | When 1180 am is the frequency how many call signs are there? | CREATE TABLE table_1949746_1 (call_sign VARCHAR, frequency VARCHAR) |
SELECT "Candidates" FROM table_28902 WHERE "District" = 'New York 10' | who are the candidates for district new york 10? | CREATE TABLE table_28902 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.