instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: Which item has the suffix containing thiocyanato- (-scn) as a prefix? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (suffix VARCHAR, prefix VARCHAR) | SELECT suffix FROM table_name_77 WHERE prefix = "thiocyanato- (-scn)" |
Write a SQL query that answers the following question: Which formula has thial as a chemical class? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (formula VARCHAR, chemical_class VARCHAR) | SELECT formula FROM table_name_7 WHERE chemical_class = "thial" |
Write a SQL query that answers the following question: If fitzroy is the Away team, what Date did they play? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_97 WHERE away_team = "fitzroy" |
Write a SQL query that answers the following question: When the Away team is fitzroy on the Date of 15 july 1967, what was the Home team playing? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (home_team VARCHAR, date VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_89 WHERE date = "15 july 1967" AND away_team = "fitzroy" |
Write a SQL query that answers the following question: Which Venue has an Away team of st kilda? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_5 WHERE away_team = "st kilda" |
Write a SQL query that answers the following question: What place has a draw smaller than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (place INTEGER, draw INTEGER) | SELECT AVG(place) FROM table_name_90 WHERE draw < 2 |
Write a SQL query that answers the following question: What is the launch date of the satellite with a COSPAR ID of 1995-022a? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (launch_date__utc_ VARCHAR, cospar_id_satcat_№ VARCHAR) | SELECT launch_date__utc_ FROM table_name_32 WHERE cospar_id_satcat_№ = "1995-022a" |
Write a SQL query that answers the following question: What is the COSPAR ID of the satellite with a titan iv(401)a launch vehicle? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (cospar_id_satcat_№ VARCHAR, launch_vehicle VARCHAR) | SELECT cospar_id_satcat_№ FROM table_name_20 WHERE launch_vehicle = "titan iv(401)a" |
Write a SQL query that answers the following question: What is the launch designation of the satellite with a 2009-001a COSPAR ID? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (launch_designation VARCHAR, cospar_id_satcat_№ VARCHAR) | SELECT launch_designation FROM table_name_53 WHERE cospar_id_satcat_№ = "2009-001a" |
Write a SQL query that answers the following question: What is the launch site of the satellite with a 2003-041a COSPAR ID? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (launch_site VARCHAR, cospar_id_satcat_№ VARCHAR) | SELECT launch_site FROM table_name_71 WHERE cospar_id_satcat_№ = "2003-041a" |
Write a SQL query that answers the following question: What construction has a CERCLIS ID of ard092916188? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (construction_completed VARCHAR, cerclis_id VARCHAR) | SELECT construction_completed FROM table_name_1 WHERE cerclis_id = "ard092916188" |
Write a SQL query that answers the following question: What CERCLIS ID is Deleted of 04/07/2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (cerclis_id VARCHAR, deleted VARCHAR) | SELECT cerclis_id FROM table_name_16 WHERE deleted = "04/07/2008" |
Write a SQL query that answers the following question: What construction has a Listed 09/08/1983, and a Deleted of –, and a Name of mid-south wood products? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (construction_completed VARCHAR, name VARCHAR, listed VARCHAR, deleted VARCHAR) | SELECT construction_completed FROM table_name_48 WHERE listed = "09/08/1983" AND deleted = "–" AND name = "mid-south wood products" |
Write a SQL query that answers the following question: What is the Construction that has a Listed 09/08/1983, and a Name of cecil lindsey? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (construction_completed VARCHAR, listed VARCHAR, name VARCHAR) | SELECT construction_completed FROM table_name_49 WHERE listed = "09/08/1983" AND name = "cecil lindsey" |
Write a SQL query that answers the following question: What was the attendance at Kardinia Park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (crowd INTEGER, venue VARCHAR) | SELECT AVG(crowd) FROM table_name_63 WHERE venue = "kardinia park" |
Write a SQL query that answers the following question: What was the Date of Week 16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (date VARCHAR, week VARCHAR) | SELECT date FROM table_name_43 WHERE week = 16 |
Write a SQL query that answers the following question: What date was Colorado the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (date VARCHAR, home VARCHAR) | SELECT date FROM table_name_85 WHERE home = "colorado" |
Write a SQL query that answers the following question: What was the record for the game on November 28 when the decision was Backstrom? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (record VARCHAR, decision VARCHAR, date VARCHAR) | SELECT record FROM table_name_69 WHERE decision = "backstrom" AND date = "november 28" |
Write a SQL query that answers the following question: What team was the home team when the record was 11–8–2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (home VARCHAR, record VARCHAR) | SELECT home FROM table_name_26 WHERE record = "11–8–2" |
Write a SQL query that answers the following question: What was the score when Edmonton was the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (score VARCHAR, home VARCHAR) | SELECT score FROM table_name_10 WHERE home = "edmonton" |
Write a SQL query that answers the following question: Tell me the highest PI GP with pick # greater than 159 and reg GP more than 0 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (pl_gp INTEGER, pick__number VARCHAR, reg_gp VARCHAR) | SELECT MAX(pl_gp) FROM table_name_97 WHERE pick__number > 159 AND reg_gp > 0 |
Write a SQL query that answers the following question: In the match where south melbourne was the away team, who was the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_34 WHERE away_team = "south melbourne" |
Write a SQL query that answers the following question: Which Team 2 faced Team 1 from Barcelona? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (team_2 VARCHAR, team_1 VARCHAR) | SELECT team_2 FROM table_name_48 WHERE team_1 = "barcelona" |
Write a SQL query that answers the following question: Which first leg had Galatasaray as Team 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (team_1 VARCHAR) | SELECT 1 AS st_leg FROM table_name_34 WHERE team_1 = "galatasaray" |
Write a SQL query that answers the following question: What was the name of the Event with a time of 2:19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (event VARCHAR, time VARCHAR) | SELECT event FROM table_name_8 WHERE time = "2:19" |
Write a SQL query that answers the following question: Where was match which had Joe Lauzon as an opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (location VARCHAR, opponent VARCHAR) | SELECT location FROM table_name_76 WHERE opponent = "joe lauzon" |
Write a SQL query that answers the following question: What is the name of the building that was the tallest from 1990–1997 in Frankfurt? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (name VARCHAR, city VARCHAR, years_as_tallest VARCHAR) | SELECT name FROM table_name_78 WHERE city = "frankfurt" AND years_as_tallest = "1990–1997" |
Write a SQL query that answers the following question: For a height less than 122 meters, what is the greatest height in feet? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (height__ft_ INTEGER, height__m_ INTEGER) | SELECT MAX(height__ft_) FROM table_name_58 WHERE height__m_ < 122 |
Write a SQL query that answers the following question: How high was the highest building in feet in the city of cologne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (height__ft_ INTEGER, city VARCHAR) | SELECT MAX(height__ft_) FROM table_name_66 WHERE city = "cologne" |
Write a SQL query that answers the following question: What is the smallest height (ft) of a building in Frankfurt with a height (m) of 257 and less than 55 floors? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (height__ft_ INTEGER, floors VARCHAR, city VARCHAR, height__m_ VARCHAR) | SELECT MIN(height__ft_) FROM table_name_24 WHERE city = "frankfurt" AND height__m_ = 257 AND floors < 55 |
Write a SQL query that answers the following question: What is the height in meters for a building in Frankfurt that is 850 feet tall? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (height__m_ VARCHAR, city VARCHAR, height__ft_ VARCHAR) | SELECT height__m_ FROM table_name_66 WHERE city = "frankfurt" AND height__ft_ = 850 |
Write a SQL query that answers the following question: What is the mintage of the coin with a Toronto Maple Leafs theme and an issue price below 24.95? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (mintage VARCHAR, theme VARCHAR, issue_price VARCHAR) | SELECT mintage FROM table_name_76 WHERE theme = "toronto maple leafs" AND issue_price < 24.95 |
Write a SQL query that answers the following question: What was Collingwood's score in their away game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_39 WHERE away_team = "collingwood" |
Write a SQL query that answers the following question: Where did Geelong play as the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_14 WHERE away_team = "geelong" |
Write a SQL query that answers the following question: On what date was the I Dessau Autobahnspinne race? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (date VARCHAR, race_name VARCHAR) | SELECT date FROM table_name_66 WHERE race_name = "i dessau autobahnspinne" |
Write a SQL query that answers the following question: Who was the winning driver in the Sachsenring circuit? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (winning_driver VARCHAR, circuit VARCHAR) | SELECT winning_driver FROM table_name_8 WHERE circuit = "sachsenring" |
Write a SQL query that answers the following question: Where is Terry Mills from? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (hometown VARCHAR, player VARCHAR) | SELECT hometown FROM table_name_98 WHERE player = "terry mills" |
Write a SQL query that answers the following question: When is the Mexican grand prix? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (date VARCHAR, race VARCHAR) | SELECT date FROM table_name_24 WHERE race = "mexican grand prix" |
Write a SQL query that answers the following question: The person with a Height of 6-8 went to which School? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (school VARCHAR, height VARCHAR) | SELECT school FROM table_name_67 WHERE height = "6-8" |
Write a SQL query that answers the following question: What College did Player Dorian Finney-Smith play for? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (college VARCHAR, player VARCHAR) | SELECT college FROM table_name_68 WHERE player = "dorian finney-smith" |
Write a SQL query that answers the following question: Which Player has a height of 6-10, and went to College at LSU? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (player VARCHAR, height VARCHAR, college VARCHAR) | SELECT player FROM table_name_66 WHERE height = "6-10" AND college = "lsu" |
Write a SQL query that answers the following question: Which School did Player Tyrone Johnson attend? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (school VARCHAR, player VARCHAR) | SELECT school FROM table_name_41 WHERE player = "tyrone johnson" |
Write a SQL query that answers the following question: Which School did Player Tyrone Johnson attend? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (school VARCHAR, player VARCHAR) | SELECT school FROM table_name_42 WHERE player = "tyrone johnson" |
Write a SQL query that answers the following question: Who had the time of 1:23.32.41? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (rider VARCHAR, time VARCHAR) | SELECT rider FROM table_name_17 WHERE time = "1:23.32.41" |
Write a SQL query that answers the following question: What is the time of the rider who has a rank smaller than 8 and speed of 104.567mph? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (time VARCHAR, rank VARCHAR, speed VARCHAR) | SELECT time FROM table_name_24 WHERE rank < 8 AND speed = "104.567mph" |
Write a SQL query that answers the following question: What is the home team at the Junction Oval venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_14 WHERE venue = "junction oval" |
Write a SQL query that answers the following question: What is the date where the away team is Richmond? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_30 WHERE away_team = "richmond" |
Write a SQL query that answers the following question: Name the circuit when the fastest lap was john surtees and the winning driver was john surtees. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (circuit VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR) | SELECT circuit FROM table_name_53 WHERE fastest_lap = "john surtees" AND winning_driver = "john surtees" |
Write a SQL query that answers the following question: Name the winning driver with circuit of monza | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (winning_driver VARCHAR, circuit VARCHAR) | SELECT winning_driver FROM table_name_59 WHERE circuit = "monza" |
Write a SQL query that answers the following question: Name the pole position for 8 september | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (pole_position VARCHAR, date VARCHAR) | SELECT pole_position FROM table_name_35 WHERE date = "8 september" |
Write a SQL query that answers the following question: Name the winning driver for belgian grand prix | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (winning_driver VARCHAR, race VARCHAR) | SELECT winning_driver FROM table_name_45 WHERE race = "belgian grand prix" |
Write a SQL query that answers the following question: Name the circuit for italian grand prix | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (circuit VARCHAR, race VARCHAR) | SELECT circuit FROM table_name_97 WHERE race = "italian grand prix" |
Write a SQL query that answers the following question: How many grid numbers were there for the driver Giancarlo Fisichella? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (grid VARCHAR, driver VARCHAR) | SELECT COUNT(grid) FROM table_name_3 WHERE driver = "giancarlo fisichella" |
Write a SQL query that answers the following question: What is the mean number of laps for the constructor Ferrari when the time/retired was fuel pressure? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (laps INTEGER, constructor VARCHAR, time_retired VARCHAR) | SELECT AVG(laps) FROM table_name_93 WHERE constructor = "ferrari" AND time_retired = "fuel pressure" |
Write a SQL query that answers the following question: What is the grid when the driver was Michael Schumacher? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (grid VARCHAR, driver VARCHAR) | SELECT grid FROM table_name_20 WHERE driver = "michael schumacher" |
Write a SQL query that answers the following question: How many laps had a grid number of 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (laps INTEGER, grid VARCHAR) | SELECT SUM(laps) FROM table_name_99 WHERE grid = 7 |
Write a SQL query that answers the following question: Which lap number had a grid number of less than 17 when the driver was Giancarlo Fisichella? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (laps VARCHAR, grid VARCHAR, driver VARCHAR) | SELECT COUNT(laps) FROM table_name_1 WHERE grid < 17 AND driver = "giancarlo fisichella" |
Write a SQL query that answers the following question: Name the winning driver for circuit of monza | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (winning_driver VARCHAR, circuit VARCHAR) | SELECT winning_driver FROM table_name_36 WHERE circuit = "monza" |
Write a SQL query that answers the following question: Tell me the date for jody scheckter being the fastest lap at the french grand prix | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (date VARCHAR, fastest_lap VARCHAR, race VARCHAR) | SELECT date FROM table_name_14 WHERE fastest_lap = "jody scheckter" AND race = "french grand prix" |
Write a SQL query that answers the following question: Name the date for circuit of interlagos | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (date VARCHAR, circuit VARCHAR) | SELECT date FROM table_name_50 WHERE circuit = "interlagos" |
Write a SQL query that answers the following question: What was the event for vinny magalhães? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (event VARCHAR, opponent VARCHAR) | SELECT event FROM table_name_74 WHERE opponent = "vinny magalhães" |
Write a SQL query that answers the following question: What was the date for renato ferreira? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_9 WHERE opponent = "renato ferreira" |
Write a SQL query that answers the following question: What was the event with leonardo chocolate in 2009? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (event VARCHAR, date VARCHAR, opponent VARCHAR) | SELECT event FROM table_name_88 WHERE date = 2009 AND opponent = "leonardo chocolate" |
Write a SQL query that answers the following question: What was the result for the opponent being gerardi rinaldi in 2009? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (result VARCHAR, date VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_14 WHERE date = 2009 AND opponent = "gerardi rinaldi" |
Write a SQL query that answers the following question: Tell me the eastern #1 for week of 5 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (eastern__number1 VARCHAR, week VARCHAR) | SELECT eastern__number1 FROM table_name_23 WHERE week = 5 |
Write a SQL query that answers the following question: Tell me the eastern #2 for western #2 of oakland | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (eastern__number2 VARCHAR, western__number2 VARCHAR) | SELECT eastern__number2 FROM table_name_23 WHERE western__number2 = "oakland" |
Write a SQL query that answers the following question: Tell me the wekk for eastern #2 of houston | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (week VARCHAR, eastern__number2 VARCHAR) | SELECT week FROM table_name_37 WHERE eastern__number2 = "houston" |
Write a SQL query that answers the following question: Which home team played against the away team Carlton? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_74 WHERE away_team = "carlton" |
Write a SQL query that answers the following question: Where was the game played where the home team was Collingwood? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_29 WHERE home_team = "collingwood" |
Write a SQL query that answers the following question: What is the home score with a crowd larger than 25,603? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (home_team VARCHAR, crowd INTEGER) | SELECT home_team AS score FROM table_name_44 WHERE crowd > 25 OFFSET 603 |
Write a SQL query that answers the following question: What is the date of the home team from South Melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_41 WHERE home_team = "south melbourne" |
Write a SQL query that answers the following question: What is the score of the away team with the home team Fitzroy? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_88 WHERE home_team = "fitzroy" |
Write a SQL query that answers the following question: What venue did the away team footscray play at? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_63 WHERE away_team = "footscray" |
Write a SQL query that answers the following question: When melbourne was the away team, what was the lowest crowd turnout they had? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (crowd INTEGER, away_team VARCHAR) | SELECT MIN(crowd) FROM table_name_75 WHERE away_team = "melbourne" |
Write a SQL query that answers the following question: Which away team plays at the venue glenferrie oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_63 WHERE venue = "glenferrie oval" |
Write a SQL query that answers the following question: Tell me the lowest 2005 for 2010 less than 21 for 2009 being 19 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (Id VARCHAR) | SELECT MIN(2005) FROM table_name_75 WHERE 2009 = 19 AND 2010 < 21 |
Write a SQL query that answers the following question: Name the total number of 2010 for when 2009 is less than 14, 2008 is less than 15 and 2005 is 3 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (Id VARCHAR) | SELECT COUNT(2010) FROM table_name_85 WHERE 2009 < 14 AND 2008 < 15 AND 2005 = 3 |
Write a SQL query that answers the following question: Name the average 2008 for beijing and 2005 more than 2 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (year VARCHAR) | SELECT AVG(2008) FROM table_name_21 WHERE year = "beijing" AND 2005 > 2 |
Write a SQL query that answers the following question: Name the lowest 2008 for guizhou when 2005 is less than 31 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (year VARCHAR) | SELECT MIN(2008) FROM table_name_45 WHERE year = "guizhou" AND 2005 < 31 |
Write a SQL query that answers the following question: Name the sum of 2010 for 2000 of 17 and 2005 more than 16 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (Id VARCHAR) | SELECT SUM(2010) FROM table_name_53 WHERE 2000 = 17 AND 2005 > 16 |
Write a SQL query that answers the following question: What is the total of crowd at Venue of mcg? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (crowd INTEGER, venue VARCHAR) | SELECT SUM(crowd) FROM table_name_7 WHERE venue = "mcg" |
Write a SQL query that answers the following question: Tell me the number of regions with an area of 58.81 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (region VARCHAR, area__km_2__ VARCHAR) | SELECT COUNT(region) FROM table_name_76 WHERE area__km_2__ = 58.81 |
Write a SQL query that answers the following question: what is the rank when the bronze is less than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (rank VARCHAR, bronze INTEGER) | SELECT COUNT(rank) FROM table_name_63 WHERE bronze < 0 |
Write a SQL query that answers the following question: what is the highest rank when the bronze is less than 1 and the total is less than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (rank INTEGER, bronze VARCHAR, total VARCHAR) | SELECT MAX(rank) FROM table_name_83 WHERE bronze < 1 AND total < 1 |
Write a SQL query that answers the following question: what is the lowest amount of silver when the gold is less than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (silver INTEGER, gold INTEGER) | SELECT MIN(silver) FROM table_name_70 WHERE gold < 0 |
Write a SQL query that answers the following question: what is the average number of gold when the rank is more than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (gold INTEGER, rank INTEGER) | SELECT AVG(gold) FROM table_name_5 WHERE rank > 5 |
Write a SQL query that answers the following question: what is the highest amount of silver when gold is 0 for soviet union? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (silver INTEGER, gold VARCHAR, nation VARCHAR) | SELECT MAX(silver) FROM table_name_50 WHERE gold = 0 AND nation = "soviet union" |
Write a SQL query that answers the following question: What position does adam rachel play? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (position VARCHAR, player VARCHAR) | SELECT position FROM table_name_35 WHERE player = "adam rachel" |
Write a SQL query that answers the following question: What player has over 1 first apperance and over 32 first team goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (player VARCHAR, first_team_appearances VARCHAR, first_team_goals VARCHAR) | SELECT player FROM table_name_97 WHERE first_team_appearances > 1 AND first_team_goals = 32 |
Write a SQL query that answers the following question: What is the average speed for ships before 1974 with over 1.73 passengers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (speed INTEGER, year VARCHAR, passengers VARCHAR) | SELECT AVG(speed) FROM table_name_31 WHERE year < 1974 AND passengers > 1.73 |
Write a SQL query that answers the following question: How many vessels are named aqua jewel? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (vessels VARCHAR, ship_name VARCHAR) | SELECT COUNT(vessels) FROM table_name_11 WHERE ship_name = "aqua jewel" |
Write a SQL query that answers the following question: How many districts in Baltimore City does Cheryl Glenn dictate? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (district VARCHAR, place_of_birth VARCHAR, delegate VARCHAR) | SELECT COUNT(district) FROM table_name_40 WHERE place_of_birth = "baltimore city" AND delegate = "cheryl glenn" |
Write a SQL query that answers the following question: Which party belongs to district 41, and is delegated by Jill P. Carter? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (party VARCHAR, district VARCHAR, delegate VARCHAR) | SELECT party FROM table_name_61 WHERE district = 41 AND delegate = "jill p. carter" |
Write a SQL query that answers the following question: Where was the place of birth for the delegate who took office after 1982, delegates a district smaller than 43 and belongs to a Health and Government operations committee? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (place_of_birth VARCHAR, committee VARCHAR, took_office VARCHAR, district VARCHAR) | SELECT place_of_birth FROM table_name_31 WHERE took_office > 1982 AND district < 43 AND committee = "health and government operations" |
Write a SQL query that answers the following question: Where was the delegate belonging to the Judiciary committee of district 43 born? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (place_of_birth VARCHAR, committee VARCHAR, district VARCHAR) | SELECT place_of_birth FROM table_name_24 WHERE committee = "judiciary" AND district = 43 |
Write a SQL query that answers the following question: What is the largest district for delegate Cheryl Glenn, that she had taken after 2006? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (district INTEGER, delegate VARCHAR, took_office VARCHAR) | SELECT MAX(district) FROM table_name_30 WHERE delegate = "cheryl glenn" AND took_office > 2006 |
Write a SQL query that answers the following question: What is the highest placing for marie mcneil / robert mccall, with less than 168.58? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (placings INTEGER, name VARCHAR, points VARCHAR) | SELECT MAX(placings) FROM table_name_82 WHERE name = "marie mcneil / robert mccall" AND points < 168.58 |
Write a SQL query that answers the following question: What was the date of the Mavericks home game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (date VARCHAR, home VARCHAR) | SELECT date FROM table_name_25 WHERE home = "mavericks" |
Write a SQL query that answers the following question: What is the highest displacement value for the R Fwd Auto Phase1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (displacement__cc_ INTEGER, model VARCHAR) | SELECT MAX(displacement__cc_) FROM table_name_12 WHERE model = "r fwd auto phase1" |
Write a SQL query that answers the following question: What team played at lake oval while away? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_51 WHERE venue = "lake oval" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.