question stringlengths 12 244 | context stringlengths 27 489 | answer stringlengths 18 557 |
|---|---|---|
what was the name of the team opponent to elfsborg | CREATE TABLE table_29261823_10 (team VARCHAR, opponent VARCHAR) | SELECT team FROM table_29261823_10 WHERE opponent = "Elfsborg" |
What is the home team at princes park? | CREATE TABLE table_name_54 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_54 WHERE venue = "princes park" |
How many weeks total did the New York Jets face the Pittsburgh Steelers? | CREATE TABLE table_name_72 (week VARCHAR, opponent VARCHAR) | SELECT COUNT(week) FROM table_name_72 WHERE opponent = "pittsburgh steelers" |
Loss of de la rosa (8–8) has what average attendance? | CREATE TABLE table_name_97 (attendance INTEGER, loss VARCHAR) | SELECT AVG(attendance) FROM table_name_97 WHERE loss = "de la rosa (8–8)" |
Who was third during round 6 in Rybinsk? | CREATE TABLE table_name_73 (third VARCHAR, venue VARCHAR, round VARCHAR) | SELECT third FROM table_name_73 WHERE venue = "rybinsk" AND round = "6" |
Name the country that has ken doherty | CREATE TABLE table_26454128_7 (country VARCHAR, athlete VARCHAR) | SELECT country FROM table_26454128_7 WHERE athlete = "Ken Doherty" |
What is the score of the match won by Willie Hunter at the Royal Liverpool Golf Club? | CREATE TABLE table_name_21 (score VARCHAR, venue VARCHAR, champion VARCHAR) | SELECT score FROM table_name_21 WHERE venue = "royal liverpool golf club" AND champion = "willie hunter" |
How many yachts had a position of 3? | CREATE TABLE table_14882588_3 (yacht VARCHAR, position VARCHAR) | SELECT COUNT(yacht) FROM table_14882588_3 WHERE position = 3 |
what is the enrollement for the year joined 1958 in clarksville? | CREATE TABLE table_name_79 (enrollment INTEGER, year_joined VARCHAR, location VARCHAR) | SELECT SUM(enrollment) FROM table_name_79 WHERE year_joined = 1958 AND location = "clarksville" |
What is the Date with a Set 1 with 15–1? | CREATE TABLE table_name_79 (date VARCHAR, set_1 VARCHAR) | SELECT date FROM table_name_79 WHERE set_1 = "15–1" |
Name the surface for paul goldstein and date of october 2, 2006 | CREATE TABLE table_name_79 (surface VARCHAR, partnering VARCHAR, date VARCHAR) | SELECT surface FROM table_name_79 WHERE partnering = "paul goldstein" AND date = "october 2, 2006" |
Show the enrollment and primary_conference of the oldest college. | CREATE TABLE university (enrollment VARCHAR, primary_conference VARCHAR, founded VARCHAR) | SELECT enrollment, primary_conference FROM university ORDER BY founded LIMIT 1 |
What is the ratings for the original air date may 25, 2010 22.00 - 22.54? | CREATE TABLE table_26591434_1 (ratings__kansai_ VARCHAR, original_airdate VARCHAR) | SELECT ratings__kansai_ FROM table_26591434_1 WHERE original_airdate = "May 25, 2010 22.00 - 22.54" |
How many times has Sun Jin won the women's doubles? | CREATE TABLE table_28138035_33 (mens_doubles VARCHAR, womens_singles VARCHAR) | SELECT COUNT(mens_doubles) FROM table_28138035_33 WHERE womens_singles = "Sun Jin" |
Who was the winner of the Adelaide International Raceway circuit? | CREATE TABLE table_name_27 (winner VARCHAR, circuit VARCHAR) | SELECT winner FROM table_name_27 WHERE circuit = "adelaide international raceway" |
What year was the No. 7 charts? | CREATE TABLE table_name_32 (year INTEGER, charts VARCHAR) | SELECT AVG(year) FROM table_name_32 WHERE charts = "no. 7" |
What was the score when playing Milwaukee? | CREATE TABLE table_23186738_10 (score VARCHAR, team VARCHAR) | SELECT score FROM table_23186738_10 WHERE team = "Milwaukee" |
What is the type for rank 2? | CREATE TABLE table_name_26 (type VARCHAR, rank VARCHAR) | SELECT type FROM table_name_26 WHERE rank = 2 |
Show the names of all the employees with role "HR". | CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR) | SELECT employee_name FROM Employees WHERE role_code = "HR" |
For the sector of Gatunda how many entires are show for the August 15, 2012 population? | CREATE TABLE table_12496904_1 (_2012 VARCHAR, population_august_15 VARCHAR, sector VARCHAR) | SELECT COUNT(population_august_15), _2012 FROM table_12496904_1 WHERE sector = "Gatunda" |
In the episode where segment a is microphones, what is segment d? | CREATE TABLE table_15187735_11 (segment_d VARCHAR, segment_a VARCHAR) | SELECT segment_d FROM table_15187735_11 WHERE segment_a = "Microphones" |
Which Class has an ERP W of 222? | CREATE TABLE table_name_21 (class VARCHAR, erp_w VARCHAR) | SELECT class FROM table_name_21 WHERE erp_w = 222 |
What is the location of fightfest 2, which has 3 rounds? | CREATE TABLE table_name_46 (location VARCHAR, round VARCHAR, event VARCHAR) | SELECT location FROM table_name_46 WHERE round = 3 AND event = "fightfest 2" |
List the name of film studio that have the most number of films. | CREATE TABLE film (Studio VARCHAR) | SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT(*) DESC LIMIT 1 |
Name who wrote the 11 number in the season | CREATE TABLE table_15584067_7 (written_by VARCHAR, no_in_season VARCHAR) | SELECT written_by FROM table_15584067_7 WHERE no_in_season = "11" |
When the Home team of essendon is playing what is the Away team score? | CREATE TABLE table_name_67 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_67 WHERE home_team = "essendon" |
What is the most common birth place of people? | CREATE TABLE people (Birth_Place VARCHAR) | SELECT Birth_Place FROM people GROUP BY Birth_Place ORDER BY COUNT(*) DESC LIMIT 1 |
How many times is denmark ranked in technology? | CREATE TABLE table_13677808_1 (technology VARCHAR, rank VARCHAR) | SELECT COUNT(technology) FROM table_13677808_1 WHERE rank = "Denmark" |
what is the total win % of manager viktor prokopenko, when he lost fewer than 2? | CREATE TABLE table_name_43 (win__percentage VARCHAR, manager VARCHAR, lost VARCHAR) | SELECT COUNT(win__percentage) FROM table_name_43 WHERE manager = "viktor prokopenko" AND lost < 2 |
What is the name of the MySpace Band with an Original Airdate of 25 march 2008? | CREATE TABLE table_name_77 (myspace_band VARCHAR, original_airdate VARCHAR) | SELECT myspace_band FROM table_name_77 WHERE original_airdate = "25 march 2008" |
What are the booking start and end dates of the apartments with type code "Duplex"? | CREATE TABLE Apartments (apt_id VARCHAR, apt_type_code VARCHAR); CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, apt_id VARCHAR) | SELECT T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_type_code = "Duplex" |
What is the H/A for 20 february 2007? | CREATE TABLE table_name_54 (h___a VARCHAR, date VARCHAR) | SELECT h___a FROM table_name_54 WHERE date = "20 february 2007" |
What tournament had finalist Monica Seles? | CREATE TABLE table_name_49 (tournament VARCHAR, finalist VARCHAR) | SELECT tournament FROM table_name_49 WHERE finalist = "monica seles" |
Who directed episode 28 in the series? | CREATE TABLE table_24132054_1 (directed_by VARCHAR, no_in_series VARCHAR) | SELECT directed_by FROM table_24132054_1 WHERE no_in_series = 28 |
What is every reason for change for the date of successors installation is March 16, 1960? | CREATE TABLE table_2159571_1 (reason_for_change VARCHAR, date_of_successors_formal_installation VARCHAR) | SELECT reason_for_change FROM table_2159571_1 WHERE date_of_successors_formal_installation = "March 16, 1960" |
What are the serial numbers for the locomotives of Class 4-8-4 — oooooooo — northern? | CREATE TABLE table_name_28 (serial_numbers VARCHAR, class VARCHAR) | SELECT serial_numbers FROM table_name_28 WHERE class = "4-8-4 — oooooooo — northern" |
How many seats does the party of others have with a change of -1 and more than 0% votes? | CREATE TABLE table_name_9 (seats INTEGER, _percentage_votes VARCHAR, change VARCHAR, party VARCHAR) | SELECT SUM(seats) FROM table_name_9 WHERE change = -1 AND party = "others" AND _percentage_votes > 0 |
What is the League Goals when the FA Cup Goals are 0, position is mf, League Cup Apps of 0, and name is Ben Thornley? | CREATE TABLE table_name_98 (league_goals INTEGER, name VARCHAR, league_cup_apps VARCHAR, fa_cup_goals VARCHAR, position VARCHAR) | SELECT AVG(league_goals) FROM table_name_98 WHERE fa_cup_goals = "0" AND position = "mf" AND league_cup_apps = "0" AND name = "ben thornley" |
how many have times of 6 | CREATE TABLE table_13512105_3 (fastest_lap VARCHAR, rnd VARCHAR) | SELECT COUNT(fastest_lap) FROM table_13512105_3 WHERE rnd = 6 |
What is the mascot at Borden? | CREATE TABLE table_name_48 (mascot VARCHAR, school VARCHAR) | SELECT mascot FROM table_name_48 WHERE school = "borden" |
Name the drive for points being 13 | CREATE TABLE table_17271495_1 (driver VARCHAR, points VARCHAR) | SELECT driver FROM table_17271495_1 WHERE points = "13" |
What is the PA when the PF is 77? | CREATE TABLE table_1370559_1 (pa VARCHAR, pf VARCHAR) | SELECT pa FROM table_1370559_1 WHERE pf = 77 |
When was moray firth built? | CREATE TABLE table_name_32 (whenbuilt VARCHAR, name VARCHAR) | SELECT whenbuilt FROM table_name_32 WHERE name = "moray firth" |
Which year has a railway class of 250? | CREATE TABLE table_name_19 (year VARCHAR, class VARCHAR) | SELECT year FROM table_name_19 WHERE class = "250" |
Which Score has a Date of july 20? | CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_2 WHERE date = "july 20" |
What is the total number of round picks from the Morris Brown School? | CREATE TABLE table_name_59 (round VARCHAR, school VARCHAR) | SELECT COUNT(round) FROM table_name_59 WHERE school = "morris brown" |
What player has 289 as the total? | CREATE TABLE table_name_93 (player VARCHAR, total VARCHAR) | SELECT player FROM table_name_93 WHERE total = 289 |
What is the time from the song called Treat Me Nice? | CREATE TABLE table_name_29 (time VARCHAR, song_title VARCHAR) | SELECT time FROM table_name_29 WHERE song_title = "treat me nice" |
Who directed Teenage Mutant Ninja Turtles? | CREATE TABLE table_name_81 (director VARCHAR, title VARCHAR) | SELECT director FROM table_name_81 WHERE title = "teenage mutant ninja turtles" |
What episode number in the season was written by Greg nelson and directed by Keith samples? | CREATE TABLE table_27547668_3 (no VARCHAR, written_by VARCHAR, directed_by VARCHAR) | SELECT no FROM table_27547668_3 WHERE written_by = "Greg Nelson" AND directed_by = "Keith Samples" |
What is the name of the shield winner in which the mls cup winner and mls cup runner up is colorado rapids? | CREATE TABLE table_11148572_1 (mls_cup_winner VARCHAR, mls_cup_runner_up VARCHAR) | SELECT mls_cup_winner FROM table_11148572_1 WHERE mls_cup_runner_up = "Colorado Rapids" |
What is the total number of seats of the Christian Democratic Union (CDU) party? | CREATE TABLE table_name_34 (total_seats VARCHAR, party VARCHAR) | SELECT total_seats FROM table_name_34 WHERE party = "christian democratic union (cdu)" |
What is the end date of the term for Governor of richard j. oglesby, and a Term of 1885–1889? | CREATE TABLE table_name_8 (end_date VARCHAR, governor VARCHAR, term VARCHAR) | SELECT end_date FROM table_name_8 WHERE governor = "richard j. oglesby" AND term = "1885–1889" |
How many years correspond to longitude of 36.8e and diameter greater than 697? | CREATE TABLE table_name_72 (year_named VARCHAR, longitude VARCHAR, diameter__km_ VARCHAR) | SELECT COUNT(year_named) FROM table_name_72 WHERE longitude = "36.8e" AND diameter__km_ > 697 |
What was the highest number of starts in 2007 when the average start was over 17.6? | CREATE TABLE table_name_49 (starts INTEGER, year VARCHAR, avg_start VARCHAR) | SELECT MAX(starts) FROM table_name_49 WHERE year = 2007 AND avg_start > 17.6 |
Which Attendance has an Opponent of new york giants, and a Week smaller than 5? | CREATE TABLE table_name_88 (attendance INTEGER, opponent VARCHAR, week VARCHAR) | SELECT AVG(attendance) FROM table_name_88 WHERE opponent = "new york giants" AND week < 5 |
What is the venue when Geelong is the away team? | CREATE TABLE table_name_27 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_27 WHERE away_team = "geelong" |
What is the Home team of tie no 2? | CREATE TABLE table_name_36 (home_team VARCHAR, tie_no VARCHAR) | SELECT home_team FROM table_name_36 WHERE tie_no = "2" |
Who wrote episode 27 in the series that was directed by Wendey Stanzler? | CREATE TABLE table_28768925_1 (written_by VARCHAR, directed_by VARCHAR, no_in_series VARCHAR) | SELECT written_by FROM table_28768925_1 WHERE directed_by = "Wendey Stanzler" AND no_in_series = 27 |
Who are shown as candidates when George Darden is the incumbent? | CREATE TABLE table_1341598_11 (candidates VARCHAR, incumbent VARCHAR) | SELECT candidates FROM table_1341598_11 WHERE incumbent = "George Darden" |
I want the result for week larger than 10 for opponent of new england patriots | CREATE TABLE table_name_90 (result VARCHAR, week VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_90 WHERE week > 10 AND opponent = "new england patriots" |
What is the total for 1984 for the team with 100 points total and more than 3 seasons? | CREATE TABLE table_name_11 (total_points VARCHAR, seasons VARCHAR) | SELECT SUM(1984) FROM table_name_11 WHERE total_points = 100 AND seasons > 3 |
What is the Production Number of the Filmography in MM Series with a Release date of 1964-06-27? | CREATE TABLE table_name_96 (production_number VARCHAR, series VARCHAR, release_date VARCHAR) | SELECT production_number FROM table_name_96 WHERE series = "mm" AND release_date = "1964-06-27" |
If the winner is Rui Costa, who made the mountains classification? | CREATE TABLE table_27573848_18 (mountains_classification VARCHAR, winner VARCHAR) | SELECT mountains_classification FROM table_27573848_18 WHERE winner = "Rui Costa" |
What is South Africa's to par? | CREATE TABLE table_name_35 (to_par VARCHAR, country VARCHAR) | SELECT to_par FROM table_name_35 WHERE country = "south africa" |
What's filiberto rivera's height? | CREATE TABLE table_name_54 (height VARCHAR, player VARCHAR) | SELECT COUNT(height) FROM table_name_54 WHERE player = "filiberto rivera" |
Which is the method under the event Jungle Fight 2? | CREATE TABLE table_name_24 (method VARCHAR, event VARCHAR) | SELECT method FROM table_name_24 WHERE event = "jungle fight 2" |
When did Reading play at home? | CREATE TABLE table_name_2 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_2 WHERE home_team = "reading" |
Which Total has a Rank of 17, and a Gold larger than 0? | CREATE TABLE table_name_59 (total INTEGER, rank VARCHAR, gold VARCHAR) | SELECT AVG(total) FROM table_name_59 WHERE rank = "17" AND gold > 0 |
What month is the Paris 20k Road Race held? | CREATE TABLE table_26166836_3 (month_held VARCHAR, location VARCHAR) | SELECT month_held FROM table_26166836_3 WHERE location = "Paris" |
What are the nationalities of players who attended duke? | CREATE TABLE table_16494599_10 (nationality VARCHAR, school_club_team VARCHAR) | SELECT COUNT(nationality) FROM table_16494599_10 WHERE school_club_team = "Duke" |
What person had an opponent of linda wessberg and scored an average score? | CREATE TABLE table_name_4 (score INTEGER, player VARCHAR) | SELECT AVG(score) FROM table_name_4 WHERE player = "linda wessberg" |
What is the network with the play-by-play Marv Albert before 1994? | CREATE TABLE table_name_66 (network VARCHAR, play_by_play VARCHAR, year VARCHAR) | SELECT network FROM table_name_66 WHERE play_by_play = "marv albert" AND year < 1994 |
During melbourne's home game, who was the away team? | CREATE TABLE table_name_51 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_51 WHERE home_team = "melbourne" |
What is Set 1, when Set 2 is 17-25? | CREATE TABLE table_name_22 (set_1 VARCHAR, set_2 VARCHAR) | SELECT set_1 FROM table_name_22 WHERE set_2 = "17-25" |
When has an Opponent of at Seattle mariners? | CREATE TABLE table_name_75 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_75 WHERE opponent = "at seattle mariners" |
Which NHL team got pick 89? | CREATE TABLE table_name_49 (nhl_team VARCHAR, pick__number VARCHAR) | SELECT nhl_team FROM table_name_49 WHERE pick__number = "89" |
What is the Sipe Sipe Municipality minimum if the language is Quechua? | CREATE TABLE table_2509113_2 (sipe_sipe_municipality INTEGER, language VARCHAR) | SELECT MIN(sipe_sipe_municipality) FROM table_2509113_2 WHERE language = "Quechua" |
List all GT4 Cup winners played on the Spa-Francorchamps Report. | CREATE TABLE table_30060356_3 (gt4_cup_winner VARCHAR, circuit VARCHAR) | SELECT gt4_cup_winner FROM table_30060356_3 WHERE circuit = "Spa-Francorchamps Report" |
What is the average ROM size of phones produced by the company named "Nokia Corporation"? | CREATE TABLE phone (chip_model VARCHAR, Company_name VARCHAR); CREATE TABLE chip_model (ROM_MiB INTEGER, Model_name VARCHAR) | SELECT AVG(T1.ROM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = "Nokia Corporation" |
how many times is the cyrillic name сибач? | CREATE TABLE table_2562572_52 (dominant_religion__2002_ VARCHAR, cyrillic_name VARCHAR) | SELECT COUNT(dominant_religion__2002_) FROM table_2562572_52 WHERE cyrillic_name = "Сибач" |
What position does pick number 12 play? | CREATE TABLE table_name_87 (position VARCHAR, pick__number VARCHAR) | SELECT position FROM table_name_87 WHERE pick__number = 12 |
Who is the opponent on april 16? | CREATE TABLE table_name_91 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_91 WHERE date = "april 16" |
What was the record when the score was 11-10? | CREATE TABLE table_name_85 (record VARCHAR, score VARCHAR) | SELECT record FROM table_name_85 WHERE score = "11-10" |
Can you tell me the High assists that has the Date of november 25? | CREATE TABLE table_name_44 (high_assists VARCHAR, date VARCHAR) | SELECT high_assists FROM table_name_44 WHERE date = "november 25" |
What is the sum of gold medals for a rank of 14? | CREATE TABLE table_name_95 (gold INTEGER, rank VARCHAR) | SELECT SUM(gold) FROM table_name_95 WHERE rank = "14" |
Which Opponent has a Round smaller than 3, and a Time of 1:09? | CREATE TABLE table_name_48 (opponent VARCHAR, round VARCHAR, time VARCHAR) | SELECT opponent FROM table_name_48 WHERE round < 3 AND time = "1:09" |
How many tries does Fakahau Valu have? | CREATE TABLE table_name_83 (tries VARCHAR, player VARCHAR) | SELECT tries FROM table_name_83 WHERE player = "fakahau valu" |
Round of 9 involved what name? | CREATE TABLE table_name_67 (name VARCHAR, round VARCHAR) | SELECT name FROM table_name_67 WHERE round = 9 |
What is the total stellar mass of the type m0? | CREATE TABLE table_name_57 (stellar_mass___m__ INTEGER, type VARCHAR) | SELECT SUM(stellar_mass___m__) FROM table_name_57 WHERE type = "m0" |
How many leagues are there in England? | CREATE TABLE League (country_id VARCHAR); CREATE TABLE Country (id VARCHAR, name VARCHAR) | SELECT COUNT(*) FROM Country AS T1 JOIN League AS T2 ON T1.id = T2.country_id WHERE T1.name = "England" |
What is south africa's margin of victory? | CREATE TABLE table_name_29 (margin_of_victory VARCHAR, country VARCHAR) | SELECT margin_of_victory FROM table_name_29 WHERE country = "south africa" |
What is the type of the document named "David CV"? | CREATE TABLE documents (document_type_code VARCHAR, document_name VARCHAR) | SELECT document_type_code FROM documents WHERE document_name = "David CV" |
I want to know the average Gold for total smaller 12 and bronze less than 1 and wushu with silver more than 3 | CREATE TABLE table_name_2 (gold INTEGER, silver VARCHAR, sport VARCHAR, total VARCHAR, bronze VARCHAR) | SELECT AVG(gold) FROM table_name_2 WHERE total < 12 AND bronze < 1 AND sport = "wushu" AND silver > 3 |
The person that was notable for professional wrestling had a Born-Died of what year? | CREATE TABLE table_name_1 (born___died VARCHAR, notable_for VARCHAR) | SELECT born___died FROM table_name_1 WHERE notable_for = "professional wrestling" |
how many representatives from hanover twp were first elected in 2008 | CREATE TABLE table_29486189_4 (representative VARCHAR, first_elected VARCHAR, residence VARCHAR) | SELECT COUNT(representative) FROM table_29486189_4 WHERE first_elected = "2008" AND residence = "Hanover Twp" |
what is bb - blind bear where ba - running bear is tc - tile chariot? | CREATE TABLE table_2603017_2 (bb___blind_bear VARCHAR, ba___running_bear VARCHAR) | SELECT bb___blind_bear FROM table_2603017_2 WHERE ba___running_bear = "TC - Tile Chariot" |
What was the gross tonnage of the ship that ended service in 1866? | CREATE TABLE table_11662133_1 (gross_tonnage VARCHAR, ended_service VARCHAR) | SELECT gross_tonnage FROM table_11662133_1 WHERE ended_service = "1866" |
What is the highest Established for the kuntz stadium? | CREATE TABLE table_name_79 (established INTEGER, venue VARCHAR) | SELECT MAX(established) FROM table_name_79 WHERE venue = "kuntz stadium" |
Which away team played at western oval? | CREATE TABLE table_name_16 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_16 WHERE venue = "western oval" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.