answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT 1 AS st_leg FROM table_17968229_1 WHERE home__2nd_leg_ = "Atlético Tucumán" | If the home is Atlético Tucumán, what is the name of the first leg? | CREATE TABLE table_17968229_1 (home__2nd_leg_ VARCHAR) |
SELECT COUNT(february) FROM table_name_40 WHERE points = 63 AND score = "1–2" | How many February days have Points of 63 and a Score of 1 2? | CREATE TABLE table_name_40 (
february VARCHAR,
points VARCHAR,
score VARCHAR
) |
SELECT COUNT(total) FROM table_name_74 WHERE silver > 0 AND bronze > 21 AND gold > 29 | I want to know the total for silver more than 0 with bronze more than 21 and gold more than 29 | CREATE TABLE table_name_74 (total VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR) |
SELECT 1 AS st_leg FROM table_17968229_1 WHERE home__2nd_leg_ = "Newell's Old Boys" | If second leg is Newell's Old Boys, what name is first leg? | CREATE TABLE table_17968229_1 (home__2nd_leg_ VARCHAR) |
SELECT COUNT(lost) FROM table_name_65 WHERE goal_difference = "+13" AND drawn > 12 | What is the number of games lost when goal difference is +13 and draws are more than 12? | CREATE TABLE table_name_65 (
lost VARCHAR,
goal_difference VARCHAR,
drawn VARCHAR
) |
SELECT SUM(car) FROM table_name_54 WHERE player = "jeff smoker" | How many carries for jeff smoker? | CREATE TABLE table_name_54 (car INTEGER, player VARCHAR) |
SELECT chinese_name FROM table_17964087_2 WHERE romanised_name = "Chan Chi-yuen, Paul" | What is the chinese name for whom chan chi-yuen, paul is listed as the romanised name? | CREATE TABLE table_17964087_2 (chinese_name VARCHAR, romanised_name VARCHAR) |
SELECT "Death/2012" FROM table_3390 WHERE "Birth/2012" = '127' | What were the total number of 2012 deaths when 2012 births were 127? | CREATE TABLE table_3390 (
"January\u2013December 2012" text,
"Birth/2012" real,
"Birth/2011" real,
"Death/2012" real,
"Death/2011" real
) |
SELECT AVG(car) FROM table_name_58 WHERE long = "3" | How many average carries for the player with 3 as a long? | CREATE TABLE table_name_58 (car INTEGER, long VARCHAR) |
SELECT foreign_nationality FROM table_17964087_2 WHERE romanised_name = "Cheung, Raymond Man-to" | The name cheung, raymond man-to is listed as a romanised name is cheung, raymond man-to? | CREATE TABLE table_17964087_2 (foreign_nationality VARCHAR, romanised_name VARCHAR) |
SELECT points_classification_navy_blue_jersey FROM table_name_11 WHERE mountains_classification_green_jersey = "yoann le boulanger" AND team_classification = "gerolsteiner" | What is the Points Classification Navy Blue Jersey that has Yoann le Boulanger, and Gerolsteiner? | CREATE TABLE table_name_11 (
points_classification_navy_blue_jersey VARCHAR,
mountains_classification_green_jersey VARCHAR,
team_classification VARCHAR
) |
SELECT home_team FROM table_name_24 WHERE tie_no < 7 AND away_team = "havant & waterlooville" | who is the home team when tie no is less than 7 and the away team is havant & waterlooville? | CREATE TABLE table_name_24 (home_team VARCHAR, tie_no VARCHAR, away_team VARCHAR) |
SELECT COUNT(govt_salary) FROM table_17964087_2 WHERE chinese_name = "盧奕基" | For the chinese name 盧奕基 how many in total is the govt salary? | CREATE TABLE table_17964087_2 (govt_salary VARCHAR, chinese_name VARCHAR) |
SELECT MIN(year) FROM table_name_47 WHERE co_driver = "warren luff" AND position = "7th" AND laps < 161 | What is the lowest Year, when Co-Driver is Warren Luff, when Position is 7th, and when Laps is less than 161? | CREATE TABLE table_name_47 (
year INTEGER,
laps VARCHAR,
co_driver VARCHAR,
position VARCHAR
) |
SELECT score_in_the_final FROM table_name_95 WHERE outcome = "runner-up" AND date = 1970 | What is the Score in the final with an Outcome with runner-up, and a Date with 1970? | CREATE TABLE table_name_95 (score_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR) |
SELECT COUNT(foreign_nationality) FROM table_17964087_2 WHERE romanised_name = "Lo Yik-kee, Victor" | For the name romanised name is lo yik-kee, victor what is the total number foreign nationality that is listed? | CREATE TABLE table_17964087_2 (foreign_nationality VARCHAR, romanised_name VARCHAR) |
SELECT "Original air date" FROM table_78462 WHERE "Title" = 'downtown girl' | For the 'Downtown Girl' episode, what was the original air date? | CREATE TABLE table_78462 (
"Series #" real,
"Title" text,
"Directed by" text,
"Original air date" text,
"Production code" real
) |
SELECT tournament FROM table_name_15 WHERE opponents_in_the_final = "rod laver fred stolle" | What is the Tournament with a Opponents in the final with rod laver fred stolle? | CREATE TABLE table_name_15 (tournament VARCHAR, opponents_in_the_final VARCHAR) |
SELECT romanised_name FROM table_17964087_2 WHERE prior_occupation = "Assistant Police Commissioner (ret'd)" | For the prior occupation listed as assistant police commissioner (ret'd) what are the entire list of romanised name. | CREATE TABLE table_17964087_2 (romanised_name VARCHAR, prior_occupation VARCHAR) |
SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'contr abd arteriogrm nec') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3535) AND DATETIME(pro... | have patient 3535 undergone any contr abd arteriogrm nec procedure until 1 year ago? | CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
sp... |
SELECT tournament FROM table_name_66 WHERE date > 1973 AND opponents_in_the_final = "hank pfister sherwood stewart" | What is the Tournament with a Date larger than 1973, with Opponents in the final with hank pfister sherwood stewart? | CREATE TABLE table_name_66 (tournament VARCHAR, date VARCHAR, opponents_in_the_final VARCHAR) |
SELECT MAX(played) FROM table_17968282_1 WHERE points = 105 | Name the most played when points is 105 | CREATE TABLE table_17968282_1 (played INTEGER, points VARCHAR) |
SELECT "Grid" FROM table_48799 WHERE "Rider" = 'shinya nakano' | What is the grid of rider shinya nakano? | CREATE TABLE table_48799 (
"Rider" text,
"Manufacturer" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
) |
SELECT partner FROM table_name_31 WHERE opponents_in_the_final = "roy emerson rod laver" AND date < 1975 | What is the Partner with Opponents in the final with roy emerson rod laver, with Date smaller than 1975? | CREATE TABLE table_name_31 (partner VARCHAR, opponents_in_the_final VARCHAR, date VARCHAR) |
SELECT COUNT(points) FROM table_17968282_1 WHERE team = "Newell's Old Boys" | Name the total number of points for newell's old boys | CREATE TABLE table_17968282_1 (points VARCHAR, team VARCHAR) |
SELECT * FROM table_train_156 WHERE body_mass_index_bmi >= 25 AND body_mass_index_bmi < 35 | body mass index greater than or equal to 25 and less than 35 kg / m2 | CREATE TABLE table_train_156 (
"id" int,
"anemia" bool,
"abnormal_bilirubin" bool,
"hemoglobin_a1c_hba1c" float,
"body_mass_index_bmi" float,
"bilirubin" float,
"NOUSE" float
) |
SELECT driver FROM table_name_92 WHERE laps = 45 | Which driver has 45 laps? | CREATE TABLE table_name_92 (driver VARCHAR, laps VARCHAR) |
SELECT home__1st_leg_ FROM table_17968233_2 WHERE aggregate = "3-4" | If the aggregate is 3-4, what is the first leg? | CREATE TABLE table_17968233_2 (home__1st_leg_ VARCHAR, aggregate VARCHAR) |
SELECT COUNT("Final Episode Count") FROM table_72162 WHERE "First Episode" = 'L.A.' | what's the total number of final epbeingode count with first epbeingode being 'l.a. | CREATE TABLE table_72162 (
"Character" text,
"Fate" text,
"Actor" text,
"First Episode" text,
"Final Episode" text,
"Duration" text,
"Final Episode Count" real
) |
SELECT time_retired FROM table_name_16 WHERE grid < 9 AND constructor = "ferrari" AND driver = "rubens barrichello" | Which Time/Retired has a grid smaller than 9, a Ferrari construct, and is driven by Rubens Barrichello? | CREATE TABLE table_name_16 (time_retired VARCHAR, driver VARCHAR, grid VARCHAR, constructor VARCHAR) |
SELECT COUNT(aggregate) FROM table_17968233_2 WHERE home__2nd_leg_ = "Instituto" | If the second leg is Instituto, what is the total number of aggregate? | CREATE TABLE table_17968233_2 (aggregate VARCHAR, home__2nd_leg_ VARCHAR) |
SELECT sample_size FROM table_name_84 WHERE date_s__administered = "june 30, 2010" | How many people were surveyed in the poll from June 30, 2010? | CREATE TABLE table_name_84 (
sample_size VARCHAR,
date_s__administered VARCHAR
) |
SELECT home_team FROM table_name_55 WHERE away_team = "footscray" | Who was the home team when the away team was Footscray? | CREATE TABLE table_name_55 (home_team VARCHAR, away_team VARCHAR) |
SELECT 1989 AS _90 FROM table_17968274_2 WHERE team = "Vélez Sársfield" | How many games were played by the Vélez Sársfield team from 1989-90? | CREATE TABLE table_17968274_2 (team VARCHAR) |
SELECT "Molecular Target" FROM table_69537 WHERE "Disease Area" = 'antiviral' | What is the molecular target of the organism that has a disease area of antiviral? | CREATE TABLE table_69537 (
"Clinical Status" text,
"Compound Name" text,
"Trademark" text,
"Marine Organism \u03b1" text,
"Chemical Class" text,
"Molecular Target" text,
"Clinical Trials \u03b2" text,
"Disease Area" text
) |
SELECT date FROM table_name_65 WHERE home_team = "north melbourne" | What was the date of the game where North Melbourne was the home team? | CREATE TABLE table_name_65 (date VARCHAR, home_team VARCHAR) |
SELECT team FROM table_17968274_2 WHERE points = 122 | What was the team that scored 122 points? | CREATE TABLE table_17968274_2 (team VARCHAR, points VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND diagnoses.icd9_code = "59654" | how many american indian/alaska native ethnic background patients have diagnoses icd9 code 59654? | CREATE TABLE diagnoses (
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 demographic (... |
SELECT away_team FROM table_name_35 WHERE venue = "kardinia park" | Which away team played at Kardinia Park? | CREATE TABLE table_name_35 (away_team VARCHAR, venue VARCHAR) |
SELECT opponent FROM table_17972136_1 WHERE date = "October 4" | What is the opponent played on October 4? | CREATE TABLE table_17972136_1 (opponent VARCHAR, date VARCHAR) |
SELECT "Partnering" FROM table_45137 WHERE "Opponents in final" = 'marcelo melo andré sá' | Who is the partnering that had the opponents of Marcelo Melo Andr S ? | CREATE TABLE table_45137 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Opponents in final" text,
"Score in final" text
) |
SELECT no_of_cities FROM table_name_38 WHERE voivodeship = "elbląg voivodeship" | Namem the number of cities that contains Voivodeship of elbląg voivodeship | CREATE TABLE table_name_38 (no_of_cities VARCHAR, voivodeship VARCHAR) |
SELECT MIN(week) FROM table_17972136_1 WHERE game_site = "Riverfront Stadium" | Where is riverfront stadium the game site for the week? | CREATE TABLE table_17972136_1 (week INTEGER, game_site VARCHAR) |
SELECT "Rider" FROM table_77587 WHERE "Team" = '399cc kawasaki' | Who is the rider with a 399cc Kawasaki? | CREATE TABLE table_77587 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) |
SELECT COUNT(number_of_people_1991) FROM table_name_72 WHERE village__german_ = "rupertiberg" | How many people in 1991 have a Village (German) of rupertiberg? | CREATE TABLE table_name_72 (number_of_people_1991 VARCHAR, village__german_ VARCHAR) |
SELECT MIN(_number_s_lake_and_gnis_query_link) FROM table_17978052_2 WHERE borough_or_census_area = "Valdez-Cordova (CA)" | How many number of lakes are there in the Valdez-Cordova (CA) area? | CREATE TABLE table_17978052_2 (_number_s_lake_and_gnis_query_link INTEGER, borough_or_census_area VARCHAR) |
SELECT title FROM table_18646432_4 WHERE original_air_date = "September 29, 1999" | What is the name of the episode originally aired on September 29, 1999? | CREATE TABLE table_18646432_4 (
title VARCHAR,
original_air_date VARCHAR
) |
SELECT score FROM table_name_64 WHERE date = "october 30" | What was the score on October 30? | CREATE TABLE table_name_64 (score VARCHAR, date VARCHAR) |
SELECT comment FROM table_17978052_2 WHERE borough_or_census_area = "Denali" | What was the comment on the Denali area? | CREATE TABLE table_17978052_2 (comment VARCHAR, borough_or_census_area VARCHAR) |
SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'lab' AND cost.eventid IN (SELECT lab.labid FROM lab WHERE lab.labname = 'mcv') | tell me the cost of a lab test for mcv? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... |
SELECT attendance FROM table_name_78 WHERE date = "october 6" | What was the attendance on October 6? | CREATE TABLE table_name_78 (attendance VARCHAR, date VARCHAR) |
SELECT MAX(_number_s_dam_and_gnis_query_link) FROM table_17978052_2 WHERE borough_or_census_area = "Lake and Peninsula" | How many dams are there in the Lake and Peninsula area? | CREATE TABLE table_17978052_2 (_number_s_dam_and_gnis_query_link INTEGER, borough_or_census_area VARCHAR) |
SELECT diagnoses_icd.charttime FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'obstructive sleep apnea') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 75762 AND NOT admi... | when they came to the hospital first time, when was the last time that patient 75762 was diagnosed with obstructive sleep apnea? | CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE diagnoses_icd (
row_id ... |
SELECT record FROM table_name_41 WHERE date = "october 24" | What was the record on October 24? | CREATE TABLE table_name_41 (record VARCHAR, date VARCHAR) |
SELECT MIN(_number_s_dam_and_gnis_query_link) FROM table_17978052_2 WHERE borough_or_census_area = "Nome (CA)" | How many dams are there in the Nome (CA) area? | CREATE TABLE table_17978052_2 (_number_s_dam_and_gnis_query_link INTEGER, borough_or_census_area VARCHAR) |
SELECT Carrier, COUNT(Carrier) FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID = T3.Shop_ID GROUP BY Carrier ORDER BY Carrier | Give a bar chart showing how many shops in each carrier, and could you show in ascending by the X? | CREATE TABLE stock (
Shop_ID int,
Device_ID int,
Quantity int
)
CREATE TABLE device (
Device_ID int,
Device text,
Carrier text,
Package_Version text,
Applications text,
Software_Platform text
)
CREATE TABLE shop (
Shop_ID int,
Shop_Name text,
Location text,
Open_Dat... |
SELECT visitor FROM table_name_85 WHERE date = "october 20" | Who was the visitor on October 20? | CREATE TABLE table_name_85 (visitor VARCHAR, date VARCHAR) |
SELECT COUNT(comment) FROM table_17978052_2 WHERE borough_or_census_area = "Bethel (CA)" | How many comments are there in the Bethel (CA) Borough area? | CREATE TABLE table_17978052_2 (comment VARCHAR, borough_or_census_area VARCHAR) |
SELECT "Platform & Frequency [MHz]" FROM table_6179 WHERE "Model" = 'whr-g54s' | What is the platform & frequency [MHz] of the whr-g54s model? | CREATE TABLE table_6179 (
"Model" text,
"Platform & Frequency [MHz]" text,
"RAM [MB]" text,
"Flash Memory [MB]" text,
"Wireless NIC" text,
"WLAN standard [802.11]" text,
"Ethernet port count" text,
"Voltage Input [V/A]" text
) |
SELECT smoke_point FROM table_name_25 WHERE monounsaturated_fat = "30g" | Name the smoke point for monosaturated fat of 30g | CREATE TABLE table_name_25 (smoke_point VARCHAR, monounsaturated_fat VARCHAR) |
SELECT COUNT(attendance) FROM table_17972193_1 WHERE date = "October 27" | How many total numbers of attendance are there during the game in October 27? | CREATE TABLE table_17972193_1 (attendance VARCHAR, date VARCHAR) |
SELECT dept_name, MIN(salary) FROM instructor GROUP BY dept_name ORDER BY MIN(salary) | What is the lowest salary in departments with average salary greater than the overall average Plot them as bar chart, and sort minimal salary in ascending order please. | CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr ... |
SELECT polyunsaturated_fat FROM table_name_96 WHERE total_fat = "100g" AND monounsaturated_fat = "20g (84g in high oleic variety)" | Name the polyunsaturated fat with total fat of 100g and monounsaturated fat of 20g (84g in high oleic variety) | CREATE TABLE table_name_96 (polyunsaturated_fat VARCHAR, total_fat VARCHAR, monounsaturated_fat VARCHAR) |
SELECT record FROM table_17972193_1 WHERE opponent = "at Los Angeles Raiders" | What was the game record when the opponent was 'at Los Angeles Raiders'? | CREATE TABLE table_17972193_1 (record VARCHAR, opponent VARCHAR) |
SELECT package_option FROM table_name_74 WHERE television_service = "sky inside" | What is Package/Option, when Television Service is Sky Inside? | CREATE TABLE table_name_74 (
package_option VARCHAR,
television_service VARCHAR
) |
SELECT polyunsaturated_fat FROM table_name_39 WHERE total_fat = "100g" AND saturated_fat = "7g" | Name the polyunsaturated fat with total fat of 100g and saturated fat of 7g | CREATE TABLE table_name_39 (polyunsaturated_fat VARCHAR, total_fat VARCHAR, saturated_fat VARCHAR) |
SELECT date FROM table_17972193_1 WHERE opponent = "at Los Angeles Rams" | When was the game played when the opponent was 'at Los Angeles Rams'? | CREATE TABLE table_17972193_1 (date VARCHAR, opponent VARCHAR) |
SELECT AVG("Silver") FROM table_51993 WHERE "Bronze" < '15' AND "Nation" = 'montenegro' AND "Total" > '11' | What is the average amount of silver medals Montenegro, who has less than 15 bronze and more than 11 total medals, has? | CREATE TABLE table_51993 (
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT polyunsaturated_fat FROM table_name_31 WHERE saturated_fat = "25g" | Name the polyunsaturated fat with a saturated fat of 25g | CREATE TABLE table_name_31 (polyunsaturated_fat VARCHAR, saturated_fat VARCHAR) |
SELECT COUNT(attendance) FROM table_17972193_1 WHERE game_site = "Anaheim Stadium" | How many total number of attendance were there when the game was held in Anaheim Stadium? | CREATE TABLE table_17972193_1 (attendance VARCHAR, game_site VARCHAR) |
SELECT Years_Played, COUNT(Years_Played) FROM player AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Columbus Crew" GROUP BY Years_Played ORDER BY Years_Played DESC | Give me a bar chart that groups and counts the years played for players from team 'Columbus Crew', list Years_Played from high to low order. | CREATE TABLE country (
Country_id int,
Country_name text,
Capital text,
Official_native_language text
)
CREATE TABLE team (
Team_id int,
Name text
)
CREATE TABLE player (
Player_ID int,
Player text,
Years_Played text,
Total_WL text,
Singles_WL text,
Doubles_WL text,
... |
SELECT total_fat FROM table_name_60 WHERE polyunsaturated_fat = "11g" AND monounsaturated_fat = "45g" | Name the total fat which has a polyunsaturated fat of 11g and monounsaturated fat of 45g | CREATE TABLE table_name_60 (total_fat VARCHAR, polyunsaturated_fat VARCHAR, monounsaturated_fat VARCHAR) |
SELECT MIN(attendance) FROM table_17972193_1 WHERE game_site = "Arrowhead Stadium" | How many were in attendance when the game was held in Arrowhead Stadium? | CREATE TABLE table_17972193_1 (attendance INTEGER, game_site VARCHAR) |
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', medication.drugstarttime)) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-258... | how many days has passed since the last time that patient 006-2586 had propofol 10 mg/1 ml 100ml sdv inj prescribed during the current hospital encounter? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)... |
SELECT result FROM table_name_79 WHERE competition = "friendly" AND date = "9 october 2010" | Name the result for friendly competition on 9 october 2010 | CREATE TABLE table_name_79 (result VARCHAR, competition VARCHAR, date VARCHAR) |
SELECT MAX(position) FROM table_18018214_1 WHERE draws = 7 | What is the highest position a team with 7 draws earned? | CREATE TABLE table_18018214_1 (position INTEGER, draws VARCHAR) |
SELECT score FROM table_name_84 WHERE tie_no = "replay" AND away_team = "watford" | What was the score of the replay game when watford was the away team? | CREATE TABLE table_name_84 (
score VARCHAR,
tie_no VARCHAR,
away_team VARCHAR
) |
SELECT result FROM table_name_3 WHERE competition = "uncaf nations cup 2009" AND goal = 6 | Name the result for uncaf nations cup 2009 and 6 goal | CREATE TABLE table_name_3 (result VARCHAR, competition VARCHAR, goal VARCHAR) |
SELECT original_air_date FROM table_18012738_1 WHERE ai___percentage_ = 83 | Name the original air date for ai% for 83 | CREATE TABLE table_18012738_1 (original_air_date VARCHAR, ai___percentage_ VARCHAR) |
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1 | What is the name of the customer who has the largest number of orders? | CREATE TABLE shipment_items (
shipment_id number,
order_item_id number
)
CREATE TABLE customers (
customer_id number,
customer_name text,
customer_details text
)
CREATE TABLE order_items (
order_item_id number,
product_id number,
order_id number,
order_item_status text,
order_i... |
SELECT team_1 FROM table_name_2 WHERE team_2 = "la nuova piovese (veneto a)" | Which team was team 1 that had a team 2 that was la nuova piovese (veneto a)? | CREATE TABLE table_name_2 (team_1 VARCHAR, team_2 VARCHAR) |
SELECT story_no FROM table_18012738_1 WHERE written_by = "Paul Cornell" | Name the story number for paul cornell | CREATE TABLE table_18012738_1 (story_no VARCHAR, written_by VARCHAR) |
SELECT win_percentage FROM table_name_9 WHERE wins = "46" | Where the wins are 46, what is the win%? | CREATE TABLE table_name_9 (
win_percentage VARCHAR,
wins VARCHAR
) |
SELECT 2 AS nd_leg FROM table_name_4 WHERE team_2 = "budoni (sardinia)" | What was the 2nd leg where the team 2 was budoni (sardinia)? | CREATE TABLE table_name_4 (team_2 VARCHAR) |
SELECT COUNT(directed_by) FROM table_18012738_1 WHERE uk_viewers__million_ = "6.86" | Name the total number directed by for uk viewers being 6.86 | CREATE TABLE table_18012738_1 (directed_by VARCHAR, uk_viewers__million_ VARCHAR) |
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE NOT admissions.dischtime IS NULL AND DATETIME(admissions.dischtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | during this year how many patients were discharged from the hospital? | CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
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,
lan... |
SELECT team_1 FROM table_name_81 WHERE team_2 = "avigliano (basilicata)" | Which was the team 1 that had a team 2 which was avigliano (basilicata)? | CREATE TABLE table_name_81 (team_1 VARCHAR, team_2 VARCHAR) |
SELECT MIN(ai___percentage_) FROM table_18012738_1 | Name the least ai % | CREATE TABLE table_18012738_1 (ai___percentage_ INTEGER) |
SELECT "Team" FROM table_5446 WHERE "Make" = 'dodge' | What team drove a Dodge vehicle? | CREATE TABLE table_5446 (
"Pos." real,
"Car #" real,
"Driver" text,
"Make" text,
"Team" text
) |
SELECT cash_on_hand FROM table_name_93 WHERE after_debt = "$82,741" | How much cash was on hand after debt of $82,741? | CREATE TABLE table_name_93 (cash_on_hand VARCHAR, after_debt VARCHAR) |
SELECT MAX(games_played) FROM table_18018214_4 | What is the highest number of games played? | CREATE TABLE table_18018214_4 (games_played INTEGER) |
SELECT "English translation" FROM table_12583 WHERE "Traditional Chinese" = '哀郢' | What is the english translation of the traditional Chinese word, ? | CREATE TABLE table_12583 (
"Standard order" real,
"English translation" text,
"Transcription (based on Pinyin)" text,
"Traditional Chinese" text,
"Simplified Chinese" text
) |
SELECT loans_received, _3q FROM table_name_24 WHERE total_debt = "$169,256" | What was the amount of loans received with a total debt of $169,256? | CREATE TABLE table_name_24 (loans_received VARCHAR, _3q VARCHAR, total_debt VARCHAR) |
SELECT COUNT(goals_conceded) FROM table_18018214_4 WHERE points = 31 | In the game with 31 points, how many goals were conceded? | CREATE TABLE table_18018214_4 (goals_conceded VARCHAR, points VARCHAR) |
SELECT "Result" FROM table_52997 WHERE "Competition" = '1994 fifa world cup qualification' AND "Date" = 'may 15, 1993' | What's the Result for the Competition of 1994 FIFA World Cup Qualification, with the Date of May 15, 1993? | CREATE TABLE table_52997 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) |
SELECT money_spent, _3q FROM table_name_19 WHERE after_debt = "$1,757,936" | How much money was spent when the amount after debt was $1,757,936? | CREATE TABLE table_name_19 (money_spent VARCHAR, _3q VARCHAR, after_debt VARCHAR) |
SELECT COUNT(games_played) FROM table_18018214_4 WHERE points = 22 | How many games had 22 points? | CREATE TABLE table_18018214_4 (games_played VARCHAR, points VARCHAR) |
SELECT COUNT(pick) FROM table_name_60 WHERE year < 2009 AND round > 1 | What is the pick number in a year earlier than 2009, with a round higher than 1? | CREATE TABLE table_name_60 (
pick VARCHAR,
year VARCHAR,
round VARCHAR
) |
SELECT after_debt FROM table_name_11 WHERE cash_on_hand = "$651,300" | How much is after debt when cash on hand is $651,300? | CREATE TABLE table_name_11 (after_debt VARCHAR, cash_on_hand VARCHAR) |
SELECT wins FROM table_18018248_2 WHERE goals_scored = 58 | How many wins had 58 goals scored? | CREATE TABLE table_18018248_2 (wins VARCHAR, goals_scored VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.