instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: I want the D 42 with R 51 of r 11 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (d_42 VARCHAR, r_51 VARCHAR) | SELECT d_42 FROM table_name_41 WHERE r_51 = "r 11" |
Write a SQL query that answers the following question: I want the R 53 of D 41 of r 21 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (r_53 VARCHAR, d_41 VARCHAR) | SELECT r_53 FROM table_name_95 WHERE d_41 = "r 21" |
Write a SQL query that answers the following question: What is the low silver total for switzerland with over 0 golds? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (silver INTEGER, gold VARCHAR, nation VARCHAR) | SELECT MIN(silver) FROM table_name_30 WHERE gold > 0 AND nation = "switzerland" |
Write a SQL query that answers the following question: What is the silver total for nations with 10 bronze medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (silver INTEGER, bronze VARCHAR) | SELECT SUM(silver) FROM table_name_93 WHERE bronze = 10 |
Write a SQL query that answers the following question: What is the gold total for lithuania with under 2 silvers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (gold INTEGER, nation VARCHAR, silver VARCHAR) | SELECT SUM(gold) FROM table_name_5 WHERE nation = "lithuania" AND silver < 2 |
Write a SQL query that answers the following question: What was the score for the home team that played at Moorabbin Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_68 WHERE venue = "moorabbin oval" |
Write a SQL query that answers the following question: Name the size of the screen that came out in 2006 and is iliad | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (screen_size__inch_ VARCHAR, intro_year VARCHAR, model VARCHAR) | SELECT screen_size__inch_ FROM table_name_73 WHERE intro_year = "2006" AND model = "iliad" |
Write a SQL query that answers the following question: Which Report includes the Belgian Grand Prix Race? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (report VARCHAR, race VARCHAR) | SELECT report FROM table_name_25 WHERE race = "belgian grand prix" |
Write a SQL query that answers the following question: Which Report includes Monaco? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (report VARCHAR, location VARCHAR) | SELECT report FROM table_name_95 WHERE location = "monaco" |
Write a SQL query that answers the following question: On what date did Gunnar Nilsson make the fastest lap? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (date VARCHAR, fastest_lap VARCHAR) | SELECT date FROM table_name_38 WHERE fastest_lap = "gunnar nilsson" |
Write a SQL query that answers the following question: Who had the fastest lap for the German Grand Prix? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (fastest_lap VARCHAR, race VARCHAR) | SELECT fastest_lap FROM table_name_71 WHERE race = "german grand prix" |
Write a SQL query that answers the following question: What is the format for the album under the label, luaka bop, that had a catalog number of 3645 and dated after 1981? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (format VARCHAR, label VARCHAR, catalog VARCHAR, date VARCHAR) | SELECT format FROM table_name_15 WHERE catalog = "3645" AND date > 1981 AND label = "luaka bop" |
Write a SQL query that answers the following question: what is the earliest date for the album that had a catalog number of 3645, was formatted as a cd and was under the luaka bop label? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (date INTEGER, label VARCHAR, catalog VARCHAR, format VARCHAR) | SELECT MIN(date) FROM table_name_2 WHERE catalog = "3645" AND format = "cd" AND label = "luaka bop" |
Write a SQL query that answers the following question: Under what label was the album with the catalog of 3645 and came out later than 1987? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (label VARCHAR, catalog VARCHAR, date VARCHAR) | SELECT label FROM table_name_42 WHERE catalog = "3645" AND date > 1987 |
Write a SQL query that answers the following question: What is the points where Toronto was the home team and the game number was larger than 63? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (points INTEGER, home VARCHAR, game__number VARCHAR) | SELECT MAX(points) FROM table_name_59 WHERE home = "toronto" AND game__number > 63 |
Write a SQL query that answers the following question: How many laps did mike spence complete grids above 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (laps VARCHAR, driver VARCHAR, grid VARCHAR) | SELECT COUNT(laps) FROM table_name_85 WHERE driver = "mike spence" AND grid > 12 |
Write a SQL query that answers the following question: How many average laps did brm complete in grids larger than 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (laps INTEGER, constructor VARCHAR, grid VARCHAR) | SELECT AVG(laps) FROM table_name_70 WHERE constructor = "brm" AND grid = 12 |
Write a SQL query that answers the following question: Who drove in grids more than 3 and exited in an accident? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (driver VARCHAR, grid VARCHAR, time_retired VARCHAR) | SELECT driver FROM table_name_17 WHERE grid > 3 AND time_retired = "accident" |
Write a SQL query that answers the following question: In what grid did jim clark drive in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (grid VARCHAR, driver VARCHAR) | SELECT grid FROM table_name_21 WHERE driver = "jim clark" |
Write a SQL query that answers the following question: Which opponent has a date 21 jul 2007? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_3 WHERE date = "21 jul 2007" |
Write a SQL query that answers the following question: What was the venue of the Melbourne team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_91 WHERE home_team = "melbourne" |
Write a SQL query that answers the following question: What was the race that featured stirling moss winning with a maserati at aintree? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (race_name VARCHAR, winning_driver VARCHAR, constructor VARCHAR, circuit VARCHAR) | SELECT race_name FROM table_name_45 WHERE constructor = "maserati" AND circuit = "aintree" AND winning_driver = "stirling moss" |
Write a SQL query that answers the following question: What does the Circuit of caen report? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (report VARCHAR, circuit VARCHAR) | SELECT report FROM table_name_98 WHERE circuit = "caen" |
Write a SQL query that answers the following question: Who is the winning drive of iv grand prix de caen? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (winning_driver VARCHAR, race_name VARCHAR) | SELECT winning_driver FROM table_name_51 WHERE race_name = "iv grand prix de caen" |
Write a SQL query that answers the following question: What types of ships were made at the Froemming Brothers ship yard? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (ship_types_delivered VARCHAR, yard_name VARCHAR) | SELECT ship_types_delivered FROM table_name_32 WHERE yard_name = "froemming brothers" |
Write a SQL query that answers the following question: What is the amount of apperances of the person who had 36 goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (appearances VARCHAR, goals VARCHAR) | SELECT appearances FROM table_name_5 WHERE goals = 36 |
Write a SQL query that answers the following question: Tell me the name with points of 151.66 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (name VARCHAR, points VARCHAR) | SELECT name FROM table_name_7 WHERE points = 151.66 |
Write a SQL query that answers the following question: Tell me the total number of rank for places less than 94 and points less than 169.8 for japan | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (rank VARCHAR, nation VARCHAR, places VARCHAR, points VARCHAR) | SELECT COUNT(rank) FROM table_name_98 WHERE places < 94 AND points < 169.8 AND nation = "japan" |
Write a SQL query that answers the following question: Tell me the total number of SP+FS with rank more than 8 for the netherlands and points more than 127.26 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (fs VARCHAR, sp VARCHAR, points VARCHAR, rank VARCHAR, nation VARCHAR) | SELECT COUNT(sp) + fs FROM table_name_75 WHERE rank > 8 AND nation = "netherlands" AND points > 127.26 |
Write a SQL query that answers the following question: Name the total number of SP+FS for places of 60 and points more than 151.66 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (fs VARCHAR, sp VARCHAR, places VARCHAR, points VARCHAR) | SELECT COUNT(sp) + fs FROM table_name_28 WHERE places = 60 AND points > 151.66 |
Write a SQL query that answers the following question: Name the average SP+FS with places less tha 94 for renata baierova | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (fs VARCHAR, sp INTEGER, places VARCHAR, name VARCHAR) | SELECT AVG(sp) + fs FROM table_name_2 WHERE places < 94 AND name = "renata baierova" |
Write a SQL query that answers the following question: What color is model # pd-kb400w? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (color VARCHAR, model__number VARCHAR) | SELECT color FROM table_name_14 WHERE model__number = "pd-kb400w" |
Write a SQL query that answers the following question: What's the lowest average for a swimsuit over 6.89, evening gown over 7.76, and an interview over 8.57 in illinois? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (average INTEGER, interview VARCHAR, state VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR) | SELECT MIN(average) FROM table_name_29 WHERE swimsuit > 6.89 AND evening_gown > 7.76 AND state = "illinois" AND interview > 8.57 |
Write a SQL query that answers the following question: What's the highest swimsuit for an average less than 8.073, evening gown less than 8.31, and an interview over 8.23 in georgia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (swimsuit INTEGER, state VARCHAR, interview VARCHAR, average VARCHAR, evening_gown VARCHAR) | SELECT MAX(swimsuit) FROM table_name_13 WHERE average < 8.073 AND evening_gown < 8.31 AND interview > 8.23 AND state = "georgia" |
Write a SQL query that answers the following question: What's utah's lowest swimsuit with an interview over 8.53? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (swimsuit INTEGER, state VARCHAR, interview VARCHAR) | SELECT MIN(swimsuit) FROM table_name_43 WHERE state = "utah" AND interview > 8.53 |
Write a SQL query that answers the following question: What week was October 9, 1938? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (week VARCHAR, date VARCHAR) | SELECT COUNT(week) FROM table_name_66 WHERE date = "october 9, 1938" |
Write a SQL query that answers the following question: What home team played Collingwood as the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_42 WHERE away_team = "collingwood" |
Write a SQL query that answers the following question: What was the score of the away team at Junction Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_77 WHERE venue = "junction oval" |
Write a SQL query that answers the following question: Who built giancarlo fisichella's car? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (constructor VARCHAR, driver VARCHAR) | SELECT constructor FROM table_name_96 WHERE driver = "giancarlo fisichella" |
Write a SQL query that answers the following question: What is the high lap total for mika salo with a grid greater than 17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (laps INTEGER, driver VARCHAR, grid VARCHAR) | SELECT MAX(laps) FROM table_name_66 WHERE driver = "mika salo" AND grid > 17 |
Write a SQL query that answers the following question: Where was the location with Muirfield in Scotland? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (location VARCHAR, country VARCHAR, name VARCHAR) | SELECT location FROM table_name_4 WHERE country = "scotland" AND name = "muirfield" |
Write a SQL query that answers the following question: Name the country for pieroni | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (country VARCHAR, name VARCHAR) | SELECT country FROM table_name_46 WHERE name = "pieroni" |
Write a SQL query that answers the following question: Name the country for 6-month loan and moving from of lens | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (country VARCHAR, type VARCHAR, moving_from VARCHAR) | SELECT country FROM table_name_90 WHERE type = "6-month loan" AND moving_from = "lens" |
Write a SQL query that answers the following question: Name the transfer fee with a transfer window of summer for schollen | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (transfer_fee VARCHAR, transfer_window VARCHAR, name VARCHAR) | SELECT transfer_fee FROM table_name_88 WHERE transfer_window = "summer" AND name = "schollen" |
Write a SQL query that answers the following question: Name the name that has moving of 1. fc nürnberg. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (name VARCHAR, moving_from VARCHAR) | SELECT name FROM table_name_9 WHERE moving_from = "1. fc nürnberg" |
Write a SQL query that answers the following question: Name the country with polák | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (country VARCHAR, name VARCHAR) | SELECT country FROM table_name_4 WHERE name = "polák" |
Write a SQL query that answers the following question: What was the home team score at North Melbourne's away game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_11 WHERE away_team = "north melbourne" |
Write a SQL query that answers the following question: What was Collingwood's score at the home match against Richmond? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_47 WHERE away_team = "richmond" |
Write a SQL query that answers the following question: What is the lowest number of laps with a grid larger than 24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (laps INTEGER, grid INTEGER) | SELECT MIN(laps) FROM table_name_14 WHERE grid > 24 |
Write a SQL query that answers the following question: For Jo Siffert, what was the highest grid with the number of laps above 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (grid INTEGER, driver VARCHAR, laps VARCHAR) | SELECT MAX(grid) FROM table_name_5 WHERE driver = "jo siffert" AND laps > 12 |
Write a SQL query that answers the following question: What is the average number of laps when Gerhard Berger is the driver? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (laps INTEGER, driver VARCHAR) | SELECT AVG(laps) FROM table_name_23 WHERE driver = "gerhard berger" |
Write a SQL query that answers the following question: What is the name of the constructor who has more than 50 laps and a grid of 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (constructor VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT constructor FROM table_name_9 WHERE laps > 50 AND grid = 7 |
Write a SQL query that answers the following question: What is the title of the episode with a production code of ad1b04? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (title VARCHAR, production_code VARCHAR) | SELECT title FROM table_name_50 WHERE production_code = "ad1b04" |
Write a SQL query that answers the following question: Name the time for event of tfc 21 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (time VARCHAR, event VARCHAR) | SELECT time FROM table_name_22 WHERE event = "tfc 21" |
Write a SQL query that answers the following question: What sport has a Gold larger than 0, and a Silver of 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (sport VARCHAR, gold VARCHAR, silver VARCHAR) | SELECT sport FROM table_name_7 WHERE gold > 0 AND silver = 2 |
Write a SQL query that answers the following question: What is the lowest Bronze that has a Total larger than 18 and a Silver smaller than 143? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (bronze INTEGER, silver VARCHAR, sport VARCHAR) | SELECT MIN(bronze) FROM table_name_29 WHERE "total" > 18 AND sport = "total" AND silver < 143 |
Write a SQL query that answers the following question: How many total Silver has a Bronze larger than 19 and a Total smaller than 125? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (silver INTEGER, bronze VARCHAR, total VARCHAR) | SELECT SUM(silver) FROM table_name_13 WHERE bronze > 19 AND total < 125 |
Write a SQL query that answers the following question: What is the highest total Bronze larger than 10, Silver larger than 28, and a Gold of 58? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (total INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR) | SELECT MAX(total) FROM table_name_7 WHERE bronze > 10 AND silver > 28 AND gold = 58 |
Write a SQL query that answers the following question: What is the lowest Total that has a Gold larger than 0, Silver smaller than 4, Sport of football, and a Bronze larger than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (total INTEGER, bronze VARCHAR, sport VARCHAR, gold VARCHAR, silver VARCHAR) | SELECT MIN(total) FROM table_name_97 WHERE gold > 0 AND silver < 4 AND sport = "football" AND bronze > 1 |
Write a SQL query that answers the following question: what is the time/retired when the grid is 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (time_retired VARCHAR, grid VARCHAR) | SELECT time_retired FROM table_name_77 WHERE grid = 9 |
Write a SQL query that answers the following question: what is the number of laps when the driver is ron flockhart? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (laps VARCHAR, driver VARCHAR) | SELECT COUNT(laps) FROM table_name_5 WHERE driver = "ron flockhart" |
Write a SQL query that answers the following question: What Engine has a Power of 114hp (85kw)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (engine VARCHAR, power VARCHAR) | SELECT engine FROM table_name_72 WHERE power = "114hp (85kw)" |
Write a SQL query that answers the following question: What Torque has an AMC Power Tech I6 Engine? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (torque VARCHAR, engine VARCHAR) | SELECT torque FROM table_name_68 WHERE engine = "amc power tech i6" |
Write a SQL query that answers the following question: What Displacement has 185hp (138kw) Power o | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (displacement VARCHAR, power VARCHAR) | SELECT displacement FROM table_name_57 WHERE power = "185hp (138kw)" |
Write a SQL query that answers the following question: What venue features collingwood as the home side? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_47 WHERE home_team = "collingwood" |
Write a SQL query that answers the following question: What's the attendance numbers for veterans stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (attendance VARCHAR, game_site VARCHAR) | SELECT attendance FROM table_name_17 WHERE game_site = "veterans stadium" |
Write a SQL query that answers the following question: What is the name of the school that has a player named Michael Dunigan? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (school VARCHAR, player VARCHAR) | SELECT school FROM table_name_79 WHERE player = "michael dunigan" |
Write a SQL query that answers the following question: Name the religion for Former Experience of commissioner of health and assumed office before 2005 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (religion VARCHAR, assumed_office VARCHAR, former_experience VARCHAR) | SELECT religion FROM table_name_73 WHERE assumed_office < 2005 AND former_experience = "commissioner of health" |
Write a SQL query that answers the following question: Tell me the loewst assume office for madeleine bordallo | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (assumed_office INTEGER, name VARCHAR) | SELECT MIN(assumed_office) FROM table_name_60 WHERE name = "madeleine bordallo" |
Write a SQL query that answers the following question: Which team had a game of 82? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (team VARCHAR, game VARCHAR) | SELECT team FROM table_name_60 WHERE game = 82 |
Write a SQL query that answers the following question: How many people attended the game at Junction Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (crowd VARCHAR, venue VARCHAR) | SELECT crowd FROM table_name_77 WHERE venue = "junction oval" |
Write a SQL query that answers the following question: What was the score for Boston's Home game that had Gerber as the decision? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (score VARCHAR, decision VARCHAR, home VARCHAR) | SELECT score FROM table_name_34 WHERE decision = "gerber" AND home = "boston" |
Write a SQL query that answers the following question: What was the record for the game on March 25? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_27 WHERE date = "march 25" |
Write a SQL query that answers the following question: Who was the Decision at Anaheim's home game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (decision VARCHAR, home VARCHAR) | SELECT decision FROM table_name_51 WHERE home = "anaheim" |
Write a SQL query that answers the following question: Who is the driver of the chassis that is tg183b tg184? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (driver VARCHAR, chassis VARCHAR) | SELECT driver FROM table_name_79 WHERE chassis = "tg183b tg184" |
Write a SQL query that answers the following question: What was the engine belonging to Pierluigi Martini with a Tyre of P? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (engine VARCHAR, tyres VARCHAR, driver VARCHAR) | SELECT engine FROM table_name_20 WHERE tyres = "p" AND driver = "pierluigi martini" |
Write a SQL query that answers the following question: What was the featured in Engine through rounds 10-13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (engine VARCHAR, rounds VARCHAR) | SELECT engine FROM table_name_85 WHERE rounds = "10-13" |
Write a SQL query that answers the following question: Nigel Mansell was the driver in what Entrant? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (entrant VARCHAR, driver VARCHAR) | SELECT entrant FROM table_name_22 WHERE driver = "nigel mansell" |
Write a SQL query that answers the following question: What Date does the Name (location) Belyanitsky, Ivanovo, and Balino have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (date VARCHAR, name__location_ VARCHAR) | SELECT date FROM table_name_28 WHERE name__location_ = "belyanitsky, ivanovo, and balino" |
Write a SQL query that answers the following question: What day did North Melbourne play as the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_52 WHERE home_team = "north melbourne" |
Write a SQL query that answers the following question: Who was the away team at Arden Street Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_20 WHERE venue = "arden street oval" |
Write a SQL query that answers the following question: What is the ordinary income rate when short-term capital gain rate is 28%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (ordinary_income_rate VARCHAR, short_term_capital_gain_rate VARCHAR) | SELECT ordinary_income_rate FROM table_name_42 WHERE short_term_capital_gain_rate = "28%" |
Write a SQL query that answers the following question: What is short-term capital gain rate with long-term gain on collectibles at 15%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (short_term_capital_gain_rate VARCHAR, long_term_gain_on_collectibles VARCHAR) | SELECT short_term_capital_gain_rate FROM table_name_29 WHERE long_term_gain_on_collectibles = "15%" |
Write a SQL query that answers the following question: What long-term gain for collectibles coincides with ordinary income rate 15%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (long_term_gain_on_collectibles VARCHAR, ordinary_income_rate VARCHAR) | SELECT long_term_gain_on_collectibles FROM table_name_48 WHERE ordinary_income_rate = "15%" |
Write a SQL query that answers the following question: What is the Decile with a State Authority and a roll of 120? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (decile INTEGER, authority VARCHAR, roll VARCHAR) | SELECT SUM(decile) FROM table_name_99 WHERE authority = "state" AND roll = 120 |
Write a SQL query that answers the following question: What is the highest Roll of Orere School with a Decile less than 8 with a State Authority? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (roll INTEGER, name VARCHAR, decile VARCHAR, authority VARCHAR) | SELECT MAX(roll) FROM table_name_98 WHERE decile < 8 AND authority = "state" AND name = "orere school" |
Write a SQL query that answers the following question: What home team score has a Away team of melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_63 WHERE away_team = "melbourne" |
Write a SQL query that answers the following question: What away team is the home team richmond? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_16 WHERE home_team = "richmond" |
Write a SQL query that answers the following question: When Giancarlo Fisichella was the Driver and there were less than 52 Laps, what was the highest Grid? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (grid INTEGER, driver VARCHAR, laps VARCHAR) | SELECT MAX(grid) FROM table_name_4 WHERE driver = "giancarlo fisichella" AND laps < 52 |
Write a SQL query that answers the following question: Which Constructor has a Grid less than 17, Laps under 52, and Olivier Panis as the Driver? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR) | SELECT constructor FROM table_name_11 WHERE grid < 17 AND laps < 52 AND driver = "olivier panis" |
Write a SQL query that answers the following question: Which 2006 cfl draft pick played college ball at Idaho state? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (pick__number VARCHAR, college VARCHAR) | SELECT pick__number FROM table_name_91 WHERE college = "idaho state" |
Write a SQL query that answers the following question: What position did the CFL player drafted out of college of toronto in 2007 play? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (position VARCHAR, college VARCHAR) | SELECT position FROM table_name_22 WHERE college = "toronto" |
Write a SQL query that answers the following question: What was the Date of Death of the person whose Date of Birth was 28 May 1371? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (date_of_death VARCHAR, date_of_birth VARCHAR) | SELECT date_of_death FROM table_name_97 WHERE date_of_birth = "28 may 1371" |
Write a SQL query that answers the following question: What was the Reign of the person whose Date of Birth was 22 March 1459? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (reign VARCHAR, date_of_birth VARCHAR) | SELECT reign FROM table_name_25 WHERE date_of_birth = "22 march 1459" |
Write a SQL query that answers the following question: Tell me the average year with a record of 33-33 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (year INTEGER, record VARCHAR) | SELECT AVG(year) FROM table_name_23 WHERE record = "33-33" |
Write a SQL query that answers the following question: Name the total number of years for a 39-31 record | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (year VARCHAR, record VARCHAR) | SELECT COUNT(year) FROM table_name_18 WHERE record = "39-31" |
Write a SQL query that answers the following question: Name the least year for gene hassell manager and 6th finish | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (year INTEGER, manager VARCHAR, finish VARCHAR) | SELECT MIN(year) FROM table_name_98 WHERE manager = "gene hassell" AND finish = "6th" |
Write a SQL query that answers the following question: Name the finish for a 39-31 record | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (finish VARCHAR, record VARCHAR) | SELECT finish FROM table_name_64 WHERE record = "39-31" |
Write a SQL query that answers the following question: What is the lowest goal difference for the club ud alzira, with a played larger than 38? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (goal_difference INTEGER, club VARCHAR, played VARCHAR) | SELECT MIN(goal_difference) FROM table_name_59 WHERE club = "ud alzira" AND played > 38 |
Write a SQL query that answers the following question: What is the goal difference sum that has goals against smaller than 33, draws larger than 13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (goal_difference INTEGER, goals_against VARCHAR, draws VARCHAR) | SELECT SUM(goal_difference) FROM table_name_27 WHERE goals_against < 33 AND draws > 13 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.