answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT transcription FROM table_180802_3 WHERE sanskrit_word = "Chandra"
What is the transcription of the sanskrit word chandra?
CREATE TABLE table_180802_3 (transcription VARCHAR, sanskrit_word VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2043" AND lab.fluid = "Other Body Fluid"
How many patients tested for other body fluid were born before the year 2043?
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 year FROM table_name_2 WHERE winner = "burning roma"
What year was Burning Roma the winner?
CREATE TABLE table_name_2 (year VARCHAR, winner VARCHAR)
SELECT sanskrit_word FROM table_180802_3 WHERE transcription = "wan athit"
What is the sanskrit word if the transcription is wan athit?
CREATE TABLE table_180802_3 (sanskrit_word VARCHAR, transcription VARCHAR)
SELECT COUNT(DISTINCT p.AcceptedAnswerId), p2.OwnerUserId FROM Posts AS p, Posts AS p2 GROUP BY p2.OwnerUserId ORDER BY COUNT(DISTINCT p.AcceptedAnswerId) DESC
How many distinct users have asked questions.
CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE Posts ( Id nu...
SELECT win_loss FROM table_name_23 WHERE coach = "peter german"
What is the win/loss of coach Peter German?
CREATE TABLE table_name_23 (win_loss VARCHAR, coach VARCHAR)
SELECT color FROM table_180802_3 WHERE planet = "Venus"
What is the color of the planet venus?
CREATE TABLE table_180802_3 (color VARCHAR, planet VARCHAR)
SELECT "Democratic" FROM table_37324 WHERE "District" < '7' AND "Republican" = 'dan mansell'
Which Democratic has a District smaller than 7, and a Republican of dan mansell?
CREATE TABLE table_37324 ( "District" real, "Incumbent" text, "2008 Status" text, "Democratic" text, "Republican" text )
SELECT tyres FROM table_name_14 WHERE year < 1995 AND laps = 142
Which tyre was before 1995 with 142 laps?
CREATE TABLE table_name_14 (tyres VARCHAR, year VARCHAR, laps VARCHAR)
SELECT planet FROM table_180802_3 WHERE transcription = "wan suk"
Which planet has the transcription of wan suk?
CREATE TABLE table_180802_3 (planet VARCHAR, transcription VARCHAR)
SELECT job, AVG(age) FROM Person WHERE gender = 'male' GROUP BY job ORDER BY job DESC
what is the average age for a male in each job?, rank X in desc order.
CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT )
SELECT tyres FROM table_name_89 WHERE laps > 5 AND team = "nissan motorsports international"
Which tyres has more than 5 laps with team nissan motorsports international?
CREATE TABLE table_name_89 (tyres VARCHAR, laps VARCHAR, team VARCHAR)
SELECT year_to_april FROM table_18077713_1 WHERE revenue__us_$million_ = "434.8"
What is the year to april when the revenue is 434.8 million dollars?
CREATE TABLE table_18077713_1 (year_to_april VARCHAR, revenue__us_$million_ VARCHAR)
SELECT time FROM table_name_75 WHERE method = "tko (doctor stoppage)" AND record = "9-0"
What was the time of the match with a record of 9-0 and used the tko (doctor stoppage) method?
CREATE TABLE table_name_75 ( time VARCHAR, method VARCHAR, record VARCHAR )
SELECT pos FROM table_name_56 WHERE tyres = "m" AND laps > 352
What position that has m tyres and 352 or more laps?
CREATE TABLE table_name_56 (pos VARCHAR, tyres VARCHAR, laps VARCHAR)
SELECT ebit__us_$m_ FROM table_18077713_1 WHERE net_profit__us_$m_ = "120.6"
What is the dollar amount of ebit when the net profit is 120.6?
CREATE TABLE table_18077713_1 (ebit__us_$m_ VARCHAR, net_profit__us_$m_ VARCHAR)
SELECT athlete FROM table_name_47 WHERE run_1 < 54.13 AND run_3 = 55.21
Who is the athlete with a run 1 less than 54.13 and a 55.21 run 3?
CREATE TABLE table_name_47 ( athlete VARCHAR, run_1 VARCHAR, run_3 VARCHAR )
SELECT team_2 FROM table_name_29 WHERE team_1 = "sestese(e16)"
who is the team 2 when the team 1 is sestese(e16)?
CREATE TABLE table_name_29 (team_2 VARCHAR, team_1 VARCHAR)
SELECT revenue__us_$million_ FROM table_18077713_1 WHERE net_profit__us_$m_ = "55.4"
How many dollars is the revenue when the net profit is 55.4 million dollars?
CREATE TABLE table_18077713_1 (revenue__us_$million_ VARCHAR, net_profit__us_$m_ VARCHAR)
SELECT AVG(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT; MYOMECTOMY/SDA"
what is average age of patients whose gender is f and primary disease is coronary artery disease\coronary artery bypass graft; myomectomy/sda?
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 demographic ...
SELECT MAX(base_pairs) FROM table_name_2 WHERE strain = "unspecified"
What is the largest base pair with a Strain of unspecified?
CREATE TABLE table_name_2 (base_pairs INTEGER, strain VARCHAR)
SELECT COUNT(year_to_april) FROM table_18077713_1 WHERE earnings_per_share__¢_ = "22.0"
When the earning per share is listed as 22.0 what is the year to april?
CREATE TABLE table_18077713_1 (year_to_april VARCHAR, earnings_per_share__¢_ VARCHAR)
SELECT "First aired" FROM table_22815 WHERE "Performed by" = 'Sue Manchester'
What is the date for the episode performed by Sue Manchester?
CREATE TABLE table_22815 ( "Episode title" text, "Subject" text, "Music by" text, "Lyrics by" text, "Performed by" text, "First aired" text )
SELECT MIN(base_pairs) FROM table_name_21 WHERE species = "borrelia garinii" AND genes > 832
What is the lowst base pair with a Species of borrelia garinii, and a Genes larger than 832?
CREATE TABLE table_name_21 (base_pairs INTEGER, species VARCHAR, genes VARCHAR)
SELECT earnings_per_share__¢_ FROM table_18077713_1 WHERE net_profit__us_$m_ = "16.2"
What is the earnings per share when the net profit is 16.2 million dollars?
CREATE TABLE table_18077713_1 (earnings_per_share__¢_ VARCHAR, net_profit__us_$m_ VARCHAR)
SELECT Id FROM Posts WHERE ViewCount = 9999
SebasSBM's custom filter (test phase).
CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId ...
SELECT type FROM table_name_65 WHERE species = "unspecified" AND genes < 367
What type has an unspecified species and less than 367 genes?
CREATE TABLE table_name_65 (type VARCHAR, species VARCHAR, genes VARCHAR)
SELECT net_profit__us_$m_ FROM table_18077713_1 WHERE revenue__us_$million_ = "150.6"
How much is the net profit when the revenue is 150.6 million dollars?
CREATE TABLE table_18077713_1 (net_profit__us_$m_ VARCHAR, revenue__us_$million_ VARCHAR)
SELECT COUNT(game) FROM table_name_29 WHERE result = "4–0" AND attendance > 12 OFFSET 256
How many games have a Result of 4 0, and an Attendance larger than 12,256?
CREATE TABLE table_name_29 ( game VARCHAR, result VARCHAR, attendance VARCHAR )
SELECT base_pairs FROM table_name_79 WHERE genes = 832
What base pair has 832 genes?
CREATE TABLE table_name_79 (base_pairs VARCHAR, genes VARCHAR)
SELECT year__ceremony_ FROM table_18123274_1 WHERE result = "Not Nominated" AND director = "Alberto Aruelo"
Name the year for not nominated for alberto aruelo
CREATE TABLE table_18123274_1 (year__ceremony_ VARCHAR, result VARCHAR, director VARCHAR)
SELECT "Date" FROM table_4819 WHERE "Venue" = 'victoria park'
On what date was the match played in Victoria Park?
CREATE TABLE table_4819 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT competition FROM table_name_53 WHERE rank = 9
Which competition was ranked 9?
CREATE TABLE table_name_53 (competition VARCHAR, rank VARCHAR)
SELECT COUNT(director) FROM table_18123274_1 WHERE original_title = "Oro Diablo"
Name the total number of director for oro diablo
CREATE TABLE table_18123274_1 (director VARCHAR, original_title VARCHAR)
SELECT COUNT(*) FROM table_204_755 WHERE "result" = 'w'
how many games did this team win this season ?
CREATE TABLE table_204_755 ( id number, "week" number, "date" text, "opponent" text, "result" text, "attendance" number )
SELECT SUM(drawn) FROM table_name_94 WHERE goals = "274-357"
What is the sum of draws with 274-357 goals?
CREATE TABLE table_name_94 (drawn INTEGER, goals VARCHAR)
SELECT COUNT(result) FROM table_18123274_1 WHERE film_title_used_in_nomination = "Maroa"
Name the number of result for maroa
CREATE TABLE table_18123274_1 (result VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT team FROM table_name_64 WHERE driver = "viktor jensen"
what is the team when the driver is viktor jensen?
CREATE TABLE table_name_64 ( team VARCHAR, driver VARCHAR )
SELECT MIN(played_2) FROM table_name_65 WHERE lost > 83 AND seasons = 8 AND club_1 = "chernomorets novorossiysk" AND drawn < 65
What is the lowest played 2 number with less than 83 losses and less than 65 draws with Chernomorets Novorossiysk in season 8?
CREATE TABLE table_name_65 (played_2 INTEGER, drawn VARCHAR, club_1 VARCHAR, lost VARCHAR, seasons VARCHAR)
SELECT COUNT(director) FROM table_18123274_1 WHERE original_title = "Huelepega: Ley de la Calle"
Name the number of director for huelepega: ley de la calle
CREATE TABLE table_18123274_1 (director VARCHAR, original_title VARCHAR)
SELECT year FROM table_name_26 WHERE movie_title = "jamboree"
What year was Jamboree made?
CREATE TABLE table_name_26 ( year VARCHAR, movie_title VARCHAR )
SELECT COUNT(rank) FROM table_name_88 WHERE goals = "562-506" AND seasons < 13
What is the rank number with 562-506 goals before season 13?
CREATE TABLE table_name_88 (rank VARCHAR, goals VARCHAR, seasons VARCHAR)
SELECT all_neutral FROM table_18135572_2 WHERE b10__percentage = ".833"
What was the win/loss record for All Neutral games for the team whose Big 10 winning percentage was .833?
CREATE TABLE table_18135572_2 (all_neutral VARCHAR, b10__percentage VARCHAR)
SELECT nation FROM table_name_28 WHERE gold > 0 AND total > 2 AND bronze = 0 AND silver > 1
What Nation has a Gold entry that is greater than 0, a Total that is greater than 2, a Silver entry that is larger than 1, and 0 Bronze?
CREATE TABLE table_name_28 ( nation VARCHAR, silver VARCHAR, bronze VARCHAR, gold VARCHAR, total VARCHAR )
SELECT COUNT(seasons) FROM table_name_77 WHERE goals = "261-338" AND lost > 111
How many seasons have goals of 261-338 with more than 111 losses?
CREATE TABLE table_name_77 (seasons VARCHAR, goals VARCHAR, lost VARCHAR)
SELECT category FROM table_18138132_2 WHERE version = "1.0" AND title = "Chord Finder"
What is the category when the version is 1.0 and the title is Chord finder?
CREATE TABLE table_18138132_2 (category VARCHAR, version VARCHAR, title VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2138" AND procedures.icd9_code = "5781"
report the number of patients with procedure icd9 code 5781 who were admitted in hospital before 2138.
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, ...
SELECT MAX(seasons) FROM table_name_28 WHERE drawn = 57 AND rank = 20 AND spells > 1
What is the highest season number with 57 draws, rank 20, and more than 1 spell?
CREATE TABLE table_name_28 (seasons INTEGER, spells VARCHAR, drawn VARCHAR, rank VARCHAR)
SELECT release_date FROM table_18138132_2 WHERE title = "Metronome"
What was the release date for metronome?
CREATE TABLE table_18138132_2 (release_date VARCHAR, title VARCHAR)
SELECT "Sprint Classification" FROM table_73727 WHERE "Mountains Classification" = 'Ryan Anderson' AND "General Classification" = 'Michael Rogers'
When Ryan Anderson won the mountains classification, and Michael Rogers won the general classification, who won the sprint classification?
CREATE TABLE table_73727 ( "Stage" real, "Winner" text, "General Classification" text, "Youth Classification" text, "Mountains Classification" text, "Sprint Classification" text, "Most Courageous" text, "Team Classification" text )
SELECT result FROM table_name_51 WHERE venue = "doha"
What was the results of the game at Doha?
CREATE TABLE table_name_51 (result VARCHAR, venue VARCHAR)
SELECT developer FROM table_18138132_2 WHERE title = "Windows Live Messenger"
Who is the developer for Windows live messenger?
CREATE TABLE table_18138132_2 (developer VARCHAR, title VARCHAR)
SELECT COUNT(DISTINCT "film") FROM table_203_180 WHERE "weekend gross (millions)" > 5
how many films grossed over five million in their first week ?
CREATE TABLE table_203_180 ( id number, "#" number, "weekend end date" text, "film" text, "weekend gross (millions)" text, "notes" text )
SELECT score FROM table_name_42 WHERE competition = "1998 fifa world cup qualification"
What was the score during the competition of 1998 fifa world cup qualification?
CREATE TABLE table_name_42 (score VARCHAR, competition VARCHAR)
SELECT function FROM table_18138132_2 WHERE version = "1.4" AND title = "Windows Live Messenger"
What is the function of 1.4 version of Windows live messenger?
CREATE TABLE table_18138132_2 (function VARCHAR, version VARCHAR, title VARCHAR)
SELECT MIN(year) FROM table_name_56 WHERE artist = "every little thing" AND rank < 10
What was the first year that the artist of every little thing ranked lower than 10?
CREATE TABLE table_name_56 ( year INTEGER, artist VARCHAR, rank VARCHAR )
SELECT competition FROM table_name_45 WHERE date = "october 1, 1994"
What is the competition that took place on October 1, 1994?
CREATE TABLE table_name_45 (competition VARCHAR, date VARCHAR)
SELECT function FROM table_18138132_2 WHERE release_date = "2011-06-23"
What functions were released on 2011-06-23?
CREATE TABLE table_18138132_2 (function VARCHAR, release_date VARCHAR)
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissi...
what were the top four most common procedures that were followed within 2 months for patients who were diagnosed with oth inf vena cava thromb since 2104?
CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dis...
SELECT competition FROM table_name_58 WHERE result = "2-2"
What is the competition that had a 2-2 result?
CREATE TABLE table_name_58 (competition VARCHAR, result VARCHAR)
SELECT cospar_id FROM table_18161217_2 WHERE estimated_operational_life = "2 months" AND satellite = "Kosmos 2397"
What is the cospar ID of the Kosmos 2397 satellite, which has an operational life of 2 months?
CREATE TABLE table_18161217_2 (cospar_id VARCHAR, estimated_operational_life VARCHAR, satellite VARCHAR)
SELECT directed_by FROM table_27716091_1 WHERE production_code = 227412
who put on the show where the numbers were 227412
CREATE TABLE table_27716091_1 ( directed_by VARCHAR, production_code VARCHAR )
SELECT venue FROM table_name_46 WHERE result = "4-2"
Where did the competition take place that had a 4-2 result?
CREATE TABLE table_name_46 (venue VARCHAR, result VARCHAR)
SELECT launch_date FROM table_18161217_2 WHERE cospar_id = "2008-033A"
What was the launch date the satellite with cospar ID is 2008-033A?
CREATE TABLE table_18161217_2 (launch_date VARCHAR, cospar_id VARCHAR)
SELECT MAX(attendance) FROM table_name_75 WHERE date = "may 21"
What was the attendance on may 21?
CREATE TABLE table_name_75 ( attendance INTEGER, date VARCHAR )
SELECT venue FROM table_name_7 WHERE result = "5-1"
Where was the competition that took place that had a 5-1 result?
CREATE TABLE table_name_7 (venue VARCHAR, result VARCHAR)
SELECT cospar_id FROM table_18161217_2 WHERE satellite = "Kosmos 2379"
What it the international designation for the kosmos 2379 satellite?
CREATE TABLE table_18161217_2 (cospar_id VARCHAR, satellite VARCHAR)
SELECT "Democratic ticket" FROM table_6926 WHERE "Office" = 'u.s. senator'
The person who is on the Democratic ticket for the position of Office of U.S. Senator was who?
CREATE TABLE table_6926 ( "Office" text, "Democratic ticket" text, "Republican ticket" text, "Conservative ticket" text, "Liberal ticket" text, "Free Libertarian ticket" text, "Socialist Labor ticket" text )
SELECT MAX(goals) FROM table_name_5 WHERE tries < 1 AND position = "fullback"
Tell me the highest goals with tries less than 1 and fullback position
CREATE TABLE table_name_5 (goals INTEGER, tries VARCHAR, position VARCHAR)
SELECT estimated_end_date[_clarification_needed_] FROM table_18161217_2 WHERE cospar_id = "2001-037A"
What is the estimated end date for the 2001-037a international designated satellite?
CREATE TABLE table_18161217_2 (estimated_end_date VARCHAR, _clarification_needed_ VARCHAR, cospar_id VARCHAR)
SELECT "Won" FROM table_19117 WHERE "Points for" = '643'
what's the won with points for being 643
CREATE TABLE table_19117 ( "Club" text, "Played" text, "Won" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Tries for" text, "Tries against" text, "Try bonus" text, "Losing bonus" text, "Points" text )
SELECT MIN(tries) FROM table_name_40 WHERE goals > 0 AND position = "centre" AND points < 54
Tell me the lowest tries for goals more than 0 with centre position and points less than 54
CREATE TABLE table_name_40 (tries INTEGER, points VARCHAR, goals VARCHAR, position VARCHAR)
SELECT city FROM table_18159601_1 WHERE charter_date = "December 4, 2011"
in which city was charter date december 4, 2011
CREATE TABLE table_18159601_1 (city VARCHAR, charter_date VARCHAR)
SELECT laps FROM table_name_89 WHERE grid < 11 AND driver = "david coulthard"
How many Laps Did Driver David Coulthard have on a Grid smaller than 11?
CREATE TABLE table_name_89 ( laps VARCHAR, grid VARCHAR, driver VARCHAR )
SELECT player FROM table_name_18 WHERE tries > 1 AND points < 54 AND position = "hooker"
I want to know the player with tries more than 1 and position of hooker with points less than 54
CREATE TABLE table_name_18 (player VARCHAR, position VARCHAR, tries VARCHAR, points VARCHAR)
SELECT COUNT(greek_designation) FROM table_18159601_1 WHERE city = "Tampa"
how mnay greek designation in tampa
CREATE TABLE table_18159601_1 (greek_designation VARCHAR, city VARCHAR)
SELECT AVG(races) FROM table_name_61 WHERE points = "9" AND poles < 0
what is the average races when points is 9 and poles is less than 0?
CREATE TABLE table_name_61 ( races INTEGER, points VARCHAR, poles VARCHAR )
SELECT player FROM table_name_56 WHERE points > 36 AND goals > 0 AND tries = 12
Tell me the player with points larger than 36 and goals more than 0 with tries of 12
CREATE TABLE table_name_56 (player VARCHAR, tries VARCHAR, points VARCHAR, goals VARCHAR)
SELECT status FROM table_18159601_1 WHERE city = "Vestal"
what is the status in vestal
CREATE TABLE table_18159601_1 (status VARCHAR, city VARCHAR)
SELECT "Report" FROM table_37520 WHERE "Ground" = 'mcg' AND "Home team score" = '6.5 (41)'
What is the report for the team with a home ground of MCG and a home team score of 6.5 (41)?
CREATE TABLE table_37520 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Ground" text, "Crowd" real, "Date" text, "Report" text )
SELECT tournament FROM table_name_58 WHERE 2010 = "olympic games"
What Tournament was the 2010 Olympic Games?
CREATE TABLE table_name_58 (tournament VARCHAR)
SELECT collegiate_institution FROM table_18159601_1 WHERE city = "Queens"
what is the collegiate institution in queens
CREATE TABLE table_18159601_1 (collegiate_institution VARCHAR, city VARCHAR)
SELECT company FROM table_name_45 WHERE country = "greece" AND author = "aeschylus"
What is the company from Greece with author Aeschylus?
CREATE TABLE table_name_45 ( company VARCHAR, country VARCHAR, author VARCHAR )
SELECT width FROM table_name_3 WHERE entered_service = 2010
Which width had an entered service year of 2010?
CREATE TABLE table_name_3 (width VARCHAR, entered_service VARCHAR)
SELECT original_title FROM table_18162883_1 WHERE film_title_used_in_nomination = "Run for Money"
What was the original title of Run for Money?
CREATE TABLE table_18162883_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT winnings FROM table_name_65 WHERE make = "chevrolet" AND car__number > 29 AND points = 102
What were the winnings for the Chevrolet with a number larger than 29 and scored 102 points?
CREATE TABLE table_name_65 ( winnings VARCHAR, points VARCHAR, make VARCHAR, car__number VARCHAR )
SELECT MAX(built) FROM table_name_44 WHERE entered_service > 2003 AND knots < 27
What is the most recent built year when the year of entering service was more recent than 2003, and the knots is less than 27?
CREATE TABLE table_name_44 (built INTEGER, entered_service VARCHAR, knots VARCHAR)
SELECT tuesday FROM table_18173916_6 WHERE thursday = "196 Buried"
What was the Tuesday episode if theThursday episode was 196 Buried?
CREATE TABLE table_18173916_6 (tuesday VARCHAR, thursday VARCHAR)
SELECT EMPLOYEE_ID, COMMISSION_PCT FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%'
For all employees who have the letters D or S in their first name, what is the relationship between employee_id and commission_pct ?
CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date...
SELECT COUNT(knots) FROM table_name_11 WHERE ship = "ms moby vincent" AND passengers < 1.6
How many knots did the Ms Moby Vincent have when passengers was less than 1.6?
CREATE TABLE table_name_11 (knots VARCHAR, ship VARCHAR, passengers VARCHAR)
SELECT COUNT(friday) FROM table_18173916_6 WHERE wednesday = "210 Kirby's Epic Yarn"
How many episodes were shown on Friday if 210 Kirby's Epic Yarn was shown on Wednesday?
CREATE TABLE table_18173916_6 (friday VARCHAR, wednesday VARCHAR)
SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.name = 'Matter of Time' INTERSECT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.name = 'A Pu...
Find the name of the scientist who worked on both a project named 'Matter of Time' and a project named 'A Puzzling Parallax'.
CREATE TABLE projects ( code VARCHAR, name VARCHAR ) CREATE TABLE scientists ( name VARCHAR, SSN VARCHAR ) CREATE TABLE assignedto ( project VARCHAR, scientist VARCHAR )
SELECT venue FROM table_name_51 WHERE away_team = "richmond"
Where did Richmond play as the away team?
CREATE TABLE table_name_51 (venue VARCHAR, away_team VARCHAR)
SELECT COUNT(friday) FROM table_18173916_6 WHERE wednesday = "190 Boardwalk Empire"
How many episodes were shown on Friday if 190 Boardwalk Empire was shown on Wednesday?
CREATE TABLE table_18173916_6 (friday VARCHAR, wednesday 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 = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'A...
please give me direct morning flights from PITTSBURGH to ATLANTA
CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text ) CREATE TABLE flight ( aircraft_code_sequence text, airline_code varchar, airline_fli...
SELECT attendance FROM table_name_21 WHERE opponent = "phillies 1:15 pm" AND date = "april 9"
When the phillies 1:15 pm played on April 9, what was the attendance?
CREATE TABLE table_name_21 (attendance VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT episodes FROM table_18173916_6 WHERE tuesday = "224 Assassin's Creed: Brotherhood Circus Training"
What were the dates when 224 Assassin's Creed: Brotherhood Circus Training was shown on Tuesday?
CREATE TABLE table_18173916_6 (episodes VARCHAR, tuesday VARCHAR)
SELECT round FROM table_name_32 WHERE method = "decision (unanimous)" AND event = "ufc 145"
Which Round has a Method of decision (unanimous), and an Event of ufc 145?
CREATE TABLE table_name_32 ( round VARCHAR, method VARCHAR, event VARCHAR )
SELECT date FROM table_name_42 WHERE score = "5-1"
When was there a score of 5-1?
CREATE TABLE table_name_42 (date VARCHAR, score VARCHAR)
SELECT average_attendance_home FROM table_1816947_2 WHERE division___section = "Superettan" AND average_attendance_away = "1.889"
When the average away attendance is 1.889 in the Superettan, what's the average home attendance?
CREATE TABLE table_1816947_2 (average_attendance_home VARCHAR, division___section VARCHAR, average_attendance_away VARCHAR)