answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MAX(total_days_in_pbb_house) FROM table_19061741_1 WHERE name = "Yen Galagnara"
When yen galagnara is the name what is the highest total days in the pbb house?
CREATE TABLE table_19061741_1 (total_days_in_pbb_house INTEGER, name VARCHAR)
SELECT MIN(number_of_carriers) FROM table_2394927_1
What is the lowest number of carriers?
CREATE TABLE table_2394927_1 (number_of_carriers INTEGER)
SELECT location FROM table_name_41 WHERE record = "2-0"
What was the location when he had a 2-0 record?
CREATE TABLE table_name_41 (location VARCHAR, record VARCHAR)
SELECT position FROM table_name_86 WHERE team = "baltimore bullets" AND college = "texas tech"
Name the position that has baltimore bullets and college of texas tech
CREATE TABLE table_name_86 (position VARCHAR, team VARCHAR, college VARCHAR)
SELECT republican_ticket FROM table_name_62 WHERE democratic_ticket = "flora d. johnson"
Who's the Republican ticket with a Democratic ticket of flora d. johnson?
CREATE TABLE table_name_62 (republican_ticket VARCHAR, democratic_ticket VARCHAR)
SELECT brand_name FROM table_24099628_1 WHERE model__list_ = "4x0"
What is the brand name associated with the model 4x0?
CREATE TABLE table_24099628_1 (brand_name VARCHAR, model__list_ VARCHAR)
SELECT AVG(lost) FROM table_name_83 WHERE drawn = 5 AND points > 41
How many games lost for the team that drew 5 times and had over 41 points?
CREATE TABLE table_name_83 (lost INTEGER, drawn VARCHAR, points VARCHAR)
SELECT COUNT(place) FROM table_name_10 WHERE artist = "rosie hunter" AND draw > 1
What is the Place of the Song by Artist Rosie Hunter with a Draw of 1 or larger?
CREATE TABLE table_name_10 (place VARCHAR, artist VARCHAR, draw VARCHAR)
SELECT winner FROM table_name_74 WHERE venue = "campbelltown sports stadium"
Who was the Winner at Campbelltown Sports Stadium?
CREATE TABLE table_name_74 (winner VARCHAR, venue VARCHAR)
SELECT time_retired FROM table_name_79 WHERE laps = 6 AND grid < 18 AND driver = "clay regazzoni"
what is the time/retired when the laps is 6, the grid is less than 18 and the driver is clay regazzoni?
CREATE TABLE table_name_79 (time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = "NYC" AND T2.Election_Cycle = "Spring"
Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle.
CREATE TABLE STUDENT (StuID VARCHAR, city_code VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)
SELECT city_of_license__market FROM table_1553485_1 WHERE channel_tv___dt__ = "3 (26)"
Which city of license/market has 3 (26) as their channel tv (dt)?
CREATE TABLE table_1553485_1 (city_of_license__market VARCHAR, channel_tv___dt__ VARCHAR)
SELECT res FROM table_name_1 WHERE time = "0:20"
In the round that lasted 0:20, what was the Res?
CREATE TABLE table_name_1 (res VARCHAR, time VARCHAR)
SELECT SUM(pos) FROM table_name_32 WHERE team = "roush fenway racing" AND car__number = 99
Which Pos has a Team of roush fenway racing, and a Car # of 99?
CREATE TABLE table_name_32 (pos INTEGER, team VARCHAR, car__number VARCHAR)
SELECT MAX(year) FROM table_name_28 WHERE points = 3
Which is the highest year that has 3 points?
CREATE TABLE table_name_28 (year INTEGER, points VARCHAR)
SELECT MAX(position) FROM table_23585197_3 WHERE date_eliminated = "11 November"
What is the position of the song that was eliminated on 11 november?
CREATE TABLE table_23585197_3 (position INTEGER, date_eliminated VARCHAR)
SELECT record FROM table_name_83 WHERE date = "june 4"
What was the record on june 4?
CREATE TABLE table_name_83 (record VARCHAR, date VARCHAR)
SELECT candidates FROM table_1341453_37 WHERE incumbent = "Tony P. Hall"
Tony P. Hall was the incumbent in the race between what two candidates?
CREATE TABLE table_1341453_37 (candidates VARCHAR, incumbent VARCHAR)
SELECT to_par FROM table_name_26 WHERE player = "tiger woods"
What is Tiger Woods' to par?
CREATE TABLE table_name_26 (to_par VARCHAR, player VARCHAR)
SELECT score FROM table_name_48 WHERE runner_up = "falkirk"
What is the score of the game with Falkirk as the runner-up?
CREATE TABLE table_name_48 (score VARCHAR, runner_up VARCHAR)
SELECT MAX(attendance) FROM table_name_83 WHERE home = "detroit"
What was the highest attendance at a Detroit home game?
CREATE TABLE table_name_83 (attendance INTEGER, home VARCHAR)
SELECT airport FROM table_name_81 WHERE icao = "rckh"
Which airport has an ICAO of RCKH?
CREATE TABLE table_name_81 (airport VARCHAR, icao VARCHAR)
SELECT main_span_feet FROM table_name_69 WHERE year_opened > 2009 AND rank < 94 AND main_span_metres = "1,310"
What is the main span in feet from a year of 2009 or more recent with a rank less than 94 and 1,310 main span metres?
CREATE TABLE table_name_69 (main_span_feet VARCHAR, main_span_metres VARCHAR, year_opened VARCHAR, rank VARCHAR)
SELECT played FROM table_name_91 WHERE goal_difference = "+51"
What is Played, when Goal Difference is "+51"?
CREATE TABLE table_name_91 (played VARCHAR, goal_difference VARCHAR)
SELECT MAX(win__percentage) FROM table_name_40 WHERE manager = "juan carlos chávez" AND lost < 4
What is the highes win % that manager juan carlos chávez's team had when they lost less than 4 times?
CREATE TABLE table_name_40 (win__percentage INTEGER, manager VARCHAR, lost VARCHAR)
SELECT snatch FROM table_16779068_5 WHERE body_weight = "737"
Name the snatch when body weight is 73.7
CREATE TABLE table_16779068_5 (snatch VARCHAR, body_weight VARCHAR)
SELECT score_points FROM table_name_12 WHERE event = "wc rio de janeiro" AND rank_points = "10"
What is Score Points, when Event is "WC Rio De Janeiro", and when Rank Points is "10"?
CREATE TABLE table_name_12 (score_points VARCHAR, event VARCHAR, rank_points VARCHAR)
SELECT COUNT(round) FROM table_25773116_2 WHERE date = "May 8"
How many rounds were played on May 8?
CREATE TABLE table_25773116_2 (round VARCHAR, date VARCHAR)
SELECT home_team FROM table_name_69 WHERE away_team = "richmond"
What home team has Richmond listed as their Away team?
CREATE TABLE table_name_69 (home_team VARCHAR, away_team VARCHAR)
SELECT MAX(attendance) FROM table_name_57 WHERE result = "w 30-7"
What is the highest attendance a result of W 30-7?
CREATE TABLE table_name_57 (attendance INTEGER, result VARCHAR)
SELECT bleeding_time FROM table_name_41 WHERE condition = "hemophilia"
What is hemophilia's bleeding time?
CREATE TABLE table_name_41 (bleeding_time VARCHAR, condition VARCHAR)
SELECT location FROM table_name_12 WHERE home_ground = "mong kok stadium"
Where was the location of the Mong Kok Stadium?
CREATE TABLE table_name_12 (location VARCHAR, home_ground VARCHAR)
SELECT rank__number FROM table_name_57 WHERE attendance = "93,829"
What was the rank# of the opponent when there was 93,829 in attendance?
CREATE TABLE table_name_57 (rank__number VARCHAR, attendance VARCHAR)
SELECT COUNT(party) FROM table_1341930_33 WHERE candidates = "Alton Lennon (D) 89.0% C. Dana Malpass (R) 11.0%"
how many party with candidates being alton lennon (d) 89.0% c. dana malpass (r) 11.0%
CREATE TABLE table_1341930_33 (party VARCHAR, candidates VARCHAR)
SELECT AVG(goals_for) FROM table_name_77 WHERE losses = 19 AND goals_against > 59
Tell me the average goals for losses of 19 and goals against more than 59
CREATE TABLE table_name_77 (goals_for INTEGER, losses VARCHAR, goals_against VARCHAR)
SELECT dominant_religion__2002_ FROM table_2562572_26 WHERE settlement = "Gornji Tavankut"
What is the dominant religion in Gornji Tavankut?
CREATE TABLE table_2562572_26 (dominant_religion__2002_ VARCHAR, settlement VARCHAR)
SELECT home FROM table_name_91 WHERE date = "april 15"
Who was the home team on April 15?
CREATE TABLE table_name_91 (home VARCHAR, date VARCHAR)
SELECT directed_by FROM table_20704243_6 WHERE original_air_date = "July15,2012"
Who directed the episode that aired on july15,2012?
CREATE TABLE table_20704243_6 (directed_by VARCHAR, original_air_date VARCHAR)
SELECT MIN(decile) FROM table_name_10 WHERE name = "ohau school"
What is the lowest decile that Ohau School has?
CREATE TABLE table_name_10 (decile INTEGER, name VARCHAR)
SELECT position FROM table_name_59 WHERE club_province = "meralomas" AND player = "david biddle"
Which position has a club of Meralomas and a player named David Biddle?
CREATE TABLE table_name_59 (position VARCHAR, club_province VARCHAR, player VARCHAR)
SELECT Injured FROM perpetrator ORDER BY Injured
List the number of people injured by perpetrators in ascending order.
CREATE TABLE perpetrator (Injured VARCHAR)
SELECT country FROM table_30108346_1 WHERE troops_per_one_million_population = "54.9"
Name the country for troops per one million being 54.9
CREATE TABLE table_30108346_1 (country VARCHAR, troops_per_one_million_population VARCHAR)
SELECT year__ceremony_ FROM table_22034853_1 WHERE original_title = "Vitus"
What was the year for the film "Vitus"?
CREATE TABLE table_22034853_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
SELECT MIN(week) FROM table_17972136_1 WHERE game_site = "Riverfront Stadium"
Where is riverfront stadium the game site for the week?
CREATE TABLE table_17972136_1 (week INTEGER, game_site VARCHAR)
SELECT MAX(freight___metric_tonnes__) FROM table_13836704_7 WHERE airport = "Edinburgh"
What is Edinburgh's airport's freight in metric tonnes?
CREATE TABLE table_13836704_7 (freight___metric_tonnes__ INTEGER, airport VARCHAR)
SELECT name, tonnage FROM ship ORDER BY name DESC
List the name and tonnage ordered by in descending alphaetical order for the names.
CREATE TABLE ship (name VARCHAR, tonnage VARCHAR)
SELECT location FROM table_name_83 WHERE name = "third bridge over panama canal"
Where was the third bridge over panama canal?
CREATE TABLE table_name_83 (location VARCHAR, name VARCHAR)
SELECT MIN(year) FROM table_name_11 WHERE event = "team" AND venue = "vilamoura, portugal"
What is the earliest year that a team event was included at Vilamoura, Portugal?
CREATE TABLE table_name_11 (year INTEGER, event VARCHAR, venue VARCHAR)
SELECT COUNT(stanier), _3_cylinder FROM table_20142629_2 WHERE fowler = 16
When the Fowler is 16, what is the number of cylinders?
CREATE TABLE table_20142629_2 (_3_cylinder VARCHAR, stanier VARCHAR, fowler VARCHAR)
SELECT date_of_vacancy FROM table_name_45 WHERE date_of_appointment = "11 march 2010"
What was the vacancy date of the manager appointed on 11 March 2010?
CREATE TABLE table_name_45 (date_of_vacancy VARCHAR, date_of_appointment VARCHAR)
SELECT name FROM table_name_49 WHERE goals > 14 AND transfer_fee = "youth system"
What is Name, when Goals is greater than 14, and when Transfer Fee is "Youth System"?
CREATE TABLE table_name_49 (name VARCHAR, goals VARCHAR, transfer_fee VARCHAR)
SELECT MAX(heat) FROM table_name_23 WHERE lane > 3 AND time = "2:09.12"
What is the highest heat for more than 3 lanes and a time of 2:09.12?
CREATE TABLE table_name_23 (heat INTEGER, lane VARCHAR, time VARCHAR)
SELECT ds_division FROM table_12485020_1 WHERE divisional_secretary = "S. L. M. Haneefa"
What DS division has S. L. M. Haneefa as the divisional secretary?
CREATE TABLE table_12485020_1 (ds_division VARCHAR, divisional_secretary VARCHAR)
SELECT COUNT(lane) FROM table_name_62 WHERE time = "1:53.70"
How many lanes have 1:53.70 as the time?
CREATE TABLE table_name_62 (lane VARCHAR, time VARCHAR)
SELECT LOCATION FROM cinema WHERE openning_year >= 2010 GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1
What is the location with the most cinemas opened in year 2010 or later?
CREATE TABLE cinema (LOCATION VARCHAR, openning_year VARCHAR)
SELECT country FROM table_name_33 WHERE score = 69 - 71 = 140
Name the country with a score of 69-71=140.
CREATE TABLE table_name_33 (country VARCHAR, score VARCHAR)
SELECT COUNT(oricon) FROM table_10979230_4 WHERE japanese_title = "愛のバカ"
What rank is 愛のバカ on the Japanese singles chart?
CREATE TABLE table_10979230_4 (oricon VARCHAR, japanese_title VARCHAR)
SELECT T2.first_name, T2.last_name, T2.actor_id FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id ORDER BY COUNT(*) DESC LIMIT 1
Which film actor (actress) starred the most films? List his or her first name, last name and actor id.
CREATE TABLE film_actor (actor_id VARCHAR); CREATE TABLE actor (first_name VARCHAR, last_name VARCHAR, actor_id VARCHAR)
SELECT ht FROM table_name_54 WHERE venue = "zagreb" AND score = "0-2"
What was the HT for the game at Zagreb, with a full-time score of 0-2?
CREATE TABLE table_name_54 (ht VARCHAR, venue VARCHAR, score VARCHAR)
SELECT winning_score FROM table_name_97 WHERE date = "jul 4, 1982"
For the tournament played on Jul 4, 1982, what was the winning score?
CREATE TABLE table_name_97 (winning_score VARCHAR, date VARCHAR)
SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = "Math"
Show the name of the teacher for the math course.
CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course_ID VARCHAR, Course VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR)
SELECT distance FROM table_name_67 WHERE jockey = "p. carbery" AND result = "2nd"
How far did p. carbery run to get 2nd?
CREATE TABLE table_name_67 (distance VARCHAR, jockey VARCHAR, result VARCHAR)
SELECT away_team FROM table_name_48 WHERE attendance = "6 december 1997" AND home_team = "torquay united"
What is the Away Team when the Home Team is Torquay United and the Attendence is 6 December 1997?
CREATE TABLE table_name_48 (away_team VARCHAR, attendance VARCHAR, home_team VARCHAR)
SELECT player FROM table_name_88 WHERE country = "australia"
Which player is from Australia?
CREATE TABLE table_name_88 (player VARCHAR, country VARCHAR)
SELECT SUM(games) FROM table_name_75 WHERE points = 377
What's the total number of game that has 377 points?
CREATE TABLE table_name_75 (games INTEGER, points VARCHAR)
SELECT opposition FROM table_name_69 WHERE round = "3rd"
Who was the opposing team in the 3rd round?
CREATE TABLE table_name_69 (opposition VARCHAR, round VARCHAR)
SELECT COUNT(year) FROM table_name_70 WHERE points = "248 (sf: 217)"
What year shows 248 (sf: 217) points?
CREATE TABLE table_name_70 (year VARCHAR, points VARCHAR)
SELECT competition FROM table_name_3 WHERE goals = "deacon 8/8" AND score = "32-14"
Which competition has a Goal of deacon 8/8 and a Score of 32-14?
CREATE TABLE table_name_3 (competition VARCHAR, goals VARCHAR, score VARCHAR)
SELECT COUNT(pole_position) FROM table_25213146_2 WHERE date = "30 March"
How many Pole Positions were there on 30 March?
CREATE TABLE table_25213146_2 (pole_position VARCHAR, date VARCHAR)
SELECT T2.protein_name, T1.institution FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id
Show the protein name and the institution name.
CREATE TABLE institution (institution VARCHAR, institution_id VARCHAR); CREATE TABLE protein (protein_name VARCHAR, institution_id VARCHAR)
SELECT _number___county FROM table_name_88 WHERE location = "ossian"
Which #/ County has a Location of ossian?
CREATE TABLE table_name_88 (_number___county VARCHAR, location VARCHAR)
SELECT player FROM table_name_36 WHERE caps = 12
What player has 12 caps?
CREATE TABLE table_name_36 (player VARCHAR, caps VARCHAR)
SELECT AVG(top_5) FROM table_name_98 WHERE tournament = "the open championship" AND top_10 < 2
What is the average Top-5 for the open championship, and a Top-10 smaller than 2?
CREATE TABLE table_name_98 (top_5 INTEGER, tournament VARCHAR, top_10 VARCHAR)
SELECT MIN(seating), MAX(seating), AVG(seating) FROM track
What is the minimum, maximum, and average seating for all tracks.
CREATE TABLE track (seating INTEGER)
SELECT MAX(attendance) FROM table_20540006_6 WHERE challenge_leader = "Big East (4-2)"
What was the attendance for the game when the challenge leader was at Big East (4-2)?
CREATE TABLE table_20540006_6 (attendance INTEGER, challenge_leader VARCHAR)
SELECT date FROM table_name_3 WHERE week = 5
What is the Date of Week 5?
CREATE TABLE table_name_3 (date VARCHAR, week VARCHAR)
SELECT country FROM table_name_70 WHERE launched = "april 3, 1990"
What is the Country with a Launched that is april 3, 1990?
CREATE TABLE table_name_70 (country VARCHAR, launched VARCHAR)
SELECT COUNT(attendance) FROM table_name_72 WHERE round = "f"
How many people attended round f?
CREATE TABLE table_name_72 (attendance VARCHAR, round VARCHAR)
SELECT est FROM table_name_6 WHERE state_province = "alberta" AND league = "cfl" AND city = "edmonton"
In what year was the cfl team in edmonton, alberta established?
CREATE TABLE table_name_6 (est VARCHAR, city VARCHAR, state_province VARCHAR, league VARCHAR)
SELECT MAX(viewers) FROM table_27994983_8 WHERE draw = 3
How many viewers are the when the draw is 3?
CREATE TABLE table_27994983_8 (viewers INTEGER, draw VARCHAR)
SELECT report FROM table_name_98 WHERE date = "20 may"
Name the report on 20 may
CREATE TABLE table_name_98 (report VARCHAR, date VARCHAR)
SELECT incumbent FROM table_1346118_2 WHERE candidates = "William B. Oliver (D) Unopposed"
Who was the incumbent when ran william b. oliver (d) unopposed?
CREATE TABLE table_1346118_2 (incumbent VARCHAR, candidates VARCHAR)
SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t1.sex = 'F' ORDER BY t1.name
list all female (sex is F) candidate names in the alphabetical order.
CREATE TABLE candidate (people_id VARCHAR); CREATE TABLE people (name VARCHAR, people_id VARCHAR, sex VARCHAR)
SELECT SUM(goals_for) FROM table_name_81 WHERE goals_against < 9 AND goal_differential = "0" AND draws < 2 AND wins = 1
for a Goals Against smaller than 9, and a Goal Differential of 0, and a Draws smaller than 2, and a Wins of 1, what's the goal total?
CREATE TABLE table_name_81 (goals_for INTEGER, wins VARCHAR, draws VARCHAR, goals_against VARCHAR, goal_differential VARCHAR)
SELECT week FROM table_name_19 WHERE record = "0-1"
Tell me the week for record of 0-1
CREATE TABLE table_name_19 (week VARCHAR, record VARCHAR)
SELECT type FROM table_1969577_3 WHERE nickname = "Chargers"
What's the type of the school whose students are nicknamed Chargers?
CREATE TABLE table_1969577_3 (type VARCHAR, nickname VARCHAR)
SELECT COUNT(*) FROM ship WHERE disposition_of_ship = 'Captured'
How many ships ended up being 'Captured'?
CREATE TABLE ship (disposition_of_ship VARCHAR)
SELECT MIN(grid) FROM table_name_88 WHERE laps < 22 AND bike = "honda cbr1000rr" AND rider = "luca morelli"
Which Grid has Laps smaller than 22, and a Bike of honda cbr1000rr, and a Rider of luca morelli?
CREATE TABLE table_name_88 (grid INTEGER, rider VARCHAR, laps VARCHAR, bike VARCHAR)
SELECT quarterfinal FROM table_name_28 WHERE rank > 9
Which Quarterfinal has a Rank larger than 9?
CREATE TABLE table_name_28 (quarterfinal VARCHAR, rank INTEGER)
SELECT bike FROM table_name_20 WHERE grid = 26
What bike has 26 as the grid?
CREATE TABLE table_name_20 (bike VARCHAR, grid VARCHAR)
SELECT winner FROM table_23982399_12 WHERE iron_chef = "Hiroyuki Sakai"
Who was the winner when the iron chef is hiroyuki sakai?
CREATE TABLE table_23982399_12 (winner VARCHAR, iron_chef VARCHAR)
SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = "Solveig" GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
Which vocal type has the band mate with first name "Solveig" played the most?
CREATE TABLE vocals (bandmate VARCHAR); CREATE TABLE band (id VARCHAR)
SELECT group_c FROM table_15290638_1 WHERE group_d = "Wisconsin"
Who is in group c when wisconsin is in group d?
CREATE TABLE table_15290638_1 (group_c VARCHAR, group_d VARCHAR)
SELECT * FROM College ORDER BY enr
List all information about college sorted by enrollment number in the ascending order.
CREATE TABLE College (enr VARCHAR)
SELECT college FROM table_name_94 WHERE player = "lance moore category:articles with hcards"
What college has Lance Moore Category:articles with hcards?
CREATE TABLE table_name_94 (college VARCHAR, player VARCHAR)
SELECT AVG(money___) AS $__ FROM table_name_94 WHERE place = "t10" AND player = "andy north"
How much was paid to Andy North when he placed t10?
CREATE TABLE table_name_94 (money___ INTEGER, place VARCHAR, player VARCHAR)
SELECT score FROM table_name_31 WHERE venue = "idrottsparken"
Which Score has a Venue of idrottsparken?
CREATE TABLE table_name_31 (score VARCHAR, venue VARCHAR)
SELECT overall_record FROM table_1246208_5 WHERE club = "Dallas Burn"
what is the overall record when the club is dallas burn?
CREATE TABLE table_1246208_5 (overall_record VARCHAR, club VARCHAR)
SELECT team_1 FROM table_name_13 WHERE team_2 = "vfl gummersbach"
Which team 1 has vfl gummersbach as team 2?
CREATE TABLE table_name_13 (team_1 VARCHAR, team_2 VARCHAR)
SELECT founder FROM manufacturers WHERE name = 'Sony'
Who is the founder of Sony?
CREATE TABLE manufacturers (founder VARCHAR, name VARCHAR)