question stringlengths 12 244 | context stringlengths 27 489 | answer stringlengths 18 557 |
|---|---|---|
What is the visitor team on April 4? | CREATE TABLE table_name_98 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_98 WHERE date = "april 4" |
Where was the game played where the home team was Collingwood? | CREATE TABLE table_name_29 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_29 WHERE home_team = "collingwood" |
What's the home team for the western oval venue? | CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_39 WHERE venue = "western oval" |
How many proteins are associated with an institution in a building with at least 20 floors? | CREATE TABLE institution (institution_id VARCHAR, building_id VARCHAR); CREATE TABLE building (building_id VARCHAR, floors VARCHAR); CREATE TABLE protein (institution_id VARCHAR) | SELECT COUNT(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id JOIN building AS T3 ON T3.building_id = T1.building_id WHERE T3.floors >= 20 |
who is the runner-up where year is 2004 and champion is north carolina state | CREATE TABLE table_11214772_1 (runner_up VARCHAR, year VARCHAR, champion VARCHAR) | SELECT runner_up FROM table_11214772_1 WHERE year = "2004" AND champion = "North Carolina State" |
What is the result for Melbourne when Gold Coast, Perth, Auckland, and Sydney are no? | CREATE TABLE table_name_1 (melbourne VARCHAR, sydney VARCHAR, auckland VARCHAR, gold_coast VARCHAR, perth VARCHAR) | SELECT melbourne FROM table_name_1 WHERE gold_coast = "no" AND perth = "no" AND auckland = "no" AND sydney = "no" |
What is the Time/Retired when lotus - ford was constructor and the laps were less than 17? | CREATE TABLE table_name_99 (time_retired VARCHAR, constructor VARCHAR, laps VARCHAR) | SELECT time_retired FROM table_name_99 WHERE constructor = "lotus - ford" AND laps < 17 |
Name the tournament for march 25, 2012 | CREATE TABLE table_name_24 (tournament VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_24 WHERE date = "march 25, 2012" |
What was the location of the game when the record was 2-1? | CREATE TABLE table_name_86 (location VARCHAR, record VARCHAR) | SELECT location FROM table_name_86 WHERE record = "2-1" |
What is the First Aligned date in 1614? | CREATE TABLE table_name_67 (first_aligned_day VARCHAR, date VARCHAR) | SELECT first_aligned_day FROM table_name_67 WHERE date = "1614" |
Who was the director of Battalion Wars 2 which was released on GCN after 2004? | CREATE TABLE table_name_72 (director VARCHAR, title VARCHAR, platform_s_ VARCHAR, year VARCHAR) | SELECT director FROM table_name_72 WHERE platform_s_ = "gcn" AND year > 2004 AND title = "battalion wars 2" |
what is 2008 when the tournament is year end ranking? | CREATE TABLE table_name_79 (tournament VARCHAR) | SELECT 2008 FROM table_name_79 WHERE tournament = "year end ranking" |
When did Jeremy Kagan's episode first air? | CREATE TABLE table_23279434_1 (original_air_date VARCHAR, directed_by VARCHAR) | SELECT original_air_date FROM table_23279434_1 WHERE directed_by = "Jeremy Kagan" |
Which team picked Dave Bonter? | CREATE TABLE table_name_23 (nhl_team VARCHAR, player VARCHAR) | SELECT nhl_team FROM table_name_23 WHERE player = "dave bonter" |
Name the lowest version with a code of u+1034a that began after 2001. | CREATE TABLE table_name_85 (version INTEGER, code VARCHAR, year VARCHAR) | SELECT MIN(version) FROM table_name_85 WHERE code = "u+1034a" AND year > 2001 |
What is the number of school/club teams held by BYU? | CREATE TABLE table_11545282_19 (no INTEGER, school_club_team VARCHAR) | SELECT MIN(no) FROM table_11545282_19 WHERE school_club_team = "BYU" |
what is the frequency when the city of license is belleville? | CREATE TABLE table_name_42 (frequency VARCHAR, city_of_license VARCHAR) | SELECT frequency FROM table_name_42 WHERE city_of_license = "belleville" |
What is the title of the German film that is originally called Mama, Ich Lebe? | CREATE TABLE table_name_14 (film_title_used_in_nomination VARCHAR, language VARCHAR, original_name VARCHAR) | SELECT film_title_used_in_nomination FROM table_name_14 WHERE language = "german" AND original_name = "mama, ich lebe" |
What is the hometown of the youngest teacher? | CREATE TABLE teacher (Hometown VARCHAR, Age VARCHAR) | SELECT Hometown FROM teacher ORDER BY Age LIMIT 1 |
Which series has a season prior to 2009? | CREATE TABLE table_name_46 (series VARCHAR, season INTEGER) | SELECT series FROM table_name_46 WHERE season < 2009 |
On what Date was the Winning score –8 (69-72-70-69=280)? | CREATE TABLE table_name_95 (date VARCHAR, winning_score VARCHAR) | SELECT date FROM table_name_95 WHERE winning_score = –8(69 - 72 - 70 - 69 = 280) |
In what round was the first outside linebacker picked? | CREATE TABLE table_name_72 (round INTEGER, position VARCHAR) | SELECT MIN(round) FROM table_name_72 WHERE position = "outside linebacker" |
What is the race date for the course Jaén to Córdoba? | CREATE TABLE table_name_64 (date VARCHAR, course VARCHAR) | SELECT date FROM table_name_64 WHERE course = "jaén to córdoba" |
Who was the Blue Jays opponent when their record was 84-69? | CREATE TABLE table_name_18 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_18 WHERE record = "84-69" |
What is the gold number when the total is 8 and bronze is more than 4? | CREATE TABLE table_name_19 (gold INTEGER, total VARCHAR, bronze VARCHAR) | SELECT AVG(gold) FROM table_name_19 WHERE total = 8 AND bronze > 4 |
What is the home team score when the away team was fitzroy? | CREATE TABLE table_name_93 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_93 WHERE away_team = "fitzroy" |
John W. Heselton was first elected in what year? | CREATE TABLE table_1342013_20 (first_elected INTEGER, incumbent VARCHAR) | SELECT MAX(first_elected) FROM table_1342013_20 WHERE incumbent = "John W. Heselton" |
What was the date of the game with a decision of Niittymaki and when the Flyers had a record of 30–21–5? | CREATE TABLE table_name_26 (date VARCHAR, decision VARCHAR, record VARCHAR) | SELECT date FROM table_name_26 WHERE decision = "niittymaki" AND record = "30–21–5" |
What is the lowest year that has hypo-meeting as the tournament, with 8002 as the points? | CREATE TABLE table_name_52 (year INTEGER, tournament VARCHAR, points VARCHAR) | SELECT MIN(year) FROM table_name_52 WHERE tournament = "hypo-meeting" AND points = "8002" |
Which city does the student whose last name is "Kim" live in? | CREATE TABLE Student (city_code VARCHAR, LName VARCHAR) | SELECT city_code FROM Student WHERE LName = "Kim" |
Show ids, customer ids, names for all accounts. | CREATE TABLE Accounts (account_id VARCHAR, customer_id VARCHAR, account_name VARCHAR) | SELECT account_id, customer_id, account_name FROM Accounts |
What is Opponent, when January is greater than 19, and when Score is "7 - 2"? | CREATE TABLE table_name_94 (opponent VARCHAR, january VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_94 WHERE january > 19 AND score = "7 - 2" |
What is the Time of the Rowers in Rank 1? | CREATE TABLE table_name_7 (time VARCHAR, rank VARCHAR) | SELECT time FROM table_name_7 WHERE rank = 1 |
Which #/ County has a Location of ossian? | CREATE TABLE table_name_88 (_number___county VARCHAR, location VARCHAR) | SELECT _number___county FROM table_name_88 WHERE location = "ossian" |
Which Years in Orlando has a Nationality of united states, and a School/Club Team of illinois? | CREATE TABLE table_name_23 (years_in_orlando VARCHAR, nationality VARCHAR, school_club_team VARCHAR) | SELECT years_in_orlando FROM table_name_23 WHERE nationality = "united states" AND school_club_team = "illinois" |
What is the Career SR of the year that held the masters series Sr tournament | CREATE TABLE table_name_62 (career_sr VARCHAR, tournament VARCHAR) | SELECT career_sr FROM table_name_62 WHERE tournament = "masters series sr" |
What is the Worldwide Gross of the Film with a Rank of 16? | CREATE TABLE table_name_68 (worldwide_gross VARCHAR, rank VARCHAR) | SELECT worldwide_gross FROM table_name_68 WHERE rank = 16 |
What is the greatest B score when the A score was less than 6.5? | CREATE TABLE table_name_4 (b_score INTEGER, a_score INTEGER) | SELECT MAX(b_score) FROM table_name_4 WHERE a_score < 6.5 |
Which Series has a Team Name of sunred engineering? | CREATE TABLE table_name_34 (series VARCHAR, team_name VARCHAR) | SELECT series FROM table_name_34 WHERE team_name = "sunred engineering" |
What venue is listed as having a competition titled Friendly? | CREATE TABLE table_name_88 (venue VARCHAR, competition VARCHAR) | SELECT venue FROM table_name_88 WHERE competition = "friendly" |
What is the enrollment for the institution that is located in Lebanon, Tennessee (20,235)? | CREATE TABLE table_262534_2 (enrollment VARCHAR, location__population_ VARCHAR) | SELECT enrollment FROM table_262534_2 WHERE location__population_ = "Lebanon, Tennessee (20,235)" |
What is the Format of the release with Catalog number 2508668? | CREATE TABLE table_name_86 (format VARCHAR, catalog VARCHAR) | SELECT format FROM table_name_86 WHERE catalog = "2508668" |
What is channel 33.7's official call sign? | CREATE TABLE table_1404984_1 (call_sign VARCHAR, virtual_channel VARCHAR) | SELECT call_sign FROM table_1404984_1 WHERE virtual_channel = "33.7" |
Tell me the class with rank of 89th | CREATE TABLE table_name_12 (class VARCHAR, rank VARCHAR) | SELECT class FROM table_name_12 WHERE rank = "89th" |
How many FA Trophy has a Player of mario walsh and a League larger than 17? | CREATE TABLE table_name_52 (fa_trophy INTEGER, player VARCHAR, league VARCHAR) | SELECT AVG(fa_trophy) FROM table_name_52 WHERE player = "mario walsh" AND league > 17 |
how many times is the location is homestead, florida? | CREATE TABLE table_2696531_2 (pole_position VARCHAR, location VARCHAR) | SELECT COUNT(pole_position) FROM table_2696531_2 WHERE location = "Homestead, Florida" |
What is the title of the album that had a RIAA of gold? | CREATE TABLE table_name_56 (title VARCHAR, riaa VARCHAR) | SELECT title FROM table_name_56 WHERE riaa = "gold" |
How many Lost have Points larger than 40, and a Position of 11, and a Played smaller than 38? | CREATE TABLE table_name_18 (lost INTEGER, played VARCHAR, points VARCHAR, position VARCHAR) | SELECT SUM(lost) FROM table_name_18 WHERE points > 40 AND position = 11 AND played < 38 |
Name the total number of troops per one million being 2.76 | CREATE TABLE table_30108346_1 (troops_per_one_million_population VARCHAR, troops_per_$1_billion___usd___gdp VARCHAR) | SELECT COUNT(troops_per_one_million_population) FROM table_30108346_1 WHERE troops_per_$1_billion___usd___gdp = "2.76" |
Which municipality has the code 2401? | CREATE TABLE table_name_84 (municipality VARCHAR, code VARCHAR) | SELECT municipality FROM table_name_84 WHERE code = 2401 |
How many people hosted the show in the year when Chenoa ended up in fourth place? | CREATE TABLE table_1149495_1 (host VARCHAR, fourth_place VARCHAR) | SELECT COUNT(host) FROM table_1149495_1 WHERE fourth_place = "Chenoa" |
Who is in the high points in the @ l.a. clippers team? | CREATE TABLE table_27734286_1 (high_points VARCHAR, team VARCHAR) | SELECT high_points FROM table_27734286_1 WHERE team = "@ L.A. Clippers" |
What is the ergative for the genitive tkven(s)? | CREATE TABLE table_name_13 (ergative VARCHAR, genitive VARCHAR) | SELECT ergative FROM table_name_13 WHERE genitive = "tkven(s)" |
What location had a record of 20-12, and how many people attended? | CREATE TABLE table_22883210_7 (location_attendance VARCHAR, record VARCHAR) | SELECT location_attendance FROM table_22883210_7 WHERE record = "20-12" |
List the names of people that are not poker players. | CREATE TABLE poker_player (Name VARCHAR, People_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR) | SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM poker_player) |
What is Score, when Opponent Team is Belgium, and when Opponent is Kirsten Flipkens? | CREATE TABLE table_name_83 (score VARCHAR, opponent_team VARCHAR, opponent VARCHAR) | SELECT score FROM table_name_83 WHERE opponent_team = "belgium" AND opponent = "kirsten flipkens" |
what is the time/retired for driver richard attwood? | CREATE TABLE table_name_56 (time_retired VARCHAR, driver VARCHAR) | SELECT time_retired FROM table_name_56 WHERE driver = "richard attwood" |
Show the years in which orchestras that have given more than one performance are founded. | CREATE TABLE performance (Orchestra_ID VARCHAR); CREATE TABLE orchestra (Orchestra_ID VARCHAR) | SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1 |
What is the name when the position was fullback, hooker? | CREATE TABLE table_name_85 (name VARCHAR, pos VARCHAR) | SELECT name FROM table_name_85 WHERE pos = "fullback, hooker" |
Binomial of θ(1) has what pairing? | CREATE TABLE table_name_68 (pairing VARCHAR, binomial VARCHAR) | SELECT pairing FROM table_name_68 WHERE binomial = "θ(1)" |
What is every entry for area if capital is Port-au-Prince? | CREATE TABLE table_298550_1 (area__km²_ VARCHAR, capital VARCHAR) | SELECT area__km²_ FROM table_298550_1 WHERE capital = "Port-au-Prince" |
What championships had a match where Natasha Zvereva played as partner? | CREATE TABLE table_24638867_4 (championship VARCHAR, partner VARCHAR) | SELECT championship FROM table_24638867_4 WHERE partner = "Natasha Zvereva" |
Which Draws have a Club of burgos cf, and a Position larger than 8? | CREATE TABLE table_name_98 (draws INTEGER, club VARCHAR, position VARCHAR) | SELECT MIN(draws) FROM table_name_98 WHERE club = "burgos cf" AND position > 8 |
How many points did Goole Town accumulate? | CREATE TABLE table_17358515_1 (points_2 VARCHAR, team VARCHAR) | SELECT COUNT(points_2) FROM table_17358515_1 WHERE team = "Goole Town" |
What is the largest number of gold medals for Canada with more than 7 bronze medals? | CREATE TABLE table_name_31 (gold INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT MAX(gold) FROM table_name_31 WHERE nation = "canada" AND bronze > 7 |
Find the names and average salaries of all departments whose average salary is greater than 42000. | CREATE TABLE instructor (dept_name VARCHAR, salary INTEGER) | SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name HAVING AVG(salary) > 42000 |
What is the record when the fight was against keith rockel? | CREATE TABLE table_name_1 (record VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_1 WHERE opponent = "keith rockel" |
what is the total viewers where the date of first broadcast is 28 january 2010 and the episode number is 1? | CREATE TABLE table_12995531_3 (total_viewers INTEGER, date_of_first_broadcast VARCHAR, episode_number VARCHAR) | SELECT MIN(total_viewers) FROM table_12995531_3 WHERE date_of_first_broadcast = "28 January 2010" AND episode_number = 1 |
Which island has a density (per km²) of 1,368? | CREATE TABLE table_name_98 (island VARCHAR, density__per_km²_ VARCHAR) | SELECT island FROM table_name_98 WHERE density__per_km²_ = "1,368" |
What is the submission Year of the Film The Dark Side of the Moon directed by Erik Clausen? | CREATE TABLE table_name_40 (year INTEGER, director VARCHAR, english_title VARCHAR) | SELECT SUM(year) FROM table_name_40 WHERE director = "erik clausen" AND english_title = "the dark side of the moon" |
Competition of friendly, and a Date of 03-jun-62 had what score? | CREATE TABLE table_name_72 (score VARCHAR, competition VARCHAR, date VARCHAR) | SELECT score FROM table_name_72 WHERE competition = "friendly" AND date = "03-jun-62" |
In 1924/25, who was in the playoffs? | CREATE TABLE table_name_27 (playoffs VARCHAR, year VARCHAR) | SELECT playoffs FROM table_name_27 WHERE year = "1924/25" |
Show student ids for all male students. | CREATE TABLE Student (StuID VARCHAR, Sex VARCHAR) | SELECT StuID FROM Student WHERE Sex = 'M' |
Which club has 77 points? | CREATE TABLE table_name_95 (club VARCHAR, points VARCHAR) | SELECT club FROM table_name_95 WHERE points = "77" |
Which Event has a Medal of gold and a Name of barney henricus? | CREATE TABLE table_name_69 (event VARCHAR, medal VARCHAR, name VARCHAR) | SELECT event FROM table_name_69 WHERE medal = "gold" AND name = "barney henricus" |
What is the highest percentage when there are more than 361 blocks? | CREATE TABLE table_name_66 (percentage INTEGER, total_blocks INTEGER) | SELECT MAX(percentage) FROM table_name_66 WHERE total_blocks > 361 |
Name the record for arizona | CREATE TABLE table_22815259_1 (record VARCHAR, opponent VARCHAR) | SELECT record FROM table_22815259_1 WHERE opponent = "Arizona" |
Which college is aligned to the Saskatchewan Roughriders? | CREATE TABLE table_10812938_4 (college VARCHAR, cfl_team VARCHAR) | SELECT college FROM table_10812938_4 WHERE cfl_team = "Saskatchewan Roughriders" |
What is number of silver for the country with more than 0 gold, rank of 14, and more than 4 bronze? | CREATE TABLE table_name_81 (silver VARCHAR, bronze VARCHAR, gold VARCHAR, rank VARCHAR) | SELECT COUNT(silver) FROM table_name_81 WHERE gold > 0 AND rank = "14" AND bronze > 4 |
What position did Co-driver Jackie Oliver finish in the 24 hours of Le Mans? | CREATE TABLE table_name_39 (pos VARCHAR, race VARCHAR, co_driver VARCHAR) | SELECT pos FROM table_name_39 WHERE race = "24 hours of le mans" AND co_driver = "jackie oliver" |
Who was the opponent on clay surface when partnered with Horacio Zeballos? | CREATE TABLE table_name_23 (opponents VARCHAR, surface VARCHAR, partnering VARCHAR) | SELECT opponents FROM table_name_23 WHERE surface = "clay" AND partnering = "horacio zeballos" |
WHo is Player that has a Place of t9 in united states? | CREATE TABLE table_name_74 (player VARCHAR, place VARCHAR, country VARCHAR) | SELECT player FROM table_name_74 WHERE place = "t9" AND country = "united states" |
What year was the Mercury City Tower? | CREATE TABLE table_name_8 (year INTEGER, structure VARCHAR) | SELECT MIN(year) FROM table_name_8 WHERE structure = "mercury city tower" |
What is Fleet Number(s), when Quantity Preserved is "0", when Quantity Made is 1, and when Class is "Z"? | CREATE TABLE table_name_95 (fleet_number_s_ VARCHAR, class VARCHAR, quantity_preserved VARCHAR, quantity_made VARCHAR) | SELECT fleet_number_s_ FROM table_name_95 WHERE quantity_preserved = "0" AND quantity_made = "1" AND class = "z" |
Who was the opponent that also has a save of Smith (26)? | CREATE TABLE table_name_53 (opponent VARCHAR, save VARCHAR) | SELECT opponent FROM table_name_53 WHERE save = "smith (26)" |
What schools are accredited by COE? | CREATE TABLE table_2064747_1 (location_s_ VARCHAR, accreditation VARCHAR) | SELECT location_s_ FROM table_2064747_1 WHERE accreditation = "COE" |
Which player ranks higher than 9? | CREATE TABLE table_name_11 (player VARCHAR, rank INTEGER) | SELECT player FROM table_name_11 WHERE rank > 9 |
What is the hometown of Plutonic? | CREATE TABLE table_27529608_21 (hometown VARCHAR, name_name_of_act VARCHAR) | SELECT hometown FROM table_27529608_21 WHERE name_name_of_act = "PLUtonic" |
What Status has Against of 12? | CREATE TABLE table_name_77 (status VARCHAR, against VARCHAR) | SELECT status FROM table_name_77 WHERE against = 12 |
Performer 2 of compilation 1 had what performer 1? | CREATE TABLE table_name_55 (performer_1 VARCHAR, performer_2 VARCHAR) | SELECT performer_1 FROM table_name_55 WHERE performer_2 = "compilation 1" |
What was the air date in the U.S. for the episode that had 1.452 million Canadian viewers? | CREATE TABLE table_18424435_4 (us_air_date VARCHAR, canadian_viewers__million_ VARCHAR) | SELECT us_air_date FROM table_18424435_4 WHERE canadian_viewers__million_ = "1.452" |
What is the table position for 4 December 2008 vacancy? | CREATE TABLE table_name_13 (position_in_table VARCHAR, date_of_vacancy VARCHAR) | SELECT position_in_table FROM table_name_13 WHERE date_of_vacancy = "4 december 2008" |
How many touchdowns are there that has field goals less than 0 and 0 extra points? | CREATE TABLE table_name_53 (touchdowns INTEGER, extra_points VARCHAR, field_goals VARCHAR) | SELECT SUM(touchdowns) FROM table_name_53 WHERE extra_points = 0 AND field_goals < 0 |
Name the segment c with episode less than 179 and segment b of s sticker | CREATE TABLE table_name_63 (segment_c VARCHAR, episode VARCHAR, segment_b VARCHAR) | SELECT segment_c FROM table_name_63 WHERE episode < 179 AND segment_b = "s sticker" |
Who won the spanish grand prix? | CREATE TABLE table_15299235_1 (grand_prix VARCHAR) | SELECT 250 AS cc_winner FROM table_15299235_1 WHERE grand_prix = "Spanish grand_prix" |
Venue of thessaloniki (without participation) had what score? | CREATE TABLE table_name_99 (score VARCHAR, venue VARCHAR) | SELECT score FROM table_name_99 WHERE venue = "thessaloniki (without participation)" |
Tell me the average final rank for loe more than 10 and point less than 43 | CREATE TABLE table_name_8 (final_rank INTEGER, lose VARCHAR, point VARCHAR) | SELECT AVG(final_rank) FROM table_name_8 WHERE lose > 10 AND point < 43 |
Which Bronze has a Silver of 15, and a Gold smaller than 20? | CREATE TABLE table_name_69 (bronze INTEGER, silver VARCHAR, gold VARCHAR) | SELECT SUM(bronze) FROM table_name_69 WHERE silver = 15 AND gold < 20 |
Name the number of others votes for when others % is 2.0% | CREATE TABLE table_15929156_3 (others_votes VARCHAR, others__percentage VARCHAR) | SELECT COUNT(others_votes) FROM table_15929156_3 WHERE others__percentage = "2.0%" |
What is the average attendance of stadiums with capacity percentage higher than 100%? | CREATE TABLE stadium (average_attendance VARCHAR, capacity_percentage INTEGER) | SELECT average_attendance FROM stadium WHERE capacity_percentage > 100 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.