answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT location___state FROM table_name_36 WHERE date = "29–31 may"
Which Location/ State has a Date of 29–31 may?
CREATE TABLE table_name_36 (location___state VARCHAR, date VARCHAR)
SELECT set_1 FROM table_name_30 WHERE set_4 = "na" AND score = "3-0" AND set_2 = "29-27"
What is Set 1, when Set 4 is NA, when Score is 3-0, and when Set 2 is 29-27?
CREATE TABLE table_name_30 (set_1 VARCHAR, set_2 VARCHAR, set_4 VARCHAR, score VARCHAR)
SELECT MIN(began_in_st_louis) FROM table_21564794_3 WHERE league = "Negro American league"
What year did Negro American League join?
CREATE TABLE table_21564794_3 (began_in_st_louis INTEGER, league VARCHAR)
SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC LIMIT 1
What is the title of the film that has the highest high market estimation.
CREATE TABLE film_market_estimation (Film_ID VARCHAR); CREATE TABLE film (Film_ID VARCHAR)
SELECT circuit FROM table_name_25 WHERE fastest_lap = "jim clark"
I want the circuit for jim clark
CREATE TABLE table_name_25 (circuit VARCHAR, fastest_lap VARCHAR)
SELECT MAX(place) FROM table_name_18 WHERE lost > 4 AND points < 18 AND team = "atlético veragüense"
what is the highest place when lost is more than 4, points is less than 18 and team is Team of atlético veragüense?
CREATE TABLE table_name_18 (place INTEGER, team VARCHAR, lost VARCHAR, points VARCHAR)
SELECT COUNT(against) FROM table_name_1 WHERE lost = 3 AND played < 6
What is the sum of against scores when there are 3 losses and less than 6 games played?
CREATE TABLE table_name_1 (against VARCHAR, lost VARCHAR, played VARCHAR)
SELECT COUNT(tot_enlisted) FROM table_23508196_2 WHERE enlisted_o_s = 801471
How many different numbers of Tot enlisted are there on the dates when the number of Enlisted o/s was 801471?
CREATE TABLE table_23508196_2 (tot_enlisted VARCHAR, enlisted_o_s VARCHAR)
SELECT nba_draft FROM table_11677760_1 WHERE hometown = "Virginia Beach, VA"
What is the nba draft for the player from the hometown of virginia beach, va?
CREATE TABLE table_11677760_1 (nba_draft VARCHAR, hometown VARCHAR)
SELECT MAX(round) FROM table_name_10 WHERE college_junior_club_team__league_ = "torpedo yaroslavl (rus)"
Which Round is the highest one that has a College/Junior/Club Team (League) of torpedo yaroslavl (rus)?
CREATE TABLE table_name_10 (round INTEGER, college_junior_club_team__league_ VARCHAR)
SELECT MIN(height__m_) FROM table_name_37 WHERE class = "hewitt" AND prom__m_ < 148
Tell me the lowest height for class of hewitt and prom less than 148
CREATE TABLE table_name_37 (height__m_ INTEGER, class VARCHAR, prom__m_ VARCHAR)
SELECT speed_rank FROM table_name_11 WHERE year = "1963"
What's the speed rank in 1963?
CREATE TABLE table_name_11 (speed_rank VARCHAR, year VARCHAR)
SELECT position FROM table_name_7 WHERE height = "188cm"
What is the Position of the player with a Height off 188cm?
CREATE TABLE table_name_7 (position VARCHAR, height VARCHAR)
SELECT club FROM table_13564637_3 WHERE drawn = "1" AND lost = "10"
what is the name of the club where drawn is 1 and lost is 10?
CREATE TABLE table_13564637_3 (club VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT home_team FROM table_name_20 WHERE venue = "corio oval"
Who was the home team for the game played at Corio Oval?
CREATE TABLE table_name_20 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(game) FROM table_name_83 WHERE record = "16-17"
How many games had a record of 16-17?
CREATE TABLE table_name_83 (game VARCHAR, record VARCHAR)
SELECT SUM(money___) AS £__ FROM table_name_56 WHERE player = "nick faldo"
What is the total Money (£) of Player of nick faldo?
CREATE TABLE table_name_56 (money___ INTEGER, player VARCHAR)
SELECT MIN(2 AS _credits) FROM table_148535_2 WHERE hand = "Flush"
Name the least 2 credits for flush
CREATE TABLE table_148535_2 (hand VARCHAR)
SELECT home_team FROM table_name_36 WHERE away_team = "brisbane lions"
Which home team had an away team of the Brisbane Lions?
CREATE TABLE table_name_36 (home_team VARCHAR, away_team VARCHAR)
SELECT MAX(average) FROM table_name_15 WHERE number_of_dances = 6 AND total > 128
What is the highest average that has 6 dances and a total of over 128?
CREATE TABLE table_name_15 (average INTEGER, number_of_dances VARCHAR, total VARCHAR)
SELECT team_nickname FROM table_name_68 WHERE joined_tschl = 2010 AND home_arena = "kettering rec center" AND team_website = "dayton hockey"
what is the team nickname when joined tschl is 2010 and home arena is kettering rec center and the team website is dayton hockey?
CREATE TABLE table_name_68 (team_nickname VARCHAR, team_website VARCHAR, joined_tschl VARCHAR, home_arena VARCHAR)
SELECT city FROM table_name_62 WHERE astc_member = "no" AND state = "california" AND aam_member = "yes"
What is City, when ASTC Member is No, when State is California, and when AAM Member is Yes?
CREATE TABLE table_name_62 (city VARCHAR, aam_member VARCHAR, astc_member VARCHAR, state VARCHAR)
SELECT 2006 FROM table_name_31 WHERE 1995 = "a" AND 1997 = "a" AND 2003 = "3r"
During the Tournament in which Jiří Novák was absent(A) in 1995, absent(A) in 1997, and made it to the 3rd round (3R) in 2003, how did he do in 2006?
CREATE TABLE table_name_31 (Id VARCHAR)
SELECT SUM(bronze) FROM table_name_51 WHERE nation = "west germany"
How many bronzes have west germany as the nation?
CREATE TABLE table_name_51 (bronze INTEGER, nation VARCHAR)
SELECT MAX(wins) FROM table_name_1 WHERE points < 5 AND class = "500cc" AND team = "norton" AND year > 1955
What is the largest amount of wins when there are less than 5 points, the class is 500cc, the team is norton, and the year is more recent than 1955?
CREATE TABLE table_name_1 (wins INTEGER, year VARCHAR, team VARCHAR, points VARCHAR, class VARCHAR)
SELECT team_record FROM table_name_34 WHERE attendance = "16,151"
What is Team Record, when Attendance is 16,151?
CREATE TABLE table_name_34 (team_record VARCHAR, attendance VARCHAR)
SELECT player FROM table_1473672_5 WHERE nhl_team = "Minnesota North Stars"
What player was picked by the Minnesota North Stars?
CREATE TABLE table_1473672_5 (player VARCHAR, nhl_team VARCHAR)
SELECT position FROM table_name_75 WHERE nationality = "united states" AND player = "jimmy oliver"
What position did Jimmy Oliver of the United States play?
CREATE TABLE table_name_75 (position VARCHAR, nationality VARCHAR, player VARCHAR)
SELECT cardinal_direction FROM table_name_90 WHERE english = "wednesday p.m."
What is the cardinal direction of Wednesday p.m. in English?
CREATE TABLE table_name_90 (cardinal_direction VARCHAR, english VARCHAR)
SELECT original_title FROM table_20963074_1 WHERE film_title_used_in_nomination = "No Stars in the Jungle"
Name the originl title for no stars in the jungle
CREATE TABLE table_20963074_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT launched FROM table_name_97 WHERE name = "danaide"
what is the name of the builder who launched in danaide
CREATE TABLE table_name_97 (launched VARCHAR, name VARCHAR)
SELECT surface FROM table_name_42 WHERE partner = "robert haybittel"
What is the surface when the partner was Robert Haybittel?
CREATE TABLE table_name_42 (surface VARCHAR, partner VARCHAR)
SELECT surface FROM table_name_88 WHERE date = "april 24, 2003"
What surface was the April 24, 2003 match played on?
CREATE TABLE table_name_88 (surface VARCHAR, date VARCHAR)
SELECT AVG(rbis) FROM table_name_79 WHERE team = "boston red sox" AND date = "july 27, 1946"
When the team is the Boston Red Sox and the is date July 27, 1946, what are the average RBIs?
CREATE TABLE table_name_79 (rbis INTEGER, team VARCHAR, date VARCHAR)
SELECT AVG(attendance) FROM table_name_38 WHERE date = "september 19, 1971" AND week > 1
What was the attendance on September 19, 1971, after week 1?
CREATE TABLE table_name_38 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT MIN(attendance) FROM table_10646790_2 WHERE date = "December 7, 1969"
What was the minimum attendance on December 7, 1969?
CREATE TABLE table_10646790_2 (attendance INTEGER, date VARCHAR)
SELECT position FROM table_name_40 WHERE high_school = "malvern prep"
What position does the player from malvern prep play?
CREATE TABLE table_name_40 (position VARCHAR, high_school VARCHAR)
SELECT mission FROM table_name_3 WHERE apogee = "705 km"
Which Mission has a Apogee of 705 km?
CREATE TABLE table_name_3 (mission VARCHAR, apogee VARCHAR)
SELECT format FROM table_name_16 WHERE region = "greece"
What is the Format of the release in Greece?
CREATE TABLE table_name_16 (format VARCHAR, region VARCHAR)
SELECT decision FROM table_name_84 WHERE record = "13–10–4"
what is the decision when the record is 13–10–4?
CREATE TABLE table_name_84 (decision VARCHAR, record VARCHAR)
SELECT T2.investor_id, T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 1
Show the id and details of the investor that has the largest number of transactions.
CREATE TABLE TRANSACTIONS (investor_id VARCHAR); CREATE TABLE INVESTORS (Investor_details VARCHAR, investor_id VARCHAR)
SELECT COUNT(DISTINCT school_id) FROM basketball_match
How many schools are in the basketball match?
CREATE TABLE basketball_match (school_id VARCHAR)
SELECT title FROM table_name_39 WHERE label = "warp records / paper bag records"
What title has a Label of warp records / paper bag records?
CREATE TABLE table_name_39 (title VARCHAR, label VARCHAR)
SELECT MAX(points) FROM table_name_56 WHERE team = "tacuary" AND losses < 4
What's the highest Points with the Team of Tacuary, and has Losses that's smaller than 4?
CREATE TABLE table_name_56 (points INTEGER, team VARCHAR, losses VARCHAR)
SELECT country FROM table_name_57 WHERE entities = "emsa"
Which Country has Entities of emsa?
CREATE TABLE table_name_57 (country VARCHAR, entities VARCHAR)
SELECT player FROM table_name_45 WHERE place = "t7" AND country = "united states"
Name the Player who has a Place of t7 in Country of united states?
CREATE TABLE table_name_45 (player VARCHAR, place VARCHAR, country VARCHAR)
SELECT power_rpm FROM table_1212189_1 WHERE torque__nm__rpm = "N·m (lb·ft)/*N·m (lb·ft) @1750"
For the model with torque of n·m (lb·ft)/*n·m (lb·ft) @1750, what is the power?
CREATE TABLE table_1212189_1 (power_rpm VARCHAR, torque__nm__rpm VARCHAR)
SELECT country FROM table_name_78 WHERE year_s__won = "1998"
From which country is the player that won in 1998?
CREATE TABLE table_name_78 (country VARCHAR, year_s__won VARCHAR)
SELECT date FROM table_name_47 WHERE visitor = "montreal" AND score = "1-4"
When did Montreal visit and have a score of 1-4?
CREATE TABLE table_name_47 (date VARCHAR, visitor VARCHAR, score VARCHAR)
SELECT location FROM table_name_77 WHERE distance__km_ < 7.1 AND rapid = "●"
What location is less than 7.1 km away, and has a Rapid of ●?
CREATE TABLE table_name_77 (location VARCHAR, distance__km_ VARCHAR, rapid VARCHAR)
SELECT COUNT(gross_debt_in_) AS $billions_undeflated_treas FROM table_name_11 WHERE debt_held_by_public__$billions_ > 236.8 AND as__percentage_of_gdp_low_high = "33.4"
For End of Fiscal Year(s) with a Debt Held By Public ($Billions) larger than 236.8, and as % of GDP Low-High of 33.4 what is the sum of the number of Gross Debt in $Billions undeflated Treas.?
CREATE TABLE table_name_11 (gross_debt_in_ VARCHAR, debt_held_by_public__$billions_ VARCHAR, as__percentage_of_gdp_low_high VARCHAR)
SELECT island FROM table_name_73 WHERE age___ma__ = "1.0"
Name the island with age ma of 1.0
CREATE TABLE table_name_73 (island VARCHAR, age___ma__ VARCHAR)
SELECT sydney FROM table_name_39 WHERE gold_coast = "no" AND adelaide = "no" AND auckland = "no"
Which Sydney has Gold Coast no, Adelaide no< and Auckland no?
CREATE TABLE table_name_39 (sydney VARCHAR, auckland VARCHAR, gold_coast VARCHAR, adelaide VARCHAR)
SELECT COUNT(district) FROM table_29486189_4 WHERE representative = "Andy Thompson"
which district does andy thompson represent
CREATE TABLE table_29486189_4 (district VARCHAR, representative VARCHAR)
SELECT result FROM table_name_28 WHERE score = "21 (7, 6, 8)"
What was the result when the score was 21 (7, 6, 8)?
CREATE TABLE table_name_28 (result VARCHAR, score VARCHAR)
SELECT venue FROM table_name_16 WHERE losing_team = "south sydney rabbitohs"
Which venue had a losing team of south sydney rabbitohs?
CREATE TABLE table_name_16 (venue VARCHAR, losing_team VARCHAR)
SELECT crowd FROM table_name_62 WHERE away_team = "north melbourne"
How large was the crowd when North Melbourne played as the away team?
CREATE TABLE table_name_62 (crowd VARCHAR, away_team VARCHAR)
SELECT swimsuit FROM table_17088705_2 WHERE interview = "9.366"
What are the swimsuit scores of participants with score 9.366 in interview
CREATE TABLE table_17088705_2 (swimsuit VARCHAR, interview VARCHAR)
SELECT club FROM table_name_95 WHERE home_ground = "n/a"
Which club, had a home ground of n/a?
CREATE TABLE table_name_95 (club VARCHAR, home_ground VARCHAR)
SELECT country FROM table_name_77 WHERE player = "rocco mediate"
What country does Rocco Mediate play for?
CREATE TABLE table_name_77 (country VARCHAR, player VARCHAR)
SELECT venue FROM table_name_45 WHERE date = "11 february 1996"
Which venue was used 11 february 1996?
CREATE TABLE table_name_45 (venue VARCHAR, date VARCHAR)
SELECT player FROM table_name_62 WHERE fa_cup < 6 AND premier_league = 33 AND UEfa_cup > 5
What player had less than 6 appearances at the FA cup, 33 at the premier league, and more than 5 at the UEFA cup?
CREATE TABLE table_name_62 (player VARCHAR, UEfa_cup VARCHAR, fa_cup VARCHAR, premier_league VARCHAR)
SELECT result FROM table_name_21 WHERE date = "september 24"
What was the Result on September 24?
CREATE TABLE table_name_21 (result VARCHAR, date VARCHAR)
SELECT venue FROM table_name_34 WHERE home_team = "collingwood"
What was the venue when Collingwood was the home team?
CREATE TABLE table_name_34 (venue VARCHAR, home_team VARCHAR)
SELECT COUNT(type) FROM table_256286_45 WHERE yes_votes = 312680
How many types are there for the measure where there were 312680 yes votes?
CREATE TABLE table_256286_45 (type VARCHAR, yes_votes VARCHAR)
SELECT country FROM table_name_70 WHERE notes = "fa" AND athlete = "ekaterina karsten"
What country did ekaterina karsten row for with fa listed under notes?
CREATE TABLE table_name_70 (country VARCHAR, notes VARCHAR, athlete VARCHAR)
SELECT COUNT(attendance) FROM table_name_14 WHERE date = "december 11, 1954"
How many were in Attendance on December 11, 1954?
CREATE TABLE table_name_14 (attendance VARCHAR, date VARCHAR)
SELECT SUM(fastest_laps) FROM table_name_81 WHERE poles = 4 AND races > 178
How many Fastest Laps have Poles of 4, and Races larger than 178?
CREATE TABLE table_name_81 (fastest_laps INTEGER, poles VARCHAR, races VARCHAR)
SELECT opponents_in_final FROM table_name_5 WHERE score_in_final = "6–4, 3–6, 5–7"
What was the Opponents in Final during the match with a Score in Final of 6–4, 3–6, 5–7?
CREATE TABLE table_name_5 (opponents_in_final VARCHAR, score_in_final VARCHAR)
SELECT podiums FROM table_name_82 WHERE poles = "3"
What are the Podiums that has a Poles of 3?
CREATE TABLE table_name_82 (podiums VARCHAR, poles VARCHAR)
SELECT venue FROM table_name_28 WHERE away_team = "geelong"
Where was the game when Geelong was the away team?
CREATE TABLE table_name_28 (venue VARCHAR, away_team VARCHAR)
SELECT tournament FROM table_name_38 WHERE margin_of_victory = "7 strokes"
Which Tournament has a Margin of victory of 7 strokes
CREATE TABLE table_name_38 (tournament VARCHAR, margin_of_victory VARCHAR)
SELECT COUNT(directed_by) FROM table_11411026_2 WHERE no_in_series = 79
How many titles were directed in series 79?
CREATE TABLE table_11411026_2 (directed_by VARCHAR, no_in_series VARCHAR)
SELECT stadium FROM table_name_46 WHERE host_team = "san diego chargers" AND final_score = "23-45"
Name the stadium with host team of san diego chargers and final score of 23-45
CREATE TABLE table_name_46 (stadium VARCHAR, host_team VARCHAR, final_score VARCHAR)
SELECT districts_of_bihar FROM table_19589113_5 WHERE sex_ratio_‡_1991 = 864
What districts of Bihar have a sex ratio in 1991 of 864?
CREATE TABLE table_19589113_5 (districts_of_bihar VARCHAR, sex_ratio_‡_1991 VARCHAR)
SELECT T2.budget_type_code, T2.budget_type_description, T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code = T2.budget_type_code
Show the budget type code and description and the corresponding document id.
CREATE TABLE Ref_budget_codes (budget_type_code VARCHAR, budget_type_description VARCHAR); CREATE TABLE Documents_with_expenses (document_id VARCHAR, budget_type_code VARCHAR)
SELECT digital FROM table_name_24 WHERE provider = "virgin [analogue]"
What is the digital of Virgin [analogue]?
CREATE TABLE table_name_24 (digital VARCHAR, provider VARCHAR)
SELECT captain FROM table_24039173_1 WHERE location = "Chaguaramas"
Who is the captain in Chaguaramas?
CREATE TABLE table_24039173_1 (captain VARCHAR, location VARCHAR)
SELECT home_team FROM table_name_26 WHERE road_team = "los angeles" AND game = "game 1"
Which home team played against Los Angeles in game 1?
CREATE TABLE table_name_26 (home_team VARCHAR, road_team VARCHAR, game VARCHAR)
SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1
List the most common hometown of teachers.
CREATE TABLE teacher (Hometown VARCHAR)
SELECT COUNT(production_code) FROM table_2409041_3 WHERE no_in_series = 39
How many production codes were in series 39?
CREATE TABLE table_2409041_3 (production_code VARCHAR, no_in_series VARCHAR)
SELECT xenon FROM table_name_25 WHERE neon = "20.1797(6)"
Which Xenon has Neon of 20.1797(6)?
CREATE TABLE table_name_25 (xenon VARCHAR, neon VARCHAR)
SELECT round FROM table_name_26 WHERE h___a = "hurst"
What Round has h/a hurst
CREATE TABLE table_name_26 (round VARCHAR, h___a VARCHAR)
SELECT location_attendance FROM table_23248910_6 WHERE team = "Nets"
What location and it's attendance was the game against the Nets?
CREATE TABLE table_23248910_6 (location_attendance VARCHAR, team VARCHAR)
SELECT venue FROM table_name_67 WHERE home_team = "st kilda"
What venue featured the home side of st kilda?
CREATE TABLE table_name_67 (venue VARCHAR, home_team VARCHAR)
SELECT result FROM table_name_49 WHERE competition = "friendly" AND date = "23 january 2010"
What is the result of the friendly competition on 23 January 2010?
CREATE TABLE table_name_49 (result VARCHAR, competition VARCHAR, date VARCHAR)
SELECT COUNT(grid) FROM table_name_89 WHERE time_retired = "+1 lap" AND driver = "sébastien bourdais" AND laps > 70
How much Grid has a Time/Retired of +1 lap, and a Driver of sébastien bourdais, and Laps larger than 70?
CREATE TABLE table_name_89 (grid VARCHAR, laps VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT thumb_stick FROM table_name_37 WHERE basic_shape = "curved" AND backlit = "yes" AND supplier = "genius"
Which Thumb stick has a Basic shape of curved, a Backlit of yes, and a Supplier of genius?
CREATE TABLE table_name_37 (thumb_stick VARCHAR, supplier VARCHAR, basic_shape VARCHAR, backlit VARCHAR)
SELECT opponent FROM table_name_22 WHERE score = "6–5 (10)"
Who did the Rockies play at the game that had a score of 6–5 (10)?
CREATE TABLE table_name_22 (opponent VARCHAR, score VARCHAR)
SELECT COUNT(*) FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id = T2.dept_store_chain_id WHERE T2.dept_store_chain_name = "South"
How many department stores does the store chain South have?
CREATE TABLE department_stores (dept_store_chain_id VARCHAR); CREATE TABLE department_store_chain (dept_store_chain_id VARCHAR, dept_store_chain_name VARCHAR)
SELECT grid FROM table_17304504_1 WHERE points = "14"
What is the grid for the driver who earned 14 points?
CREATE TABLE table_17304504_1 (grid VARCHAR, points VARCHAR)
SELECT nation FROM table_name_74 WHERE gold > 0 AND total > 4 AND rank = "6"
Which Nation has a Gold larger than 0, and a Total larger than 4, and a Rank of 6?
CREATE TABLE table_name_74 (nation VARCHAR, rank VARCHAR, gold VARCHAR, total VARCHAR)
SELECT COUNT(grid) FROM table_17256857_1 WHERE driver = "Vitor Meira"
How many drivers on the grid are called Vitor Meira?
CREATE TABLE table_17256857_1 (grid VARCHAR, driver VARCHAR)
SELECT father FROM table_name_98 WHERE husband = "william iv"
Which father had william iv as a husband?
CREATE TABLE table_name_98 (father VARCHAR, husband VARCHAR)
SELECT high_points FROM table_name_61 WHERE date = "november 20"
who had the high points on november 20?
CREATE TABLE table_name_61 (high_points VARCHAR, date VARCHAR)
SELECT MIN(last_cf) FROM table_name_90 WHERE cf_appearances = 2 AND cup_wins = 0 AND cf_wins < 0
What is the lowest number of last cfs of the team with 2 cf appearances, 0 cup wins, and less than 0 cf wins?
CREATE TABLE table_name_90 (last_cf INTEGER, cf_wins VARCHAR, cf_appearances VARCHAR, cup_wins VARCHAR)
SELECT COUNT(challenge_cup) FROM table_22683369_8 WHERE p = 7
How many points did player 7 score in the challenge cup?
CREATE TABLE table_22683369_8 (challenge_cup VARCHAR, p VARCHAR)
SELECT callback_date FROM table_22897967_1 WHERE audition_venue = "Amway Arena"
Name the callback date for amway arena
CREATE TABLE table_22897967_1 (callback_date VARCHAR, audition_venue VARCHAR)
SELECT MIN(rank) FROM table_name_55 WHERE nation = "united states" AND bronze < 4
What is the lowest rank of the United States, with fewer than 4 bronze medals?
CREATE TABLE table_name_55 (rank INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT MIN(year) FROM table_name_39 WHERE engine = "cosworth v8" AND points = 12
what's the earliest year that there was a cosworth v8 engine and 12 points?
CREATE TABLE table_name_39 (year INTEGER, engine VARCHAR, points VARCHAR)