instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: Which season's winner is Panathinaikos and is located in Athens? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (season VARCHAR, location VARCHAR, winners VARCHAR) | SELECT season FROM table_name_33 WHERE location = "athens" AND winners = "panathinaikos" |
Write a SQL query that answers the following question: What is the date recorded of Hate? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (recorded VARCHAR, translation VARCHAR) | SELECT recorded FROM table_name_34 WHERE translation = "hate" |
Write a SQL query that answers the following question: Who is the composer on the tracks less than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (composer VARCHAR, track INTEGER) | SELECT composer FROM table_name_36 WHERE track < 4 |
Write a SQL query that answers the following question: What is the title of track 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (title VARCHAR, track VARCHAR) | SELECT title FROM table_name_83 WHERE track = 7 |
Write a SQL query that answers the following question: What is the recorded date of track 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (recorded VARCHAR, track VARCHAR) | SELECT recorded FROM table_name_73 WHERE track = 8 |
Write a SQL query that answers the following question: How many number Builts had unit numbers of 375301-310? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (no_built INTEGER, unit_nos VARCHAR) | SELECT SUM(no_built) FROM table_name_19 WHERE unit_nos = "375301-310" |
Write a SQL query that answers the following question: What was the score of the game where Montreal was the home team and the Devils had a record of 40–24–6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (score VARCHAR, home VARCHAR, record VARCHAR) | SELECT score FROM table_name_91 WHERE home = "montreal" AND record = "40–24–6" |
Write a SQL query that answers the following question: Which location has 140 stores? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (location VARCHAR, stores VARCHAR) | SELECT location FROM table_name_29 WHERE stores = "140" |
Write a SQL query that answers the following question: Which year did the Short Pump Town Center Mall open? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (year_opened VARCHAR, mall_name VARCHAR) | SELECT year_opened FROM table_name_4 WHERE mall_name = "short pump town center" |
Write a SQL query that answers the following question: What is the retail space of the Stony Point Fashion Park Mall? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (retail_space_sq_feet__m²_ VARCHAR, mall_name VARCHAR) | SELECT retail_space_sq_feet__m²_ FROM table_name_70 WHERE mall_name = "stony point fashion park" |
Write a SQL query that answers the following question: Which Mall has 140 stores? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (mall_name VARCHAR, stores VARCHAR) | SELECT mall_name FROM table_name_3 WHERE stores = "140" |
Write a SQL query that answers the following question: What match was on 30 january 1938? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (match VARCHAR, date VARCHAR) | SELECT match FROM table_name_33 WHERE date = "30 january 1938" |
Write a SQL query that answers the following question: What was the result of the napoli-roma match? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (result VARCHAR, match VARCHAR) | SELECT result FROM table_name_75 WHERE match = "napoli-roma" |
Write a SQL query that answers the following question: What is the player that is from seattle prep? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (player VARCHAR, school VARCHAR) | SELECT player FROM table_name_15 WHERE school = "seattle prep" |
Write a SQL query that answers the following question: What is the hometown of the player which has a height of 6-0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (hometown VARCHAR, height VARCHAR) | SELECT hometown FROM table_name_31 WHERE height = "6-0" |
Write a SQL query that answers the following question: What is the hometown for the player that went to the college of washington | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (hometown VARCHAR, college VARCHAR) | SELECT hometown FROM table_name_54 WHERE college = "washington" |
Write a SQL query that answers the following question: What was the away team's score at Princes Park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_3 WHERE venue = "princes park" |
Write a SQL query that answers the following question: When did Richmond play an away game against Collingwood? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_36 WHERE away_team = "richmond" |
Write a SQL query that answers the following question: How many league cup goals on average for players with over 0 FA cup and 5 league goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (league INTEGER, fa_cup VARCHAR) | SELECT AVG(league) AS Cup FROM table_name_64 WHERE fa_cup > 0 AND league = 5 |
Write a SQL query that answers the following question: What is the low FA cup goals for viduka with under 2 europe goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (fa_cup INTEGER, name VARCHAR, europe VARCHAR) | SELECT MIN(fa_cup) FROM table_name_58 WHERE name = "viduka" AND europe < 2 |
Write a SQL query that answers the following question: Who won the most recent favorite rap/hip-hop new artist at the American music awards? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (year INTEGER, association VARCHAR, category VARCHAR) | SELECT MAX(year) FROM table_name_55 WHERE association = "american music awards" AND category = "favorite rap/hip-hop new artist" |
Write a SQL query that answers the following question: What is the Date with a Leading scorer with maurice williams (25), and a Score with 102–105? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (date VARCHAR, leading_scorer VARCHAR, score VARCHAR) | SELECT date FROM table_name_24 WHERE leading_scorer = "maurice williams (25)" AND score = "102–105" |
Write a SQL query that answers the following question: What is the Score with a Home with hornets? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (score VARCHAR, home VARCHAR) | SELECT score FROM table_name_54 WHERE home = "hornets" |
Write a SQL query that answers the following question: What is the Score with a Visitor of bucks, and a Leading scorer with maurice williams (25)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (score VARCHAR, visitor VARCHAR, leading_scorer VARCHAR) | SELECT score FROM table_name_81 WHERE visitor = "bucks" AND leading_scorer = "maurice williams (25)" |
Write a SQL query that answers the following question: What is the Record with a Leading scorer with andrew bogut (29)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (record VARCHAR, leading_scorer VARCHAR) | SELECT record FROM table_name_49 WHERE leading_scorer = "andrew bogut (29)" |
Write a SQL query that answers the following question: What is the Record with a Leading scorer with maurice williams (25), and a Date with 27 january 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (record VARCHAR, leading_scorer VARCHAR, date VARCHAR) | SELECT record FROM table_name_38 WHERE leading_scorer = "maurice williams (25)" AND date = "27 january 2008" |
Write a SQL query that answers the following question: What is the Record with a Score with 80–87, and a Visitor with bucks? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (record VARCHAR, score VARCHAR, visitor VARCHAR) | SELECT record FROM table_name_12 WHERE score = "80–87" AND visitor = "bucks" |
Write a SQL query that answers the following question: What is the nationality of the player Tom Boswell? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_74 WHERE player = "tom boswell" |
Write a SQL query that answers the following question: What is the nationality of the player from Duke? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (nationality VARCHAR, school_club_team VARCHAR) | SELECT nationality FROM table_name_18 WHERE school_club_team = "duke" |
Write a SQL query that answers the following question: What position did the player from Florida International play? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (position VARCHAR, school_club_team VARCHAR) | SELECT position FROM table_name_31 WHERE school_club_team = "florida international" |
Write a SQL query that answers the following question: What is the nationality of the player from UCLA? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (nationality VARCHAR, school_club_team VARCHAR) | SELECT nationality FROM table_name_4 WHERE school_club_team = "ucla" |
Write a SQL query that answers the following question: What was Attendance/G with Tms more than 18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (attendance_g INTEGER, tms INTEGER) | SELECT AVG(attendance_g) FROM table_name_48 WHERE tms > 18 |
Write a SQL query that answers the following question: Which chassis had an entrant of John Mecom? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (chassis VARCHAR, entrant VARCHAR) | SELECT chassis FROM table_name_37 WHERE entrant = "john mecom" |
Write a SQL query that answers the following question: What tyre was used for an entrant of Ecurie Nationale Suisse? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (tyre VARCHAR, entrant VARCHAR) | SELECT tyre FROM table_name_27 WHERE entrant = "ecurie nationale suisse" |
Write a SQL query that answers the following question: Which rounds was Hap Sharp a driver in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (rounds VARCHAR, driver VARCHAR) | SELECT rounds FROM table_name_40 WHERE driver = "hap sharp" |
Write a SQL query that answers the following question: what is the year when the title is jotei? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (year INTEGER, title VARCHAR) | SELECT SUM(year) FROM table_name_38 WHERE title = "jotei" |
Write a SQL query that answers the following question: what is the original channel when the year is before 2006 and the note is supporting? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (original_channel VARCHAR, year VARCHAR, note VARCHAR) | SELECT original_channel FROM table_name_67 WHERE year < 2006 AND note = "supporting" |
Write a SQL query that answers the following question: what is the original channel when the note is co-star in year 2012? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (original_channel VARCHAR, note VARCHAR, year VARCHAR) | SELECT original_channel FROM table_name_61 WHERE note = "co-star" AND year = 2012 |
Write a SQL query that answers the following question: what is the original channel when the year is after 2012? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (original_channel VARCHAR, year INTEGER) | SELECT original_channel FROM table_name_7 WHERE year > 2012 |
Write a SQL query that answers the following question: what is the year when the note is supporting and the title is rokumeikan? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (year VARCHAR, note VARCHAR, title VARCHAR) | SELECT year FROM table_name_5 WHERE note = "supporting" AND title = "rokumeikan" |
Write a SQL query that answers the following question: what is the title when the year is after 2011 and the original channel is nhk? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (title VARCHAR, year VARCHAR, original_channel VARCHAR) | SELECT title FROM table_name_71 WHERE year > 2011 AND original_channel = "nhk" |
Write a SQL query that answers the following question: On which circuit does lorenzo bandini have the fastest lap as well as the pole position? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (circuit VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR) | SELECT circuit FROM table_name_91 WHERE fastest_lap = "lorenzo bandini" AND pole_position = "lorenzo bandini" |
Write a SQL query that answers the following question: At what race does jim clark has a Pole position on the Circuit of monaco? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (race VARCHAR, pole_position VARCHAR, circuit VARCHAR) | SELECT race FROM table_name_72 WHERE pole_position = "jim clark" AND circuit = "monaco" |
Write a SQL query that answers the following question: Which Report is on the Circuit of reims? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (report VARCHAR, circuit VARCHAR) | SELECT report FROM table_name_32 WHERE circuit = "reims" |
Write a SQL query that answers the following question: On what Date is there a race on the Circuit of brands hatch? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (date VARCHAR, circuit VARCHAR) | SELECT date FROM table_name_77 WHERE circuit = "brands hatch" |
Write a SQL query that answers the following question: Who is the Winnning driver in which lorenzo bandini has the fastest lap as well as the Pole position? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (winning_driver VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR) | SELECT winning_driver FROM table_name_21 WHERE fastest_lap = "lorenzo bandini" AND pole_position = "lorenzo bandini" |
Write a SQL query that answers the following question: On what date is there a Tryre of d at the Circuit of monaco? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (date VARCHAR, tyre VARCHAR, circuit VARCHAR) | SELECT date FROM table_name_91 WHERE tyre = "d" AND circuit = "monaco" |
Write a SQL query that answers the following question: What's the date that Morocco has an Against along with a surface of hard? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (date VARCHAR, against VARCHAR, surface VARCHAR) | SELECT date FROM table_name_46 WHERE against = "morocco" AND surface = "hard" |
Write a SQL query that answers the following question: What's Round has a Surface of hard and Opponent of Jelena Simic? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (round VARCHAR, surface VARCHAR, opponent VARCHAR) | SELECT round FROM table_name_51 WHERE surface = "hard" AND opponent = "jelena simic" |
Write a SQL query that answers the following question: What driver won in the xv grand prix de l'albigeois in a vehicle by ferrari? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (winning_driver VARCHAR, constructor VARCHAR, race_name VARCHAR) | SELECT winning_driver FROM table_name_95 WHERE constructor = "ferrari" AND race_name = "xv grand prix de l'albigeois" |
Write a SQL query that answers the following question: What is the latest death with a description of BR-Built inspection saloon? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (date INTEGER, description VARCHAR) | SELECT MAX(date) FROM table_name_4 WHERE description = "br-built inspection saloon" |
Write a SQL query that answers the following question: What is the identifying number for a description of Stanier (Period III) full brake? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (number_ VARCHAR, _name VARCHAR, description VARCHAR) | SELECT number_ & _name FROM table_name_57 WHERE description = "stanier (period iii) full brake" |
Write a SQL query that answers the following question: What is the date with identifying number of No. 37817? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (date VARCHAR, number_ VARCHAR, _name VARCHAR) | SELECT date FROM table_name_86 WHERE number_ & _name = "no. 37817" |
Write a SQL query that answers the following question: What is the release date for the standard cd release format in north america? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (release_date VARCHAR, release_format VARCHAR, country VARCHAR) | SELECT release_date FROM table_name_18 WHERE release_format = "standard cd" AND country = "north america" |
Write a SQL query that answers the following question: What is the cat no for the label mute and the standard cd format? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (cat_no VARCHAR, label_s_ VARCHAR, release_format VARCHAR) | SELECT cat_no FROM table_name_23 WHERE label_s_ = "mute" AND release_format = "standard cd" |
Write a SQL query that answers the following question: What is the rating for the episode with the night rank of 11 and timeslot rank is larger than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (rating INTEGER, night_rank VARCHAR, timeslot_rank VARCHAR) | SELECT AVG(rating) FROM table_name_51 WHERE night_rank = "11" AND timeslot_rank > 4 |
Write a SQL query that answers the following question: What is the smallest share for a timeslot ranking less than 4 and fewer viewers than 8.78 million? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (share INTEGER, viewers__m_ VARCHAR, timeslot_rank VARCHAR) | SELECT MIN(share) FROM table_name_67 WHERE viewers__m_ < 8.78 AND timeslot_rank < 4 |
Write a SQL query that answers the following question: What is the rating of the episode with 13.47 million viewers and overall rank larger than 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (rating INTEGER, viewers__m_ VARCHAR, overall_rank VARCHAR) | SELECT SUM(rating) FROM table_name_69 WHERE viewers__m_ = 13.47 AND overall_rank > 6 |
Write a SQL query that answers the following question: What is the rank of the episode with a share of 6 and timeslot rank smaller than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (overall_rank INTEGER, share VARCHAR, timeslot_rank VARCHAR) | SELECT AVG(overall_rank) FROM table_name_39 WHERE share = 6 AND timeslot_rank < 4 |
Write a SQL query that answers the following question: How many premierships for the queensland raceway? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (premierships VARCHAR, venue VARCHAR) | SELECT premierships FROM table_name_40 WHERE venue = "queensland raceway" |
Write a SQL query that answers the following question: How many premierships for the commonwealth bank trophy league? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (premierships VARCHAR, league VARCHAR) | SELECT premierships FROM table_name_25 WHERE league = "commonwealth bank trophy" |
Write a SQL query that answers the following question: In which round was there a pick of 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (round INTEGER, pick VARCHAR) | SELECT MAX(round) FROM table_name_66 WHERE pick = 4 |
Write a SQL query that answers the following question: How many rounds were there an offensive tackle position? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (round VARCHAR, position VARCHAR) | SELECT COUNT(round) FROM table_name_66 WHERE position = "offensive tackle" |
Write a SQL query that answers the following question: What was the pick number in round 228 for Mike Ford? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (pick INTEGER, player VARCHAR, round VARCHAR) | SELECT MAX(pick) FROM table_name_44 WHERE player = "mike ford" AND round > 228 |
Write a SQL query that answers the following question: What year was E. Meyer the driver? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (year VARCHAR, driver VARCHAR) | SELECT year FROM table_name_9 WHERE driver = "e. meyer" |
Write a SQL query that answers the following question: What is the name of the driver of the vehicle constructed by Bugatti in Anfa? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (driver VARCHAR, constructor VARCHAR, location VARCHAR) | SELECT driver FROM table_name_2 WHERE constructor = "bugatti" AND location = "anfa" |
Write a SQL query that answers the following question: What company constructed the vehicle in the location not held in 1933? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (constructor VARCHAR, location VARCHAR, year VARCHAR) | SELECT constructor FROM table_name_99 WHERE location = "not held" AND year = "1933" |
Write a SQL query that answers the following question: What company constructed the vehicle when the driver shows as not held? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (constructor VARCHAR, driver VARCHAR) | SELECT constructor FROM table_name_61 WHERE driver = "not held" |
Write a SQL query that answers the following question: What is the name of the driver in 1955? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (driver VARCHAR, year VARCHAR) | SELECT driver FROM table_name_18 WHERE year = "1955" |
Write a SQL query that answers the following question: What is the name of the constructor when report shows report in 1955? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (constructor VARCHAR, year VARCHAR) | SELECT constructor FROM table_name_48 WHERE "report" = "report" AND year = "1955" |
Write a SQL query that answers the following question: What is the inductioin for 1975–1976? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (induction VARCHAR, years VARCHAR) | SELECT induction FROM table_name_93 WHERE years = "1975–1976" |
Write a SQL query that answers the following question: What is the power of an engine of 1972? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (power VARCHAR, years VARCHAR) | SELECT power FROM table_name_73 WHERE years = "1972" |
Write a SQL query that answers the following question: In the game where richmond was the away team, what venue was it played at? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_99 WHERE away_team = "richmond" |
Write a SQL query that answers the following question: On what date did the match where fitzroy was the home team occur? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_90 WHERE home_team = "fitzroy" |
Write a SQL query that answers the following question: What is the smallest apps in Honduras with less than 2 goals for Club Deportivo Victoria in a division over 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (apps INTEGER, division VARCHAR, team VARCHAR, country VARCHAR, goals VARCHAR) | SELECT MIN(apps) FROM table_name_79 WHERE country = "honduras" AND goals < 2 AND team = "club deportivo victoria" AND division > 1 |
Write a SQL query that answers the following question: What grid for jacques villeneuve with over 36 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (grid INTEGER, driver VARCHAR, laps VARCHAR) | SELECT MAX(grid) FROM table_name_8 WHERE driver = "jacques villeneuve" AND laps > 36 |
Write a SQL query that answers the following question: What were the lowest laps of Tarso Marques? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (laps INTEGER, driver VARCHAR) | SELECT MIN(laps) FROM table_name_69 WHERE driver = "tarso marques" |
Write a SQL query that answers the following question: What's the average Grid for those who spun off after Lap 64? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) | SELECT AVG(grid) FROM table_name_68 WHERE time_retired = "spun off" AND laps > 64 |
Write a SQL query that answers the following question: What is the grid total that has a Time/Retired of + 1:33.141, and under 70 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) | SELECT SUM(grid) FROM table_name_27 WHERE time_retired = "+ 1:33.141" AND laps < 70 |
Write a SQL query that answers the following question: What is the high lap total for tyrrell - yamaha, and a Time/Retired of + 1 lap? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (laps INTEGER, constructor VARCHAR, time_retired VARCHAR) | SELECT MAX(laps) FROM table_name_42 WHERE constructor = "tyrrell - yamaha" AND time_retired = "+ 1 lap" |
Write a SQL query that answers the following question: What is the low lap total for a grid of 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (laps INTEGER, grid VARCHAR) | SELECT MIN(laps) FROM table_name_12 WHERE grid = 14 |
Write a SQL query that answers the following question: How many laps for martin brundle with a grid of less than 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (laps VARCHAR, driver VARCHAR, grid VARCHAR) | SELECT COUNT(laps) FROM table_name_54 WHERE driver = "martin brundle" AND grid < 10 |
Write a SQL query that answers the following question: What was the average points in the quarterfinals domestic cup? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (points INTEGER, domestic_cup VARCHAR) | SELECT AVG(points) FROM table_name_72 WHERE domestic_cup = "quarterfinals" |
Write a SQL query that answers the following question: Which level is quarterfinals domestic cup? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (level VARCHAR, domestic_cup VARCHAR) | SELECT level FROM table_name_22 WHERE domestic_cup = "quarterfinals" |
Write a SQL query that answers the following question: What format is catalogue 148615 in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (format VARCHAR, catalogue VARCHAR) | SELECT format FROM table_name_78 WHERE catalogue = "148615" |
Write a SQL query that answers the following question: Which region was on June 8, 2004? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (region VARCHAR, date VARCHAR) | SELECT region FROM table_name_7 WHERE date = "june 8, 2004" |
Write a SQL query that answers the following question: What format is catalogue WPCR13504 in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (format VARCHAR, catalogue VARCHAR) | SELECT format FROM table_name_94 WHERE catalogue = "wpcr13504" |
Write a SQL query that answers the following question: What format is the Catalogue 9362486152 from the region of Australia in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (format VARCHAR, catalogue VARCHAR, region VARCHAR) | SELECT format FROM table_name_79 WHERE catalogue = "9362486152" AND region = "australia" |
Write a SQL query that answers the following question: What region is the catalogue number 9362486152 that was from September 3, 2004 from? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (region VARCHAR, catalogue VARCHAR, date VARCHAR) | SELECT region FROM table_name_50 WHERE catalogue = "9362486152" AND date = "september 3, 2004" |
Write a SQL query that answers the following question: What region is the catalogue released on June 8, 2004 from? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (region VARCHAR, date VARCHAR) | SELECT region FROM table_name_88 WHERE date = "june 8, 2004" |
Write a SQL query that answers the following question: What day is carlton the home side? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_87 WHERE home_team = "carlton" |
Write a SQL query that answers the following question: What is the home team's score when south melbourne is away? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_23 WHERE away_team = "south melbourne" |
Write a SQL query that answers the following question: Tell me the listed when cerclis id is msd004006995 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (listed VARCHAR, cerclis_id VARCHAR) | SELECT listed FROM table_name_17 WHERE cerclis_id = "msd004006995" |
Write a SQL query that answers the following question: What is the timeslor rank for the episode with larger than 2.9 rating, rating/share of 2.6/8 and rank for the night higher than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (rank__timeslot_ INTEGER, rank__night_ VARCHAR, rating VARCHAR) | SELECT AVG(rank__timeslot_) FROM table_name_2 WHERE rating > 2.9 AND rating / SHARE(18 - 49) = 2.6 / 8 AND rank__night_ > 5 |
Write a SQL query that answers the following question: What is the smallest rating with nightly rank smaller than 7, timeslot rank smaller than 5 and eposide after episode 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (rating INTEGER, episode VARCHAR, rank__night_ VARCHAR, rank__timeslot_ VARCHAR) | SELECT MIN(rating) FROM table_name_27 WHERE rank__night_ < 7 AND rank__timeslot_ < 5 AND episode > 6 |
Write a SQL query that answers the following question: What is the lowest nightly rank for an episode after episode 1 with a rating/share of 2.6/8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (rank__night_ INTEGER, episode VARCHAR, rating VARCHAR) | SELECT MIN(rank__night_) FROM table_name_91 WHERE rating / SHARE(18 - 49) = 2.6 / 8 AND episode > 1 |
Write a SQL query that answers the following question: What is the timeslot rank when the rating is smaller than 2.6 and the share is more than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (rank__timeslot_ INTEGER, rating VARCHAR, share VARCHAR) | SELECT AVG(rank__timeslot_) FROM table_name_97 WHERE rating < 2.6 AND share > 4 |
Write a SQL query that answers the following question: What is the smallest timeslot rank when the rating is smaller than 2.6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (rank__timeslot_ INTEGER, rating INTEGER) | SELECT MIN(rank__timeslot_) FROM table_name_29 WHERE rating < 2.6 |
Write a SQL query that answers the following question: What away team played at Kardinia Park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_24 WHERE venue = "kardinia park" |
Write a SQL query that answers the following question: What team played Hawthorn? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_82 WHERE home_team = "hawthorn" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.