answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT vote FROM table_16976547_2 WHERE eliminated = "Gigit"
Name the vote for gigit
CREATE TABLE table_16976547_2 (vote VARCHAR, eliminated VARCHAR)
SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19412) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents...
exactly how much does patient 19412's arterial bp mean differ last measured on the last icu visit compared to the first value measured on the last icu visit?
CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE ...
SELECT award FROM table_name_57 WHERE category = "outstanding revival of a musical"
Which Award is the winner for Outstanding Revival of a Musical given?
CREATE TABLE table_name_57 (award VARCHAR, category VARCHAR)
SELECT finish FROM table_16976547_2 WHERE eliminated = "Patani"
Name the finish for patani
CREATE TABLE table_16976547_2 (finish VARCHAR, eliminated 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 = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHIN...
i would like to fly UA from WASHINGTON to DENVER colorado
CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) 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...
SELECT home_team AS score FROM table_name_20 WHERE away_team = "south melbourne"
Who is the home team in the game where South Melbourne was the away team?
CREATE TABLE table_name_20 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(immunity) FROM table_16976547_2 WHERE cycle_no = "13"
Name the total number of immunity for cycle number of 13
CREATE TABLE table_16976547_2 (immunity VARCHAR, cycle_no VARCHAR)
WITH Orders AS (SELECT * FROM (VALUES (CAST('2012-01-01 06:10:01' AS DATETIME), 2), ('2012-01-01 08:10:01', 2), ('2012-01-01 10:10:01', 4), ('2012-01-02 08:00:07', 4), ('2012-01-02 10:00:07', 4)) AS Orders(DateReceived, Total)) SELECT CAST(TIME_TO_STR(DATE('datereceived', '-12 hour'), '%Y/%m/%d') AS TEXT(30)) AS "dt_da...
Group by DateTime cut-off point.
CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId n...
SELECT result FROM table_name_90 WHERE week > 10 AND opponent = "new england patriots"
I want the result for week larger than 10 for opponent of new england patriots
CREATE TABLE table_name_90 (result VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT new_returning_same_network FROM table_169766_13 WHERE previous_network = "NBC"
For the NBC network, what was the new/returning/same network status?
CREATE TABLE table_169766_13 (new_returning_same_network VARCHAR, previous_network VARCHAR)
SELECT time FROM table_name_42 WHERE rank > 3 AND rider = "brian finch"
What is the time value for the rider Brian Finch and a rank greater than 3?
CREATE TABLE table_name_42 ( time VARCHAR, rank VARCHAR, rider VARCHAR )
SELECT game_site FROM table_name_17 WHERE week = 11
I want the game site for week of 11
CREATE TABLE table_name_17 (game_site VARCHAR, week VARCHAR)
SELECT show FROM table_169766_13 WHERE new_returning_same_network = "Syndication"
Which show was sent to syndication for its new/returning/same network.
CREATE TABLE table_169766_13 (show VARCHAR, new_returning_same_network VARCHAR)
SELECT home_team AS score FROM table_name_7 WHERE venue = "kardinia park"
What was the home team's score at kardinia park?
CREATE TABLE table_name_7 ( home_team VARCHAR, venue VARCHAR )
SELECT AVG(laps) FROM table_name_6 WHERE constructor = "arrows" AND driver = "mika salo" AND grid > 13
What is the average number of laps for mika salo's arrows car with a grid over 13?
CREATE TABLE table_name_6 (laps INTEGER, grid VARCHAR, constructor VARCHAR, driver VARCHAR)
SELECT new_returning_same_network FROM table_169766_13 WHERE show = "This Week in Baseball"
What is the new/returning/same network name for This Week in Baseball?
CREATE TABLE table_169766_13 (new_returning_same_network VARCHAR, show VARCHAR)
SELECT "Result" FROM table_58087 WHERE "Week" = '16'
What was the result of week 16?
CREATE TABLE table_58087 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real )
SELECT driver FROM table_name_38 WHERE grid = 7
Who drove the car with a grid of 7?
CREATE TABLE table_name_38 (driver VARCHAR, grid VARCHAR)
SELECT show FROM table_169766_13 WHERE previous_network = "The Family Channel"
Which show as previously on The Family Channel?
CREATE TABLE table_169766_13 (show VARCHAR, previous_network VARCHAR)
SELECT Rank, COUNT(*) FROM captain WHERE age < 50 GROUP BY Rank
How many captains with younger than 50 are in each rank.
CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text ) CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text )
SELECT report FROM table_name_72 WHERE date = "9 march"
Which Report is Dated 9 March?
CREATE TABLE table_name_72 (report VARCHAR, date VARCHAR)
SELECT retitled_as_same FROM table_169766_13 WHERE last_aired = 1958
Did the name change for the program last aired in 1958?
CREATE TABLE table_169766_13 (retitled_as_same VARCHAR, last_aired VARCHAR)
SELECT COUNT("Round") FROM table_67195 WHERE "Name" = 'brannon condren' AND "Overall" > '131'
How many times is brannon condren with and overall more than 131 drafted?
CREATE TABLE table_67195 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text )
SELECT COUNT(attendance) FROM table_name_26 WHERE opponent = "hamilton academical"
When Hamilton Academical is the Opponent, what is the total Attendance?
CREATE TABLE table_name_26 (attendance VARCHAR, opponent VARCHAR)
SELECT rating FROM table_16993379_1 WHERE rank__overall_ = "190"
What was the rating of the episode with an overall ranking of 190?
CREATE TABLE table_16993379_1 (rating VARCHAR, rank__overall_ VARCHAR)
SELECT manufacturer FROM table_name_1 WHERE rider = "colin edwards"
Who was the Manufacturer for the Rider Colin Edwards?
CREATE TABLE table_name_1 ( manufacturer VARCHAR, rider VARCHAR )
SELECT attendance FROM table_name_57 WHERE loss = "volquez (1–4)"
How many in attendance with a loss of volquez (1–4)?
CREATE TABLE table_name_57 (attendance VARCHAR, loss VARCHAR)
SELECT COUNT(share) FROM table_16993379_1 WHERE viewers__millions_ = "3.11"
How many were the shares when the viewers reached 3.11 million?
CREATE TABLE table_16993379_1 (share VARCHAR, viewers__millions_ VARCHAR)
SELECT MIN(block) FROM table_name_79 WHERE director = "graeme harper"
What is the lowest block for director Graeme Harper?
CREATE TABLE table_name_79 ( block INTEGER, director VARCHAR )
SELECT record FROM table_name_15 WHERE score = "9–6"
What record has a Score of 9–6?
CREATE TABLE table_name_15 (record VARCHAR, score VARCHAR)
SELECT saka_era FROM table_169955_1 WHERE in_malayalam = "മിഥുനം"
Name the saka era for malayalam മിഥുനം
CREATE TABLE table_169955_1 (saka_era VARCHAR, in_malayalam VARCHAR)
SELECT T1.color FROM grapes AS T1 JOIN wine AS T2 ON T1.grape = T2.grape GROUP BY T2.grape ORDER BY AVG(price) DESC LIMIT 1
What is the color of the grape whose wine products has the highest average price?
CREATE TABLE grapes ( id number, grape text, color text ) CREATE TABLE wine ( no number, grape text, winery text, appelation text, state text, name text, year number, price number, score number, cases number, drink text ) CREATE TABLE appellations ( no numbe...
SELECT AVG(attendance) FROM table_name_23 WHERE date = "september 16"
What is the average number in attendance on September 16?
CREATE TABLE table_name_23 (attendance INTEGER, date VARCHAR)
SELECT months_in_malayalam_era FROM table_169955_1 WHERE in_malayalam = "കുംഭം"
Name the months in the malayalam era for കുംഭം
CREATE TABLE table_169955_1 (months_in_malayalam_era VARCHAR, in_malayalam VARCHAR)
SELECT capital FROM table_name_1 WHERE voivodeship_separate_city = "białostockie"
what is the capital with the Voivodeship Separate city of bia ostockie?
CREATE TABLE table_name_1 ( capital VARCHAR, voivodeship_separate_city VARCHAR )
SELECT SUM(attendance) FROM table_name_49 WHERE date = "september 8"
What is the sum of people in attendance on September 8?
CREATE TABLE table_name_49 (attendance INTEGER, date VARCHAR)
SELECT sign_of_zodiac FROM table_169955_1 WHERE tamil_calendar = "Chithirai"
Name the sign of zodiac for chithirai
CREATE TABLE table_169955_1 (sign_of_zodiac VARCHAR, tamil_calendar VARCHAR)
SELECT Time, ID FROM swimmer ORDER BY Time
Draw a bar chart about the distribution of Time and ID , rank by the bars from low to high.
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 swimmer ( ID int, name text, Nationality text, meter_100 real, meter_200 text...
SELECT cws_best_finish FROM table_name_25 WHERE head_coach = "jim morris"
What was Head Coach Jim Morris's best finish?
CREATE TABLE table_name_25 (cws_best_finish VARCHAR, head_coach VARCHAR)
SELECT saka_era FROM table_169955_1 WHERE sign_of_zodiac = "Pisces"
Name the saka era for sign of zodiac being pisces
CREATE TABLE table_169955_1 (saka_era VARCHAR, sign_of_zodiac VARCHAR)
SELECT MAX(round) FROM table_name_17 WHERE position = "qb" AND overall > 6
Which Round has a Position of qb, and an Overall larger than 6?
CREATE TABLE table_name_17 ( round INTEGER, position VARCHAR, overall VARCHAR )
SELECT record FROM table_name_45 WHERE visitor = "montreal canadiens"
What is the record when the visiting team was the montreal canadiens?
CREATE TABLE table_name_45 (record VARCHAR, visitor VARCHAR)
SELECT COUNT(gregorian_calendar) FROM table_169955_1 WHERE sign_of_zodiac = "Gemini"
Name the number of gregorian calenda rof gemini
CREATE TABLE table_169955_1 (gregorian_calendar VARCHAR, sign_of_zodiac VARCHAR)
SELECT fielding_team FROM table_11303072_5 WHERE runs = "155"
What is the fielding team with 155 runs?
CREATE TABLE table_11303072_5 ( fielding_team VARCHAR, runs VARCHAR )
SELECT nation FROM table_name_83 WHERE points = 187.84
What nation has 187.84 points?
CREATE TABLE table_name_83 (nation VARCHAR, points VARCHAR)
SELECT high_rebounds FROM table_17001658_10 WHERE high_assists = "Raymond Felton (12)"
For High Assists of Raymond Felton (12), who were the High rebounds?
CREATE TABLE table_17001658_10 (high_rebounds VARCHAR, high_assists VARCHAR)
SELECT SUM(loss) FROM table_name_72 WHERE name = "bullock, chris" AND long < 36
Which Loss has a Name of bullock, chris, and a Long smaller than 36?
CREATE TABLE table_name_72 ( loss INTEGER, name VARCHAR, long VARCHAR )
SELECT MIN(points) FROM table_name_90 WHERE places = "81"
What is the low point total for teams with 81 places?
CREATE TABLE table_name_90 (points INTEGER, places VARCHAR)
SELECT date FROM table_17001658_10 WHERE team = "Philadelphia"
On what date was the team Philadelphia?
CREATE TABLE table_17001658_10 (date VARCHAR, team VARCHAR)
SELECT "Current singles ranking" FROM table_16036 WHERE "Player" = 'Mantas Bugailiškis'
What is the Current singles ranking for the player named Mantas Bugaili kis?
CREATE TABLE table_16036 ( "Player" text, "Current singles ranking" text, "Current doubles ranking" text, "First year played" real, "Ties played" real, "Total W\u2013L" text, "Singles W\u2013L" text, "Doubles W\u2013L" text )
SELECT station_number FROM table_name_40 WHERE location = "dogsthorpe"
What is the station number of the station at Dogsthorpe?
CREATE TABLE table_name_40 (station_number VARCHAR, location VARCHAR)
SELECT high_rebounds FROM table_17001658_10 WHERE high_assists = "D. J. Augustin (8)"
Who was the high rebound for the high assists of d. j. augustin (8)?
CREATE TABLE table_17001658_10 (high_rebounds VARCHAR, high_assists VARCHAR)
SELECT "Time/Retired" FROM table_77766 WHERE "Grid" = '18'
What time/retired for grid 18?
CREATE TABLE table_77766 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT type FROM table_name_92 WHERE appliances = "1 wrl" AND location = "linton"
What is the type of the station with a 1 wrl appliance in Linton?
CREATE TABLE table_name_92 (type VARCHAR, appliances VARCHAR, location VARCHAR)
SELECT record FROM table_17001658_10 WHERE high_rebounds = "Gerald Wallace (14)"
What was the final score of the game with gerald wallace (14) as the High Rebound?
CREATE TABLE table_17001658_10 (record VARCHAR, high_rebounds VARCHAR)
SELECT facid FROM faculty EXCEPT SELECT facid FROM faculty_participates_in
Show the ids of the faculty who don't participate in any activity.
CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CREATE TABLE faculty_participates_in ( facid number, actid number ) CREATE TABLE activity ( actid number, activity_name text ) CREATE TABLE...
SELECT appliances FROM table_name_69 WHERE location = "st neots"
What is the appliance at the station in St Neots?
CREATE TABLE table_name_69 (appliances VARCHAR, location VARCHAR)
SELECT score FROM table_17001658_5 WHERE game = 15
What was the final score in game 15?
CREATE TABLE table_17001658_5 (score VARCHAR, game VARCHAR)
SELECT entrant FROM table_name_20 WHERE chassis = "march cg891"
Which entrant had a chassis of March CG891?
CREATE TABLE table_name_20 ( entrant VARCHAR, chassis VARCHAR )
SELECT registrations FROM table_name_67 WHERE district = "cambridge"
What is the registration of the station at Cambridge?
CREATE TABLE table_name_67 (registrations VARCHAR, district VARCHAR)
SELECT high_assists FROM table_17001658_5 WHERE team = "Miami"
Who had the most assists and how many did they have in the game against Miami?
CREATE TABLE table_17001658_5 (high_assists VARCHAR, team VARCHAR)
SELECT "Record" FROM table_34601 WHERE "February" = '23'
What is the team's record on februrary 23?
CREATE TABLE table_34601 ( "Game" real, "February" real, "Opponent" text, "Score" text, "Record" text )
SELECT location FROM table_name_85 WHERE district = "huntingdonshire" AND station_number = "c17"
What is the location of the station at Huntingdonshire with a station number of c17?
CREATE TABLE table_name_85 (location VARCHAR, district VARCHAR, station_number VARCHAR)
SELECT location_attendance FROM table_17001658_8 WHERE game = 55
Name the location attendance for game 55
CREATE TABLE table_17001658_8 (location_attendance VARCHAR, game VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "REHAB/DISTINCT PART HOSP" AND demographic.diagnosis = "SYNCOPE;TELEMETRY"
how many patients whose discharge location is rehab/distinct part hosp and primary disease is syncope;telemetry?
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 registrations FROM table_name_27 WHERE type = "retained" AND station_number = "c03"
What is the registration of the station with a retained type and a station number of c03?
CREATE TABLE table_name_27 (registrations VARCHAR, type VARCHAR, station_number VARCHAR)
SELECT high_rebounds FROM table_17001658_7 WHERE game = 46
Who got the game high rebounds in game 46?
CREATE TABLE table_17001658_7 (high_rebounds VARCHAR, game VARCHAR)
SELECT location FROM table_name_94 WHERE tournament = "byron nelson golf classic"
What is the Location of the byron nelson golf classic?
CREATE TABLE table_name_94 ( location VARCHAR, tournament VARCHAR )
SELECT nationality FROM table_name_46 WHERE round > 4
Name the nationality of the player with round more than 4
CREATE TABLE table_name_46 (nationality VARCHAR, round INTEGER)
SELECT COUNT(score) FROM table_17001658_7 WHERE game = 37
How many scores are listed for game 37?
CREATE TABLE table_17001658_7 (score VARCHAR, game VARCHAR)
SELECT original_air_date FROM table_25923164_1 WHERE directed_by = "Gloria Muzio"
What was the original air date of the episode directed by gloria muzio?
CREATE TABLE table_25923164_1 ( original_air_date VARCHAR, directed_by VARCHAR )
SELECT SUM(year) FROM table_name_42 WHERE rank = "14.0 14"
In what Year was the Rank 14.0 14?
CREATE TABLE table_name_42 (year INTEGER, rank VARCHAR)
SELECT date FROM table_17001658_7 WHERE team = "Milwaukee"
What date was the opposing team Milwaukee?
CREATE TABLE table_17001658_7 (date VARCHAR, team VARCHAR)
SELECT "Score" FROM table_60740 WHERE "Date" = 'august 20, 2007'
What was the score in the August 20, 2007 match?
CREATE TABLE table_60740 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text )
SELECT rank FROM table_name_90 WHERE year > 1971 AND floors < 35 AND height_ft__m_ = "19.0 477 (145)"
After 1971, what is the Rank with a Height ft (m) of 19.0 477 (145) and less than 35 Floors?
CREATE TABLE table_name_90 (rank VARCHAR, height_ft__m_ VARCHAR, year VARCHAR, floors VARCHAR)
SELECT pressure_in_hpa__mbar_ FROM table_170097_1 WHERE vacuum_range = "Ultra high vacuum"
What is the pressure in ultra high vacuum?
CREATE TABLE table_170097_1 (pressure_in_hpa__mbar_ VARCHAR, vacuum_range VARCHAR)
SELECT AVG("Year") FROM table_57290 WHERE "Points" = '0' AND "Chassis" = 'toleman tg181'
Which year has a total of 0 points and a chassis of Toleman tg181?
CREATE TABLE table_57290 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real )
SELECT AVG(year) FROM table_name_52 WHERE rank = "12.0 12"
What Year has a Rank of 12.0 12?
CREATE TABLE table_name_52 (year INTEGER, rank VARCHAR)
SELECT COUNT(nightly_rank) FROM table_17004367_3 WHERE episode_number_production_number = "06 1-06"
what is the nightly rank where the episode number production number is 06 1-06?
CREATE TABLE table_17004367_3 (nightly_rank VARCHAR, episode_number_production_number VARCHAR)
SELECT MIN(crude_death_rate__per_1000_) FROM table_name_51 WHERE deaths = "768" AND crude_birth_rate__per_1000_ < 29.7
Which Crude death rate (per 1000) has Deaths of 768, and a Crude birth rate (per 1000) smaller than 29.7?
CREATE TABLE table_name_51 ( crude_death_rate__per_1000_ INTEGER, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR )
SELECT away_team AS score FROM table_name_76 WHERE venue = "vfl park"
What did the away team score at VFL Park?
CREATE TABLE table_name_76 (away_team VARCHAR, venue VARCHAR)
SELECT COUNT(weekly_rank) FROM table_17004367_3 WHERE total = 1980000
what is the number of weekly rank where the total is 1980000?
CREATE TABLE table_17004367_3 (weekly_rank VARCHAR, total VARCHAR)
SELECT broadcast FROM table_26842217_18 WHERE time = "7:00pm" AND home_team = "Mississippi State"
Name the broadcast for 7:00pm and mississippi state
CREATE TABLE table_26842217_18 ( broadcast VARCHAR, time VARCHAR, home_team VARCHAR )
SELECT SUM(crowd) FROM table_name_1 WHERE venue = "lake oval"
How many people watched the game at Lake Oval?
CREATE TABLE table_name_1 (crowd INTEGER, venue VARCHAR)
SELECT high_assists FROM table_17001658_9 WHERE game = 70
Name the high assists for 70 game
CREATE TABLE table_17001658_9 (high_assists VARCHAR, game VARCHAR)
SELECT MAX("Bronze") FROM table_38202 WHERE "Rank" > '9'
What is the highest amount of bronze medals when the rank was larger than 9?
CREATE TABLE table_38202 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT AVG(comp) FROM table_name_3 WHERE player = "gino guidugli" AND rating > 92.2
What was the Comp average, having Gino Guidugli as a player and a rating of more than 92.2?
CREATE TABLE table_name_3 (comp INTEGER, player VARCHAR, rating VARCHAR)
SELECT pe̍h_ōe_jī FROM table_17015_2 WHERE chinese = "前金區"
Name the pe̍h-ōe-jī for 前金區
CREATE TABLE table_17015_2 (pe̍h_ōe_jī VARCHAR, chinese VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "WHITE" AND prescriptions.route = "IVPCA"
give me the number of patients whose ethnicity is white and drug route is ivpca?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) ...
SELECT MAX(att) FROM table_name_9 WHERE yards < 138 AND comp > 0
For the player with yards less than 138, and Comp more than 0, what was the highest Att.?
CREATE TABLE table_name_9 (att INTEGER, yards VARCHAR, comp VARCHAR)
SELECT no FROM table_17015_2 WHERE population__2010_ = 171906
Name the number where population 2010 is 171906
CREATE TABLE table_17015_2 (no VARCHAR, population__2010_ VARCHAR)
SELECT COUNT("Crowd") FROM table_55102 WHERE "Home team score" = '12.14 (86)'
In the game where the home team scored 12.14 (86), what was the total crowd number?
CREATE TABLE table_55102 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT laps FROM table_name_49 WHERE grid = 9
How many laps for grid of 9?
CREATE TABLE table_name_49 (laps VARCHAR, grid VARCHAR)
SELECT tongyong FROM table_17015_2 WHERE chinese = "湖內區"
Name the tongyong for chinese of 湖內區
CREATE TABLE table_17015_2 (tongyong VARCHAR, chinese VARCHAR)
SELECT MAX("GEO ID") FROM table_22462 WHERE "County" = 'Logan'
What is the geo id for Logan county?
CREATE TABLE table_22462 ( "Township" text, "County" text, "Pop. (2010)" real, "Land ( sqmi )" text, "Water (sqmi)" text, "Latitude" text, "Longitude" text, "GEO ID" real, "ANSI code" real )
SELECT MAX(laps) FROM table_name_68 WHERE grid < 6 AND time_retired = "halfshaft"
What is the high lap total for a grid less than 6, and a Time/Retired of halfshaft?
CREATE TABLE table_name_68 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
SELECT COUNT(tongyong) FROM table_17015_2 WHERE hanyu = "Qiaotou"
Name the tongyong for qiaotou
CREATE TABLE table_17015_2 (tongyong VARCHAR, hanyu VARCHAR)
SELECT "Opponent" FROM table_61370 WHERE "Time" > '1040' AND "Aircraft" = 'spad xiii' AND "Number" < '22' AND "Location" = 'dun-sur-meuse'
Who is the opponent with a time higher than 1040, a Spad xiii aircraft in Dun-Sur-Meuse with a lower number than 22?
CREATE TABLE table_61370 ( "Number" real, "Time" real, "Aircraft" text, "Opponent" text, "Location" text )
SELECT set_1 FROM table_name_96 WHERE score = "3–2"
What is the Set 1 with a Score with 3–2?
CREATE TABLE table_name_96 (set_1 VARCHAR, score VARCHAR)
SELECT pixels FROM table_1701371_2 WHERE hardware_colours = 8
How many pixels would be found in a hardware colour of 8?
CREATE TABLE table_1701371_2 (pixels VARCHAR, hardware_colours VARCHAR)