question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
In what place was Tiger Woods of the United States?
CREATE TABLE table_name_68 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT place FROM table_name_68 WHERE country = "united states" AND player = "tiger woods"
When did the archbishop that was ordained a bishop on July 25, 1902 die?
CREATE TABLE table_name_62 (died VARCHAR, ordained_bishop VARCHAR)
SELECT died FROM table_name_62 WHERE ordained_bishop = "july 25, 1902"
How many Golds did Rank 10 get, with a Bronze larger than 2?
CREATE TABLE table_name_99 (gold VARCHAR, rank VARCHAR, bronze VARCHAR)
SELECT COUNT(gold) FROM table_name_99 WHERE rank = "10" AND bronze > 2
What was the score of the competition on 23 November 2003?
CREATE TABLE table_name_64 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_64 WHERE date = "23 november 2003"
What were the runs for the opponent from the West Indies?
CREATE TABLE table_name_64 (runs VARCHAR, opponent VARCHAR)
SELECT runs FROM table_name_64 WHERE opponent = "west indies"
Who has position in year 1996-97 in Toronto?
CREATE TABLE table_name_88 (position VARCHAR, years_in_toronto VARCHAR)
SELECT position FROM table_name_88 WHERE years_in_toronto = "1996-97"
What date shows the Outcome of winner against nikola fraňková carmen klaschka?
CREATE TABLE table_name_54 (date VARCHAR, outcome VARCHAR, opponents_in_the_final VARCHAR)
SELECT date FROM table_name_54 WHERE outcome = "winner" AND opponents_in_the_final = "nikola fraňková carmen klaschka"
What is the Country of origin for the film directed by George Miller?
CREATE TABLE table_name_3 (country VARCHAR, director VARCHAR)
SELECT country FROM table_name_3 WHERE director = "george miller"
What club has a league/division of fourth division?
CREATE TABLE table_name_95 (club VARCHAR, league_division VARCHAR)
SELECT club FROM table_name_95 WHERE league_division = "fourth division"
Return the distinct name of customers whose order status is Pending, in the order of customer id.
CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_status_code VARCHAR)
SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = "Pending" ORDER BY T2.customer_id
Who was the winning driver for the Dutch Grand Prix?
CREATE TABLE table_name_25 (winning_driver VARCHAR, race VARCHAR)
SELECT winning_driver FROM table_name_25 WHERE race = "dutch grand prix"
Which nhl team has kris draper as the player?
CREATE TABLE table_2897457_3 (nhl_team VARCHAR, player VARCHAR)
SELECT nhl_team FROM table_2897457_3 WHERE player = "Kris Draper"
Find the list of cities that no customer is living in.
CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE addresses (city VARCHAR, address_id VARCHAR); CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE addresses (city VARCHAR)
SELECT city FROM addresses WHERE NOT city IN (SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id)
How many people in total have attended games at Kardinia Park?
CREATE TABLE table_name_93 (crowd INTEGER, venue VARCHAR)
SELECT SUM(crowd) FROM table_name_93 WHERE venue = "kardinia park"
Tell me the highest laps for time/retired of +2 laps and driver of felice bonetto
CREATE TABLE table_name_24 (laps INTEGER, time_retired VARCHAR, driver VARCHAR)
SELECT MAX(laps) FROM table_name_24 WHERE time_retired = "+2 laps" AND driver = "felice bonetto"
What is the rank with a 14 finish?
CREATE TABLE table_name_13 (rank VARCHAR, finish VARCHAR)
SELECT rank FROM table_name_13 WHERE finish = "14"
Who was the Opponent on a Hard (i) Surface?
CREATE TABLE table_name_5 (opponent VARCHAR, surface VARCHAR)
SELECT opponent FROM table_name_5 WHERE surface = "hard (i)"
What was the date of the game when the away team was south melbourne?
CREATE TABLE table_name_77 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_77 WHERE away_team = "south melbourne"
What is the Opponents on a clay surface with christophe rochus as partner?
CREATE TABLE table_name_57 (opponents VARCHAR, surface VARCHAR, partner VARCHAR)
SELECT opponents FROM table_name_57 WHERE surface = "clay" AND partner = "christophe rochus"
Which Object type has an NGC number of 2171?
CREATE TABLE table_name_37 (object_type VARCHAR, ngc_number VARCHAR)
SELECT object_type FROM table_name_37 WHERE ngc_number = 2171
What is the earliest date for the bronze medal?
CREATE TABLE table_name_93 (date INTEGER, medal VARCHAR)
SELECT MIN(date) FROM table_name_93 WHERE medal = "bronze"
What is the venue on 3 September 1972?
CREATE TABLE table_name_57 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_57 WHERE date = "3 september 1972"
How many press jury points did the song by Frank Aleksandersen get?
CREATE TABLE table_20183474_1 (press_jury INTEGER, artist VARCHAR)
SELECT MIN(press_jury) FROM table_20183474_1 WHERE artist = "Frank Aleksandersen"
Name the least hits for year less than 1920 and player of ed delahanty
CREATE TABLE table_name_28 (hits INTEGER, year VARCHAR, player VARCHAR)
SELECT MIN(hits) FROM table_name_28 WHERE year < 1920 AND player = "ed delahanty"
What is the denomination of the III Series?
CREATE TABLE table_name_8 (denomination VARCHAR, series VARCHAR)
SELECT denomination FROM table_name_8 WHERE series = "iii series"
What was the score of the Insight Bowl?
CREATE TABLE table_name_53 (score VARCHAR, bowl_game VARCHAR)
SELECT score FROM table_name_53 WHERE bowl_game = "insight bowl"
Which competition has a report of AIFF?
CREATE TABLE table_name_91 (competition VARCHAR, report VARCHAR)
SELECT competition FROM table_name_91 WHERE report = "aiff"
Which game was played by team milwaukee
CREATE TABLE table_17340355_6 (game VARCHAR, team VARCHAR)
SELECT game FROM table_17340355_6 WHERE team = "Milwaukee"
Which Championship was louise suggs the runner-up by 3 strokes?
CREATE TABLE table_name_8 (championship VARCHAR, runner_s__up VARCHAR, margin VARCHAR)
SELECT championship FROM table_name_8 WHERE runner_s__up = "louise suggs" AND margin = "3 strokes"
What is the withdrawal rate for the school district with a graduation rate of 89.3%?
CREATE TABLE table_21514460_1 (withdrawal_rate__2010_11_ VARCHAR, graduation_rate__2011_12_ VARCHAR)
SELECT withdrawal_rate__2010_11_ FROM table_21514460_1 WHERE graduation_rate__2011_12_ = "89.3%"
What was the winning team lmpc in rnd 3?
CREATE TABLE table_24037660_2 (lmpc_winning_team VARCHAR, rnd VARCHAR)
SELECT lmpc_winning_team FROM table_24037660_2 WHERE rnd = 3
What is the highest amount of bronze china, which has more than 1 gold and more than 11 total, has?
CREATE TABLE table_name_93 (bronze INTEGER, total VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT MAX(bronze) FROM table_name_93 WHERE gold > 1 AND nation = "china" AND total > 11
What is the class of the team when less than 6 laps were completed?
CREATE TABLE table_name_31 (class VARCHAR, laps INTEGER)
SELECT class FROM table_name_31 WHERE laps < 6
Which Time/Retired has Laps smaller than 100, and Points larger than 0?
CREATE TABLE table_name_99 (time_retired VARCHAR, laps VARCHAR, points VARCHAR)
SELECT time_retired FROM table_name_99 WHERE laps < 100 AND points > 0
What FCC info is listed for the ERP W of 2?
CREATE TABLE table_name_96 (fcc_info VARCHAR, erp_w VARCHAR)
SELECT fcc_info FROM table_name_96 WHERE erp_w = 2
What is the Engine(s) that has f Tyres in 1971?
CREATE TABLE table_name_68 (engine_s_ VARCHAR, tyres VARCHAR, year VARCHAR)
SELECT engine_s_ FROM table_name_68 WHERE tyres = "f" AND year = 1971
What is the average nominated of the composition nominated by Taioseach with an Industrial and Commercial panel less than 9, an administrative panel greater than 0, a cultural and educational panel greater than 2, and a total less than 29?
CREATE TABLE table_name_99 (nominated_by_the_taoiseach INTEGER, total VARCHAR, cultural_and_educational_panel VARCHAR, industrial_and_commercial_panel VARCHAR, administrative_panel VARCHAR)
SELECT AVG(nominated_by_the_taoiseach) FROM table_name_99 WHERE industrial_and_commercial_panel < 9 AND administrative_panel > 0 AND cultural_and_educational_panel > 2 AND total < 29
What is the lowest number of National University of Ireland that has a Cultural and Educational Panel of 0, and a Labour Panel smaller than 1?
CREATE TABLE table_name_49 (national_university_of_ireland INTEGER, cultural_and_educational_panel VARCHAR, labour_panel VARCHAR)
SELECT MIN(national_university_of_ireland) FROM table_name_49 WHERE cultural_and_educational_panel = 0 AND labour_panel < 1
In what county did 29231 people vote for Kerry?
CREATE TABLE table_1304443_2 (county VARCHAR, kerry_number VARCHAR)
SELECT county FROM table_1304443_2 WHERE kerry_number = 29231
What is the surface made of if the opponent in the final is Hewitt McMillan?
CREATE TABLE table_22597626_2 (surface VARCHAR, opponents_in_the_final VARCHAR)
SELECT surface FROM table_22597626_2 WHERE opponents_in_the_final = "Hewitt McMillan"
What was the Position of the Player, Britton Johnsen?
CREATE TABLE table_name_79 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_79 WHERE player = "britton johnsen"
What was the score of the second leg with an agg of 4-6?
CREATE TABLE table_name_50 (agg VARCHAR)
SELECT 2 AS nd_leg FROM table_name_50 WHERE agg = "4-6"
What was the Rd. Time for October 3, 2009?
CREATE TABLE table_name_86 (rd VARCHAR, _time VARCHAR, date VARCHAR)
SELECT rd, _time FROM table_name_86 WHERE date = "october 3, 2009"
What was the attendance when VFL played MCG?
CREATE TABLE table_name_11 (crowd INTEGER, venue VARCHAR)
SELECT MAX(crowd) FROM table_name_11 WHERE venue = "mcg"
What is the value for Bahia when the Northeast total was 6747013?
CREATE TABLE table_name_97 (bahia VARCHAR, northeast_total VARCHAR)
SELECT bahia FROM table_name_97 WHERE northeast_total = "6747013"
What is the to par of Al Mengert of the United States?
CREATE TABLE table_name_73 (to_par VARCHAR, country VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_73 WHERE country = "united states" AND player = "al mengert"
How many data are on points for if the percentage is 94.29?
CREATE TABLE table_25229283_4 (points_for VARCHAR, percentage___percentage_ VARCHAR)
SELECT COUNT(points_for) FROM table_25229283_4 WHERE percentage___percentage_ = "94.29"
List the hebrew word for the strongs words compounded of 'adown [# 113] & yahu
CREATE TABLE table_1242447_2 (hebrew_word VARCHAR, strongs_words_compounded VARCHAR)
SELECT hebrew_word FROM table_1242447_2 WHERE strongs_words_compounded = "'adown [# 113] & Yahu"
Which state was first elected in 1914, and a Member of edward jolley?
CREATE TABLE table_name_97 (state VARCHAR, first_elected VARCHAR, member VARCHAR)
SELECT state FROM table_name_97 WHERE first_elected = "1914" AND member = "edward jolley"
Tell me the MPEG-1 for real video of no
CREATE TABLE table_name_77 (mpeg_1 VARCHAR, realvideo VARCHAR)
SELECT mpeg_1 FROM table_name_77 WHERE realvideo = "no"
What pick number was marc deschamps?
CREATE TABLE table_2897457_5 (pick__number VARCHAR, player VARCHAR)
SELECT pick__number FROM table_2897457_5 WHERE player = "Marc Deschamps"
What is the number of losses when there were 14 matches, and the No Result was larger than 0?
CREATE TABLE table_name_37 (losses INTEGER, matches VARCHAR, no_result VARCHAR)
SELECT SUM(losses) FROM table_name_37 WHERE matches = 14 AND no_result > 0
What is the rank of the airport with freight ( metric tonnes ) of 255121?
CREATE TABLE table_13836704_6 (rank VARCHAR, freight___metric_tonnes__ VARCHAR)
SELECT rank FROM table_13836704_6 WHERE freight___metric_tonnes__ = 255121
What was the score of the match where paris sg (d1) was team 1?
CREATE TABLE table_name_63 (score VARCHAR, team_1 VARCHAR)
SELECT score FROM table_name_63 WHERE team_1 = "paris sg (d1)"
If the coordinate velocity v dx/dt in units of c is (e 2 − 1)/(e 2 + 1) ≅ 0.761, what is the velocity angle η in i-radians?
CREATE TABLE table_15314901_1 (velocity_angle_η_in_i_radians VARCHAR, coordinate_velocity_v_dx_dt_in_units_of_c VARCHAR)
SELECT velocity_angle_η_in_i_radians FROM table_15314901_1 WHERE coordinate_velocity_v_dx_dt_in_units_of_c = "(e 2 − 1)/(e 2 + 1) ≅ 0.761"
What is 2012, when 2009 is "A"?
CREATE TABLE table_name_44 (Id VARCHAR)
SELECT 2012 FROM table_name_44 WHERE 2009 = "a"
What is the lowest attendance for week 11?
CREATE TABLE table_name_46 (attendance INTEGER, week VARCHAR)
SELECT MIN(attendance) FROM table_name_46 WHERE week = 11
What was the highest grid for Patrick Carpentier?
CREATE TABLE table_name_77 (grid INTEGER, driver VARCHAR)
SELECT MAX(grid) FROM table_name_77 WHERE driver = "patrick carpentier"
What week was the Bye attendance week?
CREATE TABLE table_name_20 (week VARCHAR, attendance VARCHAR)
SELECT week FROM table_name_20 WHERE attendance = "bye"
Who has the pole position for the nürburgring circuit?
CREATE TABLE table_name_13 (pole_position VARCHAR, circuit VARCHAR)
SELECT pole_position FROM table_name_13 WHERE circuit = "nürburgring"
What was the name of the episode that had 4.65 million viewers?
CREATE TABLE table_25548213_1 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT title FROM table_25548213_1 WHERE us_viewers__million_ = "4.65"
What is the arena capacity of the arena in the town whose head coach is Yuriy Korotkevich?
CREATE TABLE table_19526911_1 (arena__capacity_ VARCHAR, head_coach VARCHAR)
SELECT COUNT(arena__capacity_) FROM table_19526911_1 WHERE head_coach = "Yuriy Korotkevich"
What is the lowest production number?
CREATE TABLE table_1439096_1 (production_no INTEGER)
SELECT MIN(production_no) FROM table_1439096_1
Which country had a premiere on July 24, 2010?
CREATE TABLE table_name_65 (country VARCHAR, premiere VARCHAR)
SELECT country FROM table_name_65 WHERE premiere = "july 24, 2010"
When London Bridge is the destination, how many lines are there?
CREATE TABLE table_1569516_1 (line VARCHAR, destination VARCHAR)
SELECT COUNT(line) FROM table_1569516_1 WHERE destination = "London Bridge"
What player attended Loyola Marymount?
CREATE TABLE table_11734041_1 (player VARCHAR, school_club_team_country VARCHAR)
SELECT player FROM table_11734041_1 WHERE school_club_team_country = "Loyola Marymount"
What is the description and code of the type of service that is performed the most often?
CREATE TABLE Services (Service_Type_Code VARCHAR); CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR)
SELECT T1.Service_Type_Description, T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1
What is the 2013 index of economic freedom of Slovenia?
CREATE TABLE table_name_22 (country VARCHAR)
SELECT 2013 AS _index_of_economic_freedom FROM table_name_22 WHERE country = "slovenia"
Name the least tomina for el villar being 4
CREATE TABLE table_2509350_3 (tomina_municipality INTEGER, el_villar_municipality VARCHAR)
SELECT MIN(tomina_municipality) FROM table_2509350_3 WHERE el_villar_municipality = 4
what is the winning score when the tournament is safeco classic?
CREATE TABLE table_name_73 (winning_score VARCHAR, tournament VARCHAR)
SELECT winning_score FROM table_name_73 WHERE tournament = "safeco classic"
What was the score on January 16, 2010?
CREATE TABLE table_name_25 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_25 WHERE date = "january 16, 2010"
What was the total attendance in week 8?
CREATE TABLE table_name_96 (attendance VARCHAR, week VARCHAR)
SELECT COUNT(attendance) FROM table_name_96 WHERE week = 8
What is the rank of finale 37?
CREATE TABLE table_11926114_1 (rank VARCHAR, finale VARCHAR)
SELECT rank FROM table_11926114_1 WHERE finale = 37
How many values of prominence(m) occur at rank 5?
CREATE TABLE table_18946749_4 (prominence__m_ VARCHAR, rank VARCHAR)
SELECT COUNT(prominence__m_) FROM table_18946749_4 WHERE rank = 5
How do you say Friday in Polish?
CREATE TABLE table_1277350_5 (friday_fifth_day VARCHAR, day__see_irregularities__ VARCHAR)
SELECT friday_fifth_day FROM table_1277350_5 WHERE day__see_irregularities__ = "Polish"
Which company launched in 1996 and has a Hanzi of 凤凰卫视中文台?
CREATE TABLE table_name_36 (name VARCHAR, launch VARCHAR, hanzi VARCHAR)
SELECT name FROM table_name_36 WHERE launch = "1996" AND hanzi = "凤凰卫视中文台"
How many distinct names are associated with all the photos?
CREATE TABLE PHOTOS (Name VARCHAR)
SELECT COUNT(DISTINCT Name) FROM PHOTOS
Which record has 4:14 as the time?
CREATE TABLE table_name_94 (record VARCHAR, time VARCHAR)
SELECT record FROM table_name_94 WHERE time = "4:14"
What was the distance when the weight was 6.11?
CREATE TABLE table_name_21 (distance VARCHAR, weight VARCHAR)
SELECT distance FROM table_name_21 WHERE weight = 6.11
How much Bronze has a Gold larger than 1, and a Silver smaller than 3, and a Nation of germany, and a Total larger than 11?
CREATE TABLE table_name_54 (bronze VARCHAR, total VARCHAR, nation VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT COUNT(bronze) FROM table_name_54 WHERE gold > 1 AND silver < 3 AND nation = "germany" AND total > 11
List the number of people injured by perpetrators in ascending order.
CREATE TABLE perpetrator (Injured VARCHAR)
SELECT Injured FROM perpetrator ORDER BY Injured
Who was the driver for Rovero Campello?
CREATE TABLE table_name_72 (driver VARCHAR, entrant VARCHAR)
SELECT driver FROM table_name_72 WHERE entrant = "rovero campello"
Which Type has a Builder of avonside engine company, and a Number of 9?
CREATE TABLE table_name_55 (type VARCHAR, builder VARCHAR, number VARCHAR)
SELECT type FROM table_name_55 WHERE builder = "avonside engine company" AND number = 9
What is the name on the Socialist ticket when the Democratic ticket is george k. shuler?
CREATE TABLE table_name_6 (socialist_ticket VARCHAR, democratic_ticket VARCHAR)
SELECT socialist_ticket FROM table_name_6 WHERE democratic_ticket = "george k. shuler"
What city and state is the Lancers mascot located?
CREATE TABLE table_11044765_1 (location VARCHAR, mascot VARCHAR)
SELECT location FROM table_11044765_1 WHERE mascot = "Lancers"
What's the ijekavian translation of the ikavian word grijati?
CREATE TABLE table_27730_9 (ijekavian VARCHAR, ikavian VARCHAR)
SELECT ijekavian FROM table_27730_9 WHERE ikavian = "grijati"
What is Place, when To Par is less than 15, and when Score is 76-72-75-71=294?
CREATE TABLE table_name_59 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT place FROM table_name_59 WHERE to_par < 15 AND score = 76 - 72 - 75 - 71 = 294
What is the Weight of the Player with a Date of Birth of 1979-09-26?
CREATE TABLE table_name_54 (weight VARCHAR, date_of_birth VARCHAR)
SELECT weight FROM table_name_54 WHERE date_of_birth = "1979-09-26"
Who had the high points on February 6?
CREATE TABLE table_17311797_8 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_17311797_8 WHERE date = "February 6"
What is Result, when Opponent is New England Patriots?
CREATE TABLE table_name_8 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_8 WHERE opponent = "new england patriots"
What is the Result of the Battle of Marcellae in 756?
CREATE TABLE table_name_85 (result VARCHAR, battle VARCHAR, date VARCHAR)
SELECT result FROM table_name_85 WHERE battle = "battle of marcellae" AND date = "756"
who is the author for harry potter and the deathly hallows?
CREATE TABLE table_name_17 (author VARCHAR, title VARCHAR)
SELECT author FROM table_name_17 WHERE title = "harry potter and the deathly hallows"
Name the episode number that aired on july 23, 2000
CREATE TABLE table_name_34 (episode__number VARCHAR, original_airdate VARCHAR)
SELECT episode__number FROM table_name_34 WHERE original_airdate = "july 23, 2000"
What is the engine when the transmission was 4-speed automatic, and acceleration 0–100km/h (0–62mph) was 10.4 s?
CREATE TABLE table_name_12 (engine VARCHAR, transmission VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR)
SELECT engine FROM table_name_12 WHERE transmission = "4-speed automatic" AND acceleration_0_100km_h__0_62mph_ = "10.4 s"
What was the score of the team that played against Fitzroy?
CREATE TABLE table_name_97 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_97 WHERE away_team = "fitzroy"
What date did the episode air when guy grossi won?
CREATE TABLE table_29281529_2 (airdate VARCHAR, winner VARCHAR)
SELECT airdate FROM table_29281529_2 WHERE winner = "Guy Grossi"
Name march 27-29 where january 15-16 is january 15, 1991
CREATE TABLE table_1708610_3 (march_27_29 VARCHAR, january_15_16 VARCHAR)
SELECT march_27_29 FROM table_1708610_3 WHERE january_15_16 = "January 15, 1991"
What is the least number of gold medals won among nations ranked 1 with no silver medals?
CREATE TABLE table_name_8 (gold INTEGER, rank VARCHAR, silver VARCHAR)
SELECT MIN(gold) FROM table_name_8 WHERE rank = 1 AND silver < 1
What was the average speed over 18.00km for winning driver Jean-Claude Andruet?
CREATE TABLE table_name_23 (avg_speed VARCHAR, distance VARCHAR, winning_driver VARCHAR)
SELECT avg_speed FROM table_name_23 WHERE distance = "18.00km" AND winning_driver = "jean-claude andruet"
What was the time of the car having a constructor of Renault, which went 40 laps?
CREATE TABLE table_name_96 (time_retired VARCHAR, constructor VARCHAR, laps VARCHAR)
SELECT time_retired FROM table_name_96 WHERE constructor = "renault" AND laps = "40"