answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT final__bronze_medal_match FROM table_18602462_21 WHERE quarterfinals = "Houdet ( FRA ) W 6-2, 6-1"
When houdet ( fra ) w 6-2, 6-1 is the quarterfinals what is the final/bronze medal match?
CREATE TABLE table_18602462_21 (final__bronze_medal_match VARCHAR, quarterfinals VARCHAR)
SELECT result FROM table_name_81 WHERE date = "september 3, 2000"
Which Result has a Date of september 3, 2000?
CREATE TABLE table_name_81 ( result VARCHAR, date VARCHAR )
SELECT SUM(1978 AS _veteran_membership) FROM table_name_66 WHERE NOT _late_1941 = "macedonia" AND late_1943 < 10 OFFSET 000
What is the 1978 Veteran membership with a late 1941 macedonia and a late 1943 less than 10,000?
CREATE TABLE table_name_66 (late_1943 VARCHAR, _late_1941 VARCHAR)
SELECT round_of_32 FROM table_18602462_21 WHERE round_of_16 = "Did not advance"
When in round of 16 it was did not advance what was it in round of 32?
CREATE TABLE table_18602462_21 (round_of_32 VARCHAR, round_of_16 VARCHAR)
SELECT MAX("# of seats won") FROM table_2159
Name the most # of seats won
CREATE TABLE table_2159 ( "Election" text, "# of candidates nominated" real, "# of seats won" real, "# of total votes" real, "% of popular vote" text, "result" text )
SELECT opponent FROM table_name_3 WHERE season = "2011/12"
Which opponent has a Season of 2011/12?
CREATE TABLE table_name_3 (opponent VARCHAR, season VARCHAR)
SELECT event FROM table_18602462_21 WHERE final__bronze_medal_match = "Scheffers ( NED ) L 3-6, 1-6"
When scheffers ( ned ) l 3-6, 1-6 is the final/ bronze medal match what was the event?
CREATE TABLE table_18602462_21 (event VARCHAR, final__bronze_medal_match VARCHAR)
SELECT "School" FROM table_294 WHERE "Position" = 'Catcher'
What school did the catcher attend?
CREATE TABLE table_294 ( "Player" text, "Position" text, "School" text, "Hometown" text, "MLB Draft" text )
SELECT opponent FROM table_name_7 WHERE season = "2010/11"
Which opponent has a Season of 2010/11?
CREATE TABLE table_name_7 (opponent VARCHAR, season VARCHAR)
SELECT final__bronze_medal_match FROM table_18602462_21 WHERE event = "Mixed Quad Singles"
When mixed quad singles is the event what is the final/bronze medal match?
CREATE TABLE table_18602462_21 (final__bronze_medal_match VARCHAR, event VARCHAR)
SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall' ORDER BY T3.amenity_name
Find the name of amenities Smith Hall dorm have. ordered the results by amenity names.
CREATE TABLE dorm_amenity ( amenity_name VARCHAR, amenid VARCHAR ) CREATE TABLE has_amenity ( dormid VARCHAR, amenid VARCHAR ) CREATE TABLE dorm ( dormid VARCHAR, dorm_name VARCHAR )
SELECT competition FROM table_name_56 WHERE season = "2010/11"
Which competition has a Season of 2010/11?
CREATE TABLE table_name_56 (competition VARCHAR, season VARCHAR)
SELECT quarterfinals FROM table_18602462_21 WHERE athlete = "Bas van Erp"
When bas van erp was the athlete what was the quarterfinals?
CREATE TABLE table_18602462_21 (quarterfinals VARCHAR, athlete VARCHAR)
SELECT AVG(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 51497) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'ptt') AND STRFTIME('%y-%m', labevents.charttime) = '2105-07'
what's patient 51497's average value of ptt in 07/2105?
CREATE TABLE d_items ( row_id number, itemid number, label text, linksto 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, insuranc...
SELECT opponent FROM table_name_20 WHERE result = "–"
What Opponent has a Result of –?
CREATE TABLE table_name_20 (opponent VARCHAR, result VARCHAR)
SELECT semifinals FROM table_18602462_22 WHERE athlete = "Dorrie Timmermans-Van Hall"
What is the semifinal result for Dorrie Timmermans-Van Hall?
CREATE TABLE table_18602462_22 (semifinals VARCHAR, athlete VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.icd9_code = "311"
what is the number of private health insurance patients who have procedure icd9 code 311?
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 season FROM table_name_71 WHERE result = "6–9"
Which season has a Result of 6–9?
CREATE TABLE table_name_71 (season VARCHAR, result VARCHAR)
SELECT round_of_16 FROM table_18602462_22 WHERE athlete = "Jiske Griffioen Esther Vergeer"
What is the round of 16 result for Jiske Griffioen Esther Vergeer?
CREATE TABLE table_18602462_22 (round_of_16 VARCHAR, athlete VARCHAR)
SELECT date FROM table_name_70 WHERE loco_nos = "421-6"
On what date was the number of locomotives 421-6?
CREATE TABLE table_name_70 ( date VARCHAR, loco_nos VARCHAR )
SELECT round FROM table_name_53 WHERE venue = "nicosia" AND opponent = "levski sofia zapad"
Which round has a Venue of nicosia, and a Opponent of levski sofia zapad?
CREATE TABLE table_name_53 (round VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT round_of_16 FROM table_18602462_22 WHERE semifinals = "Vergeer ( NED ) L 0-6, 1-6"
The semifinal score of vergeer ( ned ) l 0-6, 1-6 follows a round of 16 result of what?
CREATE TABLE table_18602462_22 (round_of_16 VARCHAR, semifinals VARCHAR)
SELECT MIN(total) FROM table_name_32 WHERE year_s__won = "1977"
What is the lowest total that has 1977 as the year (s) won?
CREATE TABLE table_name_32 ( total INTEGER, year_s__won VARCHAR )
SELECT result FROM table_name_27 WHERE score = "22-21"
What resulted in a score of 22-21?
CREATE TABLE table_name_27 (result VARCHAR, score VARCHAR)
SELECT COUNT(round_of_32) FROM table_18602462_22 WHERE round_of_16 = "Polidori ( ITA ) W 6-1, 3-6, 6-3"
How many round of 32 results are followed by Polidori ( Ita ) w 6-1, 3-6, 6-3 in the round of 16?
CREATE TABLE table_18602462_22 (round_of_32 VARCHAR, round_of_16 VARCHAR)
SELECT director, stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE director <> "null" ORDER BY stars
For each director, return the director's name together with the value of that rating and ignore movies whose director is NULL Could you plot the result with a bar chart?, and display by the Y in asc.
CREATE TABLE Reviewer ( rID int, name text ) CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date ) CREATE TABLE Movie ( mID int, title text, year int, director text )
SELECT competition FROM table_name_97 WHERE date = "6/7/03"
What competition was held on the date 6/7/03
CREATE TABLE table_name_97 (competition VARCHAR, date VARCHAR)
SELECT MAX(points) FROM table_18607260_6 WHERE team = "Libertad"
Name the maximum points for libertad
CREATE TABLE table_18607260_6 (points INTEGER, team VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "31" AND lab.itemid = "50935"
give me the number of patients whose age is less than 31 and item id is 50935?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id t...
SELECT score FROM table_name_84 WHERE date = "15/6/03"
What was the score for the date of 15/6/03
CREATE TABLE table_name_84 (score VARCHAR, date VARCHAR)
SELECT MIN(wins) FROM table_18607260_6 WHERE losses = 5
Name the least wins for 5 losses
CREATE TABLE table_18607260_6 (wins INTEGER, losses VARCHAR)
SELECT COUNT(erp___power_w) FROM table_name_34 WHERE frequency = "89.3 fm" AND facility_id < 40430
Name the total number of ERP/Power W for frequency of 89.3 fm and facility ID less than 40430
CREATE TABLE table_name_34 ( erp___power_w VARCHAR, frequency VARCHAR, facility_id VARCHAR )
SELECT venue FROM table_name_5 WHERE date = "8/6/03"
What venue is on the date of 8/6/03
CREATE TABLE table_name_5 (venue VARCHAR, date VARCHAR)
SELECT MAX(draws) FROM table_18607260_6
Name the most draws
CREATE TABLE table_18607260_6 (draws INTEGER)
SELECT "Host Team" FROM table_71610 WHERE "Date" = 'october 4'
Who was the host team on October 4?
CREATE TABLE table_71610 ( "Date" text, "Visiting Team" text, "Final Score" text, "Host Team" text, "Stadium" text )
SELECT result FROM table_name_69 WHERE score = "12-22"
What outcome has a score of 12-22?
CREATE TABLE table_name_69 (result VARCHAR, score VARCHAR)
SELECT MIN(played) FROM table_18607260_6
Name the least played
CREATE TABLE table_18607260_6 (played INTEGER)
SELECT MAX(gold) FROM table_name_93 WHERE bronze = 1 AND rank = 5
What is the highest gold when bronze is 1, and rank is 5?
CREATE TABLE table_name_93 ( gold INTEGER, bronze VARCHAR, rank VARCHAR )
SELECT date FROM table_name_14 WHERE venue = "jjb stadium" AND result = "w"
What date is for Venue of jjb stadium, and a Result of w?
CREATE TABLE table_name_14 (date VARCHAR, venue VARCHAR, result VARCHAR)
SELECT geographical_regions FROM table_18618707_1 WHERE contestant = "Cristina Peña Garzon"
When cristina peña garzon is the contestant what is the geographical region?
CREATE TABLE table_18618707_1 (geographical_regions VARCHAR, contestant VARCHAR)
SELECT product_type_code, MIN(product_price) FROM Products GROUP BY product_type_code ORDER BY product_type_code
Give the minimum product price for each product type in a pie chart.
CREATE TABLE Customer_Addresses ( customer_id INTEGER, address_id INTEGER, date_from DATETIME, date_to DATETIME ) CREATE TABLE Product_Suppliers ( product_id INTEGER, supplier_id INTEGER, date_supplied_from DATETIME, date_supplied_to DATETIME, total_amount_purchased VARCHAR(80), ...
SELECT MAX(laps) FROM table_name_71 WHERE driver = "françois cevert"
What is the high lap total for françois cevert?
CREATE TABLE table_name_71 (laps INTEGER, driver VARCHAR)
SELECT geographical_regions FROM table_18618707_1 WHERE height = "1.79"
When 1.79 is the height what is the geographical region?
CREATE TABLE table_18618707_1 (geographical_regions VARCHAR, height VARCHAR)
SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '016-34475' AND DATETIME(patient.hospitaladmittime) <= DATETIME(CURRENT_TIME(), '-4 year') ORDER BY patient.hospitaladmittime LIMIT 1
how did patient 016-34475 get first admission to the hospital until 4 years ago?
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age te...
SELECT constructor FROM table_name_83 WHERE driver = "rolf stommelen"
Who constructed rolf stommelen's car?
CREATE TABLE table_name_83 (constructor VARCHAR, driver VARCHAR)
SELECT COUNT(contestant) FROM table_18618707_1 WHERE height = "1.67"
When 1.67 is the height how many contestants are there?
CREATE TABLE table_18618707_1 (contestant VARCHAR, height VARCHAR)
SELECT "Venue" FROM table_59222 WHERE "Opposing Teams" = 'south africa' AND "Date" = '17/06/2000'
What is Venue, when Opposing Teams is 'South Africa', and when Date is '17/06/2000'?
CREATE TABLE table_59222 ( "Opposing Teams" text, "Against" real, "Date" text, "Venue" text, "Status" text )
SELECT driver FROM table_name_91 WHERE time_retired = "engine" AND grid < 9
Who drive the car that retired due to engine failure and a grid of less than 9?
CREATE TABLE table_name_91 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT contestant FROM table_18618707_1 WHERE height = "1.80" AND geographical_regions = "El Cibao"
When el cibao is the geographical region and the height is 1.80 who is the contestant?
CREATE TABLE table_18618707_1 (contestant VARCHAR, height VARCHAR, geographical_regions VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND prescriptions.drug = "Sucralfate"
provide the number of patients whose ethnicity is hispanic/latino - puerto rican and drug name is sucralfate?
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 date FROM table_name_47 WHERE record = "izod indycar series"
When was the race that set the record for the Izod Indycar Series?
CREATE TABLE table_name_47 (date VARCHAR, record VARCHAR)
SELECT COUNT(height) FROM table_18618707_1 WHERE hometown = "Toronto"
When toronto is the hometown how many height measurements are there?
CREATE TABLE table_18618707_1 (height VARCHAR, hometown VARCHAR)
SELECT MAX("Col (m)") FROM table_22714 WHERE "Island" = 'North Island'
What is the highest value for col(m) at North Island?
CREATE TABLE table_22714 ( "Rank" real, "Peak" text, "Country" text, "Island" text, "Elevation (m)" real, "Prominence (m)" real, "Col (m)" real )
SELECT driver FROM table_name_61 WHERE record = "qualifying" AND time = "24.761"
Which driver set the Qualifying record with a time of 24.761 seconds?
CREATE TABLE table_name_61 (driver VARCHAR, record VARCHAR, time VARCHAR)
SELECT 3 AS rd_place_team FROM table_18618672_2 WHERE year = 1955
What is the 3rd place team for the year of 1955?
CREATE TABLE table_18618672_2 (year VARCHAR)
SELECT demographic.admission_type, diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "62296"
what is admission type and diagnoses icd9 code of subject id 62296?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, ...
SELECT player FROM table_name_52 WHERE position = "guard" AND school_club_team = "byu"
What Utah Jazz guard, played at BYU?
CREATE TABLE table_name_52 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT sanskrit AS gloss FROM table_186462_1 WHERE western_name = "Sagittarius"
When Sagittarius is the wester name what is the sanskrit gloss?
CREATE TABLE table_186462_1 (sanskrit VARCHAR, western_name VARCHAR)
SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) <= 20
Please show the employee last names that serves no more than 20 customers.
CREATE TABLE EMPLOYEE ( EmployeeId VARCHAR ) CREATE TABLE CUSTOMER ( LastName VARCHAR, SupportRepId VARCHAR )
SELECT school_club_team FROM table_name_19 WHERE player = "derek fisher"
What college team did Derek Fisher play for?
CREATE TABLE table_name_19 (school_club_team VARCHAR, player VARCHAR)
SELECT COUNT(western_name) FROM table_186462_1 WHERE sanskrit = "धनुष"
When धनुष is the sankrit how many western names are there?
CREATE TABLE table_186462_1 (western_name VARCHAR, sanskrit VARCHAR)
SELECT COUNT("date") FROM table_203_81 WHERE "date" = 1964
what 's the total number of dates listed for 1964 ?
CREATE TABLE table_203_81 ( id number, "date" text, "constituency" text, "gain" text, "loss" text, "note" text )
SELECT nationality FROM table_name_51 WHERE school_club_team = "utep"
The Utah Jazz Player from UTEP was what nationality?
CREATE TABLE table_name_51 (nationality VARCHAR, school_club_team VARCHAR)
SELECT actor_actress FROM table_18638067_1 WHERE film_title_used_in_nomination = "Mrs. Miniver"
In the film Mrs. Miniver, what is the actresses name?
CREATE TABLE table_18638067_1 (actor_actress VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT "Visitor" FROM table_67247 WHERE "Date" = 'january 24'
Who was the visitor on January 24?
CREATE TABLE table_67247 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text )
SELECT venue FROM table_name_26 WHERE home_team = "richmond"
What is the name of the venue when the home team is Richmond?
CREATE TABLE table_name_26 (venue VARCHAR, home_team VARCHAR)
SELECT year__ceremony_ FROM table_18638067_1 WHERE actor_actress = "Teresa Wright" AND category = "Best Supporting Actress"
What year was Teresa Wright nominated best supporting actress?
CREATE TABLE table_18638067_1 (year__ceremony_ VARCHAR, actor_actress VARCHAR, category VARCHAR)
SELECT "Elevator" FROM table_47747 WHERE "Order and title" = 'cardinal-deacon of s. nicola in carcere tulliano'
Who was the elevator when the Cardinal-Deacon of S. Nicola in Carcere Tulliano was the order and title?
CREATE TABLE table_47747 ( "Elector" text, "Nationality" text, "Order and title" text, "Elevated" text, "Elevator" text )
SELECT home_team AS score FROM table_name_40 WHERE venue = "princes park"
What is the home team score when the venue is Princes Park?
CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR)
SELECT category FROM table_18638067_1 WHERE film_title_used_in_nomination = "Working Girl"
What category was the movie Working Girl nominated?
CREATE TABLE table_18638067_1 (category VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT album FROM table_name_22 WHERE year = 1995
What is the 1995 Album?
CREATE TABLE table_name_22 ( album VARCHAR, year VARCHAR )
SELECT actor FROM table_name_66 WHERE character = "glen cole"
What actor plays glen cole?
CREATE TABLE table_name_66 (actor VARCHAR, character VARCHAR)
SELECT actor_actress FROM table_18638067_1 WHERE film_title_used_in_nomination = "Going My Way" AND category = "Best Supporting Actor"
Who was nominated for best supporting actor in the movie Going My Way?
CREATE TABLE table_18638067_1 (actor_actress VARCHAR, film_title_used_in_nomination VARCHAR, category VARCHAR)
SELECT "Mountain Pass" FROM table_74814 WHERE "Elevation" = '10,001 feet 3048 m'
What Mountain Pass has an Elevation of 10,001 feet 3048 m?
CREATE TABLE table_74814 ( "Rank" real, "Mountain Pass" text, "Elevation" text, "Surface" text, "Route" real )
SELECT AVG(final_episode) AS Count FROM table_name_99 WHERE character = "maxine valera"
What is the average number for a final episode featuring maxine valera?
CREATE TABLE table_name_99 (final_episode INTEGER, character VARCHAR)
SELECT series__number FROM table_18646432_1 WHERE original_air_date = "November 11, 1996"
Name the series number that aired on november 11, 1996
CREATE TABLE table_18646432_1 (series__number VARCHAR, original_air_date VARCHAR)
SELECT "2011" FROM table_6998 WHERE "2008" = '0.3' AND "Member State" = 'european union'
What is the 2011 value with a 2008 value of 0.3 and is a member state of the European Union?
CREATE TABLE table_6998 ( "Member State" text, "2005" real, "2006" real, "2007" real, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text )
SELECT SUM(laps) FROM table_name_45 WHERE time_retired = "2:54:23.8"
How many laps were driven in 2:54:23.8?
CREATE TABLE table_name_45 (laps INTEGER, time_retired VARCHAR)
SELECT written_by FROM table_18646432_4 WHERE original_air_date = "September 29, 1999"
Who wrote the episode originally aired on September 29, 1999?
CREATE TABLE table_18646432_4 (written_by VARCHAR, original_air_date VARCHAR)
SELECT AVG("Average") FROM table_49425 WHERE "Wickets" > '19' AND "Matches" < '16'
What is the average of someone with more than 19 wickets and less than 16 matches?
CREATE TABLE table_49425 ( "Player" text, "Team" text, "Matches" real, "Overs" real, "Wickets" real, "Economy Rate" real, "Average" real, "Strike Rate" real, "Best Bowling" text )
SELECT constructor FROM table_name_43 WHERE laps < 100 AND time_retired = "+10 laps"
Which constructor has laps less than 100 and a time/retired +10 laps?
CREATE TABLE table_name_43 (constructor VARCHAR, laps VARCHAR, time_retired 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 "Losing BP" FROM table_70818 WHERE "Played" = '22' AND "Try BP" = '9'
Name the Losing BP with 22 played and 9 Try BP.
CREATE TABLE table_70818 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Try BP" text, "Losing BP" text )
SELECT MAX(laps) FROM table_name_95 WHERE grid = 8
What are the highest number of laps for grid 8?
CREATE TABLE table_name_95 (laps INTEGER, grid VARCHAR)
SELECT horizontal_bar FROM table_18662026_1 WHERE rings = "58.975"
If the rings is 58.975, what is the number for the horizontal bar?
CREATE TABLE table_18662026_1 (horizontal_bar VARCHAR, rings VARCHAR)
SELECT MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "DIVORCED" AND demographic.diagnosis = "ANGIOEDEMA"
Specify the minimum age of divorced patients who had angioedema
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 MAX(grid) FROM table_name_11 WHERE time_retired = "+0.3"
Which grid is the highest and has a time/retired of +0.3?
CREATE TABLE table_name_11 (grid INTEGER, time_retired VARCHAR)
SELECT COUNT(position) FROM table_18662026_1 WHERE country = "United States"
How many positions was the United States in?
CREATE TABLE table_18662026_1 (position VARCHAR, country VARCHAR)
SELECT MIN(earnings__) AS $__ FROM table_name_38 WHERE rank < 2
Who has the lowest earnings that has a rank smaller than 2?
CREATE TABLE table_name_38 ( earnings__ INTEGER, rank INTEGER )
SELECT driver FROM table_name_61 WHERE constructor = "maserati" AND laps > 23 AND grid > 7
Which driver for Maserati has more laps than 23 and a grid greater than 7?
CREATE TABLE table_name_61 (driver VARCHAR, grid VARCHAR, constructor VARCHAR, laps VARCHAR)
SELECT parallel_bars FROM table_18662026_1 WHERE rings = "60.500"
If the rings are 60.500, what is the parallel bars number?
CREATE TABLE table_18662026_1 (parallel_bars VARCHAR, rings VARCHAR)
SELECT 'A' + CAST(AnswerCount AS TEXT(3)) + 'C' + CAST(CommentCount AS TEXT(3)) FROM Posts WHERE Id = 2913
number of answers and comments. This is a hack to answer this question: http://codegolf.stackexchange.com/questions/20277/number-of-answers-and-comments
CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text ...
SELECT points_classification FROM table_name_7 WHERE general_classification = "bernard hinault" AND trofeo_fast_team = "bianchi" AND winner = "urs freuler" AND stage = "4"
Which points classification shares a general classification of Bernard Hinault, a Trofeo Fast Tem of Bianchi, was won by Urs Freuler, and was stage 4?
CREATE TABLE table_name_7 (points_classification VARCHAR, stage VARCHAR, winner VARCHAR, general_classification VARCHAR, trofeo_fast_team VARCHAR)
SELECT COUNT(vault) FROM table_18662026_1 WHERE rings = "60.000"
If the rings number is 60.000, what is the number for the vault?
CREATE TABLE table_18662026_1 (vault VARCHAR, rings VARCHAR)
SELECT DISTINCT flight.flight_id FROM date_day, days, flight WHERE date_day.day_number = 26 AND date_day.month_number = 9 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code
show me flights on 9 26 please
CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE aircraft ( aircraft_code varchar, aircraft_description varchar, manufacturer varchar, basic_type varchar, engines int, propul...
SELECT winner FROM table_name_71 WHERE points_classification = "giuseppe saronni" AND trofeo_fast_team = "bianchi" AND stage = "3"
Who was the winner that had a Points Classification of Giuseppe Saronni, a Trofeo Fast Team of Bianchi, and was Stage 3?
CREATE TABLE table_name_71 (winner VARCHAR, stage VARCHAR, points_classification VARCHAR, trofeo_fast_team VARCHAR)
SELECT COUNT(floor) FROM table_18662026_1 WHERE parallel_bars = "61.500"
If the parallel bars numbers is 61.500, what is the total number for the flood?
CREATE TABLE table_18662026_1 (floor VARCHAR, parallel_bars VARCHAR)
SELECT leading_scorer FROM table_name_65 WHERE visitor = "grizzlies" AND score = "114–111"
What is the Leading scorer with a Visitor of grizzlies, and with a Score with 114 111?
CREATE TABLE table_name_65 ( leading_scorer VARCHAR, visitor VARCHAR, score VARCHAR )
SELECT stage FROM table_name_57 WHERE points_classification = "francesco moser" AND general_classification = "bernard hinault"
Which stage had a Points Classification of Francesco Moser and a general classification of Bernard Hinault?
CREATE TABLE table_name_57 (stage VARCHAR, points_classification VARCHAR, general_classification VARCHAR)
SELECT most_recent_date FROM table_18676973_3 WHERE country = "United Kingdom"
When united kingdom is the country what is the most recent date?
CREATE TABLE table_18676973_3 (most_recent_date VARCHAR, country VARCHAR)