instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: When did elisabeth of valois die? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (death VARCHAR, name VARCHAR) | SELECT death FROM table_name_45 WHERE name = "elisabeth of valois" |
Write a SQL query that answers the following question: Who is entered earlier than 1975 and has a Lotus 20 chassis? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (entrant VARCHAR, year VARCHAR, chassis VARCHAR) | SELECT entrant FROM table_name_14 WHERE year < 1975 AND chassis = "lotus 20" |
Write a SQL query that answers the following question: Which engine has a Lotus 49c chassis? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (engine VARCHAR, chassis VARCHAR) | SELECT engine FROM table_name_41 WHERE chassis = "lotus 49c" |
Write a SQL query that answers the following question: What are the average points of Scuderia Scribante with a Brabham bt11 chassis before 1968? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (points INTEGER, year VARCHAR, entrant VARCHAR, chassis VARCHAR) | SELECT AVG(points) FROM table_name_16 WHERE entrant = "scuderia scribante" AND chassis = "brabham bt11" AND year < 1968 |
Write a SQL query that answers the following question: How many points are there for a Mclaren m23 chassis later than 1972? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (points VARCHAR, year VARCHAR, chassis VARCHAR) | SELECT COUNT(points) FROM table_name_20 WHERE year > 1972 AND chassis = "mclaren m23" |
Write a SQL query that answers the following question: What is the average change to have a land area of 546.74 and a population density greater than 0.5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (change___percentage_ INTEGER, land_area__km²_ VARCHAR, population_density__per_km²_ VARCHAR) | SELECT AVG(change___percentage_) FROM table_name_51 WHERE land_area__km²_ = 546.74 AND population_density__per_km²_ > 0.5 |
Write a SQL query that answers the following question: What was the result after 1994 for team MB2 and 31 starts? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (finish VARCHAR, start VARCHAR, year VARCHAR, team VARCHAR) | SELECT finish FROM table_name_64 WHERE year > 1994 AND team = "mb2" AND start = "31" |
Write a SQL query that answers the following question: What team has 33 starts? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (team VARCHAR, start VARCHAR) | SELECT team FROM table_name_22 WHERE start = "33" |
Write a SQL query that answers the following question: What team finished 35 in a ford before 1997? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (team VARCHAR, finish VARCHAR, year VARCHAR, manufacturer VARCHAR) | SELECT team FROM table_name_90 WHERE year < 1997 AND manufacturer = "ford" AND finish = "35" |
Write a SQL query that answers the following question: What was the sum of the scores before the year 2002, that had the venue of Halmstad? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (score INTEGER, venue VARCHAR, year VARCHAR) | SELECT SUM(score) FROM table_name_29 WHERE venue = "halmstad" AND year < 2002 |
Write a SQL query that answers the following question: What was France's highest score when the venue was Bokskogens? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (score INTEGER, country VARCHAR, venue VARCHAR) | SELECT MAX(score) FROM table_name_1 WHERE country = "france" AND venue = "bokskogens" |
Write a SQL query that answers the following question: What was the earliest year during which the winner was Matthew King, and during which the score was higher than 270? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (year INTEGER, winner VARCHAR, score VARCHAR) | SELECT MIN(year) FROM table_name_25 WHERE winner = "matthew king" AND score > 270 |
Write a SQL query that answers the following question: What was the average year during which the score was 270? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (year INTEGER, score VARCHAR) | SELECT AVG(year) FROM table_name_7 WHERE score = 270 |
Write a SQL query that answers the following question: What were the total number scores after 2005, when the winner was David Patrick? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (score VARCHAR, winner VARCHAR, year VARCHAR) | SELECT COUNT(score) FROM table_name_76 WHERE winner = "david patrick" AND year > 2005 |
Write a SQL query that answers the following question: What was the average year that the venue was Bokskogens? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (year INTEGER, venue VARCHAR) | SELECT AVG(year) FROM table_name_16 WHERE venue = "bokskogens" |
Write a SQL query that answers the following question: Who did the Toronto Blue Jays play against where the score was 4 - 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (opponent VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_66 WHERE score = "4 - 2" |
Write a SQL query that answers the following question: Who did the Blue Jays play against on April 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_52 WHERE date = "april 11" |
Write a SQL query that answers the following question: Who did the Blue Jays play against on April 24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_44 WHERE date = "april 24" |
Write a SQL query that answers the following question: What was the average Value ($M) when the Country was England, the Operating income($m) was greater than -5, and the Revenue ($M) was smaller than 103? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (value__ INTEGER, revenue__$m_ VARCHAR, country VARCHAR, operating_income_$m_ VARCHAR) | SELECT AVG(value__) AS $m_ FROM table_name_95 WHERE country = "england" AND operating_income_$m_ > -5 AND revenue__$m_ < 103 |
Write a SQL query that answers the following question: What was the total amount of Value ($M), when the Country was Spain, the Rank was 19, and the Debt as % of value was larger than 159? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (value__ VARCHAR, debt_as__percentageof_value VARCHAR, country VARCHAR, rank VARCHAR) | SELECT COUNT(value__) AS $m_ FROM table_name_54 WHERE country = "spain" AND rank = 19 AND debt_as__percentageof_value > 159 |
Write a SQL query that answers the following question: What was the sum of Value ($M), when the Revenue ($M) was less than 307, the Team was Valencia, and the Rank was smaller than 19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (value__ INTEGER, rank VARCHAR, revenue__$m_ VARCHAR, team VARCHAR) | SELECT SUM(value__) AS $m_ FROM table_name_3 WHERE revenue__$m_ < 307 AND team = "valencia" AND rank < 19 |
Write a SQL query that answers the following question: What was the total amount of Value ($M), when the Rank was higher than 6, and the % change on year was -27? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (value__ VARCHAR, rank VARCHAR, _percentage_change_on_year VARCHAR) | SELECT COUNT(value__) AS $m_ FROM table_name_36 WHERE rank > 6 AND _percentage_change_on_year = "-27" |
Write a SQL query that answers the following question: What was the sum of Revenue ($M), when the Debt as % of value was higher than 27, and the Operating income($m) was 77? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (revenue__ INTEGER, debt_as__percentageof_value VARCHAR, operating_income_$m_ VARCHAR) | SELECT SUM(revenue__) AS $m_ FROM table_name_35 WHERE debt_as__percentageof_value > 27 AND operating_income_$m_ = 77 |
Write a SQL query that answers the following question: Name the screening completed for screening started 23 january 2006 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (screening_completed VARCHAR, screening_started VARCHAR) | SELECT screening_completed FROM table_name_22 WHERE screening_started = "23 january 2006" |
Write a SQL query that answers the following question: Name the screening started when it was completed 3 may 2006 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (screening_started VARCHAR, screening_completed VARCHAR) | SELECT screening_started FROM table_name_40 WHERE screening_completed = "3 may 2006" |
Write a SQL query that answers the following question: What award was Trent Tesoro nominated for in 2007? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (award VARCHAR, result VARCHAR, year VARCHAR) | SELECT award FROM table_name_2 WHERE result = "nominated" AND year = 2007 |
Write a SQL query that answers the following question: What is the score for the team that has a record of 80-64? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_43 WHERE record = "80-64" |
Write a SQL query that answers the following question: What position did team scandia finish when their engine was cosworth? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (finish VARCHAR, engine VARCHAR, team VARCHAR) | SELECT finish FROM table_name_72 WHERE engine = "cosworth" AND team = "team scandia" |
Write a SQL query that answers the following question: What was the position of the team that used an oldsmobile engine and DNQ? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (finish VARCHAR, engine VARCHAR, start VARCHAR) | SELECT finish FROM table_name_10 WHERE engine = "oldsmobile" AND start = "dnq" |
Write a SQL query that answers the following question: what is the least bronze when gold is more than 0 for russia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (bronze INTEGER, gold VARCHAR, nation VARCHAR) | SELECT MIN(bronze) FROM table_name_37 WHERE gold > 0 AND nation = "russia" |
Write a SQL query that answers the following question: what is the highest rank for italy when gold is more than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (rank INTEGER, nation VARCHAR, gold VARCHAR) | SELECT MAX(rank) FROM table_name_19 WHERE nation = "italy" AND gold > 1 |
Write a SQL query that answers the following question: what is the total when bronze is more than 1 and gold smaller than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (total INTEGER, bronze VARCHAR, gold VARCHAR) | SELECT SUM(total) FROM table_name_1 WHERE bronze > 1 AND gold < 1 |
Write a SQL query that answers the following question: What is the avg seek time for a device that is less than 3231? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (avg_seek_time_ VARCHAR, ms VARCHAR, device INTEGER) | SELECT avg_seek_time_[ms] FROM table_name_26 WHERE device < 3231 |
Write a SQL query that answers the following question: What is the smallest transfer rate for a 3243 device? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (kb_s VARCHAR, avg_transfer_rate_ INTEGER, device VARCHAR) | SELECT MIN(avg_transfer_rate_)[kb_s] FROM table_name_69 WHERE device = 3243 |
Write a SQL query that answers the following question: Which entrant has a year after 1955? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (entrant VARCHAR, year INTEGER) | SELECT entrant FROM table_name_59 WHERE year > 1955 |
Write a SQL query that answers the following question: How many draws has a Club of real valladolid that was played less than 38? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (draws INTEGER, club VARCHAR, played VARCHAR) | SELECT MAX(draws) FROM table_name_35 WHERE club = "real valladolid" AND played < 38 |
Write a SQL query that answers the following question: How many losses are there with 5 goal differences, drew more than 10 times, and 43 goals against? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (losses VARCHAR, goals_against VARCHAR, goal_difference VARCHAR, draws VARCHAR) | SELECT COUNT(losses) FROM table_name_51 WHERE goal_difference = 5 AND draws > 10 AND goals_against = 43 |
Write a SQL query that answers the following question: On which award show was Bad Girls nominated for Most Popular Drama in 2004? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (award_show VARCHAR, year VARCHAR, category VARCHAR) | SELECT award_show FROM table_name_66 WHERE year = 2004 AND category = "most popular drama" |
Write a SQL query that answers the following question: Who was the recipient when the show was nominated for Most Popular Drama after 2004? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (recipient_s_ VARCHAR, year VARCHAR, result VARCHAR, category VARCHAR) | SELECT recipient_s_ FROM table_name_5 WHERE result = "nominated" AND category = "most popular drama" AND year > 2004 |
Write a SQL query that answers the following question: In what award show was Bad Girls nominated for Best Loved Drama in 2002? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (award_show VARCHAR, category VARCHAR, year VARCHAR) | SELECT award_show FROM table_name_53 WHERE category = "best loved drama" AND year = 2002 |
Write a SQL query that answers the following question: What is the average total number of medals for a nation with 2 silver medals and a rank larger than 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (total INTEGER, silver VARCHAR, rank VARCHAR) | SELECT AVG(total) FROM table_name_97 WHERE silver = 2 AND rank > 7 |
Write a SQL query that answers the following question: What is the lowest rank of Ukraine with fewer than 14 silver medals, fewer than 3 bronze medals, and a total of 4 medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (rank INTEGER, nation VARCHAR, total VARCHAR, silver VARCHAR, bronze VARCHAR) | SELECT MIN(rank) FROM table_name_95 WHERE silver < 14 AND bronze < 3 AND total = 4 AND nation = "ukraine" |
Write a SQL query that answers the following question: What is the total of bronze medals from nations with more than 16 total medals and ranks larger than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (bronze VARCHAR, total VARCHAR, rank VARCHAR) | SELECT COUNT(bronze) FROM table_name_68 WHERE total = 16 AND rank > 3 |
Write a SQL query that answers the following question: What is the total number of bronze medals with a total of 4 medals and 1 gold medal? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (bronze VARCHAR, total VARCHAR, gold VARCHAR) | SELECT COUNT(bronze) FROM table_name_90 WHERE total = 4 AND gold = 1 |
Write a SQL query that answers the following question: What was the qualification with more than 162 laps in 1953? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (qual VARCHAR, laps VARCHAR, year VARCHAR) | SELECT qual FROM table_name_35 WHERE laps > 162 AND year = "1953" |
Write a SQL query that answers the following question: What was the qualification with more than 585 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (qual VARCHAR, laps VARCHAR) | SELECT qual FROM table_name_16 WHERE laps = 585 |
Write a SQL query that answers the following question: How many laps had a qualification of 136.168? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (laps VARCHAR, qual VARCHAR) | SELECT COUNT(laps) FROM table_name_50 WHERE qual = "136.168" |
Write a SQL query that answers the following question: Who was appointed with the title of envoy extraordinary and minister plenipotentiary, and a termination of mission of march 16, 1905? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (appointed_by VARCHAR, title VARCHAR, termination_of_mission VARCHAR) | SELECT appointed_by FROM table_name_15 WHERE title = "envoy extraordinary and minister plenipotentiary" AND termination_of_mission = "march 16, 1905" |
Write a SQL query that answers the following question: What is the GDP (billion US$) of the country that has a GDP per capita (US$) of 8,861? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (gdp__billion_us$_ VARCHAR, gdp_per_capita__us$_ VARCHAR) | SELECT gdp__billion_us$_ FROM table_name_29 WHERE gdp_per_capita__us$_ = "8,861" |
Write a SQL query that answers the following question: What is the name of the member country that has a Population of 1,341,664? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (member_countries VARCHAR, population VARCHAR) | SELECT member_countries FROM table_name_71 WHERE population = "1,341,664" |
Write a SQL query that answers the following question: What is the total population of the country that has a GDP per capita (US$) of 15,054? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (population VARCHAR, gdp_per_capita__us$_ VARCHAR) | SELECT population FROM table_name_15 WHERE gdp_per_capita__us$_ = "15,054" |
Write a SQL query that answers the following question: What is the name of the country that has an Area (km²) of 49,036? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (member_countries VARCHAR, area__km²_ VARCHAR) | SELECT member_countries FROM table_name_47 WHERE area__km²_ = "49,036" |
Write a SQL query that answers the following question: What is the GDP (billion US$) of the country that has an Area (km²) of 316? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (gdp__billion_us$_ VARCHAR, area__km²_ VARCHAR) | SELECT gdp__billion_us$_ FROM table_name_76 WHERE area__km²_ = "316" |
Write a SQL query that answers the following question: What is the GDP per capita (US$) of the country that has a Population of 2,011,473? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (gdp_per_capita__us$_ VARCHAR, population VARCHAR) | SELECT gdp_per_capita__us$_ FROM table_name_54 WHERE population = "2,011,473" |
Write a SQL query that answers the following question: What is the original title for the Korean language film? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (original_title VARCHAR, language VARCHAR) | SELECT original_title FROM table_name_24 WHERE language = "korean" |
Write a SQL query that answers the following question: What language is the film La Diagonale du Fou in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (language VARCHAR, original_title VARCHAR) | SELECT language FROM table_name_24 WHERE original_title = "la diagonale du fou" |
Write a SQL query that answers the following question: What was the original title of the Hindi film? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (original_title VARCHAR, language VARCHAR) | SELECT original_title FROM table_name_88 WHERE language = "hindi" |
Write a SQL query that answers the following question: What language is the film Karnal in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (language VARCHAR, original_title VARCHAR) | SELECT language FROM table_name_22 WHERE original_title = "karnal" |
Write a SQL query that answers the following question: What was the film title nominated from the Netherlands? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (film_title_used_in_nomination VARCHAR, country VARCHAR) | SELECT film_title_used_in_nomination FROM table_name_18 WHERE country = "netherlands" |
Write a SQL query that answers the following question: What was the film title nominated from the Sweden? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (film_title_used_in_nomination VARCHAR, country VARCHAR) | SELECT film_title_used_in_nomination FROM table_name_16 WHERE country = "sweden" |
Write a SQL query that answers the following question: On the Date of 15 June 1992 what is the Score that is listed? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_73 WHERE date = "15 june 1992" |
Write a SQL query that answers the following question: What is the average Crimean War with a Second Afghan War totaling 1, and a School of hamblin and porter's school, cork? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (crimean_war INTEGER, second_afghan_war VARCHAR, school VARCHAR) | SELECT AVG(crimean_war) FROM table_name_49 WHERE second_afghan_war = "1" AND school = "hamblin and porter's school, cork" |
Write a SQL query that answers the following question: What Venue has Basketball as a Sport? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (venue VARCHAR, sport VARCHAR) | SELECT venue FROM table_name_92 WHERE sport = "basketball" |
Write a SQL query that answers the following question: What Venue has Spartak St. Petersburg Club? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (venue VARCHAR, club VARCHAR) | SELECT venue FROM table_name_71 WHERE club = "spartak st. petersburg" |
Write a SQL query that answers the following question: What League of VSL Sport was Established in 1935? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (sport VARCHAR, established VARCHAR, league VARCHAR) | SELECT sport FROM table_name_40 WHERE established = 1935 AND league = "vsl" |
Write a SQL query that answers the following question: What Club Established in 2010 has a League of MHL? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (club VARCHAR, league VARCHAR, established VARCHAR) | SELECT club FROM table_name_13 WHERE league = "mhl" AND established = 2010 |
Write a SQL query that answers the following question: What was the highest attendance week 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (attendance INTEGER, week VARCHAR) | SELECT MAX(attendance) FROM table_name_64 WHERE week = 12 |
Write a SQL query that answers the following question: What is the record for the result w 33-3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (record VARCHAR, result VARCHAR) | SELECT record FROM table_name_4 WHERE result = "w 33-3" |
Write a SQL query that answers the following question: What Committee has the First Elected of 1993? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (committee VARCHAR, first_elected VARCHAR) | SELECT committee FROM table_name_98 WHERE first_elected = 1993 |
Write a SQL query that answers the following question: What is the total number of First Elected that has counties represented of Anne Arundel, District of 30, and a Ways and Means Committee? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (first_elected VARCHAR, committee VARCHAR, counties_represented VARCHAR, district VARCHAR) | SELECT COUNT(first_elected) FROM table_name_22 WHERE counties_represented = "anne arundel" AND district = "30" AND committee = "ways and means" |
Write a SQL query that answers the following question: What counties represented have a First Elected of 2006 and a Ways and Means Committee? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (counties_represented VARCHAR, first_elected VARCHAR, committee VARCHAR) | SELECT counties_represented FROM table_name_97 WHERE first_elected = 2006 AND committee = "ways and means" |
Write a SQL query that answers the following question: What is the venue when the year is after 2001 for the summer olympics? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (venue VARCHAR, year VARCHAR, competition VARCHAR) | SELECT venue FROM table_name_56 WHERE year > 2001 AND competition = "summer olympics" |
Write a SQL query that answers the following question: What is the total attendance for the August 8 game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (attendance INTEGER, date VARCHAR) | SELECT SUM(attendance) FROM table_name_48 WHERE date = "august 8" |
Write a SQL query that answers the following question: Which opponent led to a 56-59 record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_53 WHERE record = "56-59" |
Write a SQL query that answers the following question: Where did they play that the score was 22-12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (venue VARCHAR, result VARCHAR) | SELECT venue FROM table_name_21 WHERE result = "22-12" |
Write a SQL query that answers the following question: What language is spoken after 2007 for the role of urvashi mathur? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (language VARCHAR, year VARCHAR, role VARCHAR) | SELECT language FROM table_name_56 WHERE year > 2007 AND role = "urvashi mathur" |
Write a SQL query that answers the following question: What role is spoken in hindi in 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (role VARCHAR, language VARCHAR, year VARCHAR) | SELECT role FROM table_name_26 WHERE language = "hindi" AND year = 2011 |
Write a SQL query that answers the following question: What is the note section for the role with a language of hindi and a title of miley naa miley hum? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (notes VARCHAR, language VARCHAR, title VARCHAR) | SELECT notes FROM table_name_30 WHERE language = "hindi" AND title = "miley naa miley hum" |
Write a SQL query that answers the following question: What is the title of the song that has a translation of Without Me? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (title VARCHAR, english_translation VARCHAR) | SELECT title FROM table_name_38 WHERE english_translation = "without me" |
Write a SQL query that answers the following question: what is the molecules when the percent mass is 1.0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (molecules VARCHAR, percent_of_mass VARCHAR) | SELECT molecules FROM table_name_8 WHERE percent_of_mass = "1.0" |
Write a SQL query that answers the following question: what is the mol.weight (daltons) when the percent of mass is 1.5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (molweight__daltons_ VARCHAR, percent_of_mass VARCHAR) | SELECT molweight__daltons_ FROM table_name_47 WHERE percent_of_mass = "1.5" |
Write a SQL query that answers the following question: what is the perfect of mass when the molecules is 1.74e14*? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (percent_of_mass VARCHAR, molecules VARCHAR) | SELECT percent_of_mass FROM table_name_58 WHERE molecules = "1.74e14*" |
Write a SQL query that answers the following question: what is the percent of mass when the mol.weight (daltons) is 1e11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (percent_of_mass VARCHAR, molweight__daltons_ VARCHAR) | SELECT percent_of_mass FROM table_name_21 WHERE molweight__daltons_ = "1e11" |
Write a SQL query that answers the following question: How many people attended the game when the away team was dynamo kyiv, and a Home team of torpedo zaporizhia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (attendance VARCHAR, away_team VARCHAR, home_team VARCHAR) | SELECT attendance FROM table_name_31 WHERE away_team = "dynamo kyiv" AND home_team = "torpedo zaporizhia" |
Write a SQL query that answers the following question: What was the round when the home team was chornomorets odessa? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (round VARCHAR, home_team VARCHAR) | SELECT round FROM table_name_55 WHERE home_team = "chornomorets odessa" |
Write a SQL query that answers the following question: What is the rank when the game was at dnipro stadium , kremenchuk? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (rank VARCHAR, location VARCHAR) | SELECT rank FROM table_name_55 WHERE location = "dnipro stadium , kremenchuk" |
Write a SQL query that answers the following question: What are the lowest points for the engines of the Lamborghini v12 and the Chassis on Minardi m191b? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (points INTEGER, engine VARCHAR, chassis VARCHAR) | SELECT MIN(points) FROM table_name_48 WHERE engine = "lamborghini v12" AND chassis = "minardi m191b" |
Write a SQL query that answers the following question: What is the Chassis from before 1997 with a Lamborghini v12 engine? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (chassis VARCHAR, year VARCHAR, engine VARCHAR) | SELECT chassis FROM table_name_98 WHERE year < 1997 AND engine = "lamborghini v12" |
Write a SQL query that answers the following question: What is the total of the year with a point larger than 0 or the Chassis of Minardi m190? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (year INTEGER, chassis VARCHAR, points VARCHAR) | SELECT SUM(year) FROM table_name_32 WHERE chassis = "minardi m190" AND points > 0 |
Write a SQL query that answers the following question: What are the lowest points from 1992 with a Chassis of Minardi m192? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (points INTEGER, year VARCHAR, chassis VARCHAR) | SELECT MIN(points) FROM table_name_89 WHERE year = 1992 AND chassis = "minardi m192" |
Write a SQL query that answers the following question: What Entrant has 0 points and from 1997? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (entrant VARCHAR, points VARCHAR, year VARCHAR) | SELECT entrant FROM table_name_67 WHERE points = 0 AND year = 1997 |
Write a SQL query that answers the following question: What is the total roll with a decile less than 7, and an authority of state, in the Macraes Flat area? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (roll VARCHAR, area VARCHAR, decile VARCHAR, authority VARCHAR) | SELECT COUNT(roll) FROM table_name_98 WHERE decile = 7 AND authority = "state" AND area = "macraes flat" |
Write a SQL query that answers the following question: What year has a decile more than 6, in the Waikouaiti area? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (years VARCHAR, decile VARCHAR, area VARCHAR) | SELECT years FROM table_name_78 WHERE decile > 6 AND area = "waikouaiti" |
Write a SQL query that answers the following question: What place did the Nashville Metros place in the 1994/95 Season? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (regular_season VARCHAR, year VARCHAR) | SELECT regular_season FROM table_name_64 WHERE year = "1994/95" |
Write a SQL query that answers the following question: What years did the Nashville Metros have Usisl Indoor League? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (year VARCHAR, league VARCHAR) | SELECT year FROM table_name_63 WHERE league = "usisl indoor" |
Write a SQL query that answers the following question: Which Round has kim eun-ha as an Opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (round VARCHAR, opponent VARCHAR) | SELECT round FROM table_name_37 WHERE opponent = "kim eun-ha" |
Write a SQL query that answers the following question: Which kind of Edition that has a Surface of clay, and Park Sung-Hee as an opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (edition VARCHAR, surface VARCHAR, opponent VARCHAR) | SELECT edition FROM table_name_95 WHERE surface = "clay" AND opponent = "park sung-hee" |
Write a SQL query that answers the following question: What is the highest gold number count where a county had over 9 golds and 10 silvers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (gold INTEGER, total VARCHAR, silver VARCHAR) | SELECT MAX(gold) FROM table_name_87 WHERE total > 9 AND silver > 10 |
Write a SQL query that answers the following question: How many bronze medals did the country with 7 medals and over 5 silver medals receive? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (bronze INTEGER, total VARCHAR, silver VARCHAR) | SELECT SUM(bronze) FROM table_name_88 WHERE total = 7 AND silver > 5 |
Write a SQL query that answers the following question: Name the date for venue of lord's | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_78 WHERE venue = "lord's" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.