instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What year was the player David Rose? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (year INTEGER, player VARCHAR) | SELECT SUM(year) FROM table_name_97 WHERE player = "david rose" |
Write a SQL query that answers the following question: What is the median family income when the per capita is $24,114? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (median_family_income VARCHAR, per_capita_income VARCHAR) | SELECT median_family_income FROM table_name_23 WHERE per_capita_income = "$24,114" |
Write a SQL query that answers the following question: What is the median household income when the per capita is $21,585? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (median_household_income VARCHAR, per_capita_income VARCHAR) | SELECT median_household_income FROM table_name_56 WHERE per_capita_income = "$21,585" |
Write a SQL query that answers the following question: What is the population where the median family income is $48,446 and there are more than 35,343 households? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (population INTEGER, median_family_income VARCHAR, number_of_households VARCHAR) | SELECT AVG(population) FROM table_name_48 WHERE median_family_income = "$48,446" AND number_of_households > 35 OFFSET 343 |
Write a SQL query that answers the following question: What is the population where the median household income is $87,832 and there are fewer than 64,886 households? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (population INTEGER, median_household_income VARCHAR, number_of_households VARCHAR) | SELECT AVG(population) FROM table_name_83 WHERE median_household_income = "$87,832" AND number_of_households < 64 OFFSET 886 |
Write a SQL query that answers the following question: What is the score 1 for the major league soccer all-star game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (score1 VARCHAR, competition_or_tour VARCHAR) | SELECT score1 FROM table_name_20 WHERE competition_or_tour = "major league soccer all-star game" |
Write a SQL query that answers the following question: What is the score 1 with a h ground? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (score1 VARCHAR, ground VARCHAR) | SELECT score1 FROM table_name_85 WHERE ground = "h" |
Write a SQL query that answers the following question: Who are the scorers on 1 August 2008, where the ground was A? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (scorers VARCHAR, ground VARCHAR, date VARCHAR) | SELECT scorers FROM table_name_34 WHERE ground = "a" AND date = "1 august 2008" |
Write a SQL query that answers the following question: What ground had Portsmouth reserves as an opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (ground VARCHAR, opponent VARCHAR) | SELECT ground FROM table_name_98 WHERE opponent = "portsmouth reserves" |
Write a SQL query that answers the following question: What ground had a match smaller than 6 and Chelsea Reserves as the opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (ground VARCHAR, match VARCHAR, opponent VARCHAR) | SELECT ground FROM table_name_17 WHERE match < 6 AND opponent = "chelsea reserves" |
Write a SQL query that answers the following question: Which Team has Losses larger than 5, and a Position of 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (team VARCHAR, losses VARCHAR, position VARCHAR) | SELECT team FROM table_name_53 WHERE losses > 5 AND position = 12 |
Write a SQL query that answers the following question: How many Points have a Position larger than 4, and Losses larger than 5, and a Conceded of 15, and a Scored larger than 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (points VARCHAR, scored VARCHAR, conceded VARCHAR, position VARCHAR, losses VARCHAR) | SELECT COUNT(points) FROM table_name_70 WHERE position > 4 AND losses > 5 AND conceded = 15 AND scored > 11 |
Write a SQL query that answers the following question: How many positions have Played smaller than 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (position INTEGER, played INTEGER) | SELECT SUM(position) FROM table_name_79 WHERE played < 12 |
Write a SQL query that answers the following question: Who was the Prato Elector with a faction of Italian? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (elector VARCHAR, faction VARCHAR, nationality VARCHAR) | SELECT elector FROM table_name_51 WHERE faction = "italian" AND nationality = "prato" |
Write a SQL query that answers the following question: What's the elevator of Jacques D'euse? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (elevator VARCHAR, elector VARCHAR) | SELECT elevator FROM table_name_74 WHERE elector = "jacques d'euse" |
Write a SQL query that answers the following question: What's the nationality for Nicholas III? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (nationality VARCHAR, elevator VARCHAR) | SELECT nationality FROM table_name_97 WHERE elevator = "nicholas iii" |
Write a SQL query that answers the following question: What is the fewest mintage from Dora de Pédery-Hunt, and the year was before 2002? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (mintage INTEGER, artist VARCHAR, year VARCHAR) | SELECT MIN(mintage) FROM table_name_93 WHERE artist = "dora de pédery-hunt" AND year < 2002 |
Write a SQL query that answers the following question: What is the most mintage with common eider as the theme, and the year less than 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (mintage INTEGER, theme VARCHAR, year VARCHAR) | SELECT MAX(mintage) FROM table_name_57 WHERE theme = "common eider" AND year < 2008 |
Write a SQL query that answers the following question: What is the earliest year when the 25th Anniversary Loonie was the theme, and the mintage was less than 35,000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (year INTEGER, theme VARCHAR, mintage VARCHAR) | SELECT MIN(year) FROM table_name_18 WHERE theme = "25th anniversary loonie" AND mintage < 35 OFFSET 000 |
Write a SQL query that answers the following question: Who was the artist that had $49.95 as the issue price for the 2010 year? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (artist VARCHAR, issue_price VARCHAR, year VARCHAR) | SELECT artist FROM table_name_50 WHERE issue_price = "$49.95" AND year = 2010 |
Write a SQL query that answers the following question: What is the score for the southern home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (score VARCHAR, home_team VARCHAR) | SELECT score FROM table_name_78 WHERE home_team = "southern" |
Write a SQL query that answers the following question: What time is it for the southern home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (time VARCHAR, home_team VARCHAR) | SELECT time FROM table_name_82 WHERE home_team = "southern" |
Write a SQL query that answers the following question: What is the Result of the game on November 24, 1946? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_78 WHERE date = "november 24, 1946" |
Write a SQL query that answers the following question: What is the Week number on September 6, 1946? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (week INTEGER, date VARCHAR) | SELECT SUM(week) FROM table_name_48 WHERE date = "september 6, 1946" |
Write a SQL query that answers the following question: What is the Date of the game with a Record of 5-3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_53 WHERE record = "5-3" |
Write a SQL query that answers the following question: What was the lowest ranking rower from Great Britain? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (rank INTEGER, country VARCHAR) | SELECT MIN(rank) FROM table_name_86 WHERE country = "great britain" |
Write a SQL query that answers the following question: What are the notes for the rower in ranks over 2 and having a time of 7:00:46? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (notes VARCHAR, rank VARCHAR, time VARCHAR) | SELECT notes FROM table_name_48 WHERE rank > 2 AND time = "7:00:46" |
Write a SQL query that answers the following question: Which Programming has a Video of audio only? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (programming VARCHAR, video VARCHAR) | SELECT programming FROM table_name_62 WHERE video = "audio only" |
Write a SQL query that answers the following question: Which Video has a Channel of 25.3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (video VARCHAR, channel VARCHAR) | SELECT video FROM table_name_49 WHERE channel = 25.3 |
Write a SQL query that answers the following question: Which Video has an Aspect of 16:9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (video VARCHAR, aspect VARCHAR) | SELECT video FROM table_name_14 WHERE aspect = "16:9" |
Write a SQL query that answers the following question: On which date did Michael Signer earn 4%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (date VARCHAR, michael_signer VARCHAR) | SELECT date FROM table_name_62 WHERE michael_signer = "4%" |
Write a SQL query that answers the following question: Which polling source gave Michael Signer 5%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (source VARCHAR, michael_signer VARCHAR) | SELECT source FROM table_name_54 WHERE michael_signer = "5%" |
Write a SQL query that answers the following question: Which date had the undecided percentage at 42%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (date VARCHAR, undecided VARCHAR) | SELECT date FROM table_name_10 WHERE undecided = "42%" |
Write a SQL query that answers the following question: What is the Rich Savage percentage in the poll with Jody Wagner at 30%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (rich_savage VARCHAR, jody_wagner VARCHAR) | SELECT rich_savage FROM table_name_90 WHERE jody_wagner = "30%" |
Write a SQL query that answers the following question: What is the Rich Savage percentage in the poll that had undecideds at 68%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (rich_savage VARCHAR, undecided VARCHAR) | SELECT rich_savage FROM table_name_82 WHERE undecided = "68%" |
Write a SQL query that answers the following question: Who was the opponent when the record was 31-24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_40 WHERE record = "31-24" |
Write a SQL query that answers the following question: What was the score of Game 48? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (score VARCHAR, game VARCHAR) | SELECT score FROM table_name_43 WHERE game = "48" |
Write a SQL query that answers the following question: Who was the opponent at the game at Madison Square Garden? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (opponent VARCHAR, location_attendance VARCHAR) | SELECT opponent FROM table_name_19 WHERE location_attendance = "madison square garden" |
Write a SQL query that answers the following question: What was the score of the game at Great Western Forum? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (score VARCHAR, location_attendance VARCHAR) | SELECT score FROM table_name_54 WHERE location_attendance = "great western forum" |
Write a SQL query that answers the following question: Which Romaji Title has a Japanese Title of 花より男子2(リターンズ)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (romaji_title VARCHAR, japanese_title VARCHAR) | SELECT romaji_title FROM table_name_78 WHERE japanese_title = "花より男子2(リターンズ)" |
Write a SQL query that answers the following question: Which Romaji Title has a TV Station of fuji tv, and Average Ratings of 12.41%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (romaji_title VARCHAR, tv_station VARCHAR, average_ratings VARCHAR) | SELECT romaji_title FROM table_name_65 WHERE tv_station = "fuji tv" AND average_ratings = "12.41%" |
Write a SQL query that answers the following question: Which Japanese Title has more than 9 Episodes, and a Romaji Title of haikei, chichiue-sama? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (japanese_title VARCHAR, episodes VARCHAR, romaji_title VARCHAR) | SELECT japanese_title FROM table_name_12 WHERE episodes > 9 AND romaji_title = "haikei, chichiue-sama" |
Write a SQL query that answers the following question: Which Romaji Title has 11 Episodes, and a TV Station of fuji tv, and Average Ratings of 14.9%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (romaji_title VARCHAR, average_ratings VARCHAR, episodes VARCHAR, tv_station VARCHAR) | SELECT romaji_title FROM table_name_24 WHERE episodes = 11 AND tv_station = "fuji tv" AND average_ratings = "14.9%" |
Write a SQL query that answers the following question: What was the result of nomination for Season 6 after 1995? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (result VARCHAR, year VARCHAR, episode VARCHAR) | SELECT result FROM table_name_49 WHERE year > 1995 AND episode = "season 6" |
Write a SQL query that answers the following question: What was the category of the award that John Frank Levey was nominated for after 1995? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (category VARCHAR, nominee_s_ VARCHAR, year VARCHAR) | SELECT category FROM table_name_73 WHERE nominee_s_ = "john frank levey" AND year > 1995 |
Write a SQL query that answers the following question: What is the English Translation for the French song by the Artist Rachel? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (english_translation VARCHAR, language VARCHAR, artist VARCHAR) | SELECT english_translation FROM table_name_12 WHERE language = "french" AND artist = "rachel" |
Write a SQL query that answers the following question: What is the Song by Artist Robert Cogoi? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (song VARCHAR, artist VARCHAR) | SELECT song FROM table_name_69 WHERE artist = "robert cogoi" |
Write a SQL query that answers the following question: How many Points were awarded to Sabahudin Kurt with a Draw is greater than 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (points VARCHAR, draw VARCHAR, artist VARCHAR) | SELECT points FROM table_name_64 WHERE draw > 7 AND artist = "sabahudin kurt" |
Write a SQL query that answers the following question: How much Converted has a Number of 35, and a Withdrawn smaller than 1952? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (converted VARCHAR, number VARCHAR, withdrawn VARCHAR) | SELECT COUNT(converted) FROM table_name_71 WHERE number = "35" AND withdrawn < 1952 |
Write a SQL query that answers the following question: What is the average latitude for townships in Dickey county with water under 2.106 sqmi and population under 95? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (latitude INTEGER, pop__2010_ VARCHAR, water__sqmi_ VARCHAR, county VARCHAR) | SELECT AVG(latitude) FROM table_name_15 WHERE water__sqmi_ < 2.106 AND county = "dickey" AND pop__2010_ < 95 |
Write a SQL query that answers the following question: What is the highest GEO ID for land masses over 38.117 sq mi and over 2.065 sq mi of water? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (geo_id INTEGER, land___sqmi__ VARCHAR, water__sqmi_ VARCHAR) | SELECT MAX(geo_id) FROM table_name_99 WHERE land___sqmi__ > 38.117 AND water__sqmi_ > 2.065 |
Write a SQL query that answers the following question: What is the number of GEO IDs for areas in Riggin township with water area over 0.587 sq mi and ANSI codes over 1759257? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (geo_id VARCHAR, ansi_code VARCHAR, water__sqmi_ VARCHAR, township VARCHAR) | SELECT COUNT(geo_id) FROM table_name_28 WHERE water__sqmi_ > 0.587 AND township = "riggin" AND ansi_code > 1759257 |
Write a SQL query that answers the following question: What's the class when the identifier is cbf-fm-14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (class VARCHAR, identifier VARCHAR) | SELECT class FROM table_name_94 WHERE identifier = "cbf-fm-14" |
Write a SQL query that answers the following question: What's the frequency when the identifier is cbf-fm-9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (frequency VARCHAR, identifier VARCHAR) | SELECT frequency FROM table_name_47 WHERE identifier = "cbf-fm-9" |
Write a SQL query that answers the following question: What's the RECNet when the identifier is cbf-fm-20? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (recnet VARCHAR, identifier VARCHAR) | SELECT recnet FROM table_name_38 WHERE identifier = "cbf-fm-20" |
Write a SQL query that answers the following question: What's the RECNet when the power is 199 watts? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (recnet VARCHAR, power VARCHAR) | SELECT recnet FROM table_name_9 WHERE power = "199 watts" |
Write a SQL query that answers the following question: What's the frequency when the identifier is cbf-fm-14 having a class of A? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (frequency VARCHAR, class VARCHAR, identifier VARCHAR) | SELECT frequency FROM table_name_14 WHERE class = "a" AND identifier = "cbf-fm-14" |
Write a SQL query that answers the following question: What is the A.G. value associated with D3&4 of 46 and transmitter of Seaham? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (ag VARCHAR, transmitter VARCHAR, d3 VARCHAR) | SELECT ag FROM table_name_73 WHERE d3 & 4 = "46" AND transmitter = "seaham" |
Write a SQL query that answers the following question: What is the AG value associated with a D3&4 of 41? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (ag VARCHAR, d3 VARCHAR) | SELECT ag FROM table_name_71 WHERE d3 & 4 = "41" |
Write a SQL query that answers the following question: which Label is in 15 december 1992? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (label VARCHAR, date VARCHAR) | SELECT label FROM table_name_45 WHERE date = "15 december 1992" |
Write a SQL query that answers the following question: Which Album has an Artist of various artists (compilation), and a Label of laface? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (album VARCHAR, artist VARCHAR, label VARCHAR) | SELECT album FROM table_name_53 WHERE artist = "various artists (compilation)" AND label = "laface" |
Write a SQL query that answers the following question: When has an Album of l'un n'empêche pas l'autre? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (date VARCHAR, album VARCHAR) | SELECT date FROM table_name_14 WHERE album = "l'un n'empêche pas l'autre" |
Write a SQL query that answers the following question: Which Track(s) is on 18 november 1985? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (track_s_ VARCHAR, date VARCHAR) | SELECT track_s_ FROM table_name_86 WHERE date = "18 november 1985" |
Write a SQL query that answers the following question: Which Label that has an Album of so red the rose? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (label VARCHAR, album VARCHAR) | SELECT label FROM table_name_61 WHERE album = "so red the rose" |
Write a SQL query that answers the following question: What is the least lane number that Natalie Coughlin was in when she was ranked greater than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (lane INTEGER, name VARCHAR, rank VARCHAR) | SELECT MIN(lane) FROM table_name_75 WHERE name = "natalie coughlin" AND rank > 1 |
Write a SQL query that answers the following question: Who is the Athlete with a rowing Time of 6:36.05? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (athlete VARCHAR, time VARCHAR) | SELECT athlete FROM table_name_49 WHERE time = "6:36.05" |
Write a SQL query that answers the following question: What song was made by the sex pistols? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (song VARCHAR, artist VARCHAR) | SELECT song FROM table_name_9 WHERE artist = "sex pistols" |
Write a SQL query that answers the following question: What song has the band tour vnue of 6. tool (usa) encore? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (song VARCHAR, band_tour_venue VARCHAR) | SELECT song FROM table_name_66 WHERE band_tour_venue = "6. tool (usa) encore" |
Write a SQL query that answers the following question: What is the total when the A score was less than 6.6, and the B score was 8.925? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (total VARCHAR, a_score VARCHAR, b_score VARCHAR) | SELECT total FROM table_name_15 WHERE a_score < 6.6 AND b_score = 8.925 |
Write a SQL query that answers the following question: What total has a position smaller than 4, a B score higher than 9.125, and an A score less than 6.6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (total INTEGER, a_score VARCHAR, position VARCHAR, b_score VARCHAR) | SELECT AVG(total) FROM table_name_89 WHERE position < 4 AND b_score > 9.125 AND a_score < 6.6 |
Write a SQL query that answers the following question: What is the score when watford was the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (score VARCHAR, away_team VARCHAR) | SELECT score FROM table_name_59 WHERE away_team = "watford" |
Write a SQL query that answers the following question: What is the score when york city was the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (score VARCHAR, home_team VARCHAR) | SELECT score FROM table_name_91 WHERE home_team = "york city" |
Write a SQL query that answers the following question: What score has a game greater than 29, with 24-6 as the record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (score VARCHAR, game VARCHAR, record VARCHAR) | SELECT score FROM table_name_6 WHERE game > 29 AND record = "24-6" |
Write a SQL query that answers the following question: What record has @ detroit as the opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (record VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_61 WHERE opponent = "@ detroit" |
Write a SQL query that answers the following question: What high assists have McWilliams-franklin (22) as the high points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (high_assists VARCHAR, high_points VARCHAR) | SELECT high_assists FROM table_name_95 WHERE high_points = "mcwilliams-franklin (22)" |
Write a SQL query that answers the following question: What high assists have uic pavilion 3,520 as the location/attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (high_assists VARCHAR, location_attendance VARCHAR) | SELECT high_assists FROM table_name_31 WHERE location_attendance = "uic pavilion 3,520" |
Write a SQL query that answers the following question: What game has jones (10) as the high rebounds? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (game VARCHAR, high_rebounds VARCHAR) | SELECT game FROM table_name_94 WHERE high_rebounds = "jones (10)" |
Write a SQL query that answers the following question: How many cores does the processor with a release price of $426 have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (cores VARCHAR, release_price___usd__ VARCHAR) | SELECT cores FROM table_name_28 WHERE release_price___usd__ = "$426" |
Write a SQL query that answers the following question: What was the frequency of the Core i7-3610QE? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (frequency VARCHAR, model_number VARCHAR) | SELECT frequency FROM table_name_50 WHERE model_number = "core i7-3610qe" |
Write a SQL query that answers the following question: How many cores does the processor released in April 2012 with a price of $393 and part number av8063801117503 have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (cores VARCHAR, part_number_s_ VARCHAR, release_date VARCHAR, release_price___usd__ VARCHAR) | SELECT cores FROM table_name_3 WHERE release_date = "april 2012" AND release_price___usd__ = "$393" AND part_number_s_ = "av8063801117503" |
Write a SQL query that answers the following question: What is Japan's Area km²? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (area_km² VARCHAR, country VARCHAR) | SELECT area_km² FROM table_name_45 WHERE country = "japan" |
Write a SQL query that answers the following question: Which island has a density (per km²) of 1,368? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (island VARCHAR, density__per_km²_ VARCHAR) | SELECT island FROM table_name_98 WHERE density__per_km²_ = "1,368" |
Write a SQL query that answers the following question: Which country has a density (per km²) of 6,814? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (country VARCHAR, density__per_km²_ VARCHAR) | SELECT country FROM table_name_32 WHERE density__per_km²_ = "6,814" |
Write a SQL query that answers the following question: Which island has a population of 9,520 (2000)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (island VARCHAR, population VARCHAR) | SELECT island FROM table_name_20 WHERE population = "9,520 (2000)" |
Write a SQL query that answers the following question: What is the area km² for a population of 99,685 (2008)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (area_km² VARCHAR, population VARCHAR) | SELECT area_km² FROM table_name_99 WHERE population = "99,685 (2008)" |
Write a SQL query that answers the following question: Which island is in the United Kingdom? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (island VARCHAR, country VARCHAR) | SELECT island FROM table_name_43 WHERE country = "united kingdom" |
Write a SQL query that answers the following question: Who is the pitcher from the 1983 season in location Kingdome? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (pitcher VARCHAR, location VARCHAR, season VARCHAR) | SELECT pitcher FROM table_name_40 WHERE location = "kingdome" AND season = "1983" |
Write a SQL query that answers the following question: Who is the pitcher from the 1994 season that had the Cleveland Indians as an opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (pitcher VARCHAR, opponent VARCHAR, season VARCHAR) | SELECT pitcher FROM table_name_5 WHERE opponent = "cleveland indians" AND season = "1994" |
Write a SQL query that answers the following question: Who is the opponent for the 2011 season with a decision of W? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (opponent VARCHAR, decision VARCHAR, season VARCHAR) | SELECT opponent FROM table_name_11 WHERE decision = "w" AND season = "2011" |
Write a SQL query that answers the following question: What season was played at Safeco Field, against the Boston Red Sox, with a decision of L? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (season VARCHAR, opponent VARCHAR, location VARCHAR, decision VARCHAR) | SELECT season FROM table_name_60 WHERE location = "safeco field" AND decision = "l" AND opponent = "boston red sox" |
Write a SQL query that answers the following question: What was the decision for the 1983 season for the game played against the New York Yankees? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (decision VARCHAR, opponent VARCHAR, season VARCHAR) | SELECT decision FROM table_name_35 WHERE opponent = "new york yankees" AND season = "1983" |
Write a SQL query that answers the following question: what is the encoding when the tracks/side is 80 and sectors/track is 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (encoding VARCHAR, tracks__side VARCHAR, sectors__track VARCHAR) | SELECT encoding FROM table_name_44 WHERE tracks__side = "80" AND sectors__track = "11" |
Write a SQL query that answers the following question: What is the highest bronze for less than 2 total trophies? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (bronze INTEGER, total INTEGER) | SELECT MAX(bronze) FROM table_name_16 WHERE total < 2 |
Write a SQL query that answers the following question: Which Total has a Finish of t64, and a Year won larger than 2006? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (total INTEGER, finish VARCHAR, year_won VARCHAR) | SELECT MAX(total) FROM table_name_64 WHERE finish = "t64" AND year_won > 2006 |
Write a SQL query that answers the following question: Which year won has a Finish of t24, and a Country of england? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (year_won INTEGER, finish VARCHAR, country VARCHAR) | SELECT AVG(year_won) FROM table_name_6 WHERE finish = "t24" AND country = "england" |
Write a SQL query that answers the following question: What is the smallest bronze value for countries with totals over 2, golds of 0, silvers under 1, and ranks over 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (bronze INTEGER, gold VARCHAR, rank VARCHAR, total VARCHAR, silver VARCHAR) | SELECT MIN(bronze) FROM table_name_45 WHERE total > 2 AND silver < 1 AND rank > 10 AND gold < 0 |
Write a SQL query that answers the following question: Which school has an enrollment of A and had lost river as their previous conference? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (school VARCHAR, previous_conference VARCHAR, enrollment VARCHAR) | SELECT school FROM table_name_53 WHERE previous_conference = "lost river" AND enrollment = "a" |
Write a SQL query that answers the following question: What is the average year joined of the 277 county? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (year_joined INTEGER, county VARCHAR) | SELECT AVG(year_joined) FROM table_name_43 WHERE county = 277 |
Write a SQL query that answers the following question: What is the IHSAA class of the county that is less than 228? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (ihsaa_class VARCHAR, county INTEGER) | SELECT ihsaa_class FROM table_name_71 WHERE county < 228 |
Write a SQL query that answers the following question: What is the engine when the transmission was 4-speed automatic, and acceleration 0–100km/h (0–62mph) was 10.4 s? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (engine VARCHAR, transmission VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR) | SELECT engine FROM table_name_12 WHERE transmission = "4-speed automatic" AND acceleration_0_100km_h__0_62mph_ = "10.4 s" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.