instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What is the highest number of laps with a time of +6.643 and grid less than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) | SELECT MAX(laps) FROM table_name_58 WHERE time_retired = "+6.643" AND grid < 2 |
Write a SQL query that answers the following question: When was there 204 deaths? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (dates_active VARCHAR, deaths VARCHAR) | SELECT dates_active FROM table_name_93 WHERE deaths = "204" |
Write a SQL query that answers the following question: When is the birth date of player with right arm fast style? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (date_of_birth VARCHAR, bowling_style VARCHAR) | SELECT date_of_birth FROM table_name_74 WHERE bowling_style = "right arm fast" |
Write a SQL query that answers the following question: What batting style corresponds to a bowling style of right arm medium for Stuart Williams? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (batting_style VARCHAR, bowling_style VARCHAR, player VARCHAR) | SELECT batting_style FROM table_name_32 WHERE bowling_style = "right arm medium" AND player = "stuart williams" |
Write a SQL query that answers the following question: What is the birth date for Mervyn Dillon? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (date_of_birth VARCHAR, player VARCHAR) | SELECT date_of_birth FROM table_name_11 WHERE player = "mervyn dillon" |
Write a SQL query that answers the following question: What position does Michael Ruffin play? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (position VARCHAR, player VARCHAR) | SELECT position FROM table_name_98 WHERE player = "michael ruffin" |
Write a SQL query that answers the following question: What is the nationality of the center? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (nationality VARCHAR, position VARCHAR) | SELECT nationality FROM table_name_72 WHERE position = "center" |
Write a SQL query that answers the following question: What is the nationality of the Jazz player 1977-79? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (nationality VARCHAR, years_for_jazz VARCHAR) | SELECT nationality FROM table_name_30 WHERE years_for_jazz = "1977-79" |
Write a SQL query that answers the following question: Tell me the School/Club team of the player from the United States that play'de guard? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (school_club_team VARCHAR, nationality VARCHAR, position VARCHAR) | SELECT school_club_team FROM table_name_53 WHERE nationality = "united states" AND position = "guard" |
Write a SQL query that answers the following question: What nationality is Bill Robinzine? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_69 WHERE player = "bill robinzine" |
Write a SQL query that answers the following question: What is the average of seasons for 10th place finishes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (season INTEGER, position VARCHAR) | SELECT AVG(season) FROM table_name_95 WHERE position = "10th" |
Write a SQL query that answers the following question: What season was there a 2nd place finish? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (season VARCHAR, position VARCHAR) | SELECT season FROM table_name_81 WHERE position = "2nd" |
Write a SQL query that answers the following question: What level for seasons after 2003, a Division of kakkonen (second division), and a Position of 12th? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (level VARCHAR, position VARCHAR, season VARCHAR, division VARCHAR) | SELECT level FROM table_name_21 WHERE season > 2003 AND division = "kakkonen (second division)" AND position = "12th" |
Write a SQL query that answers the following question: What was the streak on April 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (streak VARCHAR, date VARCHAR) | SELECT streak FROM table_name_61 WHERE date = "april 2" |
Write a SQL query that answers the following question: Who was the visiting team when the leading scorer was Jones : 20? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (visitor VARCHAR, leading_scorer VARCHAR) | SELECT visitor FROM table_name_9 WHERE leading_scorer = "jones : 20" |
Write a SQL query that answers the following question: How many people watched season 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (viewers__in_millions_ VARCHAR, season VARCHAR) | SELECT viewers__in_millions_ FROM table_name_69 WHERE season = "1" |
Write a SQL query that answers the following question: What is the PI GP of Rob Flockhart, who has a pick # less than 122 and a round # less than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (pl_gp INTEGER, rd__number VARCHAR, pick__number VARCHAR, player VARCHAR) | SELECT SUM(pl_gp) FROM table_name_44 WHERE pick__number < 122 AND player = "rob flockhart" AND rd__number < 3 |
Write a SQL query that answers the following question: What is the lowest reg gp of the player with a round # more than 2, a pick # of 80, and a PI GP larger than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (reg_gp INTEGER, pl_gp VARCHAR, rd__number VARCHAR, pick__number VARCHAR) | SELECT MIN(reg_gp) FROM table_name_69 WHERE rd__number > 2 AND pick__number = 80 AND pl_gp > 0 |
Write a SQL query that answers the following question: Name the highest FIPS code for coordinates of 41.827547, -74.118478 and land less than 1.196 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (fips_code INTEGER, coordinates VARCHAR, land___sq_mi__ VARCHAR) | SELECT MAX(fips_code) FROM table_name_58 WHERE coordinates = "41.827547, -74.118478" AND land___sq_mi__ < 1.196 |
Write a SQL query that answers the following question: Name the CDP name for FIPS code of 3659708 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (cdp_name VARCHAR, fips_code VARCHAR) | SELECT cdp_name FROM table_name_58 WHERE fips_code = 3659708 |
Write a SQL query that answers the following question: Name the FIPS code for county of wyoming and CDP name of pike | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (fips_code VARCHAR, county VARCHAR, cdp_name VARCHAR) | SELECT fips_code FROM table_name_36 WHERE county = "wyoming" AND cdp_name = "pike" |
Write a SQL query that answers the following question: Name the sum of land for ANSI code of 2390496 and population less than 7,284 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (land___sq_mi__ INTEGER, ansi_code VARCHAR, pop__2010_ VARCHAR) | SELECT SUM(land___sq_mi__) FROM table_name_80 WHERE ansi_code = 2390496 AND pop__2010_ < 7 OFFSET 284 |
Write a SQL query that answers the following question: How many sacks for the player with over 1 tackle, under 3 assisted tackles, and over 0 yards? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (sack VARCHAR, yards VARCHAR, tackles VARCHAR, assisted VARCHAR) | SELECT COUNT(sack) FROM table_name_46 WHERE tackles > 1 AND assisted < 3 AND yards > 0 |
Write a SQL query that answers the following question: What stamp design has a denomination of $1.18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (design VARCHAR, denomination VARCHAR) | SELECT design FROM table_name_33 WHERE denomination = "$1.18" |
Write a SQL query that answers the following question: What is the denomination for the stamp issued 8 January 2009? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (denomination VARCHAR, date_of_issue VARCHAR) | SELECT denomination FROM table_name_34 WHERE date_of_issue = "8 january 2009" |
Write a SQL query that answers the following question: What date was the John Belisle, Kosta Tsetsekas stamp issued? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (date_of_issue VARCHAR, design VARCHAR) | SELECT date_of_issue FROM table_name_43 WHERE design = "john belisle, kosta tsetsekas" |
Write a SQL query that answers the following question: What is the first day cover cancellation for the Karen Smith Design stamp? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (first_day_cover_cancellation VARCHAR, design VARCHAR) | SELECT first_day_cover_cancellation FROM table_name_31 WHERE design = "karen smith design" |
Write a SQL query that answers the following question: What is the date of Competition of 2008 africa cup of nations? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (date VARCHAR, competition VARCHAR) | SELECT date FROM table_name_37 WHERE competition = "2008 africa cup of nations" |
Write a SQL query that answers the following question: What is the score on 22 january 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_88 WHERE date = "22 january 2008" |
Write a SQL query that answers the following question: Which venue was used 22 january 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (venue VARCHAR, date VARCHAR) | SELECT venue FROM table_name_86 WHERE date = "22 january 2008" |
Write a SQL query that answers the following question: What result has a Score of 1–0, and a Competition of 2014 fifa world cup qualification? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (result VARCHAR, score VARCHAR, competition VARCHAR) | SELECT result FROM table_name_47 WHERE score = "1–0" AND competition = "2014 fifa world cup qualification" |
Write a SQL query that answers the following question: What date was the Competition of 2014 fifa world cup qualification, with a Score of 1–0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (date VARCHAR, competition VARCHAR, score VARCHAR) | SELECT date FROM table_name_26 WHERE competition = "2014 fifa world cup qualification" AND score = "1–0" |
Write a SQL query that answers the following question: what is the object type when the right ascension (j2000) is 11h10m42.8s? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (object_type VARCHAR, right_ascension___j2000__ VARCHAR) | SELECT object_type FROM table_name_77 WHERE right_ascension___j2000__ = "11h10m42.8s" |
Write a SQL query that answers the following question: what is the declination (j2000) when the ngc number is higher than 3593? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (declination___j2000__ VARCHAR, ngc_number INTEGER) | SELECT declination___j2000__ FROM table_name_90 WHERE ngc_number > 3593 |
Write a SQL query that answers the following question: what is the constellation when the object type is spiral galaxy, the ngc number is less than 3593 and the right ascension (j2000) is 11h05m48.9s? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (constellation VARCHAR, right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR) | SELECT constellation FROM table_name_24 WHERE object_type = "spiral galaxy" AND ngc_number < 3593 AND right_ascension___j2000__ = "11h05m48.9s" |
Write a SQL query that answers the following question: what is the right ascension (j2000) when the ngc number is 3576? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (right_ascension___j2000__ VARCHAR, ngc_number VARCHAR) | SELECT right_ascension___j2000__ FROM table_name_41 WHERE ngc_number = 3576 |
Write a SQL query that answers the following question: Who is the driver when the grid is 18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (driver VARCHAR, grid VARCHAR) | SELECT driver FROM table_name_18 WHERE grid = "18" |
Write a SQL query that answers the following question: What is the time/retired when the grid is 19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (time_retired VARCHAR, grid VARCHAR) | SELECT time_retired FROM table_name_42 WHERE grid = "19" |
Write a SQL query that answers the following question: What was St Kilda's home team opponents score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_56 WHERE away_team = "st kilda" |
Write a SQL query that answers the following question: When did Hawthorn play at home? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_27 WHERE home_team = "hawthorn" |
Write a SQL query that answers the following question: How many people were in attendance at St Kilda's away match? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (crowd VARCHAR, away_team VARCHAR) | SELECT crowd FROM table_name_18 WHERE away_team = "st kilda" |
Write a SQL query that answers the following question: What is the date of the British Rail class 111 tslrb description? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (date VARCHAR, description VARCHAR) | SELECT date FROM table_name_40 WHERE description = "british rail class 111 tslrb" |
Write a SQL query that answers the following question: What is the number & name with an Undergoing overhaul, restoration or repairs date? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (number_ VARCHAR, _name VARCHAR, date VARCHAR) | SELECT number_ & _name FROM table_name_65 WHERE date = "undergoing overhaul, restoration or repairs" |
Write a SQL query that answers the following question: What is the number & name of the livery in 1958? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (number_ VARCHAR, _name VARCHAR, date VARCHAR) | SELECT number_ & _name FROM table_name_78 WHERE date = "1958" |
Write a SQL query that answers the following question: What is the lowest rank for a nation with 29 total medals, over 5 silvers, and under 16 bronze? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (rank INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR) | SELECT MIN(rank) FROM table_name_71 WHERE silver > 5 AND total = 29 AND bronze < 16 |
Write a SQL query that answers the following question: What is the highest rank for a nation with 26 golds and over 17 silvers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (rank INTEGER, gold VARCHAR, silver VARCHAR) | SELECT MAX(rank) FROM table_name_39 WHERE gold = 26 AND silver > 17 |
Write a SQL query that answers the following question: What is the catalog number with the date November 16, 2004? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (catalog VARCHAR, date VARCHAR) | SELECT catalog FROM table_name_15 WHERE date = "november 16, 2004" |
Write a SQL query that answers the following question: What is the date of the item with a label of Sony BMG, Epic and a Catalog number 5187482? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (date VARCHAR, label VARCHAR, catalog VARCHAR) | SELECT date FROM table_name_82 WHERE label = "sony bmg, epic" AND catalog = "5187482" |
Write a SQL query that answers the following question: Which Catalog has a Region of Canada and a Format of cd/dvd? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (catalog VARCHAR, region VARCHAR, format VARCHAR) | SELECT catalog FROM table_name_61 WHERE region = "canada" AND format = "cd/dvd" |
Write a SQL query that answers the following question: What is the date for a CD format with a Region of Europe? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (date VARCHAR, region VARCHAR, format VARCHAR) | SELECT date FROM table_name_54 WHERE region = "europe" AND format = "cd" |
Write a SQL query that answers the following question: What nationality is the la salle team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (nationality VARCHAR, school_club_team VARCHAR) | SELECT nationality FROM table_name_28 WHERE school_club_team = "la salle" |
Write a SQL query that answers the following question: What's the nationality of jim les? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_24 WHERE player = "jim les" |
Write a SQL query that answers the following question: Which player has a nationality of spain? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (player VARCHAR, nationality VARCHAR) | SELECT player FROM table_name_24 WHERE nationality = "spain" |
Write a SQL query that answers the following question: What position is listed for the nebraska team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (position VARCHAR, school_club_team VARCHAR) | SELECT position FROM table_name_75 WHERE school_club_team = "nebraska" |
Write a SQL query that answers the following question: On October 24, who played at home when there was a decision of Ward? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (home VARCHAR, decision VARCHAR, date VARCHAR) | SELECT home FROM table_name_95 WHERE decision = "ward" AND date = "october 24" |
Write a SQL query that answers the following question: How many laps are there for grid 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (laps VARCHAR, grid VARCHAR) | SELECT laps FROM table_name_53 WHERE grid = 8 |
Write a SQL query that answers the following question: What is the driver for Grid 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (driver VARCHAR, grid VARCHAR) | SELECT driver FROM table_name_46 WHERE grid = 8 |
Write a SQL query that answers the following question: What is the average grid for Clay Regazzoni? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (grid INTEGER, driver VARCHAR) | SELECT AVG(grid) FROM table_name_29 WHERE driver = "clay regazzoni" |
Write a SQL query that answers the following question: What is the average laps for the grid smaller than 21 for Renzo Zorzi? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (laps INTEGER, grid VARCHAR, driver VARCHAR) | SELECT AVG(laps) FROM table_name_6 WHERE grid < 21 AND driver = "renzo zorzi" |
Write a SQL query that answers the following question: What is the average laps for Grid 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (laps INTEGER, grid VARCHAR) | SELECT AVG(laps) FROM table_name_87 WHERE grid = 9 |
Write a SQL query that answers the following question: Name the constituted for labor and scullin ministry | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (constituted VARCHAR, party VARCHAR, name VARCHAR) | SELECT constituted FROM table_name_86 WHERE party = "labor" AND name = "scullin ministry" |
Write a SQL query that answers the following question: Who was South Melbourne's away team opponents? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_70 WHERE home_team = "south melbourne" |
Write a SQL query that answers the following question: Who was the leading scorer on November 2, 2007? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (leading_scorer VARCHAR, date VARCHAR) | SELECT leading_scorer FROM table_name_62 WHERE date = "november 2, 2007" |
Write a SQL query that answers the following question: What was the attendance when the Hawks played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (attendance VARCHAR, home VARCHAR) | SELECT COUNT(attendance) FROM table_name_24 WHERE home = "hawks" |
Write a SQL query that answers the following question: How many bronzes are there for the total nation with 112 silver and a total of 72? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (bronze INTEGER, silver VARCHAR, nation VARCHAR) | SELECT AVG(bronze) FROM table_name_39 WHERE "total" > 72 AND nation = "total" AND silver < 112 |
Write a SQL query that answers the following question: What is the highest bronze for San Marino with less than 82 total and less than 3 golds? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (bronze INTEGER, gold VARCHAR, total VARCHAR, nation VARCHAR) | SELECT MAX(bronze) FROM table_name_53 WHERE total < 82 AND nation = "san marino" AND gold < 3 |
Write a SQL query that answers the following question: How many golds were there when there was more than 11 bronze and 29 in total? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (gold VARCHAR, bronze VARCHAR, total VARCHAR) | SELECT COUNT(gold) FROM table_name_92 WHERE bronze > 11 AND total = 29 |
Write a SQL query that answers the following question: What was Montenegro's average bronze with less than 7 silver and more than 4 golds? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (bronze INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR) | SELECT AVG(bronze) FROM table_name_66 WHERE silver < 7 AND nation = "montenegro" AND gold > 4 |
Write a SQL query that answers the following question: How many golds were there for Iceland with more than 15 silver? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (gold VARCHAR, silver VARCHAR, nation VARCHAR) | SELECT COUNT(gold) FROM table_name_71 WHERE silver > 15 AND nation = "iceland" |
Write a SQL query that answers the following question: What was Andorra's total with less than 10 silver and more than 5 bronze? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (total INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR) | SELECT SUM(total) FROM table_name_97 WHERE silver < 10 AND nation = "andorra" AND bronze > 5 |
Write a SQL query that answers the following question: What is the roll number of Poroti school, which has a 6 decile? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (roll VARCHAR, decile VARCHAR, name VARCHAR) | SELECT roll FROM table_name_45 WHERE decile = "6" AND name = "poroti school" |
Write a SQL query that answers the following question: What is the roll number of the school with a state authority in Waiotira? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (roll VARCHAR, authority VARCHAR, area VARCHAR) | SELECT roll FROM table_name_76 WHERE authority = "state" AND area = "waiotira" |
Write a SQL query that answers the following question: What is the area of the school with a decile of 2 and a roll number 222? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (area VARCHAR, decile VARCHAR, roll VARCHAR) | SELECT area FROM table_name_33 WHERE decile = "2" AND roll = "222" |
Write a SQL query that answers the following question: WHat is the decile of the school in Purua? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (decile VARCHAR, area VARCHAR) | SELECT decile FROM table_name_38 WHERE area = "purua" |
Write a SQL query that answers the following question: what is the away team score when the home team is essendon? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_2 WHERE home_team = "essendon" |
Write a SQL query that answers the following question: How many total ties had less than 1183 total games, 121 years, and more than 541 losses? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (tied VARCHAR, lost VARCHAR, total_games VARCHAR, years VARCHAR) | SELECT COUNT(tied) FROM table_name_98 WHERE total_games < 1183 AND years = 121 AND lost > 541 |
Write a SQL query that answers the following question: How many losses had more than 122 years and more than 1244 total games? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (lost INTEGER, years VARCHAR, total_games VARCHAR) | SELECT SUM(lost) FROM table_name_2 WHERE years > 122 AND total_games > 1244 |
Write a SQL query that answers the following question: What is the lowest earnings for a player with over 24 wins? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (earnings__ INTEGER, wins INTEGER) | SELECT MIN(earnings__) AS $__ FROM table_name_65 WHERE wins > 24 |
Write a SQL query that answers the following question: Which constructor has Chuck Weyant as a driver, 45 laps, and a qual of less than 142.29? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (constructor VARCHAR, driver VARCHAR, laps VARCHAR, qual VARCHAR) | SELECT constructor FROM table_name_28 WHERE laps = 45 AND qual < 142.29 AND driver = "chuck weyant" |
Write a SQL query that answers the following question: Which time/retired has a qual of 144.02? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (time_retired VARCHAR, qual VARCHAR) | SELECT time_retired FROM table_name_75 WHERE qual = 144.02 |
Write a SQL query that answers the following question: Which rounds did Vic Elford with a Ford cosworth dfv 3.0 v8 engine have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (rounds VARCHAR, driver VARCHAR, engine VARCHAR) | SELECT rounds FROM table_name_63 WHERE driver = "vic elford" AND engine = "ford cosworth dfv 3.0 v8" |
Write a SQL query that answers the following question: What is the chassis for Bruce Mclaren with all rounds and a g tyre? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (chassis VARCHAR, driver VARCHAR, rounds VARCHAR, tyre VARCHAR) | SELECT chassis FROM table_name_93 WHERE rounds = "all" AND tyre = "g" AND driver = "bruce mclaren" |
Write a SQL query that answers the following question: What is the NHL team that has a team (League) of Mississauga Icedogs (ohl)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (nhl_team VARCHAR, college_junior_club_team__league_ VARCHAR) | SELECT nhl_team FROM table_name_59 WHERE college_junior_club_team__league_ = "mississauga icedogs (ohl)" |
Write a SQL query that answers the following question: Im the match where the home team is Melbourne Victory, what was the crowd attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (crowd VARCHAR, home_team VARCHAR) | SELECT COUNT(crowd) FROM table_name_97 WHERE home_team = "melbourne victory" |
Write a SQL query that answers the following question: What was the score of the match that took place in the playoff round? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (score VARCHAR, round VARCHAR) | SELECT score FROM table_name_31 WHERE round = "playoff" |
Write a SQL query that answers the following question: In the match where newcastle jets was the away team, what was the crown attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (crowd VARCHAR, away_team VARCHAR) | SELECT crowd FROM table_name_79 WHERE away_team = "newcastle jets" |
Write a SQL query that answers the following question: What team was the opponent on 1990-10-21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_97 WHERE date = "1990-10-21" |
Write a SQL query that answers the following question: What was the competition earlier than 1987? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (competition VARCHAR, year INTEGER) | SELECT competition FROM table_name_42 WHERE year < 1987 |
Write a SQL query that answers the following question: What event placed bronze earlier than 1987? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (event VARCHAR, placed VARCHAR, year VARCHAR) | SELECT event FROM table_name_16 WHERE placed = "bronze" AND year < 1987 |
Write a SQL query that answers the following question: What was the score for the match on November 13, 2005? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_20 WHERE date = "november 13, 2005" |
Write a SQL query that answers the following question: What tournament took place on July 17, 2005, with a clay surface? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (tournament VARCHAR, surface VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_70 WHERE surface = "clay" AND date = "july 17, 2005" |
Write a SQL query that answers the following question: What is the highest Grid with over 72 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (grid INTEGER, laps INTEGER) | SELECT MAX(grid) FROM table_name_8 WHERE laps > 72 |
Write a SQL query that answers the following question: What is the average number of laps associated with a Time/Retired of +1:14.801? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (laps INTEGER, time_retired VARCHAR) | SELECT AVG(laps) FROM table_name_78 WHERE time_retired = "+1:14.801" |
Write a SQL query that answers the following question: What date is the circuit at wanneroo park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (date VARCHAR, circuit VARCHAR) | SELECT date FROM table_name_64 WHERE circuit = "wanneroo park" |
Write a SQL query that answers the following question: What team has a title of calder? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (team VARCHAR, race_title VARCHAR) | SELECT team FROM table_name_5 WHERE race_title = "calder" |
Write a SQL query that answers the following question: Tell me the Laps for time/retired of +1:08.491 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (laps VARCHAR, time_retired VARCHAR) | SELECT laps FROM table_name_39 WHERE time_retired = "+1:08.491" |
Write a SQL query that answers the following question: Tell me the highest laps for toyota and grid of 13 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (laps INTEGER, constructor VARCHAR, grid VARCHAR) | SELECT MAX(laps) FROM table_name_56 WHERE constructor = "toyota" AND grid = 13 |
Write a SQL query that answers the following question: I want the Driver with Laps of 20 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (driver VARCHAR, laps VARCHAR) | SELECT driver FROM table_name_48 WHERE laps = 20 |
Write a SQL query that answers the following question: Tell me the sum of Grid for giancarlo fisichella | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (grid INTEGER, driver VARCHAR) | SELECT SUM(grid) FROM table_name_84 WHERE driver = "giancarlo fisichella" |
Write a SQL query that answers the following question: What date was the venue at VFL park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_97 WHERE venue = "vfl park" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.