answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT soap_opera FROM table_name_4 WHERE duration = "18 years" AND character = "miley byrne"
what is the soap opera when the duration is 18 years and the character is miley byrne?
CREATE TABLE table_name_4 (soap_opera VARCHAR, duration VARCHAR, character VARCHAR)
SELECT number FROM table_name_41 WHERE males = "11"
Which number has 11 males?
CREATE TABLE table_name_41 (number VARCHAR, males VARCHAR)
SELECT directed_by FROM table_24319661_5 WHERE no_in_series = 53
Who directed episode 53 in the series?
CREATE TABLE table_24319661_5 (directed_by VARCHAR, no_in_series VARCHAR)
SELECT COUNT(manner_of_departure) FROM table_11713303_2 WHERE outgoing_manager = "Peter Voets"
How many manners of departure did peter voets have?
CREATE TABLE table_11713303_2 (manner_of_departure VARCHAR, outgoing_manager VARCHAR)
SELECT set_3 FROM table_name_26 WHERE total = "53–75"
What is the Set 3 when the total was 53–75?
CREATE TABLE table_name_26 (set_3 VARCHAR, total VARCHAR)
SELECT SUM(issue) FROM table_name_44 WHERE artist = "mort drucker" AND spoofed_title = "route 67"
Which issue was the Spoofed title Route 67 for which Mort Drucker was the artist?
CREATE TABLE table_name_44 (issue INTEGER, artist VARCHAR, spoofed_title VARCHAR)
SELECT attendance FROM table_name_29 WHERE game_site = "hoosier dome" AND result = "l 7–31"
Game Site of hoosier dome, and a Result of l 7–31 involved what attendance?
CREATE TABLE table_name_29 (attendance VARCHAR, game_site VARCHAR, result VARCHAR)
SELECT matches FROM table_name_77 WHERE _percentage_won = "52.38"
Which Match has the percentage won 52.38?
CREATE TABLE table_name_77 (matches VARCHAR, _percentage_won VARCHAR)
SELECT ddm_class FROM table_1153898_1 WHERE comparisons = "Drawing Tablet Support"
Is the drawing tablet support part of the DDM class?
CREATE TABLE table_1153898_1 (ddm_class VARCHAR, comparisons VARCHAR)
SELECT 4 AS wi FROM table_27922491_20 WHERE economy = "4.17"
How many 4wi were recorded by the player with an economy of 4.17?
CREATE TABLE table_27922491_20 (economy VARCHAR)
SELECT states FROM table_15055594_6 WHERE fall_06 = 3821
Which state had 3821 students in the fall of 06?
CREATE TABLE table_15055594_6 (states VARCHAR, fall_06 VARCHAR)
SELECT document_name FROM documents EXCEPT SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code JOIN document_sections_images AS t3 ON t2.section_id = t3.section_id
Find names of the document without any images.
CREATE TABLE document_sections_images (section_id VARCHAR); CREATE TABLE documents (document_name VARCHAR); CREATE TABLE documents (document_name VARCHAR, document_code VARCHAR); CREATE TABLE document_sections (document_code VARCHAR, section_id VARCHAR)
SELECT MAX(production_code) FROM table_21550897_1 WHERE us_viewers__million_ = "9.18"
What is the production code for the episode that had 9.18 million viewers (U.S.)?
CREATE TABLE table_21550897_1 (production_code INTEGER, us_viewers__million_ VARCHAR)
SELECT MAX(grid) FROM table_name_72 WHERE time_retired = "accident" AND manufacturer = "honda"
WHAT IS THE GRID WITH AN ACCIDENT AND HONDA MANUFACTURER?
CREATE TABLE table_name_72 (grid INTEGER, time_retired VARCHAR, manufacturer VARCHAR)
SELECT T1.name, COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 5
List the top 5 genres by number of tracks. List genres name and total tracks.
CREATE TABLE tracks (genre_id VARCHAR); CREATE TABLE genres (name VARCHAR, id VARCHAR)
SELECT position FROM table_name_22 WHERE cfl_team = "bc lions"
What position do the bc lions pick?
CREATE TABLE table_name_22 (position VARCHAR, cfl_team VARCHAR)
SELECT location FROM table_name_64 WHERE name = "evans"
What was the locaction of the Evans test blast?
CREATE TABLE table_name_64 (location VARCHAR, name VARCHAR)
SELECT meg_whitman__r_ FROM table_name_51 WHERE date_s__administered = "october 21, 2010"
What percent of the vote went to Meg Whitman in the poll taken on October 21, 2010.
CREATE TABLE table_name_51 (meg_whitman__r_ VARCHAR, date_s__administered VARCHAR)
SELECT semester, YEAR FROM SECTION GROUP BY semester, YEAR ORDER BY COUNT(*) DESC LIMIT 1
Find the year and semester when offers the largest number of courses.
CREATE TABLE SECTION (semester VARCHAR, YEAR VARCHAR)
SELECT dennis_kucinich FROM table_name_48 WHERE classification = "democrat"
What is Dennis Kucinich, when Classification is "Democrat"?
CREATE TABLE table_name_48 (dennis_kucinich VARCHAR, classification VARCHAR)
SELECT method FROM table_name_97 WHERE round = 1 AND opponent = "bobby mcmaster"
what is the method for round 1 and the opponent is bobby mcmaster?
CREATE TABLE table_name_97 (method VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT MAX(built) FROM table_name_16 WHERE name_of_mill = "moulin de momalle"
What is year Built of the Moulin de Momalle Mill?
CREATE TABLE table_name_16 (built INTEGER, name_of_mill VARCHAR)
SELECT location FROM table_name_95 WHERE date = "may 21"
Which location has a date of may 21?
CREATE TABLE table_name_95 (location VARCHAR, date VARCHAR)
SELECT COUNT(april) FROM table_name_46 WHERE record = "38-33-10" AND game > 81
Name the total number of April for game more than 81 and reord of 38-33-10
CREATE TABLE table_name_46 (april VARCHAR, record VARCHAR, game VARCHAR)
SELECT score FROM table_name_79 WHERE competition = "1996 emarate cup" AND date = "march 25, 1996"
What is the score of the 1996 Emarate cup on March 25, 1996?
CREATE TABLE table_name_79 (score VARCHAR, competition VARCHAR, date VARCHAR)
SELECT losing_bonus FROM table_14070062_4 WHERE tries_for = "52"
what was the extra score when the overall score was 52
CREATE TABLE table_14070062_4 (losing_bonus VARCHAR, tries_for VARCHAR)
SELECT COUNT(total) FROM table_name_17 WHERE hereditary_peers = "–" AND lords_spiritual = "–" AND life_peers = "2" AND affiliation = "plaid cymru"
Which Total has a Hereditary peer of –, and a Lords spiritual of –, and a Life peers of 2, and an Affiliation of plaid cymru?
CREATE TABLE table_name_17 (total VARCHAR, affiliation VARCHAR, life_peers VARCHAR, hereditary_peers VARCHAR, lords_spiritual VARCHAR)
SELECT runner_s__up FROM table_name_49 WHERE margin = "3 strokes"
Who are the Runner(s)-up with a Margin of 3 strokes?
CREATE TABLE table_name_49 (runner_s__up VARCHAR, margin VARCHAR)
SELECT nfl_team FROM table_2508633_11 WHERE player = "Aaron Williams"
What NFL Teams have the player Aaron Williams?
CREATE TABLE table_2508633_11 (nfl_team VARCHAR, player VARCHAR)
SELECT arrival FROM table_14688744_2 WHERE no = 14
what is the arrival time for no. 14?
CREATE TABLE table_14688744_2 (arrival VARCHAR, no VARCHAR)
SELECT outcome FROM table_name_78 WHERE surface = "hard (i)" AND date = "28 january 2003"
Which Outcome has a Surface of hard (i), and a Date of 28 january 2003?
CREATE TABLE table_name_78 (outcome VARCHAR, surface VARCHAR, date VARCHAR)
SELECT date FROM table_name_80 WHERE venue = "victoria park"
What was the date of the game played at Victoria Park?
CREATE TABLE table_name_80 (date VARCHAR, venue VARCHAR)
SELECT city_1 FROM table_16066063_1 WHERE city_2 = "Okinawa"
Which city is listed first when Okinawa is listed as the second city?
CREATE TABLE table_16066063_1 (city_1 VARCHAR, city_2 VARCHAR)
SELECT record FROM table_name_43 WHERE attendance > 28 OFFSET 459
Which record has an attendance larger than 28,459?
CREATE TABLE table_name_43 (record VARCHAR, attendance INTEGER)
SELECT MIN(no) FROM table_11545282_19 WHERE school_club_team = "BYU"
What is the number of school/club teams held by BYU?
CREATE TABLE table_11545282_19 (no INTEGER, school_club_team VARCHAR)
SELECT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.song_name LIKE "%love%"
What is the name and country of origin of the artist who released a song that has "love" in its title?
CREATE TABLE song (artist_name VARCHAR, song_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR)
SELECT SUM(number) FROM table_name_89 WHERE opponent = "fokker d.vii" AND time = 1655
What number with the opponent Fokker D.vii have with a time of 1655?
CREATE TABLE table_name_89 (number INTEGER, opponent VARCHAR, time VARCHAR)
SELECT articulatory_class FROM table_name_34 WHERE aspirated_stop = "ㅍ"
Which Articulatory class has and Aspirated stop of ㅍ?
CREATE TABLE table_name_34 (articulatory_class VARCHAR, aspirated_stop VARCHAR)
SELECT record FROM table_name_59 WHERE home = "detroit" AND visitor = "phoenix"
Can you tell me the Record that has the Home of detroit, and the Visitor of phoenix?
CREATE TABLE table_name_59 (record VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT season__number FROM table_29391888_1 WHERE production_code = "3.89"
What is the season # for the production code 3.89?
CREATE TABLE table_29391888_1 (season__number VARCHAR, production_code VARCHAR)
SELECT score FROM table_name_68 WHERE opponent = "marquette"
What was the score for the game against Marquette?
CREATE TABLE table_name_68 (score VARCHAR, opponent VARCHAR)
SELECT value_world_rank FROM table_21109892_1 WHERE production__mt_ = 446424
When the production (mt) is 446424, what is the value world rank ?
CREATE TABLE table_21109892_1 (value_world_rank VARCHAR, production__mt_ VARCHAR)
SELECT score FROM table_name_6 WHERE year = "1991"
What was the 1991 score?
CREATE TABLE table_name_6 (score VARCHAR, year VARCHAR)
SELECT venue FROM table_name_98 WHERE away_team = "carlton"
Where did carlton play while away?
CREATE TABLE table_name_98 (venue VARCHAR, away_team VARCHAR)
SELECT MIN(silver) FROM table_name_40 WHERE nation = "total" AND bronze > 24
Name the least silver for nation of total when bronze is more than 24
CREATE TABLE table_name_40 (silver INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT matches FROM table_name_72 WHERE year = "2003"
What is Matches, when Year is "2003"?
CREATE TABLE table_name_72 (matches VARCHAR, year VARCHAR)
SELECT second FROM table_name_96 WHERE third = "caroline reed"
What is the name of the second who has Caroline Reed as third?
CREATE TABLE table_name_96 (second VARCHAR, third VARCHAR)
SELECT result FROM table_2668367_7 WHERE district = "Kentucky 8"
What was the result in the election in the Kentucky 8 district?
CREATE TABLE table_2668367_7 (result VARCHAR, district VARCHAR)
SELECT player FROM table_name_23 WHERE years_of_nba_experience_[a_] = 7
Who is the player with 7 years of NBA experience?
CREATE TABLE table_name_23 (player VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR)
SELECT title FROM table_name_96 WHERE developer = "battlecry studios"
Which title was developed by Battlecry Studios?
CREATE TABLE table_name_96 (title VARCHAR, developer VARCHAR)
SELECT date FROM table_15736385_1 WHERE location = "Nazareth"
On what date was the race at Nazareth?
CREATE TABLE table_15736385_1 (date VARCHAR, location VARCHAR)
SELECT vin_code FROM table_name_7 WHERE compression_ratio = "10.50:1"
Tell me the VIN code for compression ratio of 10.50:1
CREATE TABLE table_name_7 (vin_code VARCHAR, compression_ratio VARCHAR)
SELECT runner_up FROM table_name_96 WHERE tournament = "santiago"
who is the runner- up when the tournament is santiago?
CREATE TABLE table_name_96 (runner_up VARCHAR, tournament VARCHAR)
SELECT studio FROM table_name_71 WHERE rank < 3 AND director = "adrian lyne"
Which Studio has a Rank smaller than 3, and a Director of adrian lyne?
CREATE TABLE table_name_71 (studio VARCHAR, rank VARCHAR, director VARCHAR)
SELECT location FROM table_name_24 WHERE opponent = "arturo segovia"
Where did arturo segovia compete?
CREATE TABLE table_name_24 (location VARCHAR, opponent VARCHAR)
SELECT MAX(grid) FROM table_name_86 WHERE laps = 65
What is biggest grid when the laps are 65?
CREATE TABLE table_name_86 (grid INTEGER, laps VARCHAR)
SELECT nationality FROM table_name_47 WHERE player = "john crawford"
What is John Crawford's Nationality?
CREATE TABLE table_name_47 (nationality VARCHAR, player VARCHAR)
SELECT largest_ethnic_group__2002_ FROM table_2562572_27 WHERE settlement = "Gunaroš"
What are the largest ethnic groups in gunaroš?
CREATE TABLE table_2562572_27 (largest_ethnic_group__2002_ VARCHAR, settlement VARCHAR)
SELECT AVG(total) FROM table_name_23 WHERE silver > 2 AND gold > 1 AND nation = "total"
What is the average total when the silver is larger than 2, and a gold larger than 1, and a nation of total?
CREATE TABLE table_name_23 (total INTEGER, nation VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT number_of_broadband_subscribers FROM table_name_56 WHERE number_of_users = "~47,372"
How many broadband subscribers are there where there are ~47,372 users?
CREATE TABLE table_name_56 (number_of_broadband_subscribers VARCHAR, number_of_users VARCHAR)
SELECT MIN(opponents) FROM table_name_80 WHERE date = "nov. 25"
What is the Opponents in the game with a Date of nov. 25?
CREATE TABLE table_name_80 (opponents INTEGER, date VARCHAR)
SELECT margin FROM table_name_27 WHERE date = "19 july 2008 (round 19)"
What is the Margin, when Date is 19 July 2008 (Round 19)?
CREATE TABLE table_name_27 (margin VARCHAR, date VARCHAR)
SELECT listed FROM table_name_1 WHERE built = "1925" AND type = "warren pony truss"
What is the listed date of the Warren pony truss bridge that was built in 1925?
CREATE TABLE table_name_1 (listed VARCHAR, built VARCHAR, type VARCHAR)
SELECT COUNT(laps) FROM table_name_53 WHERE make = "chevrolet" AND winnings = "$97,508"
How many total laps did the Chevrolet that won $97,508 make?
CREATE TABLE table_name_53 (laps VARCHAR, make VARCHAR, winnings VARCHAR)
SELECT class FROM table_name_5 WHERE pos = "dnf" AND laps = 252
In which class had 252 laps and a position of dnf?
CREATE TABLE table_name_5 (class VARCHAR, pos VARCHAR, laps VARCHAR)
SELECT COUNT(record) FROM table_14863869_1 WHERE week = 11
How many scores were there in week 11?
CREATE TABLE table_14863869_1 (record VARCHAR, week VARCHAR)
SELECT new_classification FROM table_name_69 WHERE location = "la mirada, california"
What is the new classification for La Mirada, California?
CREATE TABLE table_name_69 (new_classification VARCHAR, location VARCHAR)
SELECT ppv FROM table_15887683_4 WHERE television_service = "Sky Calcio 5"
Do the Sky Calcio 5 channels have PPV?
CREATE TABLE table_15887683_4 (ppv VARCHAR, television_service VARCHAR)
SELECT COUNT(land___sqmi__) FROM table_18600760_1 WHERE township = "Ada"
Name the land for ada
CREATE TABLE table_18600760_1 (land___sqmi__ VARCHAR, township VARCHAR)
SELECT opponent_in_the_final FROM table_name_38 WHERE partner = "dustin brown"
Which Opponent in the final has a Partner of dustin brown?
CREATE TABLE table_name_38 (opponent_in_the_final VARCHAR, partner VARCHAR)
SELECT time_retired FROM table_name_89 WHERE grid = 18
What was the time recorded for grid 18?
CREATE TABLE table_name_89 (time_retired VARCHAR, grid VARCHAR)
SELECT SUM(attendance) FROM table_name_42 WHERE opponent = "nationals" AND record = "68-51"
What is the attendance of the game that has the opponent of The Nationals with a record of 68-51?
CREATE TABLE table_name_42 (attendance INTEGER, opponent VARCHAR, record VARCHAR)
SELECT T3.product_name, COUNT(*) FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id
List the name and count of each product in all orders.
CREATE TABLE orders (order_id VARCHAR); CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR)
SELECT tournament FROM table_name_66 WHERE score = "1–6, 6–3, 3–6"
Where was the tournament where the score was 1–6, 6–3, 3–6?
CREATE TABLE table_name_66 (tournament VARCHAR, score VARCHAR)
SELECT date FROM table_name_74 WHERE result = "3-0" AND competition = "friendly match"
What date was a friendly match played that ended in a 3-0 score?
CREATE TABLE table_name_74 (date VARCHAR, result VARCHAR, competition VARCHAR)
SELECT dob FROM table_name_40 WHERE surname = "cresswell"
Which DOB has a Surname of cresswell?
CREATE TABLE table_name_40 (dob VARCHAR, surname VARCHAR)
SELECT COUNT(no_in_season) FROM table_25604014_8 WHERE no_in_series = 142
How many episodes in the season are episode 142 in the series?
CREATE TABLE table_25604014_8 (no_in_season VARCHAR, no_in_series VARCHAR)
SELECT rank, Fname, Lname FROM Faculty
Show the rank, first name, and last name for all the faculty.
CREATE TABLE Faculty (rank VARCHAR, Fname VARCHAR, Lname VARCHAR)
SELECT COUNT(number_of_editions) FROM table_29788320_2 WHERE concept = "Club Q-BASE"
How many editions did Club Q-base concept have ?
CREATE TABLE table_29788320_2 (number_of_editions VARCHAR, concept VARCHAR)
SELECT top_speed FROM table_21154679_1 WHERE max_power = "PS (kW; bhp)"
What is the maximum speed for total power of ps (kw; bhp)?
CREATE TABLE table_21154679_1 (top_speed VARCHAR, max_power VARCHAR)
SELECT fname, lname, address FROM employee ORDER BY Bdate
list the first and last names, and the addresses of all employees in the ascending order of their birth date.
CREATE TABLE employee (fname VARCHAR, lname VARCHAR, address VARCHAR, Bdate VARCHAR)
SELECT res FROM table_name_25 WHERE time = "5:00" AND method = "decision (unanimous)" AND record = "1–0"
Which res has a Time of 5:00, and a Method of decision (unanimous), and a Record of 1–0?
CREATE TABLE table_name_25 (res VARCHAR, record VARCHAR, time VARCHAR, method VARCHAR)
SELECT team FROM table_name_93 WHERE college = "ohio state"
What is the team of the player from ohio state?
CREATE TABLE table_name_93 (team VARCHAR, college VARCHAR)
SELECT home_team FROM table_name_95 WHERE away_team = "leyton orient"
WHAT IS THE HOME TEAM WITH AN AWAY OF LEYTON ORIENT?
CREATE TABLE table_name_95 (home_team VARCHAR, away_team VARCHAR)
SELECT height FROM table_name_54 WHERE year = "sophomore" AND position = "guard" AND weight = 185
What is the Height of the Sophomore Guard weighing 185?
CREATE TABLE table_name_54 (height VARCHAR, weight VARCHAR, year VARCHAR, position VARCHAR)
SELECT location FROM table_name_93 WHERE previous_champion_s_ = "mike webb and nick fahrenheit"
Which location had previous champions of Mike Webb and Nick Fahrenheit?
CREATE TABLE table_name_93 (location VARCHAR, previous_champion_s_ VARCHAR)
SELECT AVG(T2.stu_gpa) FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T1.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211'
What is the average gpa of the students enrolled in the course with code ACCT-211?
CREATE TABLE enroll (stu_num VARCHAR, class_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_gpa INTEGER, stu_num VARCHAR)
SELECT home_team FROM table_name_50 WHERE venue = "emcg"
What is the name of the home team that has a venue called EMCG?
CREATE TABLE table_name_50 (home_team VARCHAR, venue VARCHAR)
SELECT record FROM table_name_35 WHERE time = "8:17"
What was the record after the fight that lasted 8:17?
CREATE TABLE table_name_35 (record VARCHAR, time VARCHAR)
SELECT event FROM table_name_11 WHERE method = "submission (rear naked choke)" AND record = "9-4"
What Event used submission (rear naked choke) with 9-4?
CREATE TABLE table_name_11 (event VARCHAR, method VARCHAR, record VARCHAR)
SELECT COUNT(points) FROM table_name_12 WHERE year > 1992
How many points are there later than 1992?
CREATE TABLE table_name_12 (points VARCHAR, year INTEGER)
SELECT high_points FROM table_name_85 WHERE date = "may 25"
What is the highest number of points a player got during the game on May 25?
CREATE TABLE table_name_85 (high_points VARCHAR, date VARCHAR)
SELECT date_final FROM table_name_59 WHERE year = "1982"
What date final has 1982 as the year?
CREATE TABLE table_name_59 (date_final VARCHAR, year VARCHAR)
SELECT result FROM table_name_36 WHERE date = "26 october 1993"
What was the result on 26 October 1993?
CREATE TABLE table_name_36 (result VARCHAR, date VARCHAR)
SELECT SUM(year) FROM table_name_68 WHERE position = "6th" AND competition = "commonwealth games"
What is the sum of Year(s), when Postion is 6th, and when Competition is Commonwealth Games?
CREATE TABLE table_name_68 (year INTEGER, position VARCHAR, competition VARCHAR)
SELECT MIN(lost) FROM table_name_4 WHERE points > 6 AND games < 5
Name the least lost with points more than 6 and games less than 5
CREATE TABLE table_name_4 (lost INTEGER, points VARCHAR, games VARCHAR)
SELECT skip FROM table_name_83 WHERE third = "alasdair guthrie"
Who is the Skip when Alasdair Guthrie is the third?
CREATE TABLE table_name_83 (skip VARCHAR, third VARCHAR)
SELECT netflix FROM table_15187735_4 WHERE episode = 46
What is the netflix code for episode 46?
CREATE TABLE table_15187735_4 (netflix VARCHAR, episode VARCHAR)
SELECT roomName FROM Rooms WHERE bedType = "King" OR bedType = "Queen"
List the name of rooms with king or queen bed.
CREATE TABLE Rooms (roomName VARCHAR, bedType VARCHAR)
SELECT high_rebounds FROM table_27712702_8 WHERE date = "December 12"
Who had the high rebounds record on December 12?
CREATE TABLE table_27712702_8 (high_rebounds VARCHAR, date VARCHAR)